Hi all,

Quiet but not idle...

I'm working on localization -- placing all text labels, etc. into one
subsection; this made things so easy I decided to add the option of
additional languages to my project, but...

I have something like:

        $text{'main'}{'en'} = {  # English labels
            'alias_sub'         =>  "Alias",
            'user_sub'          =>  "User",
            'gen_sub'           =>  "General",
        };

And then I do the same thing for German:

        $text{'main'}{'de'} = ...etc.    # German labels


I decided though that it would be easy to add a new function in English and
forget to add text in German (for example) so I decided that my German data
structure should first be built from the English one.

I thought the easy way to do this is to first assign my entire 'en' data
structure to the 'de' structure and then add 'de' values as available. 

So I did this:

$text{'main'}{'de'} =  $text{'main'}{'en'}; 

        $text{'main'}{'de'} = {  # German labels
            'alias_sub'         =>  "ALIAS",
            'user_sub'          =>  "BENUTZER",
        };

But this assignment doesn't seem to work. Can I not do this?


-Kevin

-- 
Kevin Pfeiffer
International University Bremen
Your message here...

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to