Imported Upstream version 14.45.0
[platform/upstream/libzypp.git] / zypp / base / Gettext.h
index 3062ff4..7d0f507 100644 (file)
 /** Just tag text for translation. */
 #define N_(MSG) MSG
 
+#ifdef ZYPP_DLL //defined if zypp is compiled as DLL
+
 /** Return translated text. */
 #define _(MSG) ::zypp::gettext::dgettext( MSG )
 
 /** Return translated text (plural form). */
-#define _PL(MSG1,MSG2,N) ::zypp::gettext::dngettext( MSG1; MSG2, N )
+#define _PL(MSG1,MSG2,N) ::zypp::gettext::dngettext( MSG1, MSG2, N )
+
+#else
+#define _(MSG) ::gettext( MSG )
+#define _PL(MSG1,MSG2,N) ::ngettext( MSG1, MSG2, N )
+#endif
 
 ///////////////////////////////////////////////////////////////////
 namespace zypp