Page MenuHomePhabricator

Plugin localization
Closed, ResolvedPublic

Description

Prepare the plugin so it can be translated using WordPress' localization tool. See https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/

Investigating how parallel translation on TWN could work will be explored in T288574

Event Timeline

SBisson triaged this task as Medium priority.Jun 9 2021, 12:52 PM
SBisson updated the task description. (Show Details)

First step towards localization: https://github.com/wikimedia/wikipediapreview-wordpress/pull/24

Update is we gave that first step a try and now we have a way to translate our plugin README text via translate.wordpress.org. This is what shows up in our plugin page, so we’re talking about translating https://wordpress.org/plugins/wikipedia-preview/.

I’m planning to translate to spanish next but wanted to touch base here as far as next steps. One option is to create a separate ticket for plugin strings (beyond README) once Gutenberg PRs start getting merged. There’s still research to do regarding how TWN plays into all of this.

Once localization support is in place, and it is now, keeping the plugin translatable is part of everything we do, not a distinct effort. This means that every code change introducing strings have to do it the right way to ensure those strings are translatable. Just like we've been doing for other products. In other words, the current Gutenburg PR has to start using the right i18n functions instead of hardcoded English text. I'll comment on the PR as well.

I think it's OK to extract TWN integration into a new task since that may be challenging and we may or may not end up doing it.

Translating the readme content into Spanish is not part of this task but it is greatly appreciated.

As of today https://es.wordpress.org/plugins/wikipedia-preview/ still does not show the README content in spanish, but if I understand this https://translate.wordpress.org/projects/wp-plugins/wikipedia-preview/ correctly, it means that spanish translations are waiting to be confirmed by a human somewhere. This is all good learning, will keep an eye on it

Created https://phabricator.wikimedia.org/T288574

As far as I can tell, the work here is done: the plugin is localizable. Some of us have used the Wordpress tool to add es, pt and fr translations.

Jpita added a subscriber: Jpita.

I don't understand this waiting status, who's it waiting for?

it's been like that for a long time

I'm investigating how we can request reviews of the translation we proposed and possibly nominate some official translators for the plugin.

Let's keep this task here until we can close the loop and see the translations on the plugin page.

An experienced translator did the fr_FR. You can see it here: https://fr.wordpress.org/plugins/wikipedia-preview/

That's good enough for me to conclude that it's working as expected.

AMuigai added a subscriber: AMuigai.

We now have the plugin in over 14 languages!