gettextify in about.c,app_server.c,controls.c

This commit is contained in:
Boris Faure 2014-07-17 13:18:57 +02:00
parent a90d97ca7f
commit b98f6107c3
3 changed files with 22 additions and 21 deletions

View File

@ -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>"

View File

@ -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));

View File

@ -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);