help us translate addons
#57
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.
Image
Reply
 
Thread Rating:
  • 1 Vote(s) - 5 Average


Messages In This Thread
help us translate addons - by spiff - 2010-04-27, 11:24
[No subject] - by sebak - 2010-04-29, 00:00
[No subject] - by jmarshall - 2010-04-29, 02:32
[No subject] - by sebak - 2010-04-29, 17:56
[No subject] - by kimp93 - 2010-05-04, 18:12
[No subject] - by spiff - 2010-05-04, 19:07
[No subject] - by Dakhar - 2010-05-04, 20:56
[No subject] - by kimp93 - 2010-05-04, 21:22
[No subject] - by jmarshall - 2010-05-04, 23:53
[No subject] - by kimp93 - 2010-05-05, 06:08
[No subject] - by anighr - 2010-05-28, 07:00
[No subject] - by h.udo - 2010-06-04, 18:27
[No subject] - by Kolabor - 2010-09-27, 18:24
[No subject] - by spiff - 2010-09-28, 12:01
[No subject] - by Kolabor - 2010-09-28, 13:39
[No subject] - by spiff - 2010-09-28, 13:46
[No subject] - by Kolabor - 2010-09-28, 14:08
[No subject] - by spiff - 2010-09-28, 14:14
[No subject] - by Kolabor - 2010-09-28, 14:23
[No subject] - by h.udo - 2010-09-28, 17:47
[No subject] - by Kolabor - 2010-09-28, 18:09
[No subject] - by spiff - 2010-09-28, 18:14
[No subject] - by Kolabor - 2010-09-28, 18:16
[No subject] - by spiff - 2010-09-28, 18:17
[No subject] - by spiff - 2010-09-28, 18:22
[No subject] - by Kolabor - 2010-09-28, 18:34
[No subject] - by spiff - 2010-09-28, 18:35
[No subject] - by Kolabor - 2010-09-28, 18:44
[No subject] - by Kolabor - 2010-09-28, 19:19
[No subject] - by spiff - 2010-09-29, 10:30
[No subject] - by Kolabor - 2010-09-29, 11:44
[No subject] - by spiff - 2010-09-29, 11:50
[No subject] - by Kolabor - 2010-09-29, 11:58
[No subject] - by Kolabor - 2010-09-29, 17:02
[No subject] - by Kolabor - 2010-09-29, 17:26
[No subject] - by spiff - 2010-09-29, 18:12
[No subject] - by Kolabor - 2010-10-02, 17:47
[No subject] - by Kolabor - 2010-10-06, 12:22
[No subject] - by KymyA - 2010-10-06, 12:37
[No subject] - by slash - 2010-10-06, 13:24
[No subject] - by spiff - 2010-10-06, 13:29
[No subject] - by Ramius - 2010-11-08, 11:47
[No subject] - by spiff - 2010-11-08, 11:53
[No subject] - by Ramius - 2010-11-08, 12:20
[No subject] - by spiff - 2010-11-08, 12:24
[No subject] - by ronie - 2010-11-26, 03:21
[No subject] - by spiff - 2010-11-26, 11:18
[No subject] - by ronie - 2010-11-26, 13:26
[No subject] - by parad - 2011-02-10, 04:18
[No subject] - by spiff - 2011-02-10, 11:45
[No subject] - by parad - 2011-02-10, 21:23
[No subject] - by parad - 2011-02-13, 01:19
[No subject] - by spiff - 2011-02-15, 12:16
[No subject] - by parad - 2011-02-16, 05:26
[No subject] - by MaDDoGo - 2011-02-16, 21:37
[No subject] - by spiff - 2011-02-16, 23:07
[No subject] - by MaDDoGo - 2011-02-17, 00:06


Logout Mark Read Team Forum Stats Members Help
help us translate addons51