data/TWiki/VarLANGUAGES.txt,v
author Colas Nahaboo <colas@nahaboo.net>
Sat, 26 Jan 2008 15:50:53 +0100
changeset 0 414e01d06fd5
permissions -rw-r--r--
RELEASE 4.2.0 freetown
     1 head	1.2;
     2 access;
     3 symbols;
     4 locks; strict;
     5 comment	@# @;
     6 
     7 
     8 1.2
     9 date	2008.01.22.03.21.32;	author TWikiContributor;	state Exp;
    10 branches;
    11 next	1.1;
    12 
    13 1.1
    14 date	2006.06.25.16.26.28;	author TWikiContributor;	state Exp;
    15 branches;
    16 next	;
    17 
    18 
    19 desc
    20 @buildrelease
    21 @
    22 
    23 
    24 1.2
    25 log
    26 @buildrelease
    27 @
    28 text
    29 @%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.1" version="2"}%
    30 %META:TOPICPARENT{name="TWikiVariables"}%
    31 #VarLANGUAGES
    32 ---+++ LANGUAGES -- list available TWiki languages
    33    * List the languages available (as =PO= files) to TWiki.
    34      Those are the languages in which TWiki's user interface is available.
    35    * Syntax: =%<nop>LANGUAGES{...}%=
    36    * Supported parameters:
    37      | *Parameter:* | *Description:* | *Default:* |
    38      | =format=     | format for each item. See below for variables available in the format string. | ="   * $langname"= |
    39      | =separator=  | separator between items. | ="\n"= (newline) |
    40      | =marker="selected"= | Text for =$marker= if the item matches =selection= | ="selected"= |
    41      | =selection="%<nop>LANGUAGE%"= | Current language to be selected in list | =(none)= |
    42    * =format= variables:
    43      | *Variable* | *Meaning* |
    44      | =$langname= | language's name, as informed by the translators |
    45      | =$langtag= | language's tag. Ex: =en=, =pt-br=, etc. |
    46    * Example: =&lt;select&gt;%<nop>LANGUAGES{format="&lt;option $marker value='$langtag'>$langname&lt;/option&gt;" selection="%<nop>LANGUAGE%"}%&lt;/select&gt;= creates an option list of the available languages with the current language selected
    47 
    48 @
    49 
    50 
    51 1.1
    52 log
    53 @buildrelease
    54 @
    55 text
    56 @d1 1
    57 a1 1
    58 %META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.2" version="1"}%
    59 a3 1
    60 
    61 @