I use struts2 property files to provide support for multiple languages and that works fine.
It is always very easy to forget some text hardcoded in some JSP or error not properly translated.
Is there an easy way to visualize this by replacing all the translated items by “ZZZ” for example, therefore we would only see the places where no translation is provided?
One idea would be to somehow dynamically (at runtime) replace all the text items in the properties file by “ZZZ” – is there an easy way to do that? I mean to override all translated items (without touching at the file itself, just in-memory)?
We simply create a property file with the value set to something like ?es_firstNameLabel, etc. and set the locale to use that property file. Then you look through your app for enlgish (or whatever your native language is). It’s ugly, but that’s good — it’s supposed to be ugly so that you stuff shows through more readily.
Unfortunately there’s no real easy way to automate the checking part, you just need to regression your pages one by one.
When it’s all said and done, you can go back and start replace the ?es_propertyLabel stuff with the appropriate values, so it works well as you start to create the new language entries.