00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef YQi18n_h
00023 #define YQi18n_h
00024
00025 #include <libintl.h>
00026 #include <qstring.h>
00027
00028
00029 inline QString _( const char * msgid )
00030 {
00031 return QString::fromUtf8( gettext(msgid ) );
00032 }
00033
00034 inline QString _( const char * msgid1, const char * msgid2, unsigned long int n )
00035 {
00036 return QString::fromUtf8( ngettext(msgid1, msgid2, n ) );
00037 }
00038
00039
00040 #endif // YQLabel_h