Based upon the user language ($lang) being a value from 0-3 (defining the various languages: 0-English, 1=Spanish etc...) the on-screen elements are called from the respective array contained within the language.lib file thus;
@scr_name=("Name","Nombre","Nom"); - in language.lib
$scr_name[$lang] - displays appropriate word on screen
I've come across a situation where I use numeric values for other areas but find that a single array obviously wont work.
Here's what I have in mind (and I'm sure it's possible - I just don't know how to do it yet!). OK:
$lang = (values of 0-3) $colour = either (0=red, 1=blue, 2=yellow) (if $lang = 0 [English]) or (0=rojo, 1=azul, 2=amarillo) (if $lang = 1 #91;Spanish])
Is it possible to have something like this
$scr_display[$lang][$colour]so that if $lang=1 and $colour=0, rojo would be displayed on screen.
Answers on a postcard please, to....
Thanks for any help you can give, and kindest regards from Andorra,
Richard.
PS: I did look throught the FAQ's and got a bit confused... :-|
In reply to Do I need an array within an array by meetn2veg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |