~thopiekar/zypper/libzypp-manual-import

« back to all changes in this revision

Viewing changes to zypp/base/Gettext.h

  • Committer: Thomas-Karl Pietrowski
  • Date: 2015-08-15 15:59:50 UTC
  • Revision ID: thopiekar@googlemail.com-20150815155950-j66qn38efmvn289t
syncing with "changes 15.13.0 (11)"  #9a0aca7e3a21d768491b141a8ae86ef0c3fbc227
* https://github.com/openSUSE/libzypp/commit/9a0aca7e3a21d768491b141a8ae86ef0c3fbc227

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
/** Just tag text for translation. */
18
18
#define N_(MSG) MSG
19
19
 
 
20
#ifdef ZYPP_DLL //defined if zypp is compiled as DLL
 
21
 
20
22
/** Return translated text. */
21
23
#define _(MSG) ::zypp::gettext::dgettext( MSG )
22
24
 
23
25
/** Return translated text (plural form). */
24
26
#define _PL(MSG1,MSG2,N) ::zypp::gettext::dngettext( MSG1, MSG2, N )
25
27
 
 
28
#else
 
29
#define _(MSG) ::gettext( MSG )
 
30
#define _PL(MSG1,MSG2,N) ::ngettext( MSG1, MSG2, N )
 
31
#endif
 
32
 
26
33
///////////////////////////////////////////////////////////////////
27
34
namespace zypp
28
35
{ /////////////////////////////////////////////////////////////////