During our Google Summer of Code effort to update the Wikimedia portals, we've realized that many of the translations for the Portals project are actually specific to Wikipedia, and need to be moved into the portal specific keys in the translations in order to be translated for other portals.
The following top-level keys in the Wikimedia Portals project:
{ "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.", "footer-donate": "You can support our work with a donation.", "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.", "google-store": "Google Play Store", "apple-store": "Apple App Store", "url": "https://en.wikipedia.org/wiki/List_of_Wikipedia_mobile_applications" }, "search-input-label": "Search Wikipedia", }
Needs to be changed into something portal specific, like this:
{ "wiki": { "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.", "google-store": "Google Play Store", "apple-store": "Apple App Store", "url": "https://en.wikipedia.org/wiki/List_of_Wikipedia_mobile_applications" }, "search-input-label": "Search Wikipedia", } }
They can then be added for translation for the other portal pages (when necessary, the app-links will be for Wikipedia only, probably...).
Open Question
@Nikerabbit Can these translation strings be "moved" without loosing the existing translations? Is there an automated way to achieve this?