Page MenuHomePhabricator

Unification of localized messages for all portals
Closed, ResolvedPublic

Description

Currently, localization files in repo (https://phabricator.wikimedia.org/diffusion/WPOR/browse/master/l10n/) are not divided into relevant projects, and are tied only to Wikipedia. If we plan to use this code for all projects, you need to create sub-directories, or separate the messages in the files themselves.

"language-button-text": "Read Wikipedia in your language",
"footer-description": "Wikipedia is hosted by the Wikimedia Foundation, a non-profit organization that also hosts a range of other projects.",
"app-links": {
    "title": "Download Wikipedia for Android or iOS",
    "description": "Save your favorite articles to read offline, sync your reading lists across devices and customize your reading experience with the official Wikipedia app.",
    "url": "https://en.wikipedia.org/wiki/List_of_Wikipedia_mobile_applications"
  },
"search-input-button": "Search",
"search-input-label": "Search Wikipedia",

Event Timeline

Jdrewniak closed this task as Resolved.EditedJun 18 2021, 9:18 AM
Jdrewniak claimed this task.
Jdrewniak subscribed.

Yes! you're right @Iniquity. I'm sorry I overlooked this task, but we just completed this work as T283916 :)

I think the simplest approach here is to put the translation strings for all the portals into a single file, and serve that file to all the portals. The size of the JSON is still pretty minimal (a few kb) so it shouldn't have a negative performance impact, and it would save us from generating hundreds of more json files for each portal.