Skip to content
Snippets Groups Projects
Commit 0d4c4436 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Correct translation process

parent 425cad03
Branches
No related tags found
No related merge requests found
...@@ -52,8 +52,8 @@ After saving the file, the translation is completed. Return the translation by Z ...@@ -52,8 +52,8 @@ After saving the file, the translation is completed. Return the translation by Z
Entering each of the applications (/VIPSWeb, /forecasts, /messages), do: Entering each of the applications (/VIPSWeb, /forecasts, /messages), do:
```bash ```bash
django-admin.py makemessages -l [LANGUAGE] $ ./manage.py makemessages -l [LANGUAGE]
django-admin.py makemessages -d djangojs -l [LANGUAGE] $ ./manage.py makemessages -d djangojs -l [LANGUAGE]
``` ```
After that, you can edit the language files (see above) After that, you can edit the language files (see above)
...@@ -61,17 +61,17 @@ After that, you can edit the language files (see above) ...@@ -61,17 +61,17 @@ After that, you can edit the language files (see above)
PLEASE NOTE: django-admin.py has been creating buggy information for plurals. Please check the header field of your newly created .po file. If the plural-forms header does not start with «nplurals=X;», then something has gone wrong. You can find the correct header here: http://localization-guide.readthedocs.org/en/latest/l10n/pluralforms.html PLEASE NOTE: django-admin.py has been creating buggy information for plurals. Please check the header field of your newly created .po file. If the plural-forms header does not start with «nplurals=X;», then something has gone wrong. You can find the correct header here: http://localization-guide.readthedocs.org/en/latest/l10n/pluralforms.html
### Updating translation files ### Updating translation files
If you have added new translation keywords, do this in each of the applications: If you have added new translation keywords, do this from the source root:
```bash ```bash
$ ./manage.py makemessages -a [LANGUAGE] $ ./manage.py makemessages -a
$ ./manage.py makemessages -d djangojs -a [LANGUAGE] $ ./manage.py makemessages -d djangojs -a [LANGUAGE]
``` ```
Then recompile the translation files (see below) Then recompile the translation files (see below)
### Compiling translation files ### Compiling translation files
Entering each of the applications (/VIPSWeb, /forecasts, /messages), do: From the source root:
``` ```
$ ./manage.py compilemessages $ ./manage.py compilemessages
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment