ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.55k stars 3.7k forks source link

Configure Transifex language mapping #6917

Closed Reinmar closed 4 years ago

Reinmar commented 7 years ago

Currently we can find such files to be downloaded from Transifex:

[16:21:44] Saved ne_NP.po for ckeditor5-ui package
[16:21:44] Saved no.po for ckeditor5-ui package
[16:21:44] Saved nb.po for ckeditor5-ui package
[16:21:44] Saved oc.po for ckeditor5-ui package
[16:21:44] Saved fa.po for ckeditor5-ui package
[16:21:44] Saved pl.po for ckeditor5-ui package
[16:21:44] Saved pt.po for ckeditor5-ui package
[16:21:44] Saved pt_BR.po for ckeditor5-ui package
[16:21:44] Saved ro.po for ckeditor5-ui package
[16:21:44] Saved ru.po for ckeditor5-ui package
[16:21:44] Saved ru@petr1708.po for ckeditor5-ui package
[16:21:44] Saved sr.po for ckeditor5-ui package
[16:21:44] Saved sr@latin.po for ckeditor5-ui package
[16:21:44] Saved si_LK.po for ckeditor5-ui package

Unfortunately, these are not correct names in ISO639-1. According to @wwalc if we'd use a CLI version of Tx tool, we could provide such a mapping there as an option:

lang_map = en_AU:en-au,de_CH:de-ch,en_CA:en-ca,en_GB:en-gb,es_CO:es-co,fr_CA:fr-ca,ne_NP:ne,pt_BR:pt-br,ru@petr1708i:ru-petr1708,si_LK:si,sr@latin:sr-latn,ta_LK:ta,zh_CN:zh-cn,zh_HK:zh-hk,zh_TW:zh

Let's see how to do that if we're using the REST API. Also, let's check if this mapping is correct.

ma2ciek commented 7 years ago

AFAIK only Transifex client provides such an option. I couldn't find the REST API option related to this, but creating a JSON file with such a mapping and using it after download shouldn't be a problem.

And what about translations like this: [16:21:44] Saved ru@petr1708.po for ckeditor5-ui package? How should we handle them?

Reinmar commented 7 years ago

And what about translations like this: [16:21:44] Saved ru@petr1708.po for ckeditor5-ui package? How should we handle them?

According to the mapping whic @wwalc gave us, this is: ru@petr1708i:ru-petr1708.