Main Page - Header
Author: The Inti Development Team

Reference Manual

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

# i18n.h

Go to the documentation of this file.

    00001 /*  Inti: Integrated Foundation Classes
    00002  *  Copyright (C) 2003 The Inti Development Team.
    00003  *  Copyright (C) 2000 Red Hat, Inc.
    00004  *
    00005  *  This program is free software; you can redistribute it and/or modify
    00006  *  it under the terms of the GNU General Public License as published by
    00007  *  the Free Software Foundation; either version 2 of the License, or
    00008  *  (at your option) any later version.
    00009  *
    00010  *  This program is distributed in the hope that it will be useful,
    00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00013  *  GNU Library General Public License for more details.
    00014  *
    00015  *  You should have received a copy of the GNU Library General Public License
    00016  *  along with this program; if not, write to the Free Software
    00017  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    00018  */
    00019
    00024
    00025 #ifndef INTI_INTL_H
    00026 #define INTI_INTL_H
    00027
    00028 #ifndef INTI_UTF_STRING_H
    00029 #include <inti/utf-string.h>
    00030 #endif
    00031
    00036
    00037 #ifndef INTI_NO_INTL_NOOP_MARKER
    00038 #ifndef N_
    00039 #define N_(str) (str)
    00040 #endif
    00041 #endif
    00042
    00043 namespace Inti {
    00044
    00045 #ifdef _
    00046 #error "You can't include headers that define the _ macro before inti/i18n.h"
    00047 #endif
    00048
    00051
    00052 const char* _(const String& str);
    00064
    00065 const char* _(const String& str, const char *domain);
    00079
    00081
    00082 namespace i18n {
    00083
    00084 const char* set_text_domain(const char *domain);
    00093
    00094 const char* set_text_domain_dir(const char *domain, const char *dir);
    00108
    00109 } // namepsace i18n
    00110
    00111 } // namepace Inti
    00112
    00113 #endif // INTI_INTL_H
    00114

Main Page - Footer