Browse Source

Reuse two strings, add missing translation.

pull/6815/head
Krzysztof Pawlik 2 years ago committed by Anders Jenbo
parent
commit
6bc478a694
  1. 2
      Source/control.cpp
  2. 6
      Translations/pl.po

2
Source/control.cpp

@ -564,7 +564,7 @@ bool CheckTextCommand(const std::string_view text)
auto textCmdIterator = c_find_if(TextCmdList, [&](const TextCmdItem &elem) { return text.find(elem.text) == 0 && (text.length() == elem.text.length() || text[elem.text.length()] == ' '); });
if (textCmdIterator == TextCmdList.end()) {
InitDiabloMsg(StrCat(_("Command \""), text, "\" is unknown."));
InitDiabloMsg(StrCat(_("Command "), "\"", text, "\"", _(" is unknown.")));
return true;
}

6
Translations/pl.po

@ -7,7 +7,7 @@
msgid ""
msgstr ""
"Project-Id-Version: DevilutionX\n"
"POT-Creation-Date: 2023-11-14 19:06+0100\n"
"POT-Creation-Date: 2023-11-14 19:26+0100\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
@ -1037,7 +1037,7 @@ msgstr "Wyślij Wiadomość"
msgid "Available Commands:"
msgstr ""
#: Source/control.cpp:377
#: Source/control.cpp:377 Source/control.cpp:567
msgid "Command "
msgstr ""
@ -1161,7 +1161,7 @@ msgid "Show seed infos for current level."
msgstr ""
#: Source/control.cpp:567
msgid "Command \""
msgid " is unknown."
msgstr ""
#: Source/control.cpp:1049

Loading…
Cancel
Save