Forum OpenACS Q&A: Re: ACS-LANG

Collapse
2: Re: ACS-LANG (response to 1)
Posted by Iuri Sampaio on
Sorry for ask!

I already figure out. If are interested on what i did, look at.
I have the site on 4 languages, and i want to put one header for each language. So i made that to do the job and choose waht image is to post. The i don't need to change the whole page!!

#----------------------------------------------------------------------
# Setting Language
#----------------------------------------------------------------------

set language [lang::user::language]

if { [string equal $language "us"] } {
set aux_lang 0
} else {
if { [string equal $language "es"] } {
set aux_lang 1
} else {
if { [string equal $language "pt"] } {
set aux_lang 2
} else {
if { [string equal $language "fr"] } {
set aux_lang 3
}
}
}