Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Fl_Translator.h

00001 /*
00002  * $Id: Fl_Translator.h,v 1.4 2003/03/15 16:09:56 laza2000 Exp $
00003  *
00004  * Extended Fast Light Toolkit (EFLTK)
00005  * Copyright (C) 2002-2003 by EDE-Team
00006  * WWW: http://www.sourceforge.net/projects/ede
00007  *
00008  * Fast Light Toolkit (FLTK)
00009  * Copyright (C) 1998-2003 by Bill Spitzak and others.
00010  * WWW: http://www.fltk.org
00011  *
00012  * This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00013  * version 2. See COPYING for details.
00014  *
00015  * Author : Mikko Lahteenmaki
00016  * Email  : mikko@fltk.net
00017  *
00018  * Please report all bugs and problems to "efltk-bugs@fltk.net"
00019  *
00020  */
00021 
00022 #ifndef _FL_TRANSLATOR_H_
00023 #define _FL_TRANSLATOR_H_
00024 
00025 #include "Fl_Export.h"
00026 #include "Fl_String_List.h"
00027 #include "Fl_Ptr_List.h"
00028 
00030 class FL_API Fl_Translator
00031 {
00032 public:
00033     static char *tr(const char *string);
00034     static char *dtr(const char *domain, const char *string);
00035 
00036     static const char *load_translation_file(const char *desired_domain, const char *path);
00037     static const char *load_translation(const char *domainname);
00038 
00039     static bool has_search_path(const char *path);
00040     static void add_search_path(const char *path);
00041     static void remove_search_path(const char *path);
00042 
00043     // GNU gettext compatibility layer
00044     static char *bindtextdomain(const char *domainname, const char *dirname);
00045     static char *textdomain(const char *domainname);
00046 
00047     Fl_Translator();
00048     ~Fl_Translator();
00049 
00050 private:
00051     static Fl_CString_List search_paths_;
00052     static Fl_Ptr_List catalogs_;
00053     static Fl_Translator translator;
00054 };
00055 
00056 #endif

Generated on Thu Jul 31 15:33:45 2003 for eFLTK by doxygen1.2.15