Menu translation support

When generating menus, lookup translations for menu entries in
specified textdomain.  Often used by linux distributions.

Original-patch-by: Alexey Voinov <voins@altlinux.ru>
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
This commit is contained in:
Alexey I. Froloff
2010-09-11 15:28:01 +02:00
committed by Carlos R. Mafra
parent e9d42e5121
commit ca1c29cd98
4 changed files with 35 additions and 14 deletions
+6
View File
@@ -413,9 +413,15 @@
* the string up for translation
*/
#define N_(text) (text)
#if defined(MENU_TEXTDOMAIN)
#define M_(text) dgettext(MENU_TEXTDOMAIN, text)
#else
#define M_(text) (text)
#endif
#else
#define _(text) (text)
#define N_(text) (text)
#define M_(text) (text)
#endif
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)