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
Unknown Object (File)
Fri, Apr 19, 5:36 PM
Unknown Object (File)
Sat, Apr 13, 4:22 AM
Unknown Object (File)
Sat, Mar 30, 12:22 AM
Unknown Object (File)
Feb 16 2024, 11:06 PM
Unknown Object (File)
Feb 3 2024, 12:42 PM
Unknown Object (File)
Jan 5 2024, 7:15 AM
Unknown Object (File)
Jan 4 2024, 9:57 PM
Unknown Object (File)
Jan 4 2024, 4:56 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.