summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/being.cpp3
-rw-r--r--src/gui/charselectdialog.cpp2
-rw-r--r--src/gui/login.cpp8
3 files changed, 7 insertions, 6 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 08893c2f4..3a9285750 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -71,6 +71,7 @@
#include "gui/widgets/chattab.h"
#include "utils/dtor.h"
+#include "utils/gettext.h"
#include "utils/stringutils.h"
#include "utils/xml.h"
@@ -476,7 +477,7 @@ void Being::takeDamage(Being *attacker, int amount, AttackType type)
gcn::Font *font = 0;
std::string damage = amount ? toString(amount) : type == FLEE ?
- "dodge" : "miss";
+ _("dodge") : _("miss");
const gcn::Color *color;
if (gui)
diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp
index d95930108..da1f59e46 100644
--- a/src/gui/charselectdialog.cpp
+++ b/src/gui/charselectdialog.cpp
@@ -433,7 +433,7 @@ void CharacterDisplay::update()
mButton->setCaption(_("Choose"));
mButton->setActionEventId("use");
mName->setCaption(strprintf("%s", character->getName().c_str()));
- mLevel->setCaption(strprintf("Level %d",
+ mLevel->setCaption(strprintf(_("Level %d"),
mCharacter->data.mAttributes[LEVEL]));
mMoney->setCaption(Units::formatCurrency(
mCharacter->data.mAttributes[MONEY]));
diff --git a/src/gui/login.cpp b/src/gui/login.cpp
index 997895c95..b6139c6d0 100644
--- a/src/gui/login.cpp
+++ b/src/gui/login.cpp
@@ -53,9 +53,9 @@ std::string LoginDialog::savedPasswordKey = "";
const char *UPDATE_TYPE_TEXT[3] =
{
- _("Normal"),
- _("Auto Close"),
- _("Skip"),
+ N_("Normal"),
+ N_("Auto Close"),
+ N_("Skip"),
};
class UpdateTypeModel : public gcn::ListModel
@@ -74,7 +74,7 @@ public:
if (i >= getNumberOfElements() || i < 0)
return _("???");
- return UPDATE_TYPE_TEXT[i];
+ return gettext(UPDATE_TYPE_TEXT[i]);
}
};