Template talk:Conj2

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Reason for adding no[edit]

On translatewiki, Norwegian Bokmål is translated using the language code nb, but unfortunately the code no is the prefix on Norwegian Bokmål Wikipedia for historical reasons, and is also used as the language code for most localized templates here on Commons. While {{int:and/nb}} gives the correct term ( og), {{int:and/no}} gives the English fallback term ( and). As a result, {{Conj2|and|lang=no}} → og . This was the reason for my edit, but I'm sorry I did not explain it better initially. I wish there was a better solution for this, but I'm afraid it involves replacing all the usage of "no" to "nb" on Commons or something like that. – Danmichaelo (δ) 20:10, 5 February 2013 (UTC)

Thanks for explanation. I thought it was attempt to fix something that was not broken. How are other templates affected by this issue? I do not see anything about this in Template:GetFallback. Which would help with most templates using {{autotranslate}} or {{LangSwitch}}. --Jarekt (talk) 20:44, 5 February 2013 (UTC)
Most templates on Commons use no with {{LangSwitch}}, and work fine no matter if I set my user language to nb or no. I've never dug really deep into this, but it seems the reason is that MediaWiki:Lang/nbno (while it should probably have been the opposite way from the start...). I guess the problem only emerges when incorporating strings from translatewiki, where nb is the standard. I did not know about {{GetFallback}}, but I'm not sure if it will work to set nb as fallback for no, because then we might break the templates that currently work, no? – Danmichaelo (δ) 01:16, 6 February 2013 (UTC)
With Template:GetFallback and Template:GetFallback2 we can make nb=no as far as {{LangSwitch}} and {{autotranslate}} are concerned. so if one exist but other one does not than it would be found either with uselang=no aor uselang=nb. However that would make sense only if we can find cases there those templates do not work. Otherwise, there is no need to fix something that is not broken. --Jarekt (talk) 04:04, 6 February 2013 (UTC)