From bc2c095db69be01837d07af1151b0f0a3061713f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 4 Jan 2016 15:44:31 +0300 Subject: Add missing TRANSLATORS comments to translation strings. --- src/actions/actions.cpp | 7 +++++++ src/actions/chat.cpp | 3 ++- src/actions/pets.cpp | 1 + src/actions/windows.cpp | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src/actions') diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index ba5bb9226..d8fa1c165 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -1111,6 +1111,7 @@ impHandler0(cacheInfo) return; unsigned int all = 0; + // TRANSLATORS: chat fonts message debugChatTab->chatLog(_("font cache size"), ChatMsgType::BY_SERVER); std::string str; for (int f = 0; f < 256; f ++) @@ -1123,14 +1124,17 @@ impHandler0(cacheInfo) } } debugChatTab->chatLog(str, ChatMsgType::BY_SERVER); + // TRANSLATORS: chat fonts message debugChatTab->chatLog(strprintf("%s %d", _("Cache size:"), all), ChatMsgType::BY_SERVER); #ifdef DEBUG_FONT_COUNTERS debugChatTab->chatLog("", ChatMsgType::BY_SERVER); debugChatTab->chatLog(strprintf("%s %d", + // TRANSLATORS: chat fonts message _("Created:"), font->getCreateCounter()), ChatMsgType::BY_SERVER); debugChatTab->chatLog(strprintf("%s %d", + // TRANSLATORS: chat fonts message _("Deleted:"), font->getDeleteCounter()), ChatMsgType::BY_SERVER); #endif @@ -1467,6 +1471,7 @@ impHandler0(createItems) impHandler(uploadConfig) { + // TRANSLATORS: upload config chat message uploadFile(_("Uploaded config into:"), config.getFileName(), "?xml", @@ -1476,6 +1481,7 @@ impHandler(uploadConfig) impHandler(uploadServerConfig) { + // TRANSLATORS: upload config chat message uploadFile(_("Uploaded server config into:"), serverConfig.getFileName(), "?xml", @@ -1485,6 +1491,7 @@ impHandler(uploadServerConfig) impHandler(uploadLog) { + // TRANSLATORS: upload log chat message uploadFile(_("Uploaded log into:"), settings.logFileName, "?txt", diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp index e44b3a259..9d9be4279 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -423,8 +423,8 @@ impHandler(toggle) { if (chatWindow && event.tab) { - // TRANSLATORS: message from toggle chat command event.tab->chatLog(chatWindow->getReturnTogglesChat() ? + // TRANSLATORS: message from toggle chat command _("Return toggles chat.") : _("Message closes chat."), ChatMsgType::BY_SERVER); } @@ -597,6 +597,7 @@ impHandler(hat) const int sprite = localPlayer->getSpriteID( charServerHandler->hatSprite()); const ItemInfo &info = ItemDB::get(sprite); + // TRANSLATORS: equipped hat chat message const std::string str = strprintf(_("equipped hat %s."), info.getName().c_str()); outString(event.tab, str, str); diff --git a/src/actions/pets.cpp b/src/actions/pets.cpp index bf06b3a75..d69618356 100644 --- a/src/actions/pets.cpp +++ b/src/actions/pets.cpp @@ -107,6 +107,7 @@ impHandler(setPetName) const Being *const pet = getPet(); if (!pet) return false; + // TRANSLATORS: dialog header inputActionReplayListener.openDialog(_("Rename your pet"), pet->getName(), InputAction::PET_SET_NAME); diff --git a/src/actions/windows.cpp b/src/actions/windows.cpp index c4aff5b19..508f17105 100644 --- a/src/actions/windows.cpp +++ b/src/actions/windows.cpp @@ -319,6 +319,7 @@ impHandler0(quickWindowShow) if (setupWindow->isWindowVisible()) setupWindow->doCancel(); setupWindow->setVisible(Visible_true); + // TRANSLATORS: settings tab name setupWindow->activateTab(_("Quick")); setupWindow->requestMoveToTop(); return true; -- cgit v1.2.3-60-g2f50