Last modified: 2013-12-26 09:35:36 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 T60445, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58445 - [Insertables] Wrong suggestion of $ variable names in Special:Translate
[Insertables] Wrong suggestion of $ variable names in Special:Translate
Status: PATCH_TO_REVIEW
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: Lowest minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-13 10:51 UTC by Seb35
Modified: 2013-12-26 09:35 UTC (History)
8 users (show)

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


Attachments

Description Seb35 2013-12-13 10:51:19 UTC
In some messages, the syntax "$4" is not a variable name but a price in dollars (see for instance [[meta:Translations:FDC portal/Annual report on the Funds Dissemination Committee process 2012-2013/19/en]]), however it is presented in the Special:Translate interface as a suggestion of translation variable in the bottom of the translation window.
Comment 1 Seb35 2013-12-13 10:55:00 UTC
A possible resolution would be to send the translation variable names along with the original message in the Translate extension. I didn’t dive into the code but I guess the message is sent in a JSON variable, where an additionnal field could be added.
Comment 2 Siebrand Mazeland 2013-12-13 11:10:59 UTC
There are several wars to easily work around this. Add space between the dollar sign and number, don't use the dollar sign, add a zero width marker between the dollar sign and the number. Take your pick and be happy :).
Comment 3 Gerrit Notification Bot 2013-12-26 09:35:33 UTC
Change 103743 had a related patch set uploaded by M4tx:
Fix insertables matching

https://gerrit.wikimedia.org/r/103743

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


Navigation
Links