diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-17 17:50:11 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-17 17:50:11 -0700 |
commit | 7398e19f1bbf44ee732b6739f6620cdcb6c3b554 (patch) | |
tree | 49c492aa0b88dc2f59fae76288388ea643a30bc8 /src/resources/itemdb.cpp | |
parent | 1ac350cb425249f37961206a04427e084d2fa833 (diff) | |
download | mana-7398e19f1bbf44ee732b6739f6620cdcb6c3b554.tar.gz mana-7398e19f1bbf44ee732b6739f6620cdcb6c3b554.tar.bz2 mana-7398e19f1bbf44ee732b6739f6620cdcb6c3b554.tar.xz mana-7398e19f1bbf44ee732b6739f6620cdcb6c3b554.zip |
Added a few XML files for "translation". Idea obtained from IchigoBlack,
where these "translation" strings can be used to tell the client to use
a separate XML file than the English one, so that item descriptions,
monster names, etc. which are obtained from updates can be translated as
well. Ex. instead of pointing to items.xml for Spanish, tell the client
to translate that string to items.es.xml, or for monsters.xml, tell it
to point to monsters.zh.xml for Chinese.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r-- | src/resources/itemdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index 270083ef..7091abed 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -57,7 +57,7 @@ void ItemDB::load() mUnknown->setSprite("error.xml", GENDER_MALE); mUnknown->setSprite("error.xml", GENDER_FEMALE); - XML::Document doc("items.xml"); + XML::Document doc(_("items.xml")); xmlNodePtr rootNode = doc.rootNode(); if (!rootNode || !xmlStrEqual(rootNode->name, BAD_CAST "items")) |