billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=b98f6107c30c889c5bdd0563252983e00b1d926b

commit b98f6107c30c889c5bdd0563252983e00b1d926b
Author: Boris Faure <bill...@gmail.com>
Date:   Thu Jul 17 13:18:57 2014 +0200

    gettextify in about.c,app_server.c,controls.c
---
 src/bin/about.c      |  1 +
 src/bin/app_server.c |  4 ++--
 src/bin/controls.c   | 38 +++++++++++++++++++-------------------
 3 files changed, 22 insertions(+), 21 deletions(-)

diff --git a/src/bin/about.c b/src/bin/about.c
index 93f5b38..03a381a 100644
--- a/src/bin/about.c
+++ b/src/bin/about.c
@@ -50,6 +50,7 @@ about_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object 
*term,
                       elm_app_data_dir_get());
              elm_layout_file_set(o, buf, "terminology/about");
           }
+        /* TODO i18n */
         elm_object_part_text_set
           (o, "terminology.text",
               "<b>Terminology "PACKAGE_VERSION"</b><br>"
diff --git a/src/bin/app_server.c b/src/bin/app_server.c
index ec9056f..32a7855 100644
--- a/src/bin/app_server.c
+++ b/src/bin/app_server.c
@@ -341,8 +341,8 @@ _app_server_create_view_cb(Elm_App_Server *server, const 
Eina_Value *args EINA_U
    eo_do(server, wins = eo_key_data_get("wins"));
    if (!wins || !(wn = eina_list_data_get(*wins)))
      {
-        ERR("There is no window open");
-        *error_name = eina_stringshare_add("There is no window open");
+        *error_name = eina_stringshare_add(_("There is no window open"));
+        ERR("%s", *error_name);
         return NULL;
      }
    term = eina_list_data_get(main_win_terms_get(wn));
diff --git a/src/bin/controls.c b/src/bin/controls.c
index ba51792..7967ef4 100644
--- a/src/bin/controls.c
+++ b/src/bin/controls.c
@@ -238,7 +238,7 @@ controls_toggle(Evas_Object *win, Evas_Object *bg, 
Evas_Object *term,
         ct_frame = o = elm_frame_add(win);
         evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 
EVAS_HINT_EXPAND);
         evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
-        elm_object_text_set(o, "Controls");
+        elm_object_text_set(o, _("Controls"));
 
         ct_boxh = o = elm_box_add(win);
         elm_box_horizontal_set(o, EINA_TRUE);
@@ -248,48 +248,48 @@ controls_toggle(Evas_Object *win, Evas_Object *bg, 
Evas_Object *term,
         ct_box2 = o = elm_box_add(win);
         elm_box_pack_end(ct_boxh, o);
         evas_object_show(o);
-        
-        o = _button_add(win, "New", "new", _cb_ct_new, NULL);
+
+        o = _button_add(win, _("New"), "new", _cb_ct_new, NULL);
         elm_box_pack_end(ct_box2, o);
 
         o = _sep_add_h(win);
         elm_box_pack_end(ct_box2, o);
-        
-        o = _button_add(win, "Split V", "split-h", _cb_ct_split_v, NULL);
+
+        o = _button_add(win, _("Split V"), "split-h", _cb_ct_split_v, NULL);
         elm_box_pack_end(ct_box2, o);
-        o = _button_add(win, "Split H", "split-v", _cb_ct_split_h, NULL);
+        o = _button_add(win, _("Split H"), "split-v", _cb_ct_split_h, NULL);
         elm_box_pack_end(ct_box2, o);
-        
+
         o = _sep_add_h(win);
         elm_box_pack_end(ct_box2, o);
-        
-        o = _button_add(win, "Close", "close", _cb_ct_close, NULL);
+
+        o = _button_add(win, _("Close"), "close", _cb_ct_close, NULL);
         elm_box_pack_end(ct_box2, o);
-        
+
         o = _sep_add_v(win);
         elm_box_pack_end(ct_boxh, o);
-        
+
         ct_box = o = elm_box_add(win);
         elm_box_pack_end(ct_boxh, o);
         evas_object_show(o);
-        
-        o = _button_add(win, "Copy", "copy", _cb_ct_copy, NULL);
+
+        o = _button_add(win, _("Copy"), "copy", _cb_ct_copy, NULL);
         evas_object_data_set(ct_frame, "bt_copy", o);
         if (!termio_selection_exists(term))
           elm_object_disabled_set(o, EINA_TRUE);
         elm_box_pack_end(ct_box, o);
-        o = _button_add(win, "Paste", "paste", _cb_ct_paste, NULL);
+        o = _button_add(win, _("Paste"), "paste", _cb_ct_paste, NULL);
         elm_box_pack_end(ct_box, o);
-        
+
         o = _sep_add_h(win);
         elm_box_pack_end(ct_box, o);
-        
-        o = _button_add(win, "Settings", "settings", _cb_ct_options, NULL);
+
+        o = _button_add(win, _("Settings"), "settings", _cb_ct_options, NULL);
         elm_box_pack_end(ct_box, o);
-        
+
         o = _sep_add_h(win);
         elm_box_pack_end(ct_box, o);
-        
+
         o = _button_add(win, _("About"), "about", _cb_ct_about, NULL);
         elm_box_pack_end(ct_box, o);
 

-- 


Reply via email to