• Resolved Luciano 1

    (@kissmoney)


    Hi Everyone,
    I use wp-globus for the translation.

    It gives me the option to write all the static pages in 2 different languages. But my main page is highly customized from the php source code and there is no option to translate the main page in wp-globus and this is normal because the main page content is directly edited in the index.php.

    I would like to create a condition on the file index.php and also the header.php file that will detect the language from the wp-globus trigger variable or directly from the URL(because when wp-globus switchs to another language, i writes an url like https://www.site.com/wordpressdirectoryname/AR where AR is the language code.

    So what i need is something like

    <php [php detects language] ?> <php [if $language==AR] ?>
    Display text and images in AR language using html.

    <php [else] ?>
    Display english content in HTML

    <php [endif] ?>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic translation’ is closed to new replies.