Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author xnau webdesign

    (@xnau)

    I attempted to make the javascript better targeted so that other scripts would be less likely to interfere, but there’s no way to prevent another script from causing problems.

    Identifying the script that is causing the problem is helpful, sometimes there is a way to get around the problem with that knowledge.

    Thread Starter MarionFW

    (@marionfw)

    Hi Xnau,
    thanks for your quick reaction. I’m not a developer at all, so I’ll first have to find out how to identify the script. I will have to do that later on.

    In the meantime, I tried another relatively clean local WordPress install, not updated to WordPress 4.3 yet, standard theme, no plugins activated, but the problem persists.
    By the way, don’t know if this helps: when clicking the red x, the field seems to be removed, but after adding a new field and updating, the removed field shows up again. There is no warning about unsaved changes.

    Probably a very stupid question, because I don’t see any logic here, but could it have anything to do with the Dutch translation? The popup question when removing the field is
    Verwijder het “{naam}” {ding}?

    translated back in Englisch that would be:
    Remove the “{name}” {thing}?

    Plugin Author xnau webdesign

    (@xnau)

    Yes, there was a bug in the translation that has been fixed. It was causing just this problem. Are you using the latest version of the plugin?

    Thread Starter MarionFW

    (@marionfw)

    Yes, I only installed the plugin yesterday (although it has been on my wishlist for some months, I’m really impressed and love to get it working).

    Same error right here. Also using plugin in spanish version

    Thread Starter MarionFW

    (@marionfw)

    Hi Xnau,

    I have been searching for the cause of the problem. I installed a brand new site (under Xampp) in default language (English), and immediately installed Participants Database (automatically also in English). Now it’s working all right! I can remove any field I want and it does not return.

    I have another offline site where I already installed PD before. I switched that site to English, and after that here too deleting a field was no problemn. So it definitely must be something in the translation that is not working correctly (I use the Dutch translation, apparently the same problem appears also in the Spanish translation).

    Would this help you to find a solution? I’m not sure if I can repeatedly change the website’s language without problems.

    Thanks for your help!

    Thread Starter MarionFW

    (@marionfw)

    in addition to my previous post: on the helppage (tab next to Field Groups), there is something wrong in the translation: the link on “visit help pages on PD” is not closed until the end of the page (that is: the information on Readonly) so the whole page is an underlined link. This also must be a translation problem, in the original English version I don’t see this problemn.

    Plugin Author xnau webdesign

    (@xnau)

    OK, well the specific problem with the Manage Database Fields page was that there are two translation items called “group”…one of the was capitalized, but the translation string was uncaptialized, so there was confusion.

    In the Dutch translation, both “Group” and “group” translate as “Groep” so that could cause a problem. I suppose. I have not tested this. In the Spanish translation, the two are different. so I don’t know about that.

    I’ll mark these down as bugs so I’ll fix them soon.

    Hi, I ran into the same problem. (also running the dutch version).
    I made these changes to the translation:

    Delete the "{name}" {thing}?
    Verwijder het "{name}" {thing}?
    
    Please visit the %sParticipants Database help pages%s for up-to-date information on using this plugin.
    Bezoekt u alstublieft de %shulppagina's van de ParticipantenDatabase%s voor up-to-date informatie over het gebruik van deze plugin.
    
    You must remove all fields from the {name} group before deleting it.
    U dient alle velden van de groep {name} te verwijderen, alvorens de groep te verwijderen.

    Also changed “Groep” to “groep”.
    No succes.

    After clicking the red cross teh row disapears. But after updating the’re back again.

    Plugin Author xnau webdesign

    (@xnau)

    I see there is a problem with the translation. Words in brackets are not supposed to be translated, to the line in the translation that is:

    Verwijder het “{naam}” {ding}?

    Should be:

    Verwijder het “{name}” {thing}?

    then it will work. This is because the Javascript is looking for the english string, which it will replace with a translated string.

    Thread Starter MarionFW

    (@marionfw)

    Hi,
    great, this works! I used the plugin Loco Translate to correct this.
    Thanks for the support!

    Thread Starter MarionFW

    (@marionfw)

    Very sorry, but I was too hasty. Although I made the changes as indicated, the test field that I added keeps coming back, even after emptying cache.

    I’m not really very familiar with translations. I used the plugin Loco translations to correct. Because that had no result, I tried Poedit (and upon validation found that there were 2 other errors in the translation; I corrected them too).
    As far as I can see, the .po and .mo files are fine now, but still no result on deleting, the field seems to disappear but stil comes back.

    Even deleting the Dutch translation of this line altogether does not work.

    Is there a way to use the plugin in its original language (without having to turn the WordPress language from Dutch back to English)?

    Plugin Author xnau webdesign

    (@xnau)

    OK, I see the bug. The delete function is looking for an english word, but it should be looking for the translated word.

    You can fix it like this:

    In the plugin file classes/PDb_Manage_Fields.class.php on line 646, find:

    case 'delete_field':

    change this to:

    case 'delete_' . $this->i18n['field']:

    And you should do a similar thing for “group” on line 658.

    Hi Xnau, thanks for your work!
    I am wondering if you could create an issue about it and release a new version with that bug fixed. I work on an environment where I do not have the chance to modify files on plugins as a security requirement.
    Thanks in advance!
    Ayar

    Plugin Author xnau webdesign

    (@xnau)

    I am, but this is in case you can’t wait for that to come out.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘delete fields does not work?’ is closed to new replies.