[[Portal:Zh]]

Please, do not add links to /zh, that's disabled here.

Liuxinyu970226 (talk)04:14, 31 January 2018

Also, your currently edits result some unexpected problems, e.g. in Portal:Ug, it resulted links like https://translatewiki.net/w/i.php?title=Special:Translate&language=Ug-Latn and https://translatewiki.net/w/i.php?title=Special:Translate&language=Ug-Cyrl, where the "U", "L" and "C" are capitalised, but the actual URL (https://translatewiki.net/w/i.php?title=Special:Translate&language=ug-latn ) require all lower cases.

Liuxinyu970226 (talk)04:20, 31 January 2018
 

And suddenly, this is another unexpected issue that I've found, after those changes, in Kazakh portal page, the links after "Cyrl" and "Latn" appear, but links after "Arab" (https://translatewiki.net/w/i.php?title=Special:Translate&language=kk-arab and https://translatewiki.net/w/i.php?title=Special:Recentchanges&trailer=%2Fkk-arab&translations=only), which is the first ISO 15924 value, are missing.

Liuxinyu970226 (talk)09:26, 31 January 2018

Now use "15924-1=" instead of "15924=" when the default ISO 15924 script is not implied and the language code must be suffixed by a script code or variant code.

This solves the 3 cases: Kazakh ("kk" disabled need "kk-cyrl"), Uighur ("ug" disabled need "ug-arab"), and Chinese ("zh" disabled need "zh-hans").

If translations can still be done one unsuffixed language code (in its default script), AND on suffixed language code, use

  • "|15924=Scr0" for the default implied script (ambiguous/mixed),
  • "|15924-2=Scr1" for the *first* script
  • "|15924-3=Scr2" for the second script

But normally we should have only:

  • "|15924-1=Scr1" for the *first* script
  • "|15924-2=Scr2" for the *second* script

Variants are not impacted.

I documented this case in the template to make it more flexible

Verdy p (talk)10:56, 31 January 2018
 

"zh" is now disabled by assigning it the default script code "|15924-1=Hans" instead of "|15924=Hans" (before it was even "|15924=Hani" but it is disabled too, this script variant is not recognized).

Using "|15924-1=*" enforces the use of a script code suffix even for this default script.

Verdy p (talk)14:04, 31 January 2018