summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-01-31 14:34:13 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2021-01-31 14:34:13 +0100
commit10ed9e59b8b9aee402547d1261463e00872e03d8 (patch)
tree1de487b7c42b1b86c7638144e47672abb2b1e76b
parentd1d53e5a83d981e190aed52b95a18f6ffa0d784f (diff)
Fix compiling without nls.
-rw-r--r--plugingui/abouttab.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugingui/abouttab.cc b/plugingui/abouttab.cc
index b6b1325..57daec3 100644
--- a/plugingui/abouttab.cc
+++ b/plugingui/abouttab.cc
@@ -35,6 +35,7 @@ namespace
{
std::string getLocalizedFile(const std::string& file)
{
+#ifdef WITH_NLS
auto language = Translation::getISO639LanguageName();
std::string file_localized = file + "." + language;
dggui::Resource resource_localized{file_localized};
@@ -42,6 +43,7 @@ std::string getLocalizedFile(const std::string& file)
{
return resource_localized.data();
}
+#endif
dggui::Resource resource{file};
if(resource.valid())