Simple Membership Plugin › Forums › Simple Membership Plugin › Mini Login Widget not translated / Problems with Danish .po- and .pot-files
Tagged: .mo, .po, .pot, Danish, Dansk, Mini Login Widget, poedit, translation
- This topic has 14 replies, 3 voices, and was last updated 3 years, 6 months ago by
AntonieP.
-
AuthorPosts
-
February 4, 2022 at 3:30 pm #23557
AntonieP
ParticipantHello,
in the Danish mo-Files (of the Simple Membership Plugin translation) “simple-membership-da_DK.po” are 196 entries (all translated). But the Mini Login Widget is not translated, but shown in English on the Danish Website. Other Expressions, f.i. in the Login Form and the Plugin Backend, are in Danish… The template “simple-membership.pot” has 620 entries, so I would like to add the missing entries to the existing po-File (because if I create the .po-file new from the .pot, I lose the 120 entries already existing).
If I want to use the POEDIT function “Update from POT-File” for the “simple-membership-da_DK.po” I get a failure message: “update failed” “multiple definition of the message …” and the error log says “There are probably incorrect translation entries in the file.”, “14 fatal errors” and “this is the place of the first definition”.Is it right that this is a problem with the Plugin translation files and is it possible to get correct files instead? Or is there another way to handle this – to merge these files without writing functions and code?
Thanks for your help!
February 5, 2022 at 10:19 pm #23564mbrsolution
ModeratorHi, please check the following documentation to help you translate your file. Let me know if you run into issues.
https://simple-membership-plugin.com/translate-simple-membership-plugin/
Kind regards.
February 7, 2022 at 8:00 am #23578AntonieP
ParticipantHello mbrsolution,
I have already followed the documentation you was so kind to link for me BEFORE I opened the thread.
As I wrote, the problem is, that I don’t want to dismiss the 120 entries already existing in the .mo-file – because I have to REPLACE the existing .po-file if I want to create it new from the .pot. Or (that would be best) is there a possibility to use more than one .mo-file for one language? If so, how can I “tell” the Plugin there are more than one and how to “find” them?
Thank you very much for help.
AntonieFebruary 7, 2022 at 10:19 am #23579mbrsolution
ModeratorHi, you should be able to edit the po file using Poedit which means you don’t have to loose the 120 strings already translated. You can also use https://wordpress.org/plugins/loco-translate/ plugin.
is there a possibility to use more than one .mo-file for one language
No, that is not possible.
Kind regards.
February 7, 2022 at 11:00 am #23583AntonieP
ParticipantHello mbrsolution,
thank you.
The po-file has 196 entries and all are translated, so it is not possible to add the missing translations in the existing .po-file.
I tried the loco-translate-Plugin – it is the same, it shows, that the plugin is translated to 100% 🙁 (That means only the 196 existing translations, not the missing for the Mini Login Widget!)Is it possible for you to provide an updated complete danish .po file with ALL 620 entries of the .pot file, the 196 already translated and – as placeholders – the English translation for the not-translated? Then, based on this file, we (me and my customer) could add the necessary translations for the Mini Login Widget, and I could then make this completed file available to other users as well.
As described first, I wanted to update the .po file myself using the .pot, but Poedit always gave me an error message that the language file was faulty (see first thread)
Many thanks in advance and best regards
AntonieFebruary 7, 2022 at 10:40 pm #23584mbrsolution
ModeratorHi, I have submitted a message to the developers to investigate further your issue.
Thank you.
February 8, 2022 at 7:32 am #23589AntonieP
ParticipantThank you very much. Then I wait for their answer.
February 15, 2022 at 8:13 am #23616AntonieP
ParticipantHello again,
I would like to ask about the current status a week later, as I have not heard anything from the developers. In the meantime I have installed the current update, but the concerned files have not changed.
The Mini Login Widget on my client’s Danish website is still in English and I would like to add the missing danish translations without having to discard the existing language file (.po) or its content.
The Poedit error message when I want to update the .po file from the .pot is what I wrote above.Is it possible for you to provide an updated complete danish .po file with ALL 620 entries of the .pot file, the 196 already translated and – as placeholders – the English translation for the not-translated? Then, based on this file, we (me and my customer) could add the necessary translations for the Mini Login Widget, and I could then make this completed file available to other users as well (if you could tell me, how).
Thank you for your help.
AntonieFebruary 16, 2022 at 2:31 am #23620mbrsolution
ModeratorHi, I just carried out a test in my Spanish dev site and the strings for the mini login widget are translated.
Try the following steps.
Step 1) Go to the following link https://translate.wordpress.org/projects/wp-plugins/simple-membership/dev/da/default/ and export the files as po/pot. This is located at the bottom of the page above.
Step 2) Then use loco translate plugin or PoEdit tool to translate the remaining strings, which include the mini login widget strings.Let me know if the above helps you.
Kind regards.
February 16, 2022 at 7:26 am #23625admin
KeymasterThe main POT language file (simple-membership.pot) seem to be fine. The language file you are using most likely need to be updated/re-created. The individual language files are created/contributed by the users. we only understand the English language so we rely on users to submit a translation if they want to. If a user submits an updated copy of their language file, we add a copy of it to our plugin.
February 16, 2022 at 8:49 am #23626AntonieP
ParticipantHello mbrsolution,
Thank you for the link to export the currently translated terms!
I’ve used the exported file to replace the .po and .mo files included in the plugin for Danish, and the mini login widget is now Danish – yeah!Unfortunately, not all keywords from the .pot file are included in the linked translation table either, e.g. “Username or Email” is missing from the login mask, which means that no translation can be added for it either. It is not included in the table (not even without translation), only in the .pot (template), and also when I try to use Poedit to update the .po file generated today (via the link and export) with the .pot (to add the missing terms), I unfortunately get an error message again….
How is it possible to add the term “Username or Email” and possibly other missing terms to the Danish po file or the translation table as a new line?
Thank you very much.
AntonieFebruary 16, 2022 at 11:07 am #23628mbrsolution
ModeratorHello Antonie,
In regards to the following string “Username or Email”, the developers are aware of this issue and will be fixed in the next release.
Kind regards.
February 17, 2022 at 10:25 am #23631AntonieP
ParticipantHello mbrsolution,
Many thanks, even if it’s a pity that the problem can’t be solved the way Poedit actually intended – that the users can update the .po with the .pot theirselves – without the developers having to manually add translations in the individual languages…
I have now checked (with MS Excel) which entries of the .pot are missing in the .po (generated from the dev you kindly linked for me above).The 32 missing entries in the dev-pot are:
Address
Allowed characters are: letters, numbers and .-_*@
Already a member of this level.
Already taken.
Apt, Suite, Bldg. (optional)
Check this box to delete the image. The image will be deleted when you save the profile.
Clear Search
Field has invalid character
Level
Member Directory
Membership level has been updated.
Password does not match
Please check at least one.
Please enter any two digits with no spaces (Example: 12)
Please enter any two digits with no spaces (Example: 12)*
Postal / Zip Code
Registration is complete. You can now log into the site.
Retype password here
Search…
State / Province / Region
Street Address
This content is for members only.
translators: %1$d is error code; %2$s is error message.
translators: %1$s is expected amount, %2$s is expected currency.
Type password here
Username can only contain: letters, numbers and .-*@
Username or Email
Verification
You do not have permission to view this content.
You must be logged in to upgrade a membership.
You will need to re-login since you changed your password.
Your membership level does not have permission to view this content.—-
Thank you for working on permanently solving the problem of the missing entries in the translation files (error message when trying to update the .po files with the .pot), also with regard to future updates.
Best regards and thank you for the good communication and your helpfulness.
AntonieMarch 5, 2022 at 12:38 am #23692mbrsolution
ModeratorHi, just touching basis. Have you tested the latest version of SMP?
Regards.
March 7, 2022 at 9:53 am #23696AntonieP
ParticipantHello,
after updating the SM Plugin, the Mini Login Widget on the Danish site is in English again… I had to replace it again with the new file (see above).
Best regards,
Antonie -
AuthorPosts
- You must be logged in to reply to this topic.