What can I do to make a Julia generated video about math education easier to translate to other natural languages?

  • For the stereo audio, I’m already planning on recording the narrative in just one of the two channels so it can be easily replaced by the narrative recorded in another language.
  • For the images, I’ll be using the PyPlot backend. Is there an internationalization/translation Julia package that would make it easier to change the titles and labels and legends in those PyPlot plots?
  • For the Julia code, is there a best practice for making Julia source code readable in multiple languages?
1 Like

When it comes to source, you already need to know English somewhat to do any programming (just don’t write your comments and docstrings in Elizabethan pentameter and you’ll be fine).

For graphics, you could put labels etc in a constant Dict{Symbol, String}, and conditionally load language files where this constant is defined. But I don’t know if that’s worth the overhead, if any international users have access to the source they can just replace the strings in place instead. Or you could go the mathematical route and use symbols instead of text: x / m is universal, length in meters is not.

1 Like