From 4a093f166fda262d9389e4e22b7be8a6f7379c6e Mon Sep 17 00:00:00 2001 From: cedric Date: Sun, 20 Nov 2011 13:58:35 +0000 Subject: [PATCH] elementary: fix build of elementary without internationalization. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@65435 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_priv.h | 3 ++- src/lib/elm_widget.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_priv.h b/src/lib/elm_priv.h index efcc317..4372267 100644 --- a/src/lib/elm_priv.h +++ b/src/lib/elm_priv.h @@ -266,6 +266,7 @@ extern int _elm_log_dom; extern Eina_List *_elm_win_list; extern int _elm_win_deferred_free; +#ifdef ENABLE_NLS /* Our gettext wrapper, used to disable translation of elm if the app * is not translated. */ static inline const char * @@ -278,7 +279,7 @@ _elm_dgettext(const char *string) return dgettext(PACKAGE, string); } - +#endif /* Used by the paste handler */ void _elm_entry_entry_paste(Evas_Object *obj, const char *entry); diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c index ad37dfc..537bc69 100644 --- a/src/lib/elm_widget.c +++ b/src/lib/elm_widget.c @@ -2389,7 +2389,9 @@ elm_widget_translate(Evas_Object *obj) { const Eina_List *l; Evas_Object *child; +#ifdef HAVE_GETTEXT Elm_Translate_String_Data *ts; +#endif API_ENTRY return; EINA_LIST_FOREACH(sd->subobjs, l, child) elm_widget_translate(child); -- 2.7.4