Skip to content
Till edited this page Jan 18, 2021 · 1 revision

How to translate text strings in Opencast

Extract

Currently there is only the German and English translation present in this plugin. To generate the translation files (.po & .mo) one can simply run the translate.sh or use npm run translate. The latter is done automatically when creating a plugin zip via npm run zip.

Translate

After extracting all present translation strings from the current code with the above commands, you can either directly edit locale/en/LC_MESSAGES/opencast.po or better use a tool like Poedit.

Compile

After you are done entering translation strings, run one of the extract commands once more to regenerate the opencast.mo, which is the file used by the translation mechanic in Stud.IP and henceforth this plugin.