Topic on Project:Village Pump

Problem of translation, and edit request(s)

5
Wang31 (talkcontribs)

I noticed that many translatable templates use code like {{#invoke:Template translation|renderTranslatedTemplate|template=<!--Template name-->|noshift=1|uselang={{int:lang}}}}. However, then translation will not show properly when using interface language like zh-cn or other variants of Chinese (zh), because templates were translated to Chinese only in zh.

For example, the Chinese translation of sandbox header only shows in (zh) but not in (zh-hans), (zh-cn), (zh-hant) etc.

I thought of two maybe practical solutions:

  1. Replace all {{int:lang}} with {{Zh other}}. This may be a big project.
  2. Edit Module:Template translation. When uselang input variants of Chinese(like zh-hans, zh-cn, zh-hant etc.), automatically change it into zh. This works like {{Zh other}}, and may be easier.

Hope someone would help with this problem.

(Sorry for my poor English)

94rain (talkcontribs)

I think there are some other languages with variants too (File:MediaWiki fallback chains.svg). I'd prefer a more generalized template name. Full support can be added over time.

Wang31 (talkcontribs)

Oh, maybe you are right. I did't noticed that.

TheDJ (talkcontribs)
Wang31 (talkcontribs)

Sorry, but I can't write Lua… Besides, according to the words of 94rain, I think maybe we need a separate template or module to deal with the Language fallback, and maybe I'm not able to make it.

Reply to "Problem of translation, and edit request(s)"