learningequality / ka-lite

KA Lite: lightweight web server for serving core Khan Academy content (videos and exercises) without needing internet connectivity
https://learningequality.org/ka-lite/
Other
458 stars 305 forks source link

Move interface translations out of content packs #5518

Open benjaoming opened 7 years ago

benjaoming commented 7 years ago

Summary

We call them "content packs" for a reason.

Interface translations tie directly to the software release and should as such be released with the software and not sitting separately in these rather huge .zip files for content packs, which we'd rather avoid having to update.

Architecture of new translation:

I order to fix this, we need to:

I'm targeting this for 0.17, because I see that we can fix this:

  1. without rebuilding content packs, just leaving the content packs as they are - 0.17.4+ won't use .po resources from content packs, and everything <0.17.3 will.
  2. being backwards compatble
  3. avoid building content packs again once the 40 strings in #5517 are translated
benjaoming commented 6 years ago

There was an unfortunate and confusing error in the description, sorry about this @mrpau-eugene

~Ensure that new path ~/.kalite/project/locale works~

Becomes:

Ensure that new path kalite/project/locale works