From: cedric Date: Sun, 20 Nov 2011 13:58:35 +0000 (+0000) Subject: elementary: fix build of elementary without internationalization. X-Git-Tag: REL_F_I9500_20120323_1~17^2~1315 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a093f166fda262d9389e4e22b7be8a6f7379c6e;p=framework%2Fuifw%2Felementary.git 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 --- 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);