indentation
This commit is contained in:
parent
50e3ef9b4a
commit
6d4bd4d720
1 changed files with 21 additions and 21 deletions
42
src/i18n.hh
42
src/i18n.hh
|
@ -22,54 +22,54 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: i18n.hh,v 1.5 2002/02/17 18:41:44 fluxgen Exp $
|
// $Id: i18n.hh,v 1.6 2002/03/18 15:46:42 fluxgen Exp $
|
||||||
|
|
||||||
#ifndef I18N_HH
|
#ifndef I18N_HH
|
||||||
#define I18N_HH
|
#define I18N_HH
|
||||||
|
|
||||||
#ifdef NLS
|
#ifdef NLS
|
||||||
# include "../nls/blackbox-nls.hh"
|
# include "../nls/blackbox-nls.hh"
|
||||||
#endif // NLS
|
#endif // NLS
|
||||||
|
|
||||||
#ifdef HAVE_LOCALE_H
|
#ifdef HAVE_LOCALE_H
|
||||||
# include <locale.h>
|
# include <locale.h>
|
||||||
#endif // HAVE_LOCALE_H
|
#endif // HAVE_LOCALE_H
|
||||||
|
|
||||||
#ifdef HAVE_NL_TYPES_H
|
#ifdef HAVE_NL_TYPES_H
|
||||||
// this is needed for linux libc5 systems
|
// this is needed for linux libc5 systems
|
||||||
extern "C" {
|
extern "C" {
|
||||||
# include <nl_types.h>
|
# include <nl_types.h>
|
||||||
}
|
}
|
||||||
#endif // HAVE_NL_TYPES_H
|
#endif // HAVE_NL_TYPES_H
|
||||||
|
|
||||||
#ifdef __CYGWIN32__
|
#ifdef __CYGWIN32__
|
||||||
# include "nl_types_cygnus.h"
|
# include "nl_types_cygnus.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class I18n {
|
class I18n {
|
||||||
private:
|
private:
|
||||||
char *locale, *catalog_filename;
|
char *locale, *catalog_filename;
|
||||||
int mb;
|
int mb;
|
||||||
nl_catd catalog_fd;
|
nl_catd catalog_fd;
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
I18n(void);
|
I18n(void);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//so old compilators dont complain
|
//so old compilators dont complain
|
||||||
~I18n(void);
|
~I18n(void);
|
||||||
|
|
||||||
static I18n *instance();
|
static I18n *instance();
|
||||||
inline const char *getLocale(void) const { return locale; }
|
inline const char *getLocale(void) const { return locale; }
|
||||||
inline const char *getCatalogFilename(void) const { return catalog_filename; }
|
inline const char *getCatalogFilename(void) const { return catalog_filename; }
|
||||||
|
|
||||||
inline const int &multibyte(void) const { return mb; }
|
inline const int multibyte(void) const { return mb; }
|
||||||
|
|
||||||
inline const nl_catd &getCatalogFd(void) const { return catalog_fd; }
|
inline const nl_catd &getCatalogFd(void) const { return catalog_fd; }
|
||||||
|
|
||||||
const char *getMessage(int, int, const char * = 0);
|
const char *getMessage(int, int, const char * = 0);
|
||||||
void openCatalog(const char *);
|
void openCatalog(const char *);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue