[geany/geany] bb61df: Add a translation context to the open dialog's "View" button

Colomban Wendling git-noreply at xxxxx
Tue Apr 15 13:58:04 UTC 2014


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Tue, 15 Apr 2014 13:58:04 UTC
Commit:      bb61dfcdc3eef225f7eb61c6c48651b300eb7bbe
             https://github.com/geany/geany/commit/bb61dfcdc3eef225f7eb61c6c48651b300eb7bbe

Log Message:
-----------
Add a translation context to the open dialog's "View" button

The "View" button string is the same as the View menu one, but one is
an action (verb) and the other a noun, and as such might need to be
translated differently.


Modified Paths:
--------------
    src/dialogs.c

Modified: src/dialogs.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -365,7 +365,7 @@ static GtkWidget *create_open_file_dialog(void)
 			GTK_FILE_CHOOSER_ACTION_OPEN, NULL, NULL);
 	gtk_widget_set_name(dialog, "GeanyDialog");
 
-	viewbtn = gtk_dialog_add_button(GTK_DIALOG(dialog), _("_View"), GEANY_RESPONSE_VIEW);
+	viewbtn = gtk_dialog_add_button(GTK_DIALOG(dialog), C_("Open dialog action", "_View"), GEANY_RESPONSE_VIEW);
 	gtk_widget_set_tooltip_text(viewbtn,
 		_("Opens the file in read-only mode. If you choose more than one file to open, all files will be opened read-only."));
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list