diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/i18n-module.md | 5 | ||||
-rw-r--r-- | docs/markdown/snippets/i18n-return.md | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/markdown/i18n-module.md b/docs/markdown/i18n-module.md index 4948fab..47ef88b 100644 --- a/docs/markdown/i18n-module.md +++ b/docs/markdown/i18n-module.md @@ -38,6 +38,11 @@ This function also defines targets for maintainers to use: * `<project_id>-update-po`: regenerates the `.po` files from current `.pot` file * `<project_id>-gmo`: builds the translations without installing +(*since 0.60.0*) Returns a list containing: +* a list of built `.mo` files +* the maintainer `-pot` target +* the maintainer `-update-po` target + ### i18n.merge_file() This merges translations into a text file using `msgfmt`. See diff --git a/docs/markdown/snippets/i18n-return.md b/docs/markdown/snippets/i18n-return.md new file mode 100644 index 0000000..1f732af --- /dev/null +++ b/docs/markdown/snippets/i18n-return.md @@ -0,0 +1,6 @@ +## i18n module now returns gettext targets + +`r = i18n.gettext('mydomain')` will now provide access to: +- a list of built .mo files +- the mydomain-pot maintainer target which updates .pot files +- the mydomain-update-po maintainer target which updates .po files |