Details
-
Bug
-
Resolution: Fixed
-
Minor
-
1.0 B4
-
None
-
Unit
-
Description
For filesystem resource bundles, there is a hierarchy defined among the different files, like a string is first searchd in bundle_lang_COUNTRY_ENC.properties, then in bundle_lang_COUNTRY.properties, then in bundle_lang.properties, and finally in bundle.properties. For XWikiDocuments, there is no encoding or country field, but at least we could inherit properties from the default language.
To be more specific: if a resource is requested in a language, which is not the default language of the document, then first search in the translated document, and if the string is not found in there, look also in the default version of the document.
This ensures that at least an english (or whatever the default language is) version of the key is retrieved, and not an ugly key string.