diff --git a/src/i18n.cc b/src/I18n.cc similarity index 94% rename from src/i18n.cc rename to src/I18n.cc index 833a0949..1d3cf8b1 100644 --- a/src/i18n.cc +++ b/src/I18n.cc @@ -1,7 +1,7 @@ -// i18n.hh for Fluxbox Window Manager +// I18n.hh for Fluxbox Window Manager // Copyright (c) 2001 - 2003 Henrik Kinnunen (fluxgen(at)users.sourceforge.net) // -// i18n.cc for Blackbox - an X11 Window manager +// I18n.cc for Blackbox - an X11 Window manager // Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net) // // Permission is hereby granted, free of charge, to any person obtaining a @@ -22,14 +22,14 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: i18n.cc,v 1.10 2003/05/16 00:17:16 fluxgen Exp $ +// $Id: I18n.cc,v 1.1 2003/06/12 14:24:26 fluxgen Exp $ //usr GNU extensions #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif // _GNU_SOURCE -#include "i18n.hh" +#include "I18n.hh" #include @@ -72,10 +72,11 @@ I18n::I18n():m_multibyte(false), m_catalog_fd((nl_catd)(-1)) { // truncate any encoding off the end of the locale + // remove everything after @ string::size_type index = m_locale.find('@'); if (index != string::npos) m_locale.erase(index); //erase all characters starting at index - + // remove everything after . index = m_locale.find('.'); if (index != string::npos) m_locale.erase(index); //erase all characters starting at index diff --git a/src/i18n.hh b/src/I18n.hh similarity index 97% rename from src/i18n.hh rename to src/I18n.hh index 32503e04..4397cd85 100644 --- a/src/i18n.hh +++ b/src/I18n.hh @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: i18n.hh,v 1.11 2003/04/26 15:46:03 fluxgen Exp $ +// $Id: I18n.hh,v 1.1 2003/06/12 14:24:25 fluxgen Exp $ #ifndef I18N_HH #define I18N_HH