Posts: 15,247
Joined: Jan 2009
Reputation:
716
ronie
Team-Kodi Member
Posts: 15,247
is it possible for an addon to have different translations for Chinese (Simple) and Chinese (Traditional)?
if so, what language code can i use?
as far as i know, they both use lang="zh".
same question for all other 'duplicate' languages, like Portuguese (Brazil), Spanish (Mexico), etc...
Posts: 8
Joined: Feb 2011
Reputation:
0
I modified Spanish (Mexico) to Spanish (Argentina), and translate to lang=sp all my scrapers.
But the info in xbmc is in english, how can i get the info translated?
Thanks
Posts: 12,706
Joined: Nov 2003
Reputation:
128
spiff
Team-Kodi Member
Posts: 12,706
we will use the same lang code as the one you have for your xbmc language, if it doesn't exist we fall back to english.
Posts: 12,706
Joined: Nov 2003
Reputation:
128
spiff
Team-Kodi Member
Posts: 12,706
vanilla Spanish has lang code es. unfortunately so does mexico and likely argentina. we need to expand it to use 3 letter langcodes to distinguish.
Posts: 8
Joined: Feb 2011
Reputation:
0
Thanks for your answer.
Then i suppose that the better solution by now is keep only the spanish translation (with "Spanish" as name and "es" as lang)
I will try this and see if the info is in spanish.
Posts: 12,706
Joined: Nov 2003
Reputation:
128
spiff
Team-Kodi Member
Posts: 12,706
actually it's just a todo, we have the info now (didnt when i added the localization). see the locale stuff in LangInfo.cpp / langinfo.xml