Page MenuHomePhabricator

Work out how to bring in new Phabricator translations again
Closed, ResolvedPublic

Description

Mukunda was handling this process before. I hope it's documented somewhere so that someone else can take it up.

Actually, there is a deployment next week and there are scn translations in the repository, but according to rPHTR Phabricator Translations, the language needs to be added to src/locales/ before it will show up. Which I'm not sure I fully understand since there are languages in settings which have translations, but don't have a file in that directory (e.g. zh-hans/zh-hant).


Upstream Stuff:

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptSep 27 2022, 11:10 PM
Aklapper renamed this task from Work out how to bring in new translations again to Work out how to bring in new Phabricator translations again.Nov 30 2022, 9:13 AM

Also note that git submodule init says it's still in Gerrit:
Submodule 'translations' (https://gerrit.wikimedia.org/r/phabricator/translations) registered for path 'translations'
Should probably move to GitLab like most other stuff nowadays.

Aklapper triaged this task as Medium priority.Aug 2 2023, 9:08 AM

Other noise: Hundreds/thousands of source strings have been modified as a result of the rename to Phorge, and (because of the general bitrot in this area) no changes to the source strings have been synced to Translatewiki since October 2021 (!). Furthermore, each message key is a hash of the English message, so even changes that should merely be marked FUZZY would (barring effort on the translatewiki side) register as entirely new keys. I guess I probably should still submit a patch to update the repo, but beware,

Change 969518 had a related patch set uploaded (by Pppery; author: Pppery):

[phabricator/translations@wmf/stable] Update source strings from Phrabricator

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

Change 969520 had a related patch set uploaded (by Pppery; author: Pppery):

[phabricator/translations@wmf/stable] Update arcanist translations too

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

We have a little bit of fuzzy matching logic, but processing thousands of changes at a time is very tedious :(

Change 969518 merged by Brennen Bearnes:

[phabricator/translations@wmf/stable] Update source strings from Phrabricator

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

Change 969520 merged by Brennen Bearnes:

[phabricator/translations@wmf/stable] Update arcanist translations too

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

The next step is to process an import/export on the translatewiki side, probably give some time for translators to update the hundreds of outdated strings, and then the repo needs another patch to update the place Phabricator reads (which is not the same as where translatewiki writes), and then it needs to be deployed.

Processing:

[18:15:35] -rakkaus:#translatewiki- [nike] Imported 14 new messages or translations for phabricator-phabricator-celerity.
[18:15:35] -rakkaus:#translatewiki- [nike] Imported 2 new messages or translations for phabricator-phabricator-macro.
[18:15:35] -rakkaus:#translatewiki- [nike] Imported 4 new messages or translations for phabricator-phabricator-phriction.
[18:15:35] -rakkaus:#translatewiki- [nike] Imported 2 new messages or translations for phabricator-phabricator-phurl.
[18:15:36] -rakkaus:#translatewiki- [nike] Imported 8 new messages or translations for phabricator-phabricator-project.
[18:15:40] -rakkaus:#translatewiki- [nike] There are changes to check for groups phabricator-arcanist-core, phabricator-phabricator-almanac,
phabricator-phabricator-audit, phabricator-phabricator-auth, phabricator-phabricator-base, phabricator-phabricator-cache,
phabricator-phabricator-calendar, phabricator-phabricator-conduit, phabricator-phabricator-config, phabricator-phabricator-console,
phabricator-phabricator-core, phabricator-phabricator-daemon, [...]

Okay this will take forever. I spend 20 minutes just for reviewing phabricator-arcanist-core for manually connecting renamed messages.

Change 974717 had a related patch set uploaded (by Pppery; author: Pppery):

[phabricator/translations@wmf/stable] Clean up a bunch of things

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

Change 975388 had a related patch set uploaded (by Pppery; author: Pppery):

[translatewiki@master] Remove "Releeph" and "Phragment" groups from Translatewiki

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

Change 975413 had a related patch set uploaded (by Pppery; author: Pppery):

[phabricator/translations@wmf/stable] Run generate.php and arc liberate

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

Change 975388 merged by jenkins-bot:

[translatewiki@master] Remove "Releeph" and "Phragment" groups from Translatewiki

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

Change #974717 merged by Brennen Bearnes:

[phabricator/translations@wmf/stable] Clean up a bunch of things

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

Change #1022023 had a related patch set uploaded (by Pppery; author: Pppery):

[translatewiki@master] Phabricator: Delete chatlog group

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

Change #1022053 had a related patch set uploaded (by Pppery; author: Pppery):

[phabricator/translations@wmf/stable] Phabricator: Delete chatlog group

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

Change #1022023 merged by jenkins-bot:

[translatewiki@master] Phabricator: Delete chatlog group

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

Change #975413 merged by Brennen Bearnes:

[phabricator/translations@wmf/stable] Update the PHP files Phabricator reads to show the latest translations

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

Pppery closed this task as Resolved.EditedTue, Apr 23, 4:03 PM

Closing this as resolved since it seems to have been deployed and works, I still have some more cleanup of the translations repo I want to do, but that can go in another task.

The process here still requires someone to manually process translations whenever a new version of upstream is deployed, or when any translations are updated on the translatewiki site, and requires additional manual work for a new language to be added. I plan to keep doing that stuff as it comes up, but feel free to poke me (or, if you're brave, run it yourself) if I fall behind.

Change #1022053 merged by Aklapper:

[phabricator/translations@wmf/stable] Phabricator: Delete chatlog group

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