Kodi Community Forum
help us translate addons - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Translations and Languages (https://forum.kodi.tv/forumdisplay.php?fid=90)
+--- Thread: help us translate addons (/showthread.php?tid=72837)

Pages: 1 2 3 4


- ronie - 2010-11-26

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...


- spiff - 2010-11-26

no, it's not currently.


- ronie - 2010-11-26

spiff Wrote:no, it's not currently.

cheers, all i needed to know.


- parad - 2011-02-10

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


- spiff - 2011-02-10

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.


- parad - 2011-02-10

spiff Wrote: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.

Mmm...

I've 3 spanish languages: Spanish, Spanish (Mexico), Spanish(Argentina) (I only need the one for Argentina but keep the others for help me with translation and because i don't want to delete anything from the original installation).

The three languages have the "sp" lang code. And my translation for the scraper has a lang="sp" description, but when i open xbmc and look for the scraper info, it appears in english.

What i've to do to see the info in spanish?

Thanks


- parad - 2011-02-13

parad Wrote:Mmm...

I've 3 spanish languages: Spanish, Spanish (Mexico), Spanish(Argentina) (I only need the one for Argentina but keep the others for help me with translation and because i don't want to delete anything from the original installation).

The three languages have the "sp" lang code. And my translation for the scraper has a lang="sp" description, but when i open xbmc and look for the scraper info, it appears in english.

What i've to do to see the info in spanish?

Thanks

Anyone can help me with this?


- spiff - 2011-02-15

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.


- parad - 2011-02-16

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.


- MaDDoGo - 2011-02-16

Why don't you support extended language tags (es_ES, es_AR, etc...)?

Isn't possible to make a field in the language strings to name the sublanguages?
Maybe in langinfo.xml make a field like <id> to force a language tag. Maybe then add the Language String (Español (España)) and rename the language folder to es_ES.

Will That change slowdown the program so much?

That is only a suggestion, and if I'll know C++ I'll try to do it Sad

Cheers!


- spiff - 2011-02-16

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


- MaDDoGo - 2011-02-17

I looked at this and I think this would read the information from langinfo.xml:

Quote: const TiXmlNode *pLocale = pRootElement->FirstChild("locale");
if (pLocale && !pLocale->NoChildren())
{
const TiXmlNode *pLangLocaleName = pLocale->FirstChild("LangLocaleName");
if (pLangLocaleName && !pLangLocaleName->NoChildren())
m_defaultRegion.m_strLangLocaleName=pLangLocaleName->FirstChild()->Value();

const TiXmlNode *pRegionLocaleName = pLocale->FirstChild("audio");
if (pRegionLocaleName && !pRegionLocaleName->NoChildren())
m_defaultRegion.m_strRegionLocaleName=pRegionLocaleName->FirstChild()->Value();
}

And would read this:

Quote: <locale>
<LangLocaleName>Español (España)</LangLocaleName>
<RegionLocaleName>es_ES</RegionLocaleName>
</locale>

Sorry if it's not the place but I don't know how to do it better.

Then in the options, maybe you can adapt the addon's way of reading tags (but instead of Addons name you read locale's name) using the es_ES file scheme.