aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbTk/I18n.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/FbTk/I18n.cc b/src/FbTk/I18n.cc
index 18eb67c..aae68ba 100644
--- a/src/FbTk/I18n.cc
+++ b/src/FbTk/I18n.cc
@@ -66,15 +66,14 @@ using std::string;
66 66
67namespace { 67namespace {
68 68
69#if defined(NLS)
70
69const char UTF8_SUFFIX[] = "-UTF-8.cat"; 71const char UTF8_SUFFIX[] = "-UTF-8.cat";
70const size_t UTF8_SUFFIX_LEN = sizeof(UTF8_SUFFIX)-1; // without \0 72const size_t UTF8_SUFFIX_LEN = sizeof(UTF8_SUFFIX)-1; // without \0
71const char DEFAULT_CATFILE[] = "fluxbox.cat"; 73const char DEFAULT_CATFILE[] = "fluxbox.cat";
72const char ENV_CATFILE[] = "FLUXBOX_CATFILE"; 74const char ENV_CATFILE[] = "FLUXBOX_CATFILE";
73const char ENV_CATDIR[] = "FLUXBOX_CATDIR"; 75const char ENV_CATDIR[] = "FLUXBOX_CATDIR";
74 76
75const nl_catd INVALID_CATALOG = (nl_catd)(-1);
76nl_catd s_catalog_fd = INVALID_CATALOG;
77
78 77
79const char* getCatalogDir() { 78const char* getCatalogDir() {
80 const char* cat_dir = getenv(ENV_CATDIR); 79 const char* cat_dir = getenv(ENV_CATDIR);
@@ -84,6 +83,12 @@ const char* getCatalogDir() {
84 return LOCALEPATH; 83 return LOCALEPATH;
85} 84}
86 85
86#endif
87
88
89const nl_catd INVALID_CATALOG = (nl_catd)(-1);
90nl_catd s_catalog_fd = INVALID_CATALOG;
91
87 92
88std::string join_str(size_t n, ...) { 93std::string join_str(size_t n, ...) {
89 std::string s; 94 std::string s;