What would be the right way to differenciate between fallbacks like Picard -> French (there's a similarity between the languages, the message might even be the same) and French -> English (which is there just for having a base language). Take the fallback lists like shown in the message file, I guess? What's the prefered way to do that? Shouldn't we add in that case another parameter to Language::getFallbacksFor() to disable the addition of en as final fallback?
Regards
2012/9/11 Platonides platonides@gmail.com:
What would be the right way to differenciate between fallbacks like Picard -> French (there's a similarity between the languages, the message might even be the same) and French -> English (which is there just for having a base language). Take the fallback lists like shown in the message file, I guess? What's the prefered way to do that? Shouldn't we add in that case another parameter to Language::getFallbacksFor() to disable the addition of en as final fallback?
And what will you show instead of the final fallback?
-- Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי http://aharoni.wordpress.com “We're living in pieces, I want to live in peace.” – T. Moore
On 11/09/12 16:55, Amir E. Aharoni wrote:
2012/9/11 Platonides platonides@gmail.com:
What would be the right way to differenciate between fallbacks like Picard -> French (there's a similarity between the languages, the message might even be the same) and French -> English (which is there just for having a base language). Take the fallback lists like shown in the message file, I guess? What's the prefered way to do that? Shouldn't we add in that case another parameter to Language::getFallbacksFor() to disable the addition of en as final fallback?
And what will you show instead of the final fallback?
The official name of the place (the endonym). It has more opportunities (I have developed tools where I wished to be able to set a different language as the base one), but that was the use case I had in mind (hint: ISO 3166).
On 11 September 2012 17:52, Platonides platonides@gmail.com wrote:
What would be the right way to differenciate between fallbacks like Picard -> French (there's a similarity between the languages, the message might even be the same) and French -> English (which is there just for having a base language). Take the fallback lists like shown in the message file, I guess? What's the prefered way to do that? Shouldn't we add in that case another parameter to Language::getFallbacksFor() to disable the addition of en as final fallback?
You could use the localisation cache to access the raw value and bypass the language class. -Niklas
mediawiki-i18n@lists.wikimedia.org