45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
|
head 1.1;
|
||
|
access;
|
||
|
symbols;
|
||
|
locks; strict;
|
||
|
comment @# @;
|
||
|
|
||
|
|
||
|
1.1
|
||
|
date 2006.06.25.16.26.28; author TWikiContributor; state Exp;
|
||
|
branches;
|
||
|
next ;
|
||
|
|
||
|
|
||
|
desc
|
||
|
@buildrelease
|
||
|
@
|
||
|
|
||
|
|
||
|
1.1
|
||
|
log
|
||
|
@buildrelease
|
||
|
@
|
||
|
text
|
||
|
@%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.2" version="1"}%
|
||
|
%META:TOPICPARENT{name="TWikiVariables"}%
|
||
|
#VarLANGUAGES
|
||
|
|
||
|
---+++ LANGUAGES -- list available TWiki languages
|
||
|
* List the languages available (as =PO= files) to TWiki.
|
||
|
Those are the languages in which TWiki's user interface is available.
|
||
|
* Syntax: =%<nop>LANGUAGES{...}%=
|
||
|
* Supported parameters:
|
||
|
| *Parameter:* | *Description:* | *Default:* |
|
||
|
| =format= | format for each item. See below for variables available in the format string. | =" * $langname"= |
|
||
|
| =separator= | separator between items. | ="\n"= (newline) |
|
||
|
| =marker="selected"= | Text for =$marker= if the item matches =selection= | ="selected"= |
|
||
|
| =selection="%<nop>LANGUAGE%"= | Current language to be selected in list | =(none)= |
|
||
|
* =format= variables:
|
||
|
| *Variable* | *Meaning* |
|
||
|
| =$langname= | language's name, as informed by the translators |
|
||
|
| =$langtag= | language's tag. Ex: =en=, =pt-br=, etc. |
|
||
|
* Example: =<select>%<nop>LANGUAGES{format="<option $marker value='$langtag'>$langname</option>" selection="%<nop>LANGUAGE%"}%</select>= creates an option list of the available languages with the current language selected
|
||
|
|
||
|
@
|