forked from enlightenment/enlightenment
Create a define which can be used to wrap internal E stuff. This works as
the define is created in config.h which isn't exported. This will break modules which still uses _() to wrap NLS strings. It is an error that they use it as modules strings wont be defined in E's domain. Modules should use D_() and define it to lock up strings in their own domain. SVN revision: 33426
This commit is contained in:
parent
fd0f6ce1b9
commit
3330befa8a
|
@ -232,6 +232,8 @@ AC_ARG_WITH(edje-cc,
|
|||
])
|
||||
AC_SUBST(edje_cc)
|
||||
|
||||
AC_DEFINE(E_INTERNAL, 1, "This define can be used to wrap internal E stuff, as config.h isn't exported")
|
||||
|
||||
|
||||
AC_OUTPUT([
|
||||
Makefile
|
||||
|
|
|
@ -3,8 +3,10 @@
|
|||
*/
|
||||
#ifdef E_TYPEDEFS
|
||||
|
||||
#if E_INTERNAL
|
||||
#define _(str) gettext(str)
|
||||
#define d_(str, dom) dgettext(PACKAGE dom, str)
|
||||
#endif
|
||||
|
||||
/* This macro is used to just mark string for translation, this is useful
|
||||
* for string lists which are not dynamically allocated
|
||||
|
|
Loading…
Reference in New Issue