Closed
Bug 1317243
Opened 8 years ago
Closed 8 years ago
aboutPrivateBrowsing.note.before has a trailing non-breaking whitespace, causing redundant ending whitespace in about:privatebrowsing
Categories
(Mozilla Localizations :: cs / Czech, defect)
Mozilla Localizations
cs / Czech
Tracking
(firefox50 affected, firefox51 affected, firefox52 fixed)
RESOLVED
FIXED
mozilla52
People
(Reporter: mstanke, Assigned: mstanke)
References
Details
Attachments
(1 file)
38.73 KB,
image/png
|
Details |
When you open new anonymous window, the text describing what it can and cannot do contains two spaces between aboutPrivateBrowsing.note.before and aboutPrivateBrowsing.note.emphasize. The space at the end of aboutPrivateBrowsing.note.before is either redundant, or there is a space being added in the code itself. Not sure, what's the right solution, as some localizers might notice and fix by removing the space from their translation.
Comment 1•8 years ago
|
||
Moving over to fx/private browsing, as this is about the code in question much more than about l10n.
Component: Localization → Private Browsing
Product: Core → Firefox
Comment 2•8 years ago
|
||
I'm not sure I understand the problem. This is how my DTD looks like <!ENTITY aboutPrivateBrowsing.note.before "La navigazione anonima "> <!ENTITY aboutPrivateBrowsing.note.emphasize "non nasconde ogni traccia della navigazione"> <!ENTITY aboutPrivateBrowsing.note.after " su Internet. Il datore di lavoro o il fornitore di servizi internet saranno comunque in grado di mantenere un registro delle pagine visitate."> And this the resulting HTML in Firefox <p> La navigazione anonima <strong>non nasconde ogni traccia della navigazione</strong> su Internet. Il datore di lavoro o il fornitore di servizi internet saranno comunque in grado di mantenere un registro delle pagine visitate. </p> I can only see one space displayed, as expected in a HTML page.
Comment 3•8 years ago
|
||
This is the code of the page https://dxr.mozilla.org/mozilla-central/source/browser/components/privatebrowsing/content/aboutPrivateBrowsing.xhtml#57 We could argue that the trailing space is not actually needed, since the new line in the code introduces a whitespace, but I don't see two spaces and I think it makes sense to have it in the string in case the structure changes.
Assignee | ||
Comment 4•8 years ago
|
||
Well, at least in Czech is does not work. In the source I see this: <p> &aboutPrivateBrowsing.note.before; <strong>&aboutPrivateBrowsing.note.emphasize;</strong> &aboutPrivateBrowsing.note.after; </p> And if I try to highlight the text with my mouse, I see two spaces there. It's even visible on the screenshot (Anonymní prohlížení vás na internetu neudělá...). As for the localization, we follow spaced as there are in the original.
Assignee | ||
Comment 5•8 years ago
|
||
Interesting the double space is not after the <strong> text, as aboutPrivateBrowsing.note.after starts with a space for change.
Comment 6•8 years ago
|
||
Can you inspect the page with Developer Tools and see how the paragraph looks like? Italian on OS X, and English in Linux look normal, with the same spacing.
Comment 7•8 years ago
|
||
Ah, figured it out. You have a non breaking space in .before, not a standard space, that's why it happens.
Comment 8•8 years ago
|
||
Let's move it back to Czech component, since it can be fixed in the localization.
Component: Private Browsing → cs / Czech
Product: Firefox → Mozilla Localizations
Comment 10•8 years ago
|
||
Looks like there are a few locales with a non breaking whitespace (gray square) https://transvision.mozfr.org/string/?entity=browser/chrome/browser/aboutPrivateBrowsing.dtd:aboutPrivateBrowsing.note.before&repo=aurora It seems unlikely that all locales added it on purpose.
Comment 11•8 years ago
|
||
Per IRC discussion with Pike, we should still fix the XHTML file and avoid introducing unnecessary whitespaces. I'm going to file a follow-up for that.
Updated•8 years ago
|
Summary: aboutPrivateBrowsing.note.before contains redundant ending whitespace → aboutPrivateBrowsing.note.before has a trailing non-breaking whitespace, causing redundant ending whitespace in about:privatebrowsing
Assignee | ||
Comment 12•8 years ago
|
||
Seems you are right. I have replaced it with a regular space in Pontoon now. Before I have clicked the placeholder in Pontoon, so probably that's a Pontoon issue. Should I close this bug in Czech component once the change is committed and I can verify in Nightly, or should I wait until the code is fixed too?
Assignee | ||
Comment 13•8 years ago
|
||
https://hg.mozilla.org/releases/l10n/mozilla-aurora/cs/rev/559c0df129a7
Comment 14•8 years ago
|
||
Confirming there's a bug in Pontoon. PR waiting for a review. Thanks for reporting!
Flags: needinfo?(m)
Comment 15•8 years ago
|
||
Commits pushed to master at https://github.com/mozilla/pontoon https://github.com/mozilla/pontoon/commit/e95ed237e88d1477600a31fa9f5faf1b0ce55005 Bug 1317243: Do not replace space with https://github.com/mozilla/pontoon/commit/b632cb1e23ed5ac00f36ec3b5f4f4648e3319736 Bug 1317243: Do not replace space with (#500)
Comment 16•8 years ago
|
||
(In reply to Michal Stanke (Mozilla.cz) [:MikkCZ] from comment #12) > Should I close this bug in Czech component once the change is committed and > I can verify in Nightly, or should I wait until the code is fixed too? Once you verify it in a build, it's OK. Fixing bug 1317438 will not change the result.
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → mstanke
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox50:
--- → affected
status-firefox51:
--- → affected
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in
before you can comment on or make changes to this bug.
Description
•