• bareCare

    (@barecare)


    I am trying to translate footer Strings Main menu, Get In Touch Contact Info, and title bellow contact info in SKT Full Width theme. Polylang does not recognise those Strings in String Translate tab.
    Also when i try with Codestyle localisation plugin to scan .po files there is no strings over there also. I saw method to use wpml-config.xml .
    Can you help me how to find those fields to insert into xml or there is another way?Also where exactly i need to put this xml file. If that’s the case will new string show in String translation tab then?

    https://wordpress.org/plugins/polylang/

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

    (@chrystl)

    Hello

    The SKTThemes author seemed to make his theme compatible with Polylang. You should see with the SKTThemes author if he did something:
    https://wordpress.org/support/topic/skt-full-width-slider?replies=2

    Thread Starter bareCare

    (@barecare)

    Tnx for reply Chrystl..I am kind a new in php so i need to figure out how exactly to use those functions but i would rather stick to wpml-config.xml i guess it is kind more straight forward just don;t know exactly what i need to define inside.

    Plugin Support Chrystl

    (@chrystl)

    footer Strings Main menu, Get In Touch Contact Info, and title bellow contact info

    Did you fill all these strings in the “Theme Options”?

    Thread Starter bareCare

    (@barecare)

    Hey Chrystl..Currently i cant figure out xml…the problem is that those strings were hardcoded in theme…there was not an option in Theme options to set them manually..So i worked my way around and look for them in footer.php and used wordpress translate function _e(string,text domain). Then i scan my po. files again and they showed up. Now i am trying to use pll_register_string() function together with pll_e() to translate slider texts and footer text for example but so far no sucsess. They show in String translation menu but they don’t translate on front end.

    Plugin Support Chrystl

    (@chrystl)

    They show in String translation menu but they don’t translate on front end.

    Did you check the option “The language is set from the directory name in pretty permalinks” in Polylang settings?

    Thread Starter bareCare

    (@barecare)

    Option is checked because i wanted to be my site name with language code after it. Is this an issue?Maybe i don’t target string’s good. For example i have code like this or similar

    if ( (function_exists( ‘of_get_option’ ) && (of_get_option(‘footertext2’, true) != 1) ) ) {
    echo esc_html( of_get_option(‘footertext2’,true) );
    } ?>

    So i want footer2 text to translate. How should i target that with register string function. Thank you so much so far for support!

    Plugin Support Chrystl

    (@chrystl)

    Sorry I can’t help you more as my php skills are limited.

    Thread Starter bareCare

    (@barecare)

    No worries thank you so much you have been helpful i will try to find my way around.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘String translation in SKT Full Width theme’ is closed to new replies.