Closed
Bug 989133
Opened 11 years ago
Closed 11 years ago
Add a soft hyphen to the character encoding label for en-US to avoid auto-hyphenation
Categories
(Firefox :: Toolbars and Customization, defect)
Firefox
Toolbars and Customization
Tracking
()
RESOLVED
FIXED
Firefox 31
People
(Reporter: jaws, Assigned: jaws)
References
Details
(Whiteboard: [Australis:P3+])
Attachments
(1 file)
1.68 KB,
patch
|
MattN
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Now that bug 962884 has landed, we can update some of the text in the en-US locale to use ­ hyphens. This will help buttons like "Character Encoding" from being displayed as "Character En-\r\n coding".
The meaning and semantics of the strings are not changing, so I'm not planning on changing any of the entity names. This should also be upliftable.
Assignee | ||
Updated•11 years ago
|
Blocks: australis-cust, australis-merge
Whiteboard: [Australis:P3+]
Assignee | ||
Comment 1•11 years ago
|
||
I placed all of the customizable widgets in the menu panel and I only saw poor auto hyphenation with the Character Encoding button.
Attachment #8398312 -
Flags: review?(MattN+bmo)
Comment 2•11 years ago
|
||
Comment on attachment 8398312 [details] [diff] [review]
Patch
Review of attachment 8398312 [details] [diff] [review]:
-----------------------------------------------------------------
Perhaps we can update the commit message and bug summary to indicate that only the character encoding widget changed?
Attachment #8398312 -
Flags: review?(MattN+bmo) → review+
Comment 3•11 years ago
|
||
Have you guys tested this? From a quick test (unpacking brower/omni.jar, changing the string, repacking), the unicode character is just displayed in the menu :-\
Updated•11 years ago
|
Comment 4•11 years ago
|
||
(In reply to Francesco Lodolo [:flod] from comment #3)
> Have you guys tested this? From a quick test (unpacking brower/omni.jar,
> changing the string, repacking), the unicode character is just displayed in
> the menu :-\
To clarify I didn't test with the updated code (which is supposed to remove the \u00ad in Australis menu), just with yesterday nightly.
Comment 5•11 years ago
|
||
Comment on attachment 8398312 [details] [diff] [review]
Patch
Review of attachment 8398312 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/locales/en-US/chrome/browser/customizableui/customizableWidgets.properties
@@ +85,5 @@
> # \u2026, or use "..." if \u2026 doesn't suit traditions in your locale.
> feed-button.label = Subscribe
> feed-button.tooltiptext = Subscribe to this page…
>
> +# LOCALIZATOIN NOTE (characterencoding-button.label): The \u00ad character at the beginning
Just realized you misspelled LOCALIZATION
Comment 6•11 years ago
|
||
(In reply to Francesco Lodolo [:flod] from comment #3)
> Have you guys tested this? From a quick test (unpacking brower/omni.jar,
> changing the string, repacking), the unicode character is just displayed in
> the menu :-\
:flod meant the escape sequence was appearing. I discussed this with him on IRC and he is posting an update to bug 962884 about what we learned. This is working fine for me so just comment 2 and comment 5 should be addressed still be Jared.
Updated•11 years ago
|
Summary: Update en-US locale strings that have poor word-wrap characteristics to use ­ character → Add a soft hyphen to the character encoding label for en-US to avoid auto-hyphenation
Assignee | ||
Comment 7•11 years ago
|
||
status-firefox29:
--- → affected
status-firefox30:
--- → affected
status-firefox31:
--- → affected
Whiteboard: [Australis:P3+] → [Australis:P3+][fixed-in-fx-team]
Comment 8•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P3+][fixed-in-fx-team] → [Australis:P3+]
Target Milestone: --- → Firefox 31
Updated•11 years ago
|
Comment 9•11 years ago
|
||
Comment on attachment 8398312 [details] [diff] [review]
Patch
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Using new feature from bug 962884 to deal with the width of the new panel menu columns
User impact if declined: The Character Encoding widget label may be hyphenated instead of wrapped.
Testing completed (on m-c, etc.): m-c
Risk to taking this patch (and alternatives if risky): Low risk adding a non-visible character to a string
String or IDL/UUID changes made by this patch: Yes, there is an addition of a soft hyphen character to characterencoding-button.label but it isn't visible and doesn't change the meaning (and therefore ID) of the string so I believe it doesn't break string freeze.
Attachment #8398312 -
Flags: approval-mozilla-beta?
Attachment #8398312 -
Flags: approval-mozilla-aurora?
Comment 10•11 years ago
|
||
Uplifting this feature also gives us manual test coverage of bug 962884 in en-US.
Updated•11 years ago
|
Attachment #8398312 -
Flags: approval-mozilla-beta?
Attachment #8398312 -
Flags: approval-mozilla-beta+
Attachment #8398312 -
Flags: approval-mozilla-aurora?
Attachment #8398312 -
Flags: approval-mozilla-aurora+
Comment 11•11 years ago
|
||
Comment 12•11 years ago
|
||
Comment on attachment 8398312 [details] [diff] [review]
Patch
># HG changeset patch
># Parent 122bd8d437aa5792ff91041a65453bdc44db1b4b
># User Jared Wein <jwein@mozilla.com>
>Bug 989133 - Update en-US locale strings that have poor word-wrap characteristics to use ­ character.
>
>diff --git a/browser/locales/en-US/chrome/browser/customizableui/customizableWidgets.properties b/browser/locales/en-US/chrome/browser/customizableui/customizableWidgets.properties
>--- a/browser/locales/en-US/chrome/browser/customizableui/customizableWidgets.properties
>+++ b/browser/locales/en-US/chrome/browser/customizableui/customizableWidgets.properties
>@@ -81,17 +81,20 @@ paste-button.label = Paste
> # LOCALIZATION NOTE(paste-button.tooltiptext2): %S is the keyboard shortcut.
> paste-button.tooltiptext2 = Paste (%S)
>
> # LOCALIZATION NOTE (feed-button.tooltiptext): Use the unicode ellipsis char,
> # \u2026, or use "..." if \u2026 doesn't suit traditions in your locale.
> feed-button.label = Subscribe
> feed-button.tooltiptext = Subscribe to this pageâ¦
>
>-characterencoding-button.label = Character Encoding
>+# LOCALIZATOIN NOTE (characterencoding-button.label): The \u00ad character at the beginning
>+# of the string is used to disable auto hyphenation on the button text when it is displayed
>+# in the menu panel.
>+characterencoding-button.label = \u00adCharacter Encoding
I find this note rather unclear. It doesn't explain why we're disabling hyphenation, that this is very much en-US-specific and that localizers shouldn't blindly copy it. Maybe we should just have one note for all labels that explains where \u00ad should be used.
Assignee | ||
Comment 13•11 years ago
|
||
Yeah, I can see that being a problem. Would you like to make the change?
Flags: needinfo?(dao)
Comment 14•11 years ago
|
||
Comment 15•11 years ago
|
||
Is this covered by the automated test used for bug 962884?
Flags: needinfo?(jaws)
Flags: in-testsuite?
Assignee | ||
Comment 16•11 years ago
|
||
(In reply to Florin Mezei, QA [:FlorinMezei] from comment #15)
> Is this covered by the automated test used for bug 962884?
Yeah it is.
Flags: needinfo?(jaws)
Assignee | ||
Updated•11 years ago
|
Flags: in-testsuite? → in-testsuite+
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(dao)
You need to log in
before you can comment on or make changes to this bug.
Description
•