locale and language-name variables in template

Author Message

Paulo Almeida

Sunday 30 March 2003 2:28:12 pm

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

PACPI.COM Internet Consulting
http://pacpi.com

Jan Borsodi

Monday 31 March 2003 12:19:34 am

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

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Paulo Almeida

Monday 31 March 2003 3:03:02 am

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

PACPI.COM Internet Consulting
http://pacpi.com

Jan Borsodi

Monday 31 March 2003 3:41:57 am

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

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.