Page MenuHomePhabricator

some translations use illegal parameter syntax
Closed, ResolvedPublic

Description

https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom;TicketID=7590812
https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom;TicketID=7590678

STACK_TRACE=java.util.UnknownFormatConversionException: Conversion: 1$
at java.util.Formatter$FormatSpecifierParser.unknownFormatConversionException(Formatter.java:2306)
at java.util.Formatter$FormatSpecifierParser.advance(Formatter.java:2300)
at java.util.Formatter$FormatSpecifierParser.parseConversionType(Formatter.java:2379)
at java.util.Formatter$FormatSpecifierParser.parseArgumentIndexAndFlags(Formatter.java:2350)
at java.util.Formatter$FormatSpecifierParser.parseFormatToken(Formatter.java:2283)
at java.util.Formatter.doFormat(Formatter.java:1071)
at java.util.Formatter.format(Formatter.java:1042)
at java.util.Formatter.format(Formatter.java:1011)
at java.lang.String.format(String.java:1999)
at android.content.res.Resources.getString(Resources.java:367)
at android.support.v4.app.Fragment.getString(Fragment.java:636)
at org.wikipedia.beta.page.PageViewFragment.displayLeadSection(PageViewFragment.java:194)
at org.wikipedia.beta.page.PageViewFragment.access$900(PageViewFragment.java:41)
at org.wikipedia.beta.page.PageViewFragment$LeadSectionFetchTask.onFinish(PageViewFragment.java:430)
at org.wikipedia.beta.page.PageViewFragment$LeadSectionFetchTask.onFinish(PageViewFragment.java:390)
at org.wikipedia.beta.concurrency.SaneAsyncTask$BackingAsyncTask.onPostExecute(SaneAsyncTask.java:110)
at org.wikipedia.beta.concurrency.AsyncTask.finish(AsyncTask.java:642)
at org.wikipedia.beta.concurrency.AsyncTask.access$600(AsyncTask.java:187)
at org.wikipedia.beta.concurrency.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:655)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:212)
at android.app.ActivityThread.main(ActivityThread.java:5151)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:684)
at dalvik.system.NativeStart.main(Native Method)

Wrote some test cases and found several issues, first in fa (Farsi) and Hungarian (hu), which cause this exception. Then I expanded this, and found more in a few more languages.


Version: Beta
Severity: normal

Details

Reference
bz66241

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:19 AM
bzimport set Reference to bz66241.
bzimport added a subscriber: Unknown Object (MLST).

Change 137885 had a related patch set uploaded by BearND:
Add TranslationTests

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