• Resolved edouard75

    (@edouard75)


    Hello,
    I made the last update of WP-Members 3.2.2.1.

    And since this update, I meet two major problems, I seek your help.
    I need to specify, that my site is exclusively in French it’s been three years that I use your extension and so far I have never had this problem.

    In my registration page with the shortcode “[wpmem_form register]” I find myself with
    “Please indicate that you agree to the Terms of Service” whereas normally it is ” Veuillez indiquer que vous acceptez les Conditions d’Utilisation ” it is exactly the same sentence in French.

    And also I find myself with a button “REGISTER” while I should have “INSCRIPTION” here too it’s exactly the same thing but in French.

    So to summarize in case I’m not clear, there is a translation problem.

    Would you be kind enough to make a quick fix that hurts me.

    Last question can I go back to the previous version of wp-members? Waiting for a fix.

    thank you very much for your support

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    These issues are not actually the plugin, but a result of incomplete translations.

    The official plugin translations are all handled through WP’s polyglots project (see: https://translate.www.ads-software.com/projects/wp-plugins/wp-members).

    The language packs that are included in the plugin download are only there for legacy purposes (such as when there is now complete language pack available on wp.org) and they are no longer maintained.

    In your case, French is listed as only 40% complete on polyglots. Language packs only download with the plugin when they are 90%.

    Of the specific issues you mentioned, the TOS text is the result of a change in the string for that particular field. It was “Please indicate that you agree to the TOS” and “TOS” was changed to “Terms of Service”. So in this instance, there is no current match for that in the language pack.

    There are a number of solutions. First, it would be great to have a complete French translation – including that particular string. That’s not going to happen until people maintain the language pack on polyglots. One simple solution is that the field label can be customized. That’s true for any field, and while translating via a custom field label isn’t an actual solution for a missing translation string, that does solve the problem. Lastly, that particular field’s label text can be filtered directly with wpmem_tos_link_txt.

    The other issue – the register button – is the result of the translation being marked “fuzzy” in the translation file. Any translation that is marked “fuzzy” in the .po file will not be included in the resulting compiled .mo file. Similar to the other translation, the ideal solution is a proper translation file. But since that doesn’t exist yet, that element can be filtered in the wpmem_register_form_args.

    Also, some people use the Text Editor premium extension for customizing these and other strings. It allows an easy interface for customizing all user facing text for the plugin.

    There is more information on plugin translation, including information on becoming a translation contributor, at this FAQ:
    https://rocketgeek.com/plugins/wp-members/docs/faqs/#translation

    Bonjour Edouard,
    Plus simplement ,
    éditer wp-members-fr_FR.po,
    remplacer msgstr “” par msgstr “Traduction fran?aise”,
    compiler pour obtenir wp-members-fr_FR.mo.

    Exemple sous Linux : $>msgfmt -o wp-members-fr_FR.mo -v wp-members-fr_FR.po
    Mettre wp-members-fr_FR.mo à son emplacement /wp-content/plugins/wp-members/lang/
    J’ai ainsi traduit quelques formulaires.
    Attention à la mise à jour du plugin, les fichiers .po et .mo modifiés pourraient être remplacés.

    Plugin Author Chad Butler

    (@cbutlerjr)

    Mettre wp-members-fr_FR.mo à son emplacement /wp-content/plugins/wp-members/lang/
    J’ai ainsi traduit quelques formulaires.
    Attention à la mise à jour du plugin, les fichiers .po et .mo modifiés pourraient être remplacés.

    Actually, if you put them to /wp-content/languages/plugins/ then you won’t have to replace them when you update the plugin. That’s the preferred location. The files in the plugin’s /lang/ folder are only for legacy purposes and for fallback if the primary location does not exist.

    Or, if you want to same them to a different location, use the ‘wpmem_localization_file’ filter to change the file path.

    Thank you for these clarifications that I’ll implement asap.

    Hi @cbutlerjr,

    As a GPTE for fr_FR, I’ve been notified about this discussion.
    I’ll review the waiting strings in fr_FR to make it to 95 % so the translation packaged is released.

    That might solve @edouard75 issue.

    @sysiphe I strongly encourage you to use the tools provided by WordPress to manage translations. When you use them, all the community benefits from your translations.

    Also, if you want to contribute to translation, we’re always looking for help! ??
    Feel free to join us on Slack. You can also find everything you need to get you started in https://fr.www.ads-software.com/team (see Ressources in the sidebar).

    Thanks.

    Plugin Author Chad Butler

    (@cbutlerjr)

    Thanks @peexy!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WP-Members 3.2.2.1 translation problem’ is closed to new replies.