Page MenuHomePhabricator

translation of the Android app to Serbian is broken
Closed, ResolvedPublic

Description

It seems to be not quite possible to translate the Wikipedia Android app to Serbian, at least not in a straightforward way.

There are several issues:

  1. Going to https://translatewiki.net/wiki/Special:Translate?filter=!translated&action=translate&group=out-wikimedia-mobile-wikipedia-android-strings and selecting sr in ULS _appears_ to work, although I'm not sure that such translations will be appropriately exported.
  1. Going directly to https://translatewiki.net/wiki/Special:Translate?filter=!translated&action=translate&group=out-wikimedia-mobile-wikipedia-android-strings&language=sr doesn't work: "This language code should remain unused. Localise in sr-ec please."
  1. Going directly to https://translatewiki.net/wiki/Special:Translate?filter=!translated&action=translate&group=out-wikimedia-mobile-wikipedia-android-strings&language=sr-ec doesn't work: no messages are shown and no error message is shown.

Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=48804

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:29 AM
bzimport set Reference to bz67189.
bzimport added a subscriber: Unknown Object (MLST).

A side thought: I don't know whether Android supports script variants for Serbian. I see only Cyrillic on my devices, but some other devices may support Latin.

If we cannot support variants for UI translation because of the Android limitation, then Cyrillic should be the one we export for the app, given that it's what we have as the default in Wikipedia and on the devices that I can see, but Serbian speakers may shed more light on the issue.

Can be resolved by adding a code map in the yaml configuration. Android only supports two letter codes.

(In reply to Siebrand Mazeland from comment #2)

Can be resolved by adding a code map in the yaml configuration. Android only
supports two letter codes.

Yep; we don't use "sr".

Nikerabbit set Security to None.

Can we sort this out? As far as I know Android does support variants for Chinese and Serbian.

This is the current codeMap for the message group out-wikimedia-mobile-wikipedia-android-strings (from WikimediaMobile-android.yaml):

codeMap:
  pt-br: pt-rBR
  zh-hans: zh
  zh-hant: zh-rTW
  qqq: qq

What should be added? sr-ec: sr ? "sr" is on the whitelist, which is probably an issue. That should be sr-ec.

gerritbot subscribed.

Change 187088 had a related patch set uploaded (by Siebrand):
Fix inconsistencies in the support for Serbian

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

Patch-For-Review

Change 187088 merged by jenkins-bot:
Fix inconsistencies in the support for Serbian

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

Assuming this is fixed adequately with above patch. Please reopen or file another bug if this is not the case.