• Resolved mariaKyp

    (@mariakyp)


    Hello,
    I’m using enigma theme. I want my webpage in two languages, Greek and English. I translated everything using polylang plugin but I can’t do the translation for “Our Services” and “Recent Work”. It is not working for these sections.

    How can I translate these sections?
    Is this possible using Polylang? If not, how can I translate them?

    Any help is appreciated.
    Thank you in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Go to enigma theme directory open home-services.php file,
    go to line no. 9.
    replace this line
    <h3><?php echo esc_attr($wl_theme_options[‘home_service_heading’]); ?></h3>
    with this
    <h3><?php printf(__(‘%s’,’weblizar’),esc_attr($wl_theme_options[‘home_service_heading’])); ?></h3>

    Now Open home-portfolio.php file goto line no. 9
    and replace this
    <h3><?php echo esc_attr($wl_theme_options[‘port_heading’]); ?></h3>

    With this
    <h3><?php printf(__(‘%s’,’weblizar’),esc_attr($wl_theme_options[‘port_heading’])); ?></h3>

    Save the changes.
    Now try to update lang(.pot) file.

    Thanks

    Thread Starter mariaKyp

    (@mariakyp)

    Hi,
    thank you very much for your advice wpimran! ??

    I found this solution to translate the two sections.
    I created a file wpml-config.xml under /wp-content/polylang directory which contains the following lines of code:

    <wpml-config>
        <admin-texts>
            <key name='enigma_options'>
                <key name='service_1_title' />
    			<key name='service_2_title' />
    			<key name='service_3_title' />
    			<key name='service_1_text' />
    			<key name='service_2_text' />
    			<key name='service_3_text' />
    			<key name='port_1_title' />
    			<key name='port_2_title' />
    			<key name='port_3_title' />
    			<key name='port_4_title' />
    			<key name='port_heading' />
            </key>
        </admin-texts>
    </wpml-config>

    This is creating strings for translation in “Strings translation” tab in Settings >> Languages.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Our Services and Recent Work sections’ is closed to new replies.