summaryrefslogtreecommitdiff
path: root/src/gui/npcpostdialog.cpp
diff options
context:
space:
mode:
authorKess Vargavind <vargavind@gmail.com>2009-05-21 09:38:06 +0200
committerDavid Athay <ko2fan@gmail.com>2009-05-21 11:03:37 +0100
commit9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59 (patch)
treec6e13d9379916588114d77ab2aae498b76f82078 /src/gui/npcpostdialog.cpp
parent2dad08e4e8e199c84da6a6f2f5289c8c0e40fc81 (diff)
downloadmana-9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59.tar.gz
mana-9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59.tar.bz2
mana-9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59.tar.xz
mana-9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59.zip
Fixed a few strings for better translation
Just a few notes that would help us translators immensly: * Please do not split one sentence into several strings * Please try to refrain from inserting extra spaces into the strings
Diffstat (limited to 'src/gui/npcpostdialog.cpp')
-rw-r--r--src/gui/npcpostdialog.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/npcpostdialog.cpp b/src/gui/npcpostdialog.cpp
index 20123745..32dbe22c 100644
--- a/src/gui/npcpostdialog.cpp
+++ b/src/gui/npcpostdialog.cpp
@@ -41,7 +41,7 @@ NpcPostDialog::NpcPostDialog():
setContentSize(400, 180);
// create text field for receiver
- gcn::Label *senderText = new Label("To:");
+ gcn::Label *senderText = new Label(_("To:"));
senderText->setPosition(5, 5);
mSender = new TextField;
mSender->setPosition(senderText->getWidth() + 5, 5);
@@ -49,8 +49,8 @@ NpcPostDialog::NpcPostDialog():
// create button for sending
Button *sendButton = new Button(_("Send"), "send", this);
- sendButton->setPosition(400-sendButton->getWidth(),
- 170-sendButton->getHeight());
+ sendButton->setPosition(400 - sendButton->getWidth(),
+ 170 - sendButton->getHeight());
Button *cancelButton = new Button(_("Cancel"), "cancel", this);
cancelButton->setPosition(sendButton->getX() - (cancelButton->getWidth() + 2),
sendButton->getY());
@@ -82,7 +82,8 @@ void NpcPostDialog::action(const gcn::ActionEvent &event)
{
if (mSender->getText().empty() || mText->getText().empty())
{
- localChatTab->chatLog("Failed to send as sender or letter invalid");
+ localChatTab->chatLog(_("Failed to send as sender or letter "
+ "invalid."));
}
else
{