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
|
||||
// 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
|
||||
#define I18N_HH
|
||||
#ifndef I18N_HH
|
||||
#define I18N_HH
|
||||
|
||||
#ifdef NLS
|
||||
# include "../nls/blackbox-nls.hh"
|
||||
#ifdef NLS
|
||||
# include "../nls/blackbox-nls.hh"
|
||||
#endif // NLS
|
||||
|
||||
#ifdef HAVE_LOCALE_H
|
||||
# include <locale.h>
|
||||
#ifdef HAVE_LOCALE_H
|
||||
# include <locale.h>
|
||||
#endif // HAVE_LOCALE_H
|
||||
|
||||
#ifdef HAVE_NL_TYPES_H
|
||||
#ifdef HAVE_NL_TYPES_H
|
||||
// this is needed for linux libc5 systems
|
||||
extern "C" {
|
||||
# include <nl_types.h>
|
||||
# include <nl_types.h>
|
||||
}
|
||||
#endif // HAVE_NL_TYPES_H
|
||||
|
||||
#ifdef __CYGWIN32__
|
||||
# include "nl_types_cygnus.h"
|
||||
# include "nl_types_cygnus.h"
|
||||
#endif
|
||||
|
||||
class I18n {
|
||||
private:
|
||||
char *locale, *catalog_filename;
|
||||
int mb;
|
||||
nl_catd catalog_fd;
|
||||
char *locale, *catalog_filename;
|
||||
int mb;
|
||||
nl_catd catalog_fd;
|
||||
|
||||
|
||||
protected:
|
||||
I18n(void);
|
||||
I18n(void);
|
||||
|
||||
public:
|
||||
//so old compilators dont complain
|
||||
~I18n(void);
|
||||
|
||||
static I18n *instance();
|
||||
inline const char *getLocale(void) const { return locale; }
|
||||
inline const char *getCatalogFilename(void) const { return catalog_filename; }
|
||||
|
||||
inline const int &multibyte(void) const { return mb; }
|
||||
inline const char *getLocale(void) const { return locale; }
|
||||
inline const char *getCatalogFilename(void) const { return catalog_filename; }
|
||||
|
||||
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);
|
||||
void openCatalog(const char *);
|
||||
const char *getMessage(int, int, const char * = 0);
|
||||
void openCatalog(const char *);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue