Last modified: 2014-11-20 08:49:55 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 T51412, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49412 - Android exporter causes build failure due to presence of '%' in generated xml
Android exporter causes build failure due to presence of '%' in generated xml
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-10 21:30 UTC by Brion Vibber
Modified: 2014-11-20 08:49 UTC (History)
9 users (show)

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


Attachments

Description Brion Vibber 2013-06-10 21:30:49 UTC
Found this with the 'about_privacy_policy' string; cs and gl versions were added with %-encoding for some chars in the URL.


This triggered a compilation error in resources:

error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?


Worked around here by simply replacing the % codes with their original chars, since that works for them:
[2:07pm] wikipedia-github: android-commons/master a28fc9a Brion Vibber: Work around compilation failure with % encoding in strings
with the same fixes copied over to TWN and a qqq entry added describing the issue.


Proper fix for this is to add formatted="no" attribute to the <string> entry. So we'd maybe need to set it on the original and make sure it gets passed through to the translated outputs....?

Alternate fix is to use %%... or perhaps to redo it as a formatted string and figure out how to get those to round-trip through TWN.
Comment 1 Niklas Laxström 2013-06-11 05:32:21 UTC
/me wonders how such many annoying things ended up in one file format.
Comment 2 Yuvi Panda 2013-06-11 08:00:38 UTC
It's the lovechild of XML and Java, so...
Comment 3 Nemo 2014-03-06 12:13:27 UTC
Brion and Yuvi, I've added this bug to <https://www.mediawiki.org/wiki/Mentorship_programs/Possible_projects#Extensive_and_robust_localisation_file_format_coverage>. Would you be able to help a student by reviewing contributions such as a patch for this bug? If yes please add yourself there as co-mentor, then we'll be able to mark it featured.

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


Navigation
Links