Changes for page Language Macro

Last modified by Vincent Massol on 2023/05/25

<
From version < 24.1 >
edited by Marius Dumitru Florea
on 2016/11/01
To version < 25.1 >
edited by Thomas Mortagne
on 2019/08/20
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.mflorea
1 +XWiki.ThomasMortagne
Content
... ... @@ -1,26 +1,27 @@
1 1  = Example =
2 +
2 2  == Code ==
4 +
3 3  {{code}}
4 4  {{language codes='de, fr, it, lv, nl, ru, sv, zh'/}}
5 5  {{/code}}
6 6  
7 7  == Result ==
8 -{{language codes='de, fr, it, lv, nl, ru, sv, zh'/}}
9 9  
10 -= Parameters
11 +{{language codes="de, fr, it, lv, nl, ru, sv, zh"/}}
11 11  
13 += Parameters =
14 +
12 12  |= Parameter name |= Description
13 13  | codes | indicates the code list for the language
14 14  
15 15  Codes that can be used:
16 -{{velocity}}
17 -|= Code |= Flag |= Language name
19 +{{velocity}}|= Code |= Flag |= Language name
18 18  #foreach($attachment in $doc.attachmentList)
19 19  #set($locale = $attachment.filename.substring(0, $attachment.filename.indexOf('.')).replace('-', '_'))
20 20  | $locale | image:$attachment.filename | $!{languages.get($locale).get(0)}
21 -#end
22 -{{/velocity}}
23 +#end{{/velocity}}
23 23  
24 24  == References ==
25 -This macro uses [[http://www.famfamfam.com/lab/icons/flags/]] icons and the language names are based on [[http://ftp.ics.uci.edu/pub/ietf/http/related/iso639.txt]].
26 -XWiki supported languages are in concordance with http://l10n.xwiki.org/xwiki/bin/view/L10N/Flags
26 +
27 +This macro uses [[http://www.famfamfam.com/lab/icons/flags/]] icons and the language names are based on [[http://ftp.ics.uci.edu/pub/ietf/http/related/iso639.txt]].

Get Connected