summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-03 12:35:33 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-03 12:51:43 +0300
commit9510979d65738fb03b2c48425fa59984c2a4b938 (patch)
treed546c5e932da966d4bddcebb5ae9a0f6f4820881 /src/resources
parenta7c723b681ddefdcaa84cb9b16681c65818d7110 (diff)
downloadplus-9510979d65738fb03b2c48425fa59984c2a4b938.tar.gz
plus-9510979d65738fb03b2c48425fa59984c2a4b938.tar.bz2
plus-9510979d65738fb03b2c48425fa59984c2a4b938.tar.xz
plus-9510979d65738fb03b2c48425fa59984c2a4b938.zip
add comments for translators.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/beinginfo.cpp1
-rw-r--r--src/resources/itemdb.cpp6
-rw-r--r--src/resources/monsterdb.cpp1
3 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp
index 760d2667b..914a00d1a 100644
--- a/src/resources/beinginfo.cpp
+++ b/src/resources/beinginfo.cpp
@@ -36,6 +36,7 @@ Attack *BeingInfo::empty = new Attack(SpriteAction::ATTACK,
BeingInfo::BeingInfo() :
mDisplay(),
+ // TRANSLATORS: being info default name
mName(_("unnamed")),
mTargetCursorSize(ActorSprite::TC_MEDIUM),
mHoverCursor(Cursor::CURSOR_POINTER),
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index f5d6e54ce..346ddb9de 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -58,9 +58,13 @@ static int parseDirectionName(const std::string &name);
static const char *const fields[][2] =
{
+ // TRANSLATORS: item info label
{ "attack", N_("Attack %+d") },
+ // TRANSLATORS: item info label
{ "defense", N_("Defense %+d") },
+ // TRANSLATORS: item info label
{ "hp", N_("HP %+d") },
+ // TRANSLATORS: item info label
{ "mp", N_("MP %+d") }
};
@@ -164,6 +168,7 @@ void ItemDB::load()
mTags["Equipment"] = tagNum ++;
mUnknown = new ItemInfo;
+ // TRANSLATORS: item name
mUnknown->setName(_("Unknown item"));
mUnknown->setDisplay(SpriteDisplay());
std::string errFile = paths.getStringValue("spriteErrorFile");
@@ -258,6 +263,7 @@ void ItemDB::load()
ItemInfo *const itemInfo = new ItemInfo;
itemInfo->setId(id);
+ // TRANSLATORS: item info name
itemInfo->setName(name.empty() ? _("unnamed") : name);
itemInfo->setDescription(description);
itemInfo->setType(itemTypeFromString(typeStr));
diff --git a/src/resources/monsterdb.cpp b/src/resources/monsterdb.cpp
index 269cd59cd..9fcd2be0c 100644
--- a/src/resources/monsterdb.cpp
+++ b/src/resources/monsterdb.cpp
@@ -82,6 +82,7 @@ void MonsterDB::load()
currentInfo->setBlockType(Map::BLOCKTYPE_MONSTER);
currentInfo->setName(XML::langProperty(
+ // TRANSLATORS: unknown info name
monsterNode, "name", _("unnamed")));
currentInfo->setTargetCursorSize(XML::getProperty(monsterNode,