• Resolved Juhan

    (@juhan108)


    Dear plugin developer!

    Is it possible to translate Tagline (or site title)? Maybe You have enabled this somehow, but I did not also understand the meaning of “nLingual includes a LocalizeThis API that can be enabled on nearly any text field found in the admin”.

    Thankfully for any help,

    Juhan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Doug Wollison

    (@dougwollison)

    The plugin by default adds a “Translate This” widgets to the Site Title and Tagline fields. It should appear as a grey button next to the field with a translate icon. Hover over this and it will expand to list buttons for each language you have available; select a language and the field will change to show the translation for that language. You can then write in the translated value, and when you hit update or change to another language, that value will be saved for that language only.

    For other fields, you can write a custom init hook that calls the nLingual\Localizer::register_option_field utility to add this to a field on any settings page on the site (may not work with certain plugin control panels though).

    function mytheme_register_localizer_fields() {
    	nLingual\Localizer::register_option_field( 'SETTING_NAME', 'PAGE_ID', array( 'field_id' => 'SETTING_FIELD_ID' ) );
    }
    add_action( 'init', 'mytheme_register_localizer_fields', 10, 0 );
    Thread Starter Juhan

    (@juhan108)

    First, dear Doug, our kind developer, thank You for explanation!

    The first part of this turned out to be easier than I could have imagined. The second part, admittedly, is beyond my average user level when it comes to WP. But I’m sure this explanation will be helpful for someone else!

    To give You some ideas for future, if I would point out a tiny drawback compared to Polylang (the second “winner” in my long tests), I couldn’t avoid the synchronizing the visibility of page title, except offering the synchronizing of other more important functions: if I hide the page title in one language, it will be hidden in other languages as well, both when in my theme settings (Weaver Xtreme), or with special title-hiding plugins. Another small shortcoming (not for me personally) is that with nLingual I couldn’t put the Language changer in the Widget. And also some users may “miss behind” flags for languages (again, I personally do not miss these).

    Anyway nLingual has become my favourite now, after long testing in real-life situations (where I also managed to “fool” the multilingual plugins, using multiple slightly different “self-made” locales — I need these because I use several translations of WordPress (ClassicPress) in my mother tonge Estonian.

    With best thanks, and hopes that You continue, having understood how good work You have done, without big developer-teams (and marketing-teams as well, however it could be worth of these…)

    Juhan, Estonia

    Sincerely,

    Juhan, Estonia

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to translate Tagline?’ is closed to new replies.