Merge lp:~mandel/ubuntu-sso-client/fix-credentials-text into lp:ubuntu-sso-client

Proposed by Manuel de la Peña on 2012-02-21
Status: Merged
Approved by: Manuel de la Peña on 2012-03-01
Approved revision: 904
Merged at revision: 892
Proposed branch: lp:~mandel/ubuntu-sso-client/fix-credentials-text
Merge into: lp:ubuntu-sso-client
Prerequisite: lp:~mandel/ubuntu-sso-client/ssl-dialog
Diff against target: 53 lines (+6/-8)
2 files modified
ubuntu_sso/qt/proxy_dialog.py (+2/-2)
ubuntu_sso/utils/ui.py (+4/-6)
To merge this branch: bzr merge lp:~mandel/ubuntu-sso-client/fix-credentials-text
Reviewer Review Type Date Requested Status
Roberto Alsina (community) Approve on 2012-03-01
dobey (community) Abstain on 2012-03-01
Natalia Bidart 2012-02-21 Approve on 2012-03-01
Review via email: mp+94016@code.launchpad.net

Commit Message

Ensure that the strings used are the ones provided by design.

Description of the Change

Ensure that the strings used are the ones provided by design.

To post a comment you must log in.
891. By Manuel de la Peña on 2012-02-23

Merged with changes from trunk.

892. By Manuel de la Peña on 2012-02-23

Link bug.

893. By Manuel de la Peña on 2012-02-23

Merged ssl-dialog into fix-credentials-text.

894. By Manuel de la Peña on 2012-02-24

Merged ssl-dialog into fix-credentials-text.

895. By Manuel de la Peña on 2012-02-24

Merged ssl-dialog into fix-credentials-text.

896. By Manuel de la Peña on 2012-02-24

Merged ssl-dialog into fix-credentials-text.

David Planella (dpm) wrote :

Thanks for notifying translators about the UIFe.

Looking at the strings, and for the sake of translator's sanity, I'd recommend being consistent in the use of capitalization. I'm not sure whether we've got our own guidelines for this, and the only public document I found was the GNOME HIG at http://developer.gnome.org/hig-book/3.0/design-text-labels.html.en#layout-capitalization.

From there, these two messages should become:

-PROXY_CREDS_SAVE_BUTTON = _('Save And Connect')
+PROXY_CREDS_SAVE_BUTTON = _('Save and Connect')

-PROXY_CREDS_DIALOG_TITLE = _('Proxy Settings')
+PROXY_CREDS_DIALOG_TITLE = _('Proxy settings')

I'm not meaning to be pedantic, but at least that 'And' hurts my eyes ;). In any case, the real reason is that I've seen many occasions where such strings keep being fixed in subsequent releases, thus loosing existing translations. So I think it's best to get them right the first time and avoid extra work from translators.

Thanks!

dobey (dobey) wrote :

Actually, David, the _DIALOG_TITLE is the correct capitalization, as it
is the window title bar label. You are correct about the and being
lowercased here though in the SAVE_BUTTON text.

On Sat, 2012-02-25 at 08:26 +0000, David Planella wrote:
> Thanks for notifying translators about the UIFe.
>
> Looking at the strings, and for the sake of translator's sanity, I'd recommend being consistent in the use of capitalization. I'm not sure whether we've got our own guidelines for this, and the only public document I found was the GNOME HIG at http://developer.gnome.org/hig-book/3.0/design-text-labels.html.en#layout-capitalization.
>
> >From there, these two messages should become:
>
> -PROXY_CREDS_SAVE_BUTTON = _('Save And Connect')
> +PROXY_CREDS_SAVE_BUTTON = _('Save and Connect')
>
> -PROXY_CREDS_DIALOG_TITLE = _('Proxy Settings')
> +PROXY_CREDS_DIALOG_TITLE = _('Proxy settings')
>
> I'm not meaning to be pedantic, but at least that 'And' hurts my eyes ;). In any case, the real reason is that I've seen many occasions where such strings keep being fixed in subsequent releases, thus loosing existing translations. So I think it's best to get them right the first time and avoid extra work from translators.
>
> Thanks!

897. By Manuel de la Peña on 2012-02-27

Merged ssl-dialog into fix-credentials-text.

898. By Manuel de la Peña on 2012-02-27

Removed duplication and sorted labels.

David Planella (dpm) wrote :

Thanks Rodney for the correction, you're right.

Looking at the latest diff, I can still see 'Save And Connect' in the _SAVE_BUTTON, though.

dobey (dobey) wrote :

Manuel, please fix the "Save And Connect" string to be "Save and Connect" as David suggests.

review: Needs Fixing
899. By Manuel de la Peña on 2012-02-29

Merged ssl-dialog into fix-credentials-text.

900. By Manuel de la Peña on 2012-02-29

Merged ssl-dialog into fix-credentials-text.

901. By Manuel de la Peña on 2012-02-29

Merged ssl-dialog into fix-credentials-text.

902. By Manuel de la Peña on 2012-02-29

Merged ssl-dialog into fix-credentials-text.

903. By Manuel de la Peña on 2012-03-01

Merged ssl-dialog into fix-credentials-text.

Manuel de la Peña (mandel) wrote :

> Manuel, please fix the "Save And Connect" string to be "Save and Connect" as
> David suggests.

Ok, I just followed the comments from design.. Jesus! don't they have the same office ;)

904. By Manuel de la Peña on 2012-03-01

Change string following the comments from the review.

Natalia Bidart (nataliabidart) wrote :

Looks great!

review: Approve
dobey (dobey) wrote :

+PROXY_CREDS_EXPLANATION = _('Please provide login details.')

This should probably say "provide the proxy login deatails" or "provide your login details" instead, no?

dobey (dobey) wrote :

Err, details on that first one, not deatails

Robert Grant (rtgrant) wrote :

I'm fine with the design decision as suggested.

dobey (dobey) :
review: Abstain
Roberto Alsina (ralsina) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntu_sso/qt/proxy_dialog.py'
2--- ubuntu_sso/qt/proxy_dialog.py 2012-02-27 12:48:55 +0000
3+++ ubuntu_sso/qt/proxy_dialog.py 2012-03-01 15:27:19 +0000
4@@ -25,6 +25,7 @@
5 from ubuntu_sso.keyring import Keyring
6 from ubuntu_sso.qt.ui.proxy_credentials_dialog_ui import Ui_ProxyCredsDialog
7 from ubuntu_sso.utils.ui import (
8+ CANCEL_BUTTON,
9 PROXY_CREDS_DIALOG_TITLE,
10 PROXY_CREDS_HEADER,
11 PROXY_CREDS_EXPLANATION,
12@@ -33,7 +34,6 @@
13 PROXY_CREDS_USER_LABEL,
14 PROXY_CREDS_PSWD_LABEL,
15 PROXY_CREDS_HELP_BUTTON,
16- PROXY_CREDS_CANCEL_BUTTON,
17 PROXY_CREDS_SAVE_BUTTON,
18 )
19
20@@ -120,7 +120,7 @@
21 def _set_buttons(self):
22 """Set the labels of the buttons."""
23 self.ui.help_button.setText(PROXY_CREDS_HELP_BUTTON)
24- self.ui.cancel_button.setText(PROXY_CREDS_CANCEL_BUTTON)
25+ self.ui.cancel_button.setText(CANCEL_BUTTON)
26 self.ui.cancel_button.clicked.connect(self._on_cancel_clicked)
27 self.ui.save_button.setText(PROXY_CREDS_SAVE_BUTTON)
28 self.ui.save_button.clicked.connect(self._on_save_clicked)
29
30=== modified file 'ubuntu_sso/utils/ui.py'
31--- ubuntu_sso/utils/ui.py 2012-02-29 14:28:56 +0000
32+++ ubuntu_sso/utils/ui.py 2012-03-01 15:27:19 +0000
33@@ -94,16 +94,14 @@
34 PASSWORD_TOO_WEAK = _('The password is too weak.')
35 PASSWORD_UPPER = _("At least one uppercase letter")
36 PRIVACY_POLICY_TEXT = _("Privacy Policy")
37-PROXY_CREDS_CANCEL_BUTTON = _('Cancel and Close')
38 PROXY_CREDS_CONNECTION = _('Connecting to:')
39-PROXY_CREDS_DIALOG_TITLE = _('Add proxy settings')
40-PROXY_CREDS_EXPLANATION = _('Please provide login details below, '
41- 'or check your system settings.')
42-PROXY_CREDS_ERROR = _('These credentials are incorrect; please try again.')
43+PROXY_CREDS_DIALOG_TITLE = _('Proxy Settings')
44+PROXY_CREDS_ERROR = _('Incorrect login details. Please try again.')
45+PROXY_CREDS_EXPLANATION = _('Please provide login details.')
46 PROXY_CREDS_HEADER = _('You are connecting through a proxy.')
47 PROXY_CREDS_HELP_BUTTON = _('Get Help With Proxies')
48 PROXY_CREDS_PSWD_LABEL = _('Proxy password:')
49-PROXY_CREDS_SAVE_BUTTON = _('Save')
50+PROXY_CREDS_SAVE_BUTTON = _('Save and Connect')
51 PROXY_CREDS_USER_LABEL = _('Proxy username:')
52 RESET_TITLE = _("Reset password")
53 RESET_SUBTITLE = _("A password reset code has been sent to your e-mail."

Subscribers

People subscribed via source and target branches