elementary: fix build of elementary without internationalization.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 20 Nov 2011 13:58:35 +0000 (13:58 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 20 Nov 2011 13:58:35 +0000 (13:58 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@65435 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_priv.h
src/lib/elm_widget.c

index efcc317..4372267 100644 (file)
@@ -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);
index ad37dfc..537bc69 100644 (file)
@@ -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);