Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] The text “Edit Profile” does not get translated in loggedin.php

Simple Membership Plugin › Forums › Simple Membership Plugin › The text “Edit Profile” does not get translated in loggedin.php

Tagged: translation language bug german

  • This topic has 13 replies, 4 voices, and was last updated 3 years, 11 months ago by mbrsolution.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • August 1, 2022 at 10:53 am #24171
    HotKey
    Participant

    I am currently working on a german website. Everything is working fine, except for one single text: On the page views/loggedin.php, the “Edit Profile” link still reads “Edit Profile”, even though the de_DE language file contains the correct translation “Profil bearbeiten”.

    The code seems to correctly hook into the translation mechanism:

    views/loggedin.php:26:

    languages/simple-membership-de_DE.po:2524:
    #: views/loggedin.php:26
    #, fuzzy
    msgid “Edit Profile”
    msgstr “Profil bearbeiten”

    Why doesn’t it get translated correctly? Any help would be appreciated!

    August 3, 2022 at 2:58 am #24172
    mbrsolution
    Moderator

    Hi, I just finished carrying a test in my Spanish dev site and that string is translated in my site. I can confirm that the string is translating correctly in the Spanish po file. What tool are you using to translate and or verify the string?

    Thank you.

    August 3, 2022 at 8:47 am #24177
    HotKey
    Participant

    I am not involved in translation at all. I am just using the sm-plugin with the German translation that shipped with it. So it is a bug in the official version.

    August 4, 2022 at 12:13 am #24179
    mbrsolution
    Moderator

    Hi, unfortunately we don’t control the translations for non English translations submitted by users. In your case, you might have to update your German translations files. The following documentation can help you further.

    https://simple-membership-plugin.com/translate-simple-membership-plugin/

    Also, there might be a conflict somewhere in your site causing this issue because you mentioned above that the string is translated. If that is the case, carry out the following troubleshooting steps.

    https://simple-membership-plugin.com/forums/topic/test-for-plugin-and-theme-conflict-before-posting-an-issue-or-a-bug/

    Thank you.

    August 19, 2022 at 10:36 am #24274
    HotKey
    Participant

    Thank you for the suggestions!

    Using POEDIT I was able to verify that the German translation file (simple-membership-de_DE.po), which I got with my installation, does in fact contain the correct translation for the String “Edit Profile” (“Profil bearbeiten”). So the file is correct.

    If I change the language symbol in “views/loggedin.php” from “Edit Profile” to “Please”, it gets correctly translated to “Bitte”, so the overall language system seems to do its job correctly. It just doesn’t produce the correct result for the string “Edit Profile”.

    I’m no expert in wordpress language debugging, so I hard-coded the German string into loggedin.php just to satisfy my customer.

    September 1, 2022 at 6:38 pm #24359
    Marimur
    Participant

    Hi HotKey,

    I had the same issue and found out that there are double quotation marks around “Edit Profile”. So I replaced them with single ones ‘Edit Profile’ in the loggedin.php file and the translation worked.

    Seems to be a bug.

    September 1, 2022 at 11:06 pm #24360
    mbrsolution
    Moderator

    @Marimur, thank you for reporting your findings. I have submitted a message to the developers to investigate further.

    Kind regards.

    September 2, 2022 at 12:04 pm #24365
    HotKey
    Participant

    @Marimur thank you for that hint! Putting the string in single quotes does not resolve the problem in my case. But at least I am not the only one encountering that problem. @mbrsolution thank you for “escalating” the issue.

    September 2, 2022 at 12:05 pm #24366
    Marimur
    Participant

    I forgot: I also deleted the #, fuzzy line. Don’t know what’s going on here.

    September 5, 2022 at 8:09 am #24373
    admin
    Keymaster

    Hi, Let me explain this a bit more so you understand that the issue is in the language file of the language you are using (not the actual plugin’s code).

    #1) The double quote or single quote in the code doesn’t matter. Both syntax is fine. If that was the issue then this transaction would not work for any other language translations where the end-user has done a correct full translation. I just verified that the language translation is working for that particular string so the code for it is fine. I am happy to change the double quotes into single quote but I know that is not really the main issue.

    We ONLY provide the main language POT file with the plugin (simple-membership.pot). All the other language files that you see in the “languages” folder of the plugin has been submitted by a community user (someone just like you). So it is possible for a particular language file to have some formatting issues or incorrect strings or wrong translation. We don’t have an expert for all these different languages in our small team. So can’t verify all the translations unfortunately.

    #2) In most cases, you will need to re-generate your language files from the main POT file to make sure everything is correct and you are not using a language file that a user submitted which has some formatting issues. You can do a quick test by deleting the German language translation files then re-create it for just a few strings to test and see how that works. The following page has info on how you can do a fresh new translation:
    https://simple-membership-plugin.com/translate-simple-membership-plugin/

    #3) Any line that starts with a hash # character is a comment in the language translation file. It doesn’t matter if you keep that line or not.

    I hope the above explanation helps.

    September 6, 2022 at 7:25 am #24381
    Marimur
    Participant

    Hi,

    when trying to generate a new po file from the pot file, I get this:

    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2639: Mehrfachdefinition der Meldung…
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2041: …dies ist die Stelle der ersten Definition
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2667: Mehrfachdefinition der Meldung…
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2121: …dies ist die Stelle der ersten Definition
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2671: Mehrfachdefinition der Meldung…
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:708: …dies ist die Stelle der ersten Definition
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2675: Mehrfachdefinition der Meldung…
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:78: …dies ist die Stelle der ersten Definition
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2679: Mehrfachdefinition der Meldung…
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:85: …dies ist die Stelle der ersten Definition
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2687: Mehrfachdefinition der Meldung…
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:720: …dies ist die Stelle der ersten Definition
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2695: Mehrfachdefinition der Meldung…
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:1973: …dies ist die Stelle der ersten Definition
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2699: Mehrfachdefinition der Meldung…
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:1953: …dies ist die Stelle der ersten Definition
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2703: Mehrfachdefinition der Meldung…
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:712: …dies ist die Stelle der ersten Definition
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2707: Mehrfachdefinition der Meldung…
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:1981: …dies ist die Stelle der ersten Definition
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2711: Mehrfachdefinition der Meldung…
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:1949: …dies ist die Stelle der ersten Definition
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2715: Mehrfachdefinition der Meldung…
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:1977: …dies ist die Stelle der ersten Definition
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2723: Mehrfachdefinition der Meldung…
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:825: …dies ist die Stelle der ersten Definition
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:2731: Mehrfachdefinition der Meldung…
    06.09.2022 09:22:09: C:\Users\…\AppData\Local\Temp\poe6FF4.tmp\ref.pot:61: …dies ist die Stelle der ersten Definition
    06.09.2022 09:22:09: C:\Program Files (x86)\Poedit\GettextTools\bin\msgmerge.exe: es sind 14 fatale Fehler aufgetreten

    There seem to be several multiple definitions, which breaks all. So what can I do with this?

    Thanks.

    September 16, 2022 at 2:50 am #24463
    admin
    Keymaster

    I have added some screenshots and more clear steps in the following documentation. This uses the latest version of the Poedit software. I followed these steps myself and I don’t see any error. Can you please try the steps and let me know how you go:

    https://simple-membership-plugin.com/translate-simple-membership-plugin/

    September 16, 2022 at 7:44 am #24464
    Marimur
    Participant

    When opening the pot-file directly I get errors. Opening Poedit without any pot file and then starting with New… works fine. This seems to be a Poedit problem. So thanks for clarification.

    Is there any way to import the already translated strings from the po file?

    September 20, 2022 at 2:29 am #24481
    mbrsolution
    Moderator

    Hi @Marimur,

    Is there any way to import the already translated strings from the po file?

    For what you are trying to achieve, you can try using Loco Translate plugin. This will allow you to copy an existing translation. Then simple edit the strings you wish to make changes too. Let us know if this helps you.

    Kind regards.

  • Author
    Posts
Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy