From 10ed9e59b8b9aee402547d1261463e00872e03d8 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 31 Jan 2021 14:34:13 +0100 Subject: Fix compiling without nls. --- plugingui/abouttab.cc | 2 ++ 1 file changed, 2 insertions(+) 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()) -- cgit v1.2.3