[anjuta: 43/46] Mark default diff filenames for translation.
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta: 43/46] Mark default diff filenames for translation.
- Date: Sat, 5 Mar 2011 09:27:55 +0000 (UTC)
commit c3a622b3ae03d80d80bfb6835288336a82aeb5e5
Author: Gabor Kelemen <kelemeng gnome hu>
Date: Fri Mar 4 00:08:00 2011 +0100
Mark default diff filenames for translation.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=627105
plugins/git/git-diff-pane.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/plugins/git/git-diff-pane.c b/plugins/git/git-diff-pane.c
index dfb3d30..54c3426 100644
--- a/plugins/git/git-diff-pane.c
+++ b/plugins/git/git-diff-pane.c
@@ -29,8 +29,8 @@ on_diff_button_clicked (GtkAction *action, 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);
@@ -67,7 +67,8 @@ on_commit_diff_button_clicked (GtkAction *action, 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,
@@ -102,4 +103,4 @@ on_commit_diff_button_clicked (GtkAction *action, Git *plugin)
else
anjuta_util_dialog_error (NULL, _("No revision selected"));
}
-
\ No newline at end of file
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]