This PR adds translations of es_419 and es_ES to the H5P XBlock.
How To Test
Install this branch in your environment.
Change the platform language in (Account → Site Preferences → Site Language). Set it to "Spanish (Latin America)"
Add a H5P block in a unit from Studio.
You should see the block in the selected language.
Using translations commands
A Makefile was created that includes the necessary commands (based on the edX cookie-cutter) to extract and compile the translations.
Run make extract_translations, this will update the strings to be translated in h5pxblock/locale/en/LC_MESSAGES/text.po
Create a folder for your translations (If it does not exist) in h5pxblock/locale/, ie: h5pxblock/locale/es_419/LC_MESSAGES/, and create your text.po file, based on the file generated above.
Add all translations for strings according to language.
Run make compile_translations, this will generate the text.mo file in all created language folders.
Description
This PR adds translations of
es_419
andes_ES
to the H5P XBlock.How To Test
(Account → Site Preferences → Site Language)
. Set it to "Spanish (Latin America)"Using translations commands
A
Makefile
was created that includes the necessary commands (based on the edX cookie-cutter) to extract and compile the translations.make extract_translations
, this will update the strings to be translated inh5pxblock/locale/en/LC_MESSAGES/text.po
h5pxblock/locale/
, ie:h5pxblock/locale/es_419/LC_MESSAGES/
, and create yourtext.po
file, based on the file generated above.make compile_translations
, this will generate thetext.mo
file in all created language folders.Screenshots