• Resolved losapuntesdelviajero

    (@losapuntesdelviajero)


    Hello Chouby!

    We love your plugin, but we have some problems.

    We want to translate our theme (Scooter Theme, available at ThemeForest), but we can’t find the strings at “string translation” menu. We want to translate theme into to languages.

    The author of the theme says is not a issue related to the theme and he recommend to use WPML ??

    If there is no choice to translate the theme… could you suggest us the best way to migrate from Polylang to WPML?

    Thanks!

    https://www.ads-software.com/plugins/polylang/

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

    (@chrystl)

    Hello,

    If you speak about the strings in your theme options, it’s possible but you need to code.
    You have 2 options: create a wpml-config.xml or use the functions pll__() and pll_register_string().

    Thread Starter losapuntesdelviajero

    (@losapuntesdelviajero)

    Hello Chrystl,

    Thanks for your help!

    My English and my knnowledge on this topic are both extremely bad ??

    The two options you mention, are both for migrate to WPML? And… what do you mean I need to code to translate my theme?

    Apologize for my stupidity ??

    Plugin Support Chrystl

    (@chrystl)

    The two options you mention, are both for migrate to WPML?

    No, in the link I gave you the Polylang author explains that you can create your own wpml-config.xml and to upload it in /wp-content/polylang/ (create the directory if it does not exist).

    Make a search on the forum you will find some topic about how to create it.

    But it’s weird because your theme (Scooter – One Page Multi-Purpose Theme) is compatible with WPML so the file is already create with your theme options inside. And you should see them in Settings > Languages > Tab “Strings translation”.
    Ask to your theme author if the wpml-config.xml is created.

    Thread Starter losapuntesdelviajero

    (@losapuntesdelviajero)

    Hello Chrystl

    Thanks again for your help.

    Scooter theme has a wpml-config.xml file. I made a copy and moved it to /wp-content/polylang/, but nothing happened.

    Strings are still missing ??

    Any suggestion? Thanks!

    Plugin Support Chrystl

    (@chrystl)

    Could you paste it here the wpml-config.xml. Could give a link to your website and specificy what you want translate. Give some examples.

    Thread Starter losapuntesdelviajero

    (@losapuntesdelviajero)

    This is what I have at wpml-config.xml file:

    <wpml-config>
    <custom-types>
    <custom-type translate=”1″>portfolio</custom-type>
    </custom-types>
    <taxonomies>
    <taxonomy translate=”1″>skills</taxonomy>
    </taxonomies>
    <language-switcher-settings>
    <key name=”icl_additional_css”>#lang_sel_footer { color: #FFF; }</key>
    </language-switcher-settings>
    </wpml-config>

    My web:
    https://www.kiribatis.com

    What I specially want to translate is the intro text. Now I’ve solved the problem showing 2 messages using some kind of slider effect. First you can read “Comunicación para destinos por explorar” (Spanish version) and two or three seconds later you can read “Comunicació per a destinacions per explorar” (Catalan version). I don’t want to use this trick. I want to show just Spanish or Catalan version, depending on the language selected (or de default language). I want to do the same for the button “Go!”.

    Thanks a lot for your kindly help!! ??

    Plugin Support Chrystl

    (@chrystl)

    You need to create another wpml-config.xml with just the admin-texts part. But you need some informations.
    1) In your DB => wp_options:
    – find the option name of your theme in option_name columns. If you don’t find it ask to your theme author.
    – find the names of each options in option_value columns, it’s next to the option name cell.

    2) Create your wpml-config.xml with the options that you get. Write just the admin-texts part:

    <wpml-config>
     <admin-texts>
            <key name="my_plugins_options">
                <key name="option_name_1" />
                <key name="option_name_2" />
                <key name="options_group_1">
                    <key name="sub_option_name_11" />
                    <key name="sub_option_name_12" />
                </key>
            </key>
            <key name="simple_string_option" />
        </admin-texts>
    </wpml-config>

    And upload it in /wp-content/polylang/ .

    You will find the strings in the tab Strings translation in your wp admin.

    Plugin Support Chrystl

    (@chrystl)

    You should ask to your theme author how these strings are translate in WPML because they are clearly not include in the file wpml-config.xml.

    Thread Starter losapuntesdelviajero

    (@losapuntesdelviajero)

    Hello Chrystl!

    I’ve finally decided to follow your instructions (I was waiting for some help by the theme’s author, but it never arrived) and it works! Thankssss!!

    I installed the “adminer” plugin to explore the DB and I found the option name of my theme and the values I wanted to translate. This is the file I finally done:

    <wpml-config>
    <admin-texts>
    <key name=”theme_scooter_options”>
    <key name=”header-textarea1″ />
    <key name=”header-textarea2″ />
    <key name=”home-start-text” />
    </key>
    </admin-texts>
    </wpml-config>

    The values are now at string translation tab of Polylang and the translation is working perfectly ??

    I’m really grateful!!! ??

    Have a wonferful New Year! ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘No string translation for my theme’ is closed to new replies.