U
unomystEz
Hi all,
I'm sure some of you that have worked on i18n have had the same
problem I'm having at one point at least. I've decided to enable
japanese and french in my swing application and have a few questions
regarding keeping it managable. My swing app is relatively large now
and includes a lot of text, not like some apps that just need to
externalize 100 or so strings, my current properties file has over 500
entries now.
1. Entries are updated
I thought of putting revisions at the end of each key. ie:
WelcomeScreen.title.24 = Welcome to the lemonade stand app
so that if it were changed, you would automatically know if the other
languages are not up to date.
Right now, we move the updated entries to the bottom and put a comment
in front of them telling the others to update it.
2. Entries are deleted
Code is sometimes deleted that use entries in the properties files
and the keys are left in there... We haven't found any way to really
manage this except I was thinking of using unix tools like sed and awk
to compare the source against the properties files, I'm sure there is a
good tool out there to show missing entries and unused ones though.
3. Entries are added
When we add entries they usually only get added to the english file,
and the way we see if it's missing from the foreign language files is
to run the app in the other langs and see what keys it couldn't find
(our ResourceBundle will print a stack trace of unfound keys).
I'm sure some of you that have worked on i18n have had the same
problem I'm having at one point at least. I've decided to enable
japanese and french in my swing application and have a few questions
regarding keeping it managable. My swing app is relatively large now
and includes a lot of text, not like some apps that just need to
externalize 100 or so strings, my current properties file has over 500
entries now.
1. Entries are updated
I thought of putting revisions at the end of each key. ie:
WelcomeScreen.title.24 = Welcome to the lemonade stand app
so that if it were changed, you would automatically know if the other
languages are not up to date.
Right now, we move the updated entries to the bottom and put a comment
in front of them telling the others to update it.
2. Entries are deleted
Code is sometimes deleted that use entries in the properties files
and the keys are left in there... We haven't found any way to really
manage this except I was thinking of using unix tools like sed and awk
to compare the source against the properties files, I'm sure there is a
good tool out there to show missing entries and unused ones though.
3. Entries are added
When we add entries they usually only get added to the english file,
and the way we see if it's missing from the foreign language files is
to run the app in the other langs and see what keys it couldn't find
(our ResourceBundle will print a stack trace of unfound keys).