Mantis Bug Tracker

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000365OLVUser Interfacepublic2011-10-31 03:512012-09-18 22:47
ReporterFred 
Assigned ToFred 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusassignedResolutionopen 
PlatformAllOSAllOS VersionAll
Product Version0.0.1-SNAPSHOT 
Target Version0.0.3Fixed in Version 
Summary0000365: Add Translation Facility
DescriptionPull 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
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (0000514)
Fred (administrator)
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.
User avatar (0002043)
Fred (administrator)
2012-09-05 19:46

Remove requirement for Russian, too ambitious.
User avatar (0002044)
Fred (administrator)
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.
User avatar (0002115)
Fred (administrator)
2012-09-11 18:59

Some work in 326b684 on this.
User avatar (0002116)
Fred (administrator)
2012-09-11 19:08
edited on: 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.

User avatar (0002117)
Fred (administrator)
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.
User avatar (0002118)
Fred (administrator)
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.
User avatar (0002149)
Fred (administrator)
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.


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker