eZ Community » Forums » Setup & design » locale and language-name variables in...
expandshrink

locale and language-name variables in template

locale and language-name variables in template

Monday 31 March 2003 12:28:12 am - 3 replies

How can i access to locale and languagename variables in template?
I am trying to not need create lots of template to use in a multilanguage sites.

Thanks in advance

Paulo Almeida

Monday 31 March 2003 10:19:34 am

Do you mean the current locale for the site or the locales for translations of an object?

Monday 31 March 2003 1:03:02 pm

I want to do something like, if actual locale is eng-GB then show a link to por-PT site, and if in por-pt show eng-GB link.
I hope with this you can understand me.

Paulo Almeida

Monday 31 March 2003 1:41:57 pm

You could try:
{section show=eq(ezini('RegionalSettings','Locale'),"eng-GB"blunk.gif Emoticon}
... display por-PT link
{section-else}
... display eng-GB link
{/section}

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from