-
Notifications
You must be signed in to change notification settings - Fork 871
Translation
currently cnprog “understands” Chinese, English and Spanish.
to translate cnprog to another language – you need to work on two files:
*/locale/lang_code/LC_MESSAGES/django.po
*/templates/content/js/com.cnprog.i18n.js
Steps to translate django.po file:
*create a directory /locale/your_lang_code/LC_MESSAGE
*copy a django.po file from the translation that you understand to that new directory
*translate strings that start with “msgstr”, keep strings “msgid” intact and preserve overall format.
*at any time run “python manage.py compilemessages” – that will create .mo file that is actually feeding translations into the application
*any strings that have a comment above them like #, fuzzy will not be shown as translated – verify translation for those and then remorve the “fuzzy” string.