Parcourir la source

Give information on how to set up in pelican

The plugin calls for the extension for the command “gettext” and
doesn’t write the text without it.
Mandaris il y a 6 ans
Parent
commit
1a39187b92
1 fichiers modifiés avec 9 ajouts et 0 suppressions
  1. 9 0
      i18n_subsites/README.rst

+ 9 - 0
i18n_subsites/README.rst

@@ -53,6 +53,15 @@ dictionary must be given (but can be empty) in the ``I18N_SUBSITES`` dictionary
 	    }
 	}
 
+You must also have the following in your pelican configuration
+
+.. code-block:: python
+    JINJA_ENVIRONMENT = {
+        'extensions': ['jinja2.ext.i18n'],
+    }
+
+
+
 Default and special overrides
 -----------------------------
 The settings overrides may contain arbitrary settings, however, there