Here’s the scenario:
I am currently developing a multi-lingual application that makes use of several AS2.0 components, one of which is the DataGrid component.
To fill the DataGrid with information, I supply a standard DataProvider object, which looks something like this
dataProvider = [{TITEL:"some_string", GRUPPE:"some_string", KOMMENTAR:"some_string"}]
If you don’t speak danish, you’ll notice that the TITEL,GRUPPE & KOMMENTAR are in a foreign language. And this is where it get’s complicated, at least to me: I want to be able to expand the number of languages in a dynamic way, and have already concieved of a XML-based method for loading text off a server. But with a dataProvider object, the TITEL,GRUPPE & KOMMENTAR are object identifiers, not strings.
[FONT=Verdana] So I am looking for a way to load some string off a server, and convert it to an identifier on-the-fly, if possib[/FONT][FONT=Verdana]le. Since it’s supposed to be dynamic and expandable, using code forks ([FONT=Courier New]if language==[/FONT]) aren’t really an option.[/FONT]