https://bugzilla.wikimedia.org/show_bug.cgi?id=49412

       Web browser: ---
            Bug ID: 49412
           Summary: Android Commons app compile failure if strings.xml
                    contains %-encoded URLs
           Product: Commons App
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Android
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: br...@wikimedia.org
                CC: br...@wikimedia.org, yuvipa...@gmail.com
    Classification: Unclassified
   Mobile Platform: Android

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to