D
Dag Sunde
I'm in the design-phase of developing a "Web-App" with TomCat
on the serverside, and Firefox in kiosk-mode and a touch screen
on the client.
The complete app is going to be max 10-12 jsp-pages, where the
text-content is reasonably stable.
One of the requirements is that the language on the pages have
to be easy for the customer to extend to new languages. (The
user is presented with a choice between the available languages
in the first page).
What my customer want is to be able to add a new language file
in ie. "Klingon" in 6 months time, update the config file on the
server, and the next user that use the app, will now have Klingon
to select from too...
My idea is to give every element on every page a unique id. Then
create an xml or property file for each language. Then create a
getText(id) method somewhere that i use in each .JPS page on every
element.
Does anyone have some thougts on how to implement this in a clean
and extensible way?
Ideas? pointers? patterns?
TIA...
on the serverside, and Firefox in kiosk-mode and a touch screen
on the client.
The complete app is going to be max 10-12 jsp-pages, where the
text-content is reasonably stable.
One of the requirements is that the language on the pages have
to be easy for the customer to extend to new languages. (The
user is presented with a choice between the available languages
in the first page).
What my customer want is to be able to add a new language file
in ie. "Klingon" in 6 months time, update the config file on the
server, and the next user that use the app, will now have Klingon
to select from too...
My idea is to give every element on every page a unique id. Then
create an xml or property file for each language. Then create a
getText(id) method somewhere that i use in each .JPS page on every
element.
Does anyone have some thougts on how to implement this in a clean
and extensible way?
Ideas? pointers? patterns?
TIA...