[gitg] Make Get Patch button translatable
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Make Get Patch button translatable
- Date: Thu, 10 Jul 2014 12:11:40 +0000 (UTC)
commit da4fe47fe8905fcd3e25f4cdb4aa11f8b74defec
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Thu Jul 10 14:11:13 2014 +0200
Make Get Patch button translatable
libgitg/gitg-diff-view.vala | 1 +
libgitg/resources/diff-view.html | 2 +-
libgitg/resources/diff-view.js | 6 +++++-
3 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/libgitg/gitg-diff-view.vala b/libgitg/gitg-diff-view.vala
index 9502104..d5b0e6a 100644
--- a/libgitg/gitg-diff-view.vala
+++ b/libgitg/gitg-diff-view.vala
@@ -199,6 +199,7 @@ namespace Gitg
strings.set_string_member("stage", _("stage"));
strings.set_string_member("unstage", _("unstage"));
strings.set_string_member("loading_diff", _("Loading diff…"));
+ strings.set_string_member("get_patch", _("Get Patch"));
o.set_object_member("strings", strings);
diff --git a/libgitg/resources/diff-view.html b/libgitg/resources/diff-view.html
index 977193b..d816d8a 100644
--- a/libgitg/resources/diff-view.html
+++ b/libgitg/resources/diff-view.html
@@ -33,7 +33,7 @@
<div id="diff_header">
<div class="commit">
<div class="diff_actions">
- <button class="format_patch">Get patch</button>
+ <button data-id="format_patch" class="format_patch">Get Patch</button>
</div>
<img class="avatar" data-id="avatar" src="gitg-diff:/icon/avatar-default-symbolic?size=50"/>
<p>
diff --git a/libgitg/resources/diff-view.js b/libgitg/resources/diff-view.js
index 755e3f5..865e4ac 100644
--- a/libgitg/resources/diff-view.js
+++ b/libgitg/resources/diff-view.js
@@ -24,7 +24,8 @@ var settings = {
strings: {
stage: 'stage',
unstage: 'unstage',
- loading_diff: 'Loading diff...'
+ loading_diff: 'Loading diff...',
+ get_patch: 'Get Patch'
},
};
@@ -122,6 +123,9 @@ function write_commit(content, commit)
// Sha1
elems.sha1.text(commit.id);
+ // Get patch string
+ elems.format_patch.text(settings.strings.get_patch);
+
write_avatar(elems.avatar, commit);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]