Multi-language Support through I18n
One of the most useful features of Cocoon is its support for multi-language pages. This is done through
the i18n transformer (I18nTransformer). See the documentation page for setting up the sitemap for the I18NTransformer. The
translation files are stored in a subdirectory translations. Look at the code below to see how it all
works and the site map.
-
i18n.xml — Contains the
raw XML file (this one).
-
sitemap.xmap —
Contains the raw XML file (this one).
- Translations folder. Contains all the necessary locale/language files.
-
i18n.xml — Default
translation file if required one is missing. (Used for all English texts)
-
i18n_de.xml —
Translation file for German.
-
i18n_fr.xml —
Translation file for French.
Select the flags below to change the following text.
-
one
-
two
-
three
-
untranslated text
Warning
There seems to be a problem with the date translation on the current public Paloose site server. The code works
fine on my local server that I use to build and test the system. I need to speak to my ISP to sort out the build state of the PHP5
that they use.
Sunday, 13 October 2024
15:52:17 ()
Copyright 2006 – 2023 Hugh Field-Richards. All Rights Reserved.