elementary: fix build of elementary without internationalization.
authorCedric BAIL <cedric.bail@free.fr>
Sun, 20 Nov 2011 13:58:35 +0000 (13:58 +0000)
committerCedric BAIL <cedric.bail@free.fr>
Sun, 20 Nov 2011 13:58:35 +0000 (13:58 +0000)
SVN revision: 65435

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

index efcc3179daa12088af8d00048486b29d04c3fea3..43722670eac49c1ac7b30d876f557a7afa67bdd3 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 ad37dfc42e4f7d951d4aadc2c985a9a170789200..537bc699ca0c410512ee7b5bae6f8da9b9b27546 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);