Merge lp:~malizor/launchpad/fixes-bug-608631 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Данило Шеган |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11781 |
Proposed branch: | lp:~malizor/launchpad/fixes-bug-608631 |
Merge into: | lp:launchpad |
Diff against target: |
160 lines (+52/-15) 3 files modified
lib/lp/translations/browser/browser_helpers.py (+7/-2) lib/lp/translations/doc/browser-helpers.txt (+42/-11) lib/lp/translations/interfaces/translations.py (+3/-2) |
To merge this branch: | bzr merge lp:~malizor/launchpad/fixes-bug-608631 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Данило Шеган (community) | Approve | ||
Gavin Panella (community) | Approve | ||
Review via email:
|
This proposal supersedes a proposal from 2010-10-01.
Commit message
Users now can use the [nnbsp] tag to input a narrow no-break space in Rosetta. This tag representation is also a workaround for some Browsers (eg. in Rekonq NNBSP is displayed as a zero-width character).
Description of the change
== Summary ==
Bug 608631 describe the fact that there is no easy way to input and to display narrow no-break spaces (U+202F) in Rosetta.
Narrow no-break spaces are mainly used in French before ";:!?»" chars and after "«", but they are also used in some other languages (e.g. for the short form of the Czech dates and others).
Input of NNBSP is a problem for example on MS Windows (users need to mess around in the registry) and on GNU/Linux if your keyboard layout does not provide a shortcut for it.
Display of NNBSP is a problem in some browsers.
All versions of MS Internet Explorer *on Windows XP* display a square instead of the regular character (it works on Vista and Seven, here the bug lays in the OS build-in text renderer). There is also a bug in Qt which means that Qt browsers (Konqueror, Rekonq...) display NNBSP as a 0 width char.
Basically, it displays well on Firefox, GTK based browsers (Epiphany, Midori...) and on IE (on Vista and Seven).
On top of that, it is sometime difficult to tell apart NNBSP from a white space or a no-break space. So, a helper to recognize NNBSP is necessary anyway.
== Proposed fix ==
As discussed with Данило Шеган, it seems that implementing a new tag (as already existing [tab] and [nbsp]) is the best answer to this.
== Pre-implementation notes ==
The obvious tag for NNBSP is [nnbsp], even if it may be too close to [nbsp], we agreed that this is the best solution.
(I talked about it on the ubuntu-l10n-fr mailing-list)
== Implementation details ==
Implementation was quite easy with the existing code for other tags.
There is no really new code, so this should not cause anything to break (that wouldn't have broke without this patch I mean ;-)).
== Test ==
bin/test -cvv -m lp.translations -t browser-helpers.txt
== Demo and Q/A ==
To demo and Q/A this change, do the following:
- Log on as Sample Person (<email address hidden>:test)
- Visit any translation page (e.g. https:/
- Input something like "Test[nnbsp]!" and/or it's escaped version "Test\[nnbsp]!" and/or the 'literal' version "Test !"
- Save your translation(s) and see the results (better here with the above example: https:/
== Launchpad lint ==
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
I fixed all warnings in these files (most of them where not related to my code)
The change looks good. I am still very unhappy with the use of [nbthin]. How about we use [nnbsp] (I know why you hate it, but I find it's better than [nbthin], and others I talked to agree).