Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Thu, 25 Jun 2015 19:36:28 UTC Commit: 93ab646b8ddc8fa45d1d8ec471d940d6bd33c5ac https://github.com/geany/geany-plugins/commit/93ab646b8ddc8fa45d1d8ec471d940...
Log Message: ----------- multiterm: Mark strings as translatable
Modified Paths: -------------- multiterm/src/Makefile.am multiterm/src/config.vala multiterm/src/context-menu.vala multiterm/src/notebook.vala multiterm/src/plugin.vala multiterm/src/shell-config.vala multiterm/src/tab-label.vala multiterm/src/terminal.vala po/POTFILES.in
Modified: multiterm/src/Makefile.am 1 lines changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -24,6 +24,7 @@ multiterm_la_SOURCES = \ terminal.vala
multiterm_la_CFLAGS = \ + -DGETTEXT_PACKAGE='"$(GETTEXT_PACKAGE)"' \ $(AM_CFLAGS) \ $(MULTITERM_CFLAGS)
Modified: multiterm/src/config.vala 6 lines changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -44,7 +44,7 @@ namespace MultiTerm } catch (FileError err) { - warning("Unable to save config file %s: %s", _filename, err.message); + warning(_("Unable to save config file %s: %s"), _filename, err.message); return true; } } @@ -82,11 +82,11 @@ namespace MultiTerm } catch (KeyFileError err) { - warning("Unable to load config file %s: %s", _filename, err.message); + warning(_("Unable to load config file %s: %s"), _filename, err.message); } catch (FileError err) { - warning("Unable to load config file %s: %s", _filename, err.message); + warning(_("Unable to load config file %s: %s"), _filename, err.message); } }
Modified: multiterm/src/context-menu.vala 18 lines changed, 9 insertions(+), 9 deletions(-) =================================================================== @@ -49,13 +49,13 @@ namespace MultiTerm { if (item.get_data<bool>("location_is_msgwin")) { - item.set_label("Move to message window"); + item.set_label(_("Move to message window")); item.set_data<bool>("location_is_msgwin", false); move_to_location_activate("sidebar"); } else { - item.set_label("Move to sidebar"); + item.set_label(_("Move to sidebar")); item.set_data<bool>("location_is_msgwin", true); move_to_location_activate("msgwin"); } @@ -78,7 +78,7 @@ namespace MultiTerm menu = new Gtk.Menu(); menu.show();
- item = new Gtk.MenuItem.with_label("Open Tab"); + item = new Gtk.MenuItem.with_label(_("Open Tab")); item.set_submenu(menu); item.show(); this.append(item); @@ -93,19 +93,19 @@ namespace MultiTerm item.show(); }
- item = new Gtk.MenuItem.with_label("Open Window"); + item = new Gtk.MenuItem.with_label(_("Open Window")); item.activate.connect(() => new_window_activate()); this.append(item); item.show();
add_separator();
- item = new Gtk.MenuItem.with_label("Next tab"); + item = new Gtk.MenuItem.with_label(_("Next tab")); item.activate.connect(() => on_next_previous_tab_activate(item, true)); //this.append(item); //item.show();
- item = new Gtk.MenuItem.with_label("Previous tab"); + item = new Gtk.MenuItem.with_label(_("Previous tab")); item.activate.connect(() => on_next_previous_tab_activate(item, false)); //this.append(item); //item.show(); @@ -124,7 +124,7 @@ namespace MultiTerm
//add_separator();
- check_item = new CheckMenuItem.with_label("Show Tabs"); + check_item = new CheckMenuItem.with_label(_("Show Tabs")); check_item.active = cfg.show_tabs; check_item.activate.connect(() => on_show_tabs_activate(check_item)); this.append(check_item); @@ -132,12 +132,12 @@ namespace MultiTerm
if (cfg.location == "msgwin") { - item = new Gtk.MenuItem.with_label("Move to sidebar"); + item = new Gtk.MenuItem.with_label(_("Move to sidebar")); item.set_data<bool>("location_is_msgwin", true); } else { - item = new Gtk.MenuItem.with_label("Move to message window"); + item = new Gtk.MenuItem.with_label(_("Move to message window")); item.set_data<bool>("location_is_msgwin", false); } item.activate.connect(() => on_move_to_location(item));
Modified: multiterm/src/notebook.vala 6 lines changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -88,7 +88,7 @@ namespace MultiTerm } catch (SpawnError err) { - warning("Unable to launch external terminal: %s".printf(err.message)); + warning(_("Unable to launch external terminal: %s").printf(err.message)); } }
@@ -134,7 +134,7 @@ namespace MultiTerm return; } } - warning("Unable to locate default shell in configuration file"); + warning(_("Unable to locate default shell in configuration file")); }
private bool on_terminal_right_click_event(EventButton event) @@ -199,7 +199,7 @@ namespace MultiTerm add_button.relief = ReliefStyle.NONE; add_button.focus_on_click = false; add_button.set_border_width(2); - add_button.set_tooltip_text("New terminal"); + add_button.set_tooltip_text(_("New terminal")); add_button.add(img); add_button.clicked.connect(on_add_button_clicked); add_button.show_all();
Modified: multiterm/src/plugin.vala 8 lines changed, 4 insertions(+), 4 deletions(-) =================================================================== @@ -39,8 +39,8 @@ public int plugin_version_check(int abi_version) /* Geany calls this to get some info about the plugin */ public void plugin_set_info(Plugin.Info info) { - info.set("MultiTerm", - "Multi-tabbed virtual terminal emulator.", + info.set(_("MultiTerm"), + _("Multi-tabbed virtual terminal emulator."), "0.1", "Matthew Brush matt@geany.org"); }
@@ -71,7 +71,7 @@ public void plugin_init(Geany.Data data) } catch (FileError err) { - warning("Unable to write default config file: %s", err.message); + warning(_("Unable to write default config file: %s"), err.message); }
/* Setup the widgets */ @@ -81,7 +81,7 @@ public void plugin_init(Geany.Data data) align.show_all(); toplevel_widgets.append(align);
- label = new Label("MultiTerm"); + label = new Label(_("MultiTerm")); notebook.set_data<Label>("label", label); notebook.set_data<Gtk.Notebook>("msgwin_notebook", data.main_widgets.message_window_notebook); notebook.set_data<Gtk.Notebook>("sidebar_notebook", data.main_widgets.sidebar_notebook);
Modified: multiterm/src/shell-config.vala 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -27,7 +27,7 @@ namespace MultiTerm { public Config _cfg; string _section; - const string warning_tmpl = "Unable to read value for '%s' key: %s"; + const string warning_tmpl = _("Unable to read value for '%s' key: %s");
internal Config cfg { get { return _cfg; } } internal KeyFile kf { get { return cfg.kf; } }
Modified: multiterm/src/tab-label.vala 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -59,7 +59,7 @@ namespace MultiTerm btn.set_size_request(w+2, h+2); } - public TabLabel(string text="Terminal") + public TabLabel(string text=_("Terminal")) { Image img; @@ -81,7 +81,7 @@ namespace MultiTerm btn = new Button(); btn.modify_style(style); btn.add(img); - btn.set_tooltip_text("Close terminal"); + btn.set_tooltip_text(_("Close terminal")); btn.clicked.connect(on_button_clicked); btn.relief = ReliefStyle.NONE; btn.focus_on_click = false;
Modified: multiterm/src/terminal.vala 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -85,7 +85,7 @@ namespace MultiTerm } catch (Error err) { - warning("Unable to run command: %s", err.message); + warning(_("Unable to run command: %s"), err.message); } }
Modified: po/POTFILES.in 9 lines changed, 9 insertions(+), 0 deletions(-) =================================================================== @@ -224,6 +224,15 @@ git-changebar/src/gcb-plugin.c markdown/src/conf.c markdown/src/plugin.c
+# Multiterm +multiterm/src/config.vala +multiterm/src/context-menu.vala +multiterm/src/notebook.vala +multiterm/src/plugin.vala +multiterm/src/shell-config.vala +multiterm/src/tab-label.vala +multiterm/src/terminal.vala + # Overview overview/overview/overviewcolor.c overview/overview/overviewplugin.c
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).