moved i18n.hh and .cc files to I18n.hh .cc

This commit is contained in:
fluxgen 2003-06-12 14:24:26 +00:00
parent 7f78b30cbe
commit 603b784efd
2 changed files with 7 additions and 6 deletions

View file

@ -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 <X11/Xlocale.h>
@ -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

View file

@ -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