[anjuta] git: bgo#627105 - Mark default diff filenames for translation
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] git: bgo#627105 - Mark default diff filenames for translation
- Date: Thu, 4 Nov 2010 16:24:21 +0000 (UTC)
commit f85e740e56bed22f524e30b966d2cfaf848fc4c7
Author: Gabor Kelemen <kelemeng gnome org>
Date: Thu Nov 4 10:34:35 2010 +0100
git: bgo#627105 - Mark default diff filenames for translation
plugins/git/git-diff-dialog.c | 7 ++++---
po/POTFILES.in | 1 +
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/plugins/git/git-diff-dialog.c b/plugins/git/git-diff-dialog.c
index 641ff14..15ce644 100644
--- a/plugins/git/git-diff-dialog.c
+++ b/plugins/git/git-diff-dialog.c
@@ -38,8 +38,8 @@ git_diff (Git *plugin)
document_manager = anjuta_shell_get_interface (ANJUTA_PLUGIN (plugin)->shell,
IAnjutaDocumentManager,
NULL);
- editor = ianjuta_document_manager_add_buffer (document_manager,
- "Uncommitted Changes.diff",
+ editor = ianjuta_document_manager_add_buffer (document_manager, /* Translators: default file name for git diff's output */
+ _("Uncommitted Changes.diff"),
"", NULL);
diff_command = git_diff_command_new (plugin->project_root_directory);
@@ -73,7 +73,8 @@ git_commit_diff (Git *plugin)
{
sha = git_revision_get_sha (revision);
short_sha = git_revision_get_short_sha (revision);
- editor_name = g_strdup_printf ("Commit %s.diff", short_sha);
+ /* Translators: file name for an existing commits diff, %s is an SHASUM of a commit */
+ editor_name = g_strdup_printf (_("Commit %s.diff"), short_sha);
document_manager = anjuta_shell_get_interface (ANJUTA_PLUGIN (plugin)->shell,
IAnjutaDocumentManager,
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 82ea7f8..197cbe2 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -121,6 +121,7 @@ plugins/git/git-create-branch-dialog.c
plugins/git/git-create-tag-dialog.c
plugins/git/git-delete-branch-dialog.c
plugins/git/git-delete-tag-dialog.c
+plugins/git/git-diff-dialog.c
plugins/git/git-fetch-dialog.c
plugins/git/git-log-dialog.c
plugins/git/git-merge-dialog.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]