diff options
author | rathnor <rathnor> | 2004-06-20 15:16:08 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2004-06-20 15:16:08 (GMT) |
commit | 5cc0f12f3f700750eae3234b42d94fa1ccc150db (patch) | |
tree | 515c0db6eb7c6951a397266004e3ef766c6476c1 | |
parent | 18684d3c5d65888ea00b5afb30f6c74997f1a9a1 (diff) | |
download | fluxbox_pavel-5cc0f12f3f700750eae3234b42d94fa1ccc150db.zip fluxbox_pavel-5cc0f12f3f700750eae3234b42d94fa1ccc150db.tar.bz2 |
we should only load LC_MESSAGES, not LC_ALL
-rw-r--r-- | src/FbTk/I18n.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/I18n.cc b/src/FbTk/I18n.cc index caffc6b..64abda1 100644 --- a/src/FbTk/I18n.cc +++ b/src/FbTk/I18n.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: I18n.cc,v 1.1 2004/06/07 11:46:05 rathnor Exp $ | 25 | // $Id: I18n.cc,v 1.2 2004/06/20 15:16:08 rathnor Exp $ |
26 | 26 | ||
27 | /* Note: | 27 | /* Note: |
28 | * A good reference for the older non-gettext style I18n | 28 | * A good reference for the older non-gettext style I18n |
@@ -65,7 +65,7 @@ void NLSInit(const char *catalog) { | |||
65 | I18n::I18n():m_multibyte(false), m_catalog_fd((nl_catd)(-1)) { | 65 | I18n::I18n():m_multibyte(false), m_catalog_fd((nl_catd)(-1)) { |
66 | #ifdef HAVE_SETLOCALE | 66 | #ifdef HAVE_SETLOCALE |
67 | //make sure we don't get 0 to m_locale string | 67 | //make sure we don't get 0 to m_locale string |
68 | char *temp = setlocale(LC_ALL, ""); | 68 | char *temp = setlocale(LC_MESSAGES, ""); |
69 | m_locale = ( temp ? temp : ""); | 69 | m_locale = ( temp ? temp : ""); |
70 | if (m_locale.empty()) { | 70 | if (m_locale.empty()) { |
71 | cerr<<"Warning: Failed to set locale, reverting to \"C\""<<endl; | 71 | cerr<<"Warning: Failed to set locale, reverting to \"C\""<<endl; |