add include localized file token

This commit is contained in:
GenevensiS
2025-03-11 02:27:03 +01:00
parent 6b0d311dc9
commit b33fdd4856
5 changed files with 31 additions and 3 deletions
+5
View File
@@ -12,6 +12,7 @@
#include <util/error.hpp>
#include <util/io/package_manager.hpp>
#include <boost/logic/tribool.hpp>
#include <data/settings.hpp>
#undef small
using boost::tribool;
@@ -356,6 +357,10 @@ template <> void Reader::handle(Vector2D& vec) {
template <> void Reader::handle(LocalFileName& f) {
f = LocalFileName::fromReadString(this->getValue());
}
String Reader::addLocale(String filename) {
return filename + _("_") + settings.locale;
}
// ----------------------------------------------------------------------------- : EnumReader