Topic on Talk:Multilingual Templates and Modules

English is not fallback in some cases

4
Summary by Diegodlh

Some languages have alternative fallback languages before English.

Diegodlh (talkcontribs)

Hi! I was trying this feature when just by chance found that Spanish (instead of English) is the default language when the Avañe'ẽ (gn) language is set (I'm a Spanish speaker myself; could this be interfering somehow?). You can check this here:

https://commons.wikimedia.org/wiki/Data:I18n/Web2Cit.tab

Switch the interface language to Avañe'ẽ:

  • results-header is available both in English and Spanish, but shows in Spanish to me.
  • Same thing with fieldname.itemType.
  • fieldname.language is available in English and Italian (not in Spanish), and successfully fall backs to English.
  • last-check is only available in Italian, and that's what it fall backs to (as expected).
Dexxor (talkcontribs)

The fallback languages for "gn" are "es" and "en", in that order. This seems intended.

Diegodlh (talkcontribs)

Oh!! Because that's Guaraní!! I didn't realize that when I checked this late at night yesterday. It is a language spoken in some regions around Paraguay in South America. It makes total sense that Spanish is the fallback language. It sounds great! Would you please tell me where it is that this is defined? I mean, where (a config file?) it says that "es" and "en" are fallback languages of "gn" in that order? Thanks!

Dexxor (talkcontribs)

Some ways to check fallback languages are listed at Manual:Language#Fallback_languages. In Lua modules, mw.language.getFallbacksFor('gn') is available. All languages seem to implicitly fallback to English as a last resort.