mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-27 20:09:23 +00:00
Marked translatable strings in dash plugin
This commit is contained in:
parent
349521d2d5
commit
c0ca6cca32
|
@ -21,6 +21,9 @@ namespace GitgDash
|
|||
{
|
||||
private class Navigation : Object, GitgExt.Navigation
|
||||
{
|
||||
// Do this to pull in config.h before glib.h (for gettext...)
|
||||
private const string version = Gitg.Config.VERSION;
|
||||
|
||||
public GitgExt.Application? application { owned get; construct set; }
|
||||
|
||||
public signal void show_open();
|
||||
|
@ -35,12 +38,12 @@ namespace GitgDash
|
|||
|
||||
public void populate(GitgExt.NavigationTreeModel model)
|
||||
{
|
||||
model.begin_header("Repository", null)
|
||||
.append_default("Open", "document-open-symbolic", (c) => { show_open(); })
|
||||
.append("Create", "list-add-symbolic", (c) => { show_create(); })
|
||||
model.begin_header(_("Repository"), null)
|
||||
.append_default(_("Open"), "document-open-symbolic", (c) => { show_open(); })
|
||||
.append(_("Create"), "list-add-symbolic", (c) => { show_create(); })
|
||||
.end_header();
|
||||
|
||||
model.begin_header("Recent", null);
|
||||
model.begin_header(_("Recent"), null);
|
||||
|
||||
var manager = Gtk.RecentManager.get_default();
|
||||
var list = new List<Gtk.RecentInfo>();
|
||||
|
|
|
@ -19,11 +19,11 @@
|
|||
|
||||
namespace GitgDash
|
||||
{
|
||||
// Do this to pull in config.h before glib.h (for gettext...)
|
||||
private const string version = Gitg.Config.VERSION;
|
||||
|
||||
public class View : Object
|
||||
{
|
||||
// Do this to pull in config.h before glib.h (for gettext...)
|
||||
private const string version = Gitg.Config.VERSION;
|
||||
|
||||
public GitgExt.Application? application { owned get; construct set; }
|
||||
private Gtk.Notebook d_main;
|
||||
|
||||
|
@ -66,7 +66,7 @@ namespace GitgDash
|
|||
|
||||
public string display_name
|
||||
{
|
||||
owned get { return "Dashboard"; }
|
||||
owned get { return _("Dashboard"); }
|
||||
}
|
||||
|
||||
public Icon? icon
|
||||
|
@ -300,7 +300,7 @@ namespace GitgDash
|
|||
[ModuleInit]
|
||||
public void peas_register_types(TypeModule module)
|
||||
{
|
||||
Peas.ObjectModule mod = module as Peas.ObjectModule;
|
||||
//Peas.ObjectModule mod = module as Peas.ObjectModule;
|
||||
|
||||
//mod.register_extension_type(typeof(GitgExt.View),
|
||||
// typeof(GitgDash.View));
|
||||
|
|
Loading…
Reference in a new issue