Module talk:Language screenshot filename

From mediawiki.org
Latest comment: 9 years ago by Kaganer in topic The problem with Chinese variants

The problem with Chinese variants[edit]

I cannot come up with a better idea to obtain the Chinese variant. The only ways I can thing of is changing the Translate extension to store Chinese translations under /zh-hans and /zh-hant, rather than /zh, or to allow Scribunto to obtain the variant (bug 71366), both of which require development.

Until then I am inserting screenshots in the Simplified script for zh. This is lame, but I cannot think of anything better. Chime in if you can.

Tagging people who might be interested: User:Liangent, User:Nikerabbit, User:Cscott, User:Vikassy, User:ZFilipin (WMF). --Amir E. Aharoni (talk) 06:31, 27 September 2014 (UTC)Reply

The best start-up ;) {{Language screenshot URL }} is documented and added link to {{Localized media }}. I propose migrate {{LM }} into new module, but this should be extended to support:
  1. various extensions (as example, is exists localized .svg files, see File:Wikidata_statement.svg)
  2. unnamed (numbered) params
  3. default version name as filename without language code (as in File:Wikidata_statement.svg)
  4. various language code delimiter (not only "-"); as example, in File:Wikidata_statement.svg localizations, is used space as delimiter (see File:Wikidata statement ru.svg etc.)
--Kaganer (talk) 21:09, 5 October 2014 (UTC)Reply