summaryrefslogtreecommitdiff
path: root/src/text.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-11-07 18:33:03 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-11-07 18:33:03 +0100
commit5186351345d43801ac45acde8b7e30734eea0349 (patch)
tree7c331bb3c34de2ce31a791f79e7bf783534870d0 /src/text.cpp
parentd0be87d32929c42502fb842aa2b0ab0233313b93 (diff)
Better unit say.
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.";
}
}