summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-04 15:44:31 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-04 16:24:42 +0300
commitbc2c095db69be01837d07af1151b0f0a3061713f (patch)
tree98009b4483d873f45f7b4f2897a4a7ba5118d39e /src/gui/popups
parent9b5b48739b62fca4bb30cd04be1031ac3f80095d (diff)
downloadplus-bc2c095db69be01837d07af1151b0f0a3061713f.tar.gz
plus-bc2c095db69be01837d07af1151b0f0a3061713f.tar.bz2
plus-bc2c095db69be01837d07af1151b0f0a3061713f.tar.xz
plus-bc2c095db69be01837d07af1151b0f0a3061713f.zip
Add missing TRANSLATORS comments to translation strings.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp82
-rw-r--r--src/gui/popups/skillpopup.cpp6
2 files changed, 46 insertions, 42 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 2c6b3c6a4..3bf1a6d9c 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -228,9 +228,9 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being)
|| (guildManager && guildManager->havePower()))
#endif
{
- // TRANSLATORS: popup menu item
- // TRANSLATORS: invite player to guild
mBrowserBox->addRow("/guild 'NAME'",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: invite player to guild
_("Invite to guild"));
}
}
@@ -258,9 +258,9 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being)
mBrowserBox->addRow("/talk 'NAME'", _("Talk"));
if (serverFeatures->haveNpcWhispers())
{
- // TRANSLATORS: popup menu item
- // TRANSLATORS: whisper to npc
mBrowserBox->addRow("/whispertext NPC:'NAME'",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: whisper to npc
_("Whisper"));
}
// TRANSLATORS: popup menu item
@@ -531,9 +531,9 @@ void PopupMenu::showPlayerPopup(const std::string &nick)
}
if (guild2->getServerGuild())
{
- // TRANSLATORS: popup menu item
- // TRANSLATORS: change player position in guild
mBrowserBox->addRow(strprintf(
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: change player position in guild
"@@guild-pos|%s >@@", _("Change pos in guild")));
}
}
@@ -865,9 +865,9 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab)
}
if (guild2->getServerGuild())
{
- // TRANSLATORS: popup menu item
- // TRANSLATORS: change player position in guild
mBrowserBox->addRow(strprintf("@@guild-pos|%s >@@",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: change player position in guild
_("Change pos in guild")));
}
}
@@ -879,9 +879,9 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab)
&& guildManager->havePower()))
#endif
{
- // TRANSLATORS: popup menu item
- // TRANSLATORS: invite player to guild
mBrowserBox->addRow("/guild 'NAME'",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: invite player to guild
_("Invite to guild"));
}
}
@@ -1056,10 +1056,12 @@ void PopupMenu::handleLink(const std::string &link,
else if (link == "rename map" && mMapItem)
{
mRenameListener.setMapItem(mMapItem);
- // TRANSLATORS: number of chars in string should be near original
CREATEWIDGETV(mDialog, TextDialog,
+ // TRANSLATORS: dialog caption
+ // TRANSLATORS: number of chars in string should be near original
_("Rename map sign "),
- // TRANSLATORS: number of chars in string should be near original
+ // TRANSLATORS: label
+ // TRANSLATORS: number of chars in string should be near original
_("Name: "));
mRenameListener.setDialog(mDialog);
mDialog->setText(mMapItem->getComment());
@@ -1076,9 +1078,11 @@ void PopupMenu::handleLink(const std::string &link,
}
else if (link == "addcomment" && !mNick.empty())
{
- // TRANSLATORS: number of chars in string should be near original
TextDialog *const dialog = CREATEWIDGETR(TextDialog,
+ // TRANSLATORS: dialog caption
+ // TRANSLATORS: number of chars in string should be near original
_("Player comment "),
+ // TRANSLATORS: label
// TRANSLATORS: number of chars in string should be near original
_("Comment: "));
mPlayerListener.setDialog(dialog);
@@ -1658,22 +1662,22 @@ void PopupMenu::showPopup(Window *const parent,
{
if (cnt > 10)
{
- // TRANSLATORS: popup menu item
- // TRANSLATORS: add 10 item amount to trade
mBrowserBox->addRow("/addtrade 'INVINDEX' 10",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: add 10 item amount to trade
_("Add to trade 10"));
}
- // TRANSLATORS: popup menu item
- // TRANSLATORS: add half item amount to trade
mBrowserBox->addRow("/addtrade 'INVINDEX' /",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: add half item amount to trade
_("Add to trade half"));
- // TRANSLATORS: popup menu item
- // TRANSLATORS: add all amount except one item to trade
mBrowserBox->addRow("/addtrade 'INVINDEX' -1",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: add all amount except one item to trade
_("Add to trade all-1"));
- // TRANSLATORS: popup menu item
- // TRANSLATORS: add all amount item to trade
mBrowserBox->addRow("/addtrade 'INVINDEX' all",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: add all amount item to trade
_("Add to trade all"));
}
mBrowserBox->addRow("##3---");
@@ -1687,22 +1691,22 @@ void PopupMenu::showPopup(Window *const parent,
{
if (cnt > 10)
{
- // TRANSLATORS: popup menu item
- // TRANSLATORS: add 10 item amount to storage
mBrowserBox->addRow("/invtostorage 'INVINDEX' 10",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: add 10 item amount to storage
_("Store 10"));
}
- // TRANSLATORS: popup menu item
- // TRANSLATORS: add half item amount to storage
mBrowserBox->addRow("/invtostorage 'INVINDEX' /",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: add half item amount to storage
_("Store half"));
- // TRANSLATORS: popup menu item
- // TRANSLATORS: add all except one item amount to storage
mBrowserBox->addRow("/invtostorage 'INVINDEX' -1",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: add all except one item to storage
_("Store all-1"));
- // TRANSLATORS: popup menu item
- // TRANSLATORS: add all item amount to storage
mBrowserBox->addRow("/invtostorage 'INVINDEX' all",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: add all item amount to storage
_("Store all"));
}
mBrowserBox->addRow("##3---");
@@ -1718,22 +1722,22 @@ void PopupMenu::showPopup(Window *const parent,
{
if (cnt > 10)
{
- // TRANSLATORS: popup menu item
- // TRANSLATORS: get 10 item amount from storage
mBrowserBox->addRow("/storagetoinv 'INVINDEX' 10",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: get 10 item amount from storage
_("Retrieve 10"));
}
- // TRANSLATORS: popup menu item
- // TRANSLATORS: get half item amount from storage
mBrowserBox->addRow("/storagetoinv 'INVINDEX' /",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: get half item amount from storage
_("Retrieve half"));
- // TRANSLATORS: popup menu item
- // TRANSLATORS: get all except one item amount from storage
mBrowserBox->addRow("/storagetoinv 'INVINDEX' -1",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: get all except one item amount from storage
_("Retrieve all-1"));
- // TRANSLATORS: popup menu item
- // TRANSLATORS: get all item amount from storage
mBrowserBox->addRow("/storagetoinv 'INVINDEX' all",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: get all item amount from storage
_("Retrieve all"));
}
break;
@@ -2518,9 +2522,9 @@ void PopupMenu::addChat(const Being *const being)
const ChatObject *const chat = being->getChat();
if (chat)
{
- // TRANSLATORS: popup menu item
- // TRANSLATORS: invite player to party
mBrowserBox->addRow("join chat",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: invite player to party
strprintf(_("Join chat %s"), chat->title.c_str()).c_str());
mBrowserBox->addRow("##3---");
}
diff --git a/src/gui/popups/skillpopup.cpp b/src/gui/popups/skillpopup.cpp
index 846139863..68fb42454 100644
--- a/src/gui/popups/skillpopup.cpp
+++ b/src/gui/popups/skillpopup.cpp
@@ -113,8 +113,8 @@ void SkillPopup::show(const SkillInfo *const skill,
mSkillEffect->setTextWrapped(effect, 196);
if (level != 0)
{
- // TRANSLATORS: skill level
mSkillLevel->setTextWrapped(strprintf(
+ // TRANSLATORS: skill level
_("Level: %d / %d"), level, skill->level),
196);
}
@@ -122,15 +122,15 @@ void SkillPopup::show(const SkillInfo *const skill,
{
if (skill->level != 0)
{
- // TRANSLATORS: skill level
mSkillLevel->setTextWrapped(strprintf(
+ // TRANSLATORS: skill level
_("Level: %d"), skill->level),
196);
}
else
{
- // TRANSLATORS: skill level for tmw fake skills
mSkillLevel->setTextWrapped(
+ // TRANSLATORS: skill level for tmw fake skills
_("Level: Unknown"),
196);
}