summaryrefslogtreecommitdiff
path: root/dggui/uitranslation.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-01-03 11:50:41 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2021-01-03 11:50:41 +0100
commit756da05c384e3d9258fc07cf9441d899238503f1 (patch)
treeb3385216148d51a2378a2bed5dfc3f0a27d4f1ec /dggui/uitranslation.cc
parent645250e1cd8ce9bc1faea599df7a1b05836bfeb8 (diff)
Add dggui namespace to libdggui components.
Diffstat (limited to 'dggui/uitranslation.cc')
-rw-r--r--dggui/uitranslation.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/dggui/uitranslation.cc b/dggui/uitranslation.cc
index 0546be8..c12d646 100644
--- a/dggui/uitranslation.cc
+++ b/dggui/uitranslation.cc
@@ -30,6 +30,9 @@
#include "resource.h"
+namespace dggui
+{
+
UITranslation::UITranslation()
{
auto lang = Translation::getISO639LanguageName();
@@ -37,7 +40,7 @@ UITranslation::UITranslation()
std::string res = ":locale/";
res += lang + ".mo";
- GUI::Resource mo(res);
+ Resource mo(res);
if(!mo.valid())
{
printf("Locale not in resources - use default\n");
@@ -48,4 +51,5 @@ UITranslation::UITranslation()
load(mo.data(), mo.size());
}
+} // ::dggui
#endif // WITH_NLS