Page MenuHomePhabricator

Provide a rough import/export pathway for translation files in Translatewiki format
ClosedPublic

Authored by epriestley on Nov 6 2016, 9:27 PM.
Tags
None
Referenced Files
F15274396: D16810.diff
Sat, Mar 1, 6:08 AM
Unknown Object (File)
Tue, Feb 18, 11:59 AM
Unknown Object (File)
Wed, Feb 12, 9:55 AM
Unknown Object (File)
Jan 21 2025, 9:35 AM
Unknown Object (File)
Jan 9 2025, 4:31 AM
Unknown Object (File)
Dec 27 2024, 6:40 PM
Unknown Object (File)
Dec 27 2024, 5:23 PM
Unknown Object (File)
Dec 6 2024, 1:59 AM
Subscribers

Details

Summary

Ref T5267. This converts from Phabricator's internal format to Translatewiki's format, and from Translatewiki's format back to Phabricator.

Support isn't perfect, but this should get things started, at least.

Test Plan
  • Exported Phabricator translations.
  • Generated some pirate translations.

Diff Detail

Repository
rTRANSLATEWIKI Translatewiki Bindings
Branch
master
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/management/TranslatewikiManagementGenerateWorkflow.php:337XHP16TODO Comment
Unit
No Test Coverage
Build Status
Buildable 14373
Build 18715: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Provide a rough import/export pathway for translation files in Translatewiki format.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
  • Generate better links to pht() callsites.
chad edited edge metadata.

tldr;

This revision is now accepted and ready to land.Nov 7 2016, 3:48 AM

(I changed PhabricatorHash::digestForIndex() to a more-portable sha1() locally, since this may ease interoperability down the line and the strength/fanciness/length of the hash isn't important.)

This revision was automatically updated to reflect the committed changes.