• Resolved Yourdigihands

    (@yourdigihands)


    Hi,
    1. When editing the user profile there is a line at the bottom that says:
    Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! \” ? $ % ^ & ).

    This line is translated in the PO/MO files into Dutch but it is not translated on the screen.

    2. When i use the registration form it says for the second password:
    Confirm Password.
    Also this label is translated in the Dutch PO/MO files, but not translated on the screen.

    Regards,

    Peter

    https://www.ads-software.com/plugins/theme-my-login/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi Yourdigihands;
    Did you figure this out? Because I have the same problem and I cannot find an answer to that any where. Please let me know if you had better luck.

    Regards;

    Al

    For “Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! \” ? $ % ^ & ).” change line 132 in theme-my-login/templates/profile-form.php with this:

    <p class=”description indicator-hint”><?php _e( ‘Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! ” ? $ % ^ & ).’, ‘theme-my-login’ ); ?></p>

    Same issue here. Also the “Strength indicator” string is not translated although it is exactly the same notation as in the translation file. Looks like all theme-my-login specific translations are completely ignored. My file is lying in the plugin’s language folder. Do I have to activate id manually somewhere, different from the language configuration of wordpress?

    Were you able to solve the issue?

    Are you able to share please?

    I think the method load_textdomain of class Theme_My_Login should be changes to this :

    path : \theme-my-login\includes\class-theme-my-login.php
    line : 976

    private static function load_textdomain() {
    
    load_plugin_textdomain('theme-my-login', false, 'theme-my-login/language' );
    
    }

    This works for me. ??

    Optimiza

    (@malditoweekend)

    Same problem here as for today, I’m not able to translate that specific part of code. I haven’t tried @hadi khosrojerdi solution though.

    Optimiza

    (@malditoweekend)

    Ok, I’ve tried:

    private static function load_textdomain() {
    
    load_plugin_textdomain('theme-my-login', false, 'theme-my-login/language' );
    
    }

    Didn’t worked for me.

    Optimiza

    (@malditoweekend)

    The solution was the one that @prekmurec posted, apparently the developer of the plugin forgets to include the domain on some lines, you just need to include the domain ‘theme-my-login’ and it should be fixed for those lines that can’t be translated.

    Example without the domain:
    <p class="description indicator-hint"><?php _e( 'Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).' ); ?></p>

    Example with the domain:
    <p class="description indicator-hint"><?php _e( 'Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).', 'theme-my-login' ); ?></p>

    @malditoweekend, I think you overwrite core wordpress translation, you don’t need to translate again. you don’t need to domain for translation functions for wordpress core messages.

    I have the same issue

    for me worked the first solution.

    second gave me a php error.

    Thank you

    Download the language files from the following page:

    https://i18n.svn.www.ads-software.com/ > https://i18n.svn.www.ads-software.com/fr_FR/branches/4.1/messages/

    and put the in /wp-content/languages

    For example, for french the language is “fr_FR” you would download “fr_FR.mo” & “fr_FR.po” and place then in

    wp-content/languages/fr_FR.mo
    wp-content/languages/fr_FR.po

    This should automatically work when you use wordpress in the language desired.

    Hope this was helpful.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    At one point, I thought I could leverage the WP core strings instead of duplicating them – but then WP core decided to split all translations into different files. The login/profile translations ended up in the admin translation file, which is only loaded when you’re in the admin area.

    During the migration, I must’ve missed adding the theme-my-login domain to some strings. You can safely edit add it in the plugin files, as next release should have them all done properly.

    ok,
    open /templates/resetpass-form.php

    >>line #23

    ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Language translation not picked up’ is closed to new replies.