Last modified: 2014-11-17 10:16:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59867, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57867 - Allow developers to enforce string limits in message translations.
Allow developers to enforce string limits in message translations.
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-02 18:53 UTC by Jon
Modified: 2014-11-17 10:16 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jon 2013-12-02 18:53:08 UTC
It would be useful to developers, specifically in designing on rare occasions to enforce character limits on translations.
See:
https://www.mail-archive.com/design@lists.wikimedia.org/msg00132.html

I'm not sure what is the best way to do this, but a magic word in a qqq code might be a useful easy way to do this.

When translating, if a message goes over this limit, the translator should be warned that this is the case (note I don't think it should stop the translation but it should certainly make them aware).

e.g.
{{ENFORCE_LIMIT=100}}
Comment 1 Siebrand Mazeland 2013-12-02 19:12:36 UTC
I see how this feature request may make sense, but I don't see it getting a high priority.
Comment 2 Brion Vibber 2013-12-03 20:41:34 UTC
Character count is limited as proxy metric for text fitting in a defined space; 10 characters of Chinese is a LOT wider than 10 characters of Arabic...

Might consider specifying a "font family, font size, max CSS pixel width" combination, which could be used to encapsulate the translated preview in an appropriately sized box, immediately showing if it overflows the expected size.


The best solution would be real-time layout previews of the translated text in an example context using actual target styles and formatting.... but that sounds harder. :)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links