COSMOS Design 281219
Code to dynamically load localization translation string file
This is the design document for bugzilla 281219.
|Josh Hester||July 14, 2009|
|Process||Sizing||Names of people doing the work|
|Build and infrastructure||0|
|Code review, etc.*||1|
'* - includes other committer work (e.g. check-in, contribution tracking)
This code will detect the country of the running JRE and then load the appropriate country's translation strings.
- This code must determine the appropriate country and its country code.
- This code must load the appropriate translation key file based on the country code.
- This code will use the java Locale api to determine the current country code in the following fashion:
Locale locale = Locale.getDefault(); locale.getLanguage()
Then it will load the appropriate property code based on a file name specified by the country code.
Impacts of this enhancement
- The SDD runtime will be able to dynamically load localization files for the translation strings used in the UI.
Do we need to code in any exceptions, for instance if a country's file is not found?