Language switch
- Started
- Last post
- 7 Responses
- Ruffian
Oh, hai!
I'm looking for the easiest way in a page to switch some text from one language to another. This is going in Cargo, any advice?
- Ruffian0
Example:
Latviešu / English
click, swoosh, babaam down comes the selected language in a smooth as fuck roll.
- CALLES0
you didn't say the magic word
can i haz...
- Ruffian0
nada?
- BattleAxe0
take a look at this doozy
http://sundaymorning.jaysalvat.c…
- Ruffian0
Thanks BattleAxe but that looks too complicated. What I have is two exact copies of some text in two different languages, so no translation required.
- johfiner0
Put both pieces of text in their own div tag, and in the CSS set one of them to hidden (display: none). Then call a JavaScript function with the language-switching-button that hides one and shows the other (display: none; and display: block; or display: inline; can't remember). Does that help?
- Ruffian0
Trying to figure out have to make this happen in Cargo. Was thinking about using collapsible divs but it just doesn't seem to work.