luxai-qtrobot / QA

Virtual repository for Questions & Answers system
http://luxai-qtrobot.github.io
5 stars 0 forks source link

Language codes? Swedish as spoken in El Salvador makes no sense #53

Open TechnoX opened 2 years ago

TechnoX commented 2 years ago

Hi!

I was reading the documentation about changing language here: https://docs.luxai.com/docs/api_ros#speech-interface And I thought, that will be easy, I will just send sv-SE for Swedish! But it turned out not to work. So I dig into it a bit more and found the list of languages in qtrobot-interface.yaml. This was a surprise!

sv_SV (Swedish as spoken in El Salvador) is not listed in /usr/share/i18n/SUPPORTED, and in any case is probably not what you meant. A more plausible language code would be Swedish as spoken in Sweden, sv_SE.

I also noticed zh_MA (which is Chinese as spoken in Marocco? Or maybe in Macau?). It should be zh_CN I suppose?

Would make my life easier if I don't need to have a look-up table to change these language codes, since other part of the software is using sv_SE respectively zh_CN.

Please also check the other language codes? :)