FreeEMS Issues - OLV
View Issue Details
0000365OLVUser Interfacepublic2011-10-31 03:512012-09-18 22:47
Fred 
Fred 
normalfeatureN/A
assignedopen 
AllAllAll
0.0.1-SNAPSHOT 
0.0.3 
0000365: Add Translation Facility
Pull in all strings from some file such that they can be mapped to other languages, then:

1) Work with Isabel to get them into Spanish
2) Post a thread suggesting others translate for other langs
No tags attached.

Notes
(0000514)
Fred   
2011-11-01 22:44   
This is partially complete. The main class is 2/3 converted to resource bundle usage for English and 1/3 for Spanish. Will extend the coverage next weekend along with some other work.
(0002043)
Fred   
2012-09-05 19:46   
Remove requirement for Russian, too ambitious.
(0002044)
Fred   
2012-09-05 19:47   
Moving to 0.0.3 release because half done and pretty easy to finish at this point. Can reject commits that violate this in future once done.
(0002115)
Fred   
2012-09-11 18:59   
Some work in 326b684 on this.
(0002116)
Fred   
2012-09-11 19:08   
From ~7k lines, there are 400 or so with " marks in them. I guess I'll knock it off file by file rather than a huge clean sweep of all of them. Some won't be a problem, but most will. Those that aren't I'll mark with something for grep.

(0002117)
Fred   
2012-09-11 19:42   
Eclipse can sort of do this for you, which is nice. I don't like how it does it, but it's still helpful.
(0002118)
Fred   
2012-09-11 20:04   
Structure:

Protected Keys class per package with the keys in them as protected final static String BLAH = "BLAH";.

labels ResourceBundle generated at app start and passed into any object that needs it.

config Map or Properties or similar, generated at app start and passed into any object that needs it.

Strings obtained as such in all files: labels.getString(Keys.FILE_MENU_ITEM_QUIT)

labels could be text. and config could be conf. and Conf.KEYNAME

So perhaps:

text.getString(Keys.NAME)
conf.getString(Conf.NAME)

That ought to keep it all clean.
(0002149)
Fred   
2012-09-18 22:47   
Did the base package today, and laid the foundations for further work. Unfortunately I introduced a regression which is non-obvious to fix. Will work on it tomorrow.