https://svn.suse.de/svn/zypp/branches/SuSE-Linux-10_2-Branch/zypper
........
r4932 | jkupec | 2007-01-29 19:25:32 +0100 (Mon, 29 Jan 2007) | 1 line
locale support added
........
-------------------------------------------------------------------
+Wed Jan 31 16:19:38 CET 2007 - jkupec@suse.cz
+
+- locale support added (merged from 10.2/SP1 branch)
+- r4941
+
+-------------------------------------------------------------------
Fri Jan 12 15:03:55 CET 2007 - jkupec@suse.cz
- Texts corrected based on feedback from proof-reading.
#define cerr_vv COND_STREAM(cerr,2)
#define cout_vv COND_STREAM(cout,2)
+// undefine _ macro from libzypp
+#ifdef _
+#undef _
#endif
+// define new _ macro
+#define _(MSG) ::gettext(MSG)
+
+#endif
}
} say_goodbye __attribute__ ((__unused__));
+ // set locale
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
// logging
const char *logfile = getenv("ZYPP_LOGFILE");
if (logfile == NULL)