[Mediawiki-i18n] Truncating a message, enforcing word order

Juliusz Gonera jgonera at wikimedia.org
Thu Dec 12 03:31:45 UTC 2013


I felt I'd mess it up by sending this to i18n through NNTP and design 
through e-mail... Let's see if sending to both by NNTP will fix that.


On 12/11/2013 06:41 PM, Matthew Flaschen wrote:

> That's almost certainly not possible in every language.  It could work
> as a suggestion, though ("If possible...").

Jared said that it doesn't even have to be treated as a sentence, can be 
something like "Editing: [article name]".

> However, it might be better to wrap the title (language aside, it could
> provide better usability for some scenarios, e.g. if you lock your phone
> when editing, then come back to it and want to see what page you're on).

I'm not sure if I understand the example use case. Also, this solution 
has all sorts of other problems. Let's say we try to do it in PHP, we 
don't even know the browser window width. Let's say we do it in 
JavaScript, we know the browser window width, but we don't know how many 
characters will fit in a single line... For those reasons I'd rather 
stick with text-overflow: ellipsis in CSS.

-- 
Juliusz




More information about the Mediawiki-i18n mailing list