Author: hendrik.maryns
Description:
replaces ’, ... and "
I work on the Dutch translation of the wiki software. In looking at MessagesEn.php, I noticed that the way to handle single quotes, if they need to be in the string is handled very inconsistently: sometimes they are quoted: '\'', sometimes the string is put into double quotes: "'". This makes it confusing, and it is unelegant. There is an easy solution though: use the unicode quote sign: ’. This can be used anywhere, since it has no meaning for php: '’', "’".
I have replaced all relevant occurrences of ' in MessagesEn.php, see the patch. (As a side effect, all ’ in comments are replaced too.) Notice that sometimes, ‘ is the correct alternative: there where it is an opening quote. See http://www.unicode.org/charts/PDF/U2000.pdf, entities 2018, 2018, 2026.
While we’re at it, I can as well suggest another improvement: use real ellipsis instead of three dots. That is also in the patch.
If you’re worried about a11y: see the corresponding bug in Mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=373623.
Oh, and by the way, even more exotic Unicode symbols are used already, ← for example (in: 'previousrevision' => '←Older revision',).
Once this is done, one could think of making the use of ' and " more consistent (I’d say: always use the second, since ' is needed in wiki markup from time to time). I replaced the " by ', there where they were only used to allow ' which are no longer there.
Of course, I will have overlooked some occurrences in the patch, but it is a first start.
Version: 1.21.x
Severity: enhancement
attachment en.patch ignored as obsolete