libzypp  10.5.0
Gettext.h
Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00014 #ifndef ZYPP_BASE_GETTEXT_H
00015 #define ZYPP_BASE_GETTEXT_H
00016 
00018 #define N_(MSG) MSG
00019 
00021 #define _(MSG) ::zypp::gettext::dgettext( MSG )
00022 
00024 #define _PL(MSG1,MSG2,N) ::zypp::gettext::dngettext( MSG1, MSG2, N )
00025 
00027 namespace zypp
00028 { 
00029 
00030   namespace gettext
00031   { 
00032 
00034     const char * dgettext( const char * msgid );
00035 
00037     const char * dngettext( const char * msgid1, const char * msgid2,
00038                             unsigned long n );
00039 
00041   } // namespace gettext
00044 } // namespace zypp
00046 #endif // ZYPP_BASE_GETTEXT_H