Code freeze break request for gnome-shell



Hi.

Found some strings that weren't marked for translation in the correct
way in gnome-shell.

Patch attached...ok to commit?

Cheers
Kjartan
>From 509bc59467900eaf2b13d3d1e87c9e9b1687fe4c Mon Sep 17 00:00:00 2001
From: Kjartan Maraas <kmaraas gnome org>
Date: Wed, 23 Mar 2011 21:49:24 +0100
Subject: [PATCH 1/1] Mark strings for translation in the right way

---
 js/ui/polkitAuthenticationAgent.js |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/js/ui/polkitAuthenticationAgent.js b/js/ui/polkitAuthenticationAgent.js
index 22535b7..9c682cf 100644
--- a/js/ui/polkitAuthenticationAgent.js
+++ b/js/ui/polkitAuthenticationAgent.js
@@ -71,7 +71,7 @@ AuthenticationDialog.prototype = {
                            { y_align: St.Align.START });
 
         this._subjectLabel = new St.Label({ style_class: 'polkit-dialog-headline',
-                                            text: _('Authentication Required') });
+                                            text: _("Authentication Required") });
 
         messageBox.add(this._subjectLabel,
                        { y_fill:  false,
@@ -105,7 +105,7 @@ AuthenticationDialog.prototype = {
         let userIsRoot = false;
         if (userName == 'root') {
             userIsRoot = true;
-            userRealName = _('Administrator');
+            userRealName = _("Administrator");
         }
 
         if (userIsRoot) {
@@ -139,7 +139,7 @@ AuthenticationDialog.prototype = {
         this._passwordLabel = new St.Label(({ style_class: 'polkit-dialog-password-label' }));
         this._passwordBox.add(this._passwordLabel);
         this._passwordEntry = new St.Entry({ style_class: 'polkit-dialog-password-entry',
-                                             text: _(''),
+                                             text: _(""),
                                              can_focus: true});
         this._passwordEntry.clutter_text.connect('activate', Lang.bind(this, this._onEntryActivate));
         this._passwordBox.add(this._passwordEntry,
@@ -169,11 +169,11 @@ AuthenticationDialog.prototype = {
         messageBox.add(this._nullMessageLabel);
         this._nullMessageLabel.show();
 
-        this.setButtons([{ label: _('Cancel'),
+        this.setButtons([{ label: _("Cancel"),
                            action: Lang.bind(this, this.cancel),
                            key:    Clutter.Escape
                          },
-                         { label:  _('Authenticate'),
+                         { label:  _("Authenticate"),
                            action: Lang.bind(this, this._onAuthenticateButtonPressed)
                          }]);
 
@@ -257,7 +257,7 @@ AuthenticationDialog.prototype = {
              * show "Sorry, that didn't work. Please try again."
              */
             if (!this._errorMessageLabel.visible && !this._wasDismissed) {
-                this._errorMessageLabel.set_text(_('Sorry, that didn\'t work. Please try again.'));
+                this._errorMessageLabel.set_text(_("Sorry, that didn\'t work. Please try again."));
                 this._errorMessageLabel.show();
                 this._infoMessageLabel.hide();
                 this._nullMessageLabel.hide();
@@ -269,7 +269,7 @@ AuthenticationDialog.prototype = {
     _onSessionRequest: function(session, request, echo_on) {
         // Cheap localization trick
         if (request == 'Password:')
-            this._passwordLabel.set_text(_('Password:'));
+            this._passwordLabel.set_text(_("Password:"));
         else
             this._passwordLabel.set_text(request);
 
-- 
1.7.4.1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]