• Resolved Aniti

    (@aniti)


    Hello!

    Thank you for your wonderful plugin! I love it.

    I use the arcade-basic theme and I need the string other than “blog name etc” be translated.

    for example I have code

    <div class="home-jumbotron jumbotron">
      <h1>
         <?php echo apply_filters( 'the_title', html_entity_decode
         ( $bavotasan_theme_options['jumbo_headline_title'] ) ); ?>
      </h1>
    </div>

    how I can make jumbo_headline_title(or any other)
    be translated/showed in Strings translation menu?

    Thank you in advance!

    https://ww.wp.xz.cn/plugins/polylang/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Chrystl

    (@chrystl)

    Hello
    If you speak about static strings already provided by your theme: you can use Codestyling Localization to do this.

    If you speak about strings that you entered in theme options: you can create a wpml-config.xml or use the functions pll_register_string and pll__ . By these both way you will be able to translate your theme strings in Settings->Languages->Strings translations.

    There are tons of examples in the forum on how to adapt themes or plugins.

    Plugin Support Chrystl

    (@chrystl)

    Plugin Support Chrystl

    (@chrystl)

    Hello
    If you speak about static strings already provided by your theme: you can use Codestyling Localization to do this.

    If you speak about strings that you entered in theme options: you can create a wpml-config.xml or use the functions pll_register_string and pll__ . By these both way you will be able to translate your theme strings in Settings->Languages->Strings translations.

    There are tons of examples in the forum on how to adapt themes or plugins.

    Thread Starter Aniti

    (@aniti)

    Im not coder, so I made so stupid mistake><
    I tried the function
    pll_register_string($name, $string, true);
    without inserting the name

    But finally I get it.

    For someone who will have the same question
    now I have

    pll_register_string('header_text', 'title', true);

    in my functions.php

    and

    <h3 ><?php pll_e('title'); ?></h3>

    in my front-page.php

    it was so simple><
    I should study coding~

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Additional strings translate’ is closed to new replies.