Ignore:
Timestamp:
Aug 2, 2014, 4:33:28 PM (10 years ago)
Author:
mistic100
Message:

clean help + add example codes
TODO: update all language (no new translation, only refactor)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ExtendedDescription/language/en_UK/help.lang.html

    r29129 r29147  
    1 <p>Multilingual descriptions are placed between [lang=xx] and [/lang] tags, where xx is the language code (for example en, es, fr). There are also 2 special languages : [lang=default] and [lang=all]</p>
     1<p>Multilingual descriptions are placed between <code>[lang=xx]</code> and <code>[/lang]</code> tags,
     2where xx is the language code (for example en, es, fr).</p>
    23
    3 <p>The default description will be used if the description is not available in the connected user selected language.
    4 If [lang=default] does not exists, anything outside the [lang] tags will be considered as the default description.</p>
     4<pre>
     5[lang=en]Default description[/lang]
     6[lang=fr]Description en français[/lang]
     7[lang=de]Deutsche Beschreibung[/lang]
     8</pre>
    59
    6 <p><u>Special language <i>all</i></u>: anything inside [lang=all] will be included in the description, whatever the connected user defined language is.
     10<h4>Special language <i>default</i></h4>
     11<p>The default description will be used if the description is not available in the connected user selected language.<br>
     12If <code>[lang=default]</code> does not exists, anything outside the <code>[lang]</code> tags will be considered as the default description.</p>
     13
     14<pre>
     15[lang=default]Default description[/lang]
     16[lang=fr]Description en français[/lang]
     17
     18// OR
     19
     20Default description
     21[lang=fr]Description en français[/lang]
     22</pre>
     23
     24<h4>Special language <i>all</i></h4>
     25<p>Anything inside <code>[lang=all]</code> will be included in the description, whatever the connected user defined language is.<br>
    726This is mainly useful to include HTML/JavaScript code inside a description.</p>
    827
    9 <p><b>Example</b>:<br>
    10 <code>[lang=default] default description [/lang]<br>
    11 [lang=en] description in english [/lang]<br>
    12 [lang=de] deutsche Beschreibung [/lang]</code>
    13 </p>
     28<pre>
     29[lang=all]&lt;p&gt;[/lang]
     30  [lang=default]Default description[/lang]
     31  [lang=fr]Description en français[/lang]
     32  [lang=de]Deutsche Beschreibung[/lang]
     33[lang=all]&lt;/p&gt;[/lang]
     34</pre>
Note: See TracChangeset for help on using the changeset viewer.