summaryrefslogtreecommitdiff
path: root/src/text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/text.cpp')
-rw-r--r--src/text.cpp19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/text.cpp b/src/text.cpp
index baeabcd..b689c99 100644
--- a/src/text.cpp
+++ b/src/text.cpp
@@ -2,13 +2,24 @@
namespace text {
-std::string unit_no_path;
-std::string unit_blocked;
+const wchar_t *unit_no_path;
+const wchar_t *unit_blocked;
+
+static void load_strings_pl(void)
+{
+ unit_no_path = L"Nie wiem, jak się tam dostać.";
+ unit_blocked = L"Coś stoi na mojej drodze.";
+}
void load_strings(std::string lang)
{
- unit_no_path = "Cannot find a path.";
- unit_blocked = "The path is blocked.";
+ if (lang == "pl") {
+ load_strings_pl();
+ return;
+ }
+
+ unit_no_path = L"I don't know how to get there.";
+ unit_blocked = L"Something's in my way.";
}
}