0001-doc-add-instructions-for-developers-to-update-transl.patch
doc/development.rst | ||
---|---|---|
59 | 59 |
When running from an interactive shell `< /dev/null` unsets |
60 | 60 |
the `tty` tox sub-type and defines the `COVERAGE` variable. |
61 | 61 | |
62 |
Update translations |
|
63 |
=================== |
|
64 | ||
65 |
The `.po` files can be updated as follows:: |
|
66 | ||
67 |
$ django-admin makemessages -l fr \ |
|
68 |
--extension .py --extension .txt --extension .html \ |
|
69 |
-i tests -i debian -i 'AUTHORS.txt*' |
|
70 | ||
71 |
It is useful to check for mistakes such as `_("foo |
|
72 |
{bar}".format(bar=1))` instead of `_("foo {bar}").format(bar=1)` but the updated |
|
73 |
`.po` files must not be included in any patch. They are updated upstream before |
|
74 |
the releases to help keep the vocabulary consistent. |
|
75 | ||
76 |
.. note:: |
|
77 | ||
78 |
The only exception would be a trivial fix such as a typo. |
|
79 | ||
62 | 80 |
Build the documentation |
63 | 81 |
======================= |
64 | 82 | |
65 |
- |