debian/tmp/usr/include/KWWidgets/vtkKWInternationalization.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef __vtkKWInternationalization_h
00015 #define __vtkKWInternationalization_h
00016
00017 #include "vtkObject.h"
00018 #include "vtkKWWidgets.h"
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifdef KWWidgets_USE_INTERNATIONALIZATION
00031 # include <libintl.h>
00032 # undef _
00033 # define _(string) gettext(string)
00034 # undef k_
00035 # define k_(string) dgettext(GETTEXT_DOMAIN, string)
00036 #else
00037 # undef _
00038 # define _(string) string
00039 # undef k_
00040 # define k_(string) string
00041 # undef gettext
00042 # define gettext(string) string
00043 # undef dgettext
00044 # define dgettext(domain,string) string
00045 #endif
00046
00047 #ifndef GETTEXT_DOMAIN
00048 #define GETTEXT_DOMAIN ""
00049 #endif
00050
00051 #define gettext_noop(string) string
00052 #define N_(string) gettext_noop(string)
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063 KWWidgets_EXTERN KWWidgets_EXPORT char* kww_sgettext(const char *msgid);
00064 KWWidgets_EXTERN KWWidgets_EXPORT char* kww_sdgettext(const char *domain_name, const char *msgid);
00065
00066
00067 #define s_(string) kww_sgettext(string)
00068 #define ks_(string) kww_sdgettext(GETTEXT_DOMAIN, string)
00069
00070
00071
00072 class KWWidgets_EXPORT vtkKWInternationalization : public vtkObject
00073 {
00074 public:
00075 static vtkKWInternationalization* New();
00076 vtkTypeRevisionMacro(vtkKWInternationalization,vtkObject);
00077 void PrintSelf(ostream& os, vtkIndent indent);
00078
00079
00080
00081
00082
00083
00084
00085 static void SetCurrentTextDomain(const char *domain_name);
00086 static const char* GetCurrentTextDomain();
00087
00088
00089
00090
00091
00092
00093
00094 static void SetTextDomainBinding(const char *domain_name, const char *dir);
00095 static const char* GetTextDomainBinding(const char *domain_name);
00096
00097
00098
00099
00100
00101
00102
00103 static const char* FindTextDomainBinding(const char *domain_name);
00104 static const char* FindTextDomainBinding(
00105 const char *domain_name, const char *dirs_to_search);
00106
00107 protected:
00108 vtkKWInternationalization() {};
00109 ~vtkKWInternationalization() {};
00110
00111 private:
00112 vtkKWInternationalization(const vtkKWInternationalization&);
00113 void operator=(const vtkKWInternationalization&);
00114 };
00115
00116 #endif