2014-11-30, 19:08
Hi,
I tried to get the language for one of my addons so I can provide the API behind it with the correct language ID (based on RFC 3066). My settings are 'English (US)' and region is 'Central Europe' !?! WTF
This will return 'en-DE' ..sorry, but this is none-sense. I'm dealing with RFC 3066 for more than 6 years now (I'm the developer of a Translation/Localization software of a german company for different formats and we translate in more than 40 languages).
RFC 3066 allows you a permutation of a language ID (ISO 639-1 and 2) plus a country ID (ISO 3166) + plus sub-tags. This allows a user to define the language + the dialect and worked for more than 15 years now.
So I tested a little bit and here are some other examples that won't end up correctly or are very confusing.
nl-BE is very common...but I can't select this kind of language...also Chines Simplified is zh-CHS and Traditional is zh-CHT (this is very special, but we have to deal with this every day).
Than I can select:
English => en-UK
English (US) => en-US
English (Australia) => en-AU
English (New Zealand) => en-NZ
but afterwards I can change the region?! In this case I can change 12h or 24h which has nothing to do with the region. If I select German as my language I can select a region, like Germany and so...that is correct. Here's something not right.
Don't get me wrong...that is not a huge problem...but this makes it very complicated to get the correct language ID especially if you want to use the current user settings for an addon. In my case the provider will return localized results if I could provide a correct language ID.
If I'm finished with the addon so far I would/could review the code in Kodi and maybe be at help to resolve this or maybe I'm getting something really wrong here, but on my end it doesn't fit with my experience. Maybe someone can enlighten me in this case?
I tried to get the language for one of my addons so I can provide the API behind it with the correct language ID (based on RFC 3066). My settings are 'English (US)' and region is 'Central Europe' !?! WTF
This will return 'en-DE' ..sorry, but this is none-sense. I'm dealing with RFC 3066 for more than 6 years now (I'm the developer of a Translation/Localization software of a german company for different formats and we translate in more than 40 languages).
RFC 3066 allows you a permutation of a language ID (ISO 639-1 and 2) plus a country ID (ISO 3166) + plus sub-tags. This allows a user to define the language + the dialect and worked for more than 15 years now.
So I tested a little bit and here are some other examples that won't end up correctly or are very confusing.
nl-BE is very common...but I can't select this kind of language...also Chines Simplified is zh-CHS and Traditional is zh-CHT (this is very special, but we have to deal with this every day).
Than I can select:
English => en-UK
English (US) => en-US
English (Australia) => en-AU
English (New Zealand) => en-NZ
but afterwards I can change the region?! In this case I can change 12h or 24h which has nothing to do with the region. If I select German as my language I can select a region, like Germany and so...that is correct. Here's something not right.
Don't get me wrong...that is not a huge problem...but this makes it very complicated to get the correct language ID especially if you want to use the current user settings for an addon. In my case the provider will return localized results if I could provide a correct language ID.
If I'm finished with the addon so far I would/could review the code in Kodi and maybe be at help to resolve this or maybe I'm getting something really wrong here, but on my end it doesn't fit with my experience. Maybe someone can enlighten me in this case?