The languageselector Module
Table of Contents
Introduction
The languageselector
module provides an
XHTML widget to switch languages on a website.
Call Syntax
To generate a language selector widget, you use the following URL syntax:
cocoon://modules/languageselector/text-{text}/flagsize-{flagsize}
The URL contains the following parameters:
- text
-
The text parameter can take the following values:
- abbr: abbreviated language
- long: full i18nized name of the language
- flagsize
-
The flagsize parameter can take the following values:
- any number: the width of the flag image in pixels
- none: don't show the flag image
Adding Custom Flags
More flags can be obtained from Wikipedia.
Be sure to rename them according to <two-letter-language-code>.svg
.