On Mar 24, 2007, at 10:55 PM, Pavel wrote:
Greetings,
There is a number of ApplicationResources_xx.properties in XWiki and it looks like all of them are different (contain different set of keys). Both ApplicationResources.properties and ApplicationResources_en.properties are in english and are mostly identical except for ~70 missing keys in _en file.
Given that, I have two questions: 1. What is the "most supported" message resources file?
ApplicationResources.properties 1) When a key is missing it's looked for in AppliationResources.properties. This allows any language to work even if there are missing keys. 2) I don't know why we have a AppplicationResources_en.properties as it's supposed to be the same as ApplicationResources.properties. IMO we should remove it
2. Are all messages from .properties used in XWiki, or some are redundant?
It's possible that some messages are no longer used.
If the latter, are there plans for removal of unnecessary keys for 1.0 release?
Sure, if you want to help you can tell us which ones are no longer used, submit a patch and we'll remove them. Note that we also have some work to do in the future on the message to use sentences instead of just words. This will allow languages not using the same word ordering than enlglish to provide a translation for XWiki. Thanks -Vincent