From: Chad Whitacre Date: Thu, 5 Feb 2015 19:53:19 +0000 (-0500) Subject: trim obsolete sentence re: i18n extension X-Git-Tag: 2.8~41^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e53659d0d5fd80ef8c65c22725c30d5783124d68;p=thirdparty%2Fjinja.git trim obsolete sentence re: i18n extension This sentence seems like a leftover from when i18n was the only extension available, eh? --- diff --git a/docs/extensions.rst b/docs/extensions.rst index 2d9493f0..0825fd4f 100644 --- a/docs/extensions.rst +++ b/docs/extensions.rst @@ -27,10 +27,9 @@ i18n Extension **Import name:** `jinja2.ext.i18n` -Jinja2 currently comes with one extension, the i18n extension. It can be -used in combination with `gettext`_ or `babel`_. If the i18n extension is -enabled Jinja2 provides a `trans` statement that marks the wrapped string as -translatable and calls `gettext`. +The i18n extension can be used in combination with `gettext`_ or `babel`_. If +the i18n extension is enabled Jinja2 provides a `trans` statement that marks +the wrapped string as translatable and calls `gettext`. After enabling, dummy `_` function that forwards calls to `gettext` is added to the environment globals. An internationalized application then has to