HomePhabricator

Add function to load translations from i18n/

Tags
None
Referenced Files
None
Subscribers
None

Description

Add function to load translations from i18n/

And a test to check that the loaded translations are identical to the
originals, i.e. that converting from Python syntax to MediaWiki syntax
and back is a lossless roundtrip. The test is a pytest, rather than a
plain assert in translations.py, mainly so that the assertion failure
prints a nice error message if the assertion fails – this was useful to
figure out some issues (see also the previous two commits). Now that the
assertion passes, it’s not so important anymore.

Details

Provenance
LucasWerkmeisterAuthored on Feb 6 2021, 5:49 PM
Parents
R2362:b8f896943bd6: Add missing “other” tag to a Russian translation
Branches
Unknown
Tags
Unknown
ChangeId
None