Viewing 15 replies - 31 through 45 (of 45 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    I completely understand the frustrations with WordPress’ translation system. I have no kind of admin privelges there at all – for my own project. So, I cannot make accept any translations, import them, etc. Sorry!

    Andrei G.

    (@27shutterclicks)

    So for the existing translations, like fr_FR for example, how do we go about actually getting them so that the plugin makes use of them?

    I can’t seem to find a download link here: https://translate.www.ads-software.com/locale/fr/default/wp-plugins/theme-my-login

    Thanks.

    Andrei G.

    (@27shutterclicks)

    Ok, I figured it out – click on the Stable release and then at the bottom there is an Export option of your choice.

    Now, where does the downloaded .mo file go? And does it need to be named a certain way, or do I just keep it with the same name I downloaded it.

    Thanks.

    Normally, the name is formed as follows:
    Name plugin and code locales…
    pluginname-locale.po
    pluginname-locale.mo

    For example:
    termdescription-fr_FR.mo

    Joost abrahams

    (@joost-abrahams)

    Jeff you can requesting new translation editors on the polyglots blog.

    byoung85

    (@byoung85)

    First of all, props to Jeff for creating an awesome plugin.

    As for my question…

    I’ve downloaded the .po and .mo file from the development trunk, translated it through an online .po translator (Loco), and uploaded the translated file into these directories of my WordPress installation.

    /wp-content/languages/plugins/
    /wp-content/languages/plugins/theme-my-login

    However, the translations do not seem to work. Any suggestions as to what I might be doing wrong?

    Plugin Author Jeff Farthing

    (@jfarthing84)

    What is the filename?

    I have test it in

    /wp-content/languages/
    /wp-content/languages/plugins/
    /wp-content/languages/plugins/theme-my-login

    filename: theme-my-login-de_DE.mo and theme-my-login-de_DE.po

    nothing works

    Plugin Author Jeff Farthing

    (@jfarthing84)

    And you’ve set WPLANG to “de_DE”?

    yes

    “define (‘WPLANG’, ‘de_DE’);”

    Plugin Author Jeff Farthing

    (@jfarthing84)

    wp-content/languages/theme-my-login/theme-my-login-de_DE should do it…

    Plugin Author Jeff Farthing

    (@jfarthing84)

    For translating TML, see this thread.

    Jeff, I already translated the .po file 100% into Japanese and I’d like to import it and sync it with the 23% or so completed version in Polyglot. Is there a way to do that? Maybe I need a translator’s account.

    Jeff,

    These three strings: “Register”, “Lost Password” and “Log In” aren’t getting translated even though they’re in the .po file. They’re contained in a ul with a class name of “tml-action-links”. The code for them is in the get_title function, line 142 in class-theme-my-login-template.php:

    /**
    	 * Returns action title
    	 *
    	 * @since 6.0
    	 * @access public
    	 *
    	 * @param string $action The action to retrieve. Defaults to current action.
    	 * @return string Title of $action
    	 */
    	public function get_title( $action = '' ) {
    		if ( empty( $action ) )
    			$action = $this->get_option( 'default_action' );
    
    		if ( is_admin() )
    			return;
    
    		if ( is_user_logged_in() && 'login' == $action && $action == $this->get_option( 'default_action' ) ) {
    			$title = sprintf( __( 'Welcome, %s', 'theme-my-login' ), wp_get_current_user()->display_name );
    		} else {
    			if ( $page_id = Theme_My_Login::get_page_id( $action ) ) {
    				$title = get_post_field( 'post_title', $page_id );
    			} else {
    				switch ( $action ) {
    					case 'register':
    						$title = __( 'Register', 'theme-my-login' );
    						break;
    					case 'lostpassword':
    					case 'retrievepassword':
    					case 'resetpass':
    					case 'rp':
    						$title = __( 'Lost Password', 'theme-my-login' );
    						break;
    					case 'login':
    					default:
    						$title = __( 'Log In', 'theme-my-login' );
    				}
    			}
    		}
    		return apply_filters( 'tml_title', $title, $action );
    	}

    Here are examples of the problem:
    https://stage.azcainc.com/ja/login/
    https://stage.azcainc.com/ja/register-2/
    https://stage.azcainc.com/ja/lostpassword/

    I manually transtated and I have the same problem with “Register”, “Lost Password” not being translated.

    Richpav, did you managed to solve the proglem?

Viewing 15 replies - 31 through 45 (of 45 total)
  • The topic ‘Translating Theme My Login’ is closed to new replies.