diff options
author | Boris Faure <billiob@gmail.com> | 2015-02-03 20:26:25 +0100 |
---|---|---|
committer | Boris Faure <billiob@gmail.com> | 2015-02-03 20:26:25 +0100 |
commit | c6b5093af5df090d1c8d591e7df5182264af1a55 (patch) | |
tree | 173a01b5ea6fc89ec870ac5cfce37f1d67bfd7b0 /src | |
parent | 6268dc32e49a599ebd000d7300715c0d832c0734 (diff) |
fix compilation when gettext is not found. Closes T2083
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/options_colors.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/bin/options_colors.c b/src/bin/options_colors.c index d8030f6..0581408 100644 --- a/src/bin/options_colors.c +++ b/src/bin/options_colors.c | |||
@@ -61,7 +61,13 @@ _cb_op_color_item_sel(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void | |||
61 | for (i = 0; i < 11; i++) | 61 | for (i = 0; i < 11; i++) |
62 | { | 62 | { |
63 | if (colitem[j][i] == it) | 63 | if (colitem[j][i] == it) |
64 | elm_object_text_set(label, gettext(mapping_names[i])); | 64 | elm_object_text_set(label, |
65 | #if HAVE_GETTEXT && ENABLE_NLS | ||
66 | gettext(mapping_names[i]) | ||
67 | #else | ||
68 | mapping_names[i] | ||
69 | #endif | ||
70 | ); | ||
65 | } | 71 | } |
66 | } | 72 | } |
67 | } | 73 | } |
@@ -234,7 +240,13 @@ options_colors(Evas_Object *opbox, Evas_Object *term) | |||
234 | evas_object_show(o); | 240 | evas_object_show(o); |
235 | 241 | ||
236 | label = o = elm_label_add(opbox); | 242 | label = o = elm_label_add(opbox); |
237 | elm_object_text_set(o, gettext(mapping_names[0])); | 243 | elm_object_text_set(o, |
244 | #if HAVE_GETTEXT && ENABLE_NLS | ||
245 | gettext(mapping_names[0]) | ||
246 | #else | ||
247 | mapping_names[0] | ||
248 | #endif | ||
249 | ); | ||
238 | evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0); | 250 | evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0); |
239 | evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5); | 251 | evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5); |
240 | elm_box_pack_end(bx2, o); | 252 | elm_box_pack_end(bx2, o); |