Hi, Amit here, I am the WPML Support Manager, our current ticket queue is quite calm and I'd like to encourage you to use our new chat support option

We are working hard to debug and look at every single report

All of the known issues are documented in https://wpml.org/known-issues/ you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

We are also adding once a week a tutorial to our YouTube channel - https://www.youtube.com/c/WPML-multilingual - check out if we already covered what you need and leave us a comment if you want us to produce anything there

If you do need to open a ticket please make sure to provide us with all the needed information as described here https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/

We are very proud at our level of support, we are one team from all over the world and we are all experienced WordPress developers, you can read more about us here - https://wpml.org/forums/supporters/

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Our next available supporter will start replying to tickets in about 3.10 hours from now. Thank you for your understanding.

This topic contains 3 replies, has 2 voices.

Last updated by Harshad 6 years, 11 months ago.

Assigned support staff: Harshad.

Author Posts
March 22, 2012 at 2:57 pm #52945

Viviana

Is there a global variable that I can call as an IF statement within my header.php template to load up a different HTML (menu graphics), depending on the language chosen?

If X=english, use this batch of html, else use this other batch of html.

Thanks! Great plug in!

March 22, 2012 at 5:23 pm #52968

Harshad

You can use the ICL_LANGUAGE_CODE constant together with php if statements.

<?php if(ICL_LANGUAGE_CODE=='en'): ?>
….english content here ….
<?php elseif(ICL_LANGUAGE_CODE=='fr'): ?>
…french content here…
<?php endif;?>
March 22, 2012 at 5:44 pm #52973

Viviana

Worked perfectly. Thanks for the prompt response!

March 23, 2012 at 4:47 am #53010

Harshad

Hello Viviana,

We are glad to know your issue(s) have been fixed.

If you have any more questions please feel free to get back to us.

Have a nice day!

Thanks,

Harshad

The topic ‘[Closed] Translation of hard coded HTML text’ is closed to new replies.