openstreetmap-website icon indicating copy to clipboard operation
openstreetmap-website copied to clipboard

Translatewiki: change zh-hk to zh-HK

Open gravitystorm opened this issue 3 years ago • 3 comments

This is one for @translatewiki - could you please change the export of zh-hk to use zh-HK, i.e. change the capitalization of the filename and the root key inside the yaml. This will allow us to standardise some other stuff that we are working on.

If this is something we can control ourselves, please let me know how!

Additionally, is there somewhere we can check the mapping between translatewiki internal language codes and the language codes exported to this repo? I can see that in many cases they don't match, so there must be a list of conversions somewhere on your side. For example:

  • (Translatewiki language code) -> (this repo language code)
  • pt -> pt-PT
  • sr-ec -> sr
  • sr-el -> sr-Latn
  • zh-hans -> zh-CN
  • etc

If this conversion list is publicly accessible (and ideally somewhere so that we can propose changes!) that would be great.

Refs #3653

gravitystorm avatar Aug 31 '22 15:08 gravitystorm

I've submitted a patch for this here https://gerrit.wikimedia.org/r/c/translatewiki/+/828590

You can see the other mapped codes there.

Nikerabbit avatar Aug 31 '22 16:08 Nikerabbit

@Nikerabbit thanks very much!

gravitystorm avatar Aug 31 '22 18:08 gravitystorm

The zh-HK change seems to be completed. Anything left to be done?

Shall we add a link to https://github.com/wikimedia/translatewiki/blob/master/groups/OpenStreetMap/OpenStreetMap.yaml in config/locales/README?

simon04 avatar Feb 11 '24 19:02 simon04

@simon04 I added the link to the wiki page: https://wiki.openstreetmap.org/wiki/Website_internationalization#See_Also

mmd-osm avatar Jun 24 '24 13:06 mmd-osm