summaryrefslogtreecommitdiff
path: root/src/gui/setup_relations.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-03 12:35:22 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-03 12:51:43 +0300
commita7c723b681ddefdcaa84cb9b16681c65818d7110 (patch)
tree3c7100a90db00c3eacc41977cdb5bbae99e6ca40 /src/gui/setup_relations.cpp
parent04fbf07c41bf78dea11aa9b7098c80f0da3801e3 (diff)
downloadplus-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.gz
plus-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.bz2
plus-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.xz
plus-a7c723b681ddefdcaa84cb9b16681c65818d7110.zip
add comments for translators
Diffstat (limited to 'src/gui/setup_relations.cpp')
-rw-r--r--src/gui/setup_relations.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/gui/setup_relations.cpp b/src/gui/setup_relations.cpp
index ccc6d8ce2..5a2f34f5d 100644
--- a/src/gui/setup_relations.cpp
+++ b/src/gui/setup_relations.cpp
@@ -57,18 +57,27 @@ static const unsigned int RELATION_CHOICE_COLUMN_WIDTH = 80;
static const char *const table_titles[COLUMNS_NR] =
{
+ // TRANSLATORS: relations table header
N_("Name"),
+ // TRANSLATORS: relations table header
N_("Relation")
};
static const char *const RELATION_NAMES[PlayerRelation::RELATIONS_NR] =
{
+ // TRANSLATORS: relation type
N_("Neutral"),
+ // TRANSLATORS: relation type
N_("Friend"),
+ // TRANSLATORS: relation type
N_("Disregarded"),
+ // TRANSLATORS: relation type
N_("Ignored"),
+ // TRANSLATORS: relation type
N_("Erased"),
+ // TRANSLATORS: relation type
N_("Blacklisted"),
+ // TRANSLATORS: relation type
N_("Enemy")
};
@@ -225,7 +234,7 @@ public:
virtual std::string getElementAt(int i)
{
if (i >= getNumberOfElements() || i < 0)
- return _("???");
+ return "???";
return (*player_relations.getPlayerIgnoreStrategies())
[i]->mDescription;
@@ -244,14 +253,17 @@ Setup_Relations::Setup_Relations(const Widget2 *const widget) :
mPlayerTable(new GuiTable(mPlayerTableModel)),
mPlayerTitleTable(new GuiTable(this, mPlayerTableTitleModel)),
mPlayerScrollArea(new ScrollArea(mPlayerTable)),
+ // TRANSLATORS: relation dialog button
mDefaultTrading(new CheckBox(this, _("Allow trading"),
- player_relations.getDefault() & PlayerRelation::TRADE)),
+ player_relations.getDefault() & PlayerRelation::TRADE)),
+ // TRANSLATORS: relation dialog button
mDefaultWhisper(new CheckBox(this, _("Allow whispers"),
- player_relations.getDefault() & PlayerRelation::WHISPER)),
+ player_relations.getDefault() & PlayerRelation::WHISPER)),
mDeleteButton(new Button(this, _("Delete"), ACTION_DELETE, this)),
mIgnoreActionChoicesModel(new IgnoreChoicesListModel),
mIgnoreActionChoicesBox(new DropDown(widget, mIgnoreActionChoicesModel))
{
+ // TRANSLATORS: relation dialog name
setName(_("Relations"));
mPlayerTable->setOpaque(false);
@@ -275,6 +287,7 @@ Setup_Relations::Setup_Relations(const Widget2 *const widget) :
mPlayerTable->setLinewiseSelection(true);
mPlayerTable->addActionListener(this);
+ // TRANSLATORS: relation dialog label
Label *const ignore_action_label = new Label(this, _("When ignoring:"));
mIgnoreActionChoicesBox->setActionEventId(ACTION_STRATEGY);