root/WebContent/WEB-INF/resources/templates/language.vm @ 1329:49a17026c7ef

Revision 1329:49a17026c7ef, 5.0 KB (checked in by Thomas Gambet <tgambet@…>, 3 years ago)

updated mootools to last version 1.2.4

RevLine 
[659]1#set ($title = "Unicorn - Translations")
[1260]2#set ($css = ['base_ucn.css'])
[1329]3#set ($js = ['mootools-1.2.4-core-more-yc.js', 'w3c_unicorn_languages.js'])
[635]4#parse('head.vm')
5
[659]6#if ($messages)
7#displayMessages($messages)
8#end
[676]9
10<div class="text">
11        <h2>Translation of Unicorn</h2>
[1008]12        #set($langNb = $uiLocales.size())
[687]13        <p>Unicorn is currently available in $langNb languages. <!--The translations are mainly contributed by <a href="thanks.html">volunteers</a>.--></p>
[676]14
15        <h3>Translate Unicorn in a new language</h3>
[746]16       
[676]17        <p>If Unicorn is not yet available in your native language and you would like to translate it:</p>
[746]18       
19        <ul>
20                <li>You can select your language in the dropdown menu and start translating online:
21                        <form method="get" action="./translations" id="lang_select">
22                                <fieldset>
23                                <select name="${param_prefix}lang">
24                                        <optgroup label="Select a language">
[1008]25                                        #foreach ($locale in $availableLocales)
26                                        #set($localeKey = $locale.getName())
[1023]27                                                <option value="$localeKey" xml:lang="$localeKey" #if($native_lang == $localeKey)selected="selected"#end>$esc.html($strUtils.capitalize($locale.getDisplayName($defaultLocale))) - $esc.html($strUtils.capitalize($locale.getDisplayName($locale)))</option>
[746]28                                        #end
29                                        </optgroup>
30                                </select>
31                                <input id="lang_code" type="submit" value="OK" />
32                                </fieldset>
33                        </form>
34                </li>
35                <li>Or you can follow these steps:
36                        <ol>
[1290]37                                <li>Download the english <a href="http://dvcs.w3.org/hg/unicorn/raw-file/tip/WebContent/WEB-INF/languages/en.properties">UI properties file</a> and the <a href="http://dvcs.w3.org/hg/unicorn/raw-file/tip/WebContent/WEB-INF/languages/tasks/en.tasklist.properties">tasklist properties file</a>.</li>
[746]38                                <li><a href="http://www.w3.org/Consortium/Translation/#discussions">Get in touch with us</a> <strong>before</strong> you start translating: someone may already be on the job. Someone from the W3C staff or validator development team will get back to you with details about how to translate the validator.</li>
39                                <li>Translate.<!-- Congratulations, you have made Unicorn more accessible to a lot more Web developers and designers.--></li>
40                        </ol>
41                </li>
42        </ul>
43       
44       
[676]45
[746]46        <h3>Help complete the translation of Unicorn in your language</h3>
[676]47        <p>The table below lists all the text strings used to translate the CSS validator:</p>
[677]48        <ul>
[746]49                <li>Cells marked <span class='missing'>✘</span> need a new or updated translation. You can click on any <span class='missing'>✘</span> to edit the coresponding language.</li>
[677]50                <li>Cells marked <span class='ok'>✔</span> are translated and up-to-date. Hover above <span class='ok'>✔</span> to read the current translation for each string.</li>
[676]51        </ul>
52        <p>You can help fill the blanks and complete the translation in <strong>your</strong> language!</p>
53</div>
54
[637]55<div id="translations">
56        <table>
57                <thead>
[635]58                        <tr>
[637]59                                <th scope="col">Property</th>
[1008]60                        #foreach($locale in $uiLocales)
61                        #if ($locale != $defaultLocale)
62                                #set($prop = $languageProps.get($locale))
63                                #set($meta = $metadataProps.get($locale))
64                                #set($percent = 100 * $math.div($math.add($prop.size(), $meta.size()), $math.add($defaultProps.size(), $defaultMetadata.size())))
[1025]65                                <th scope="col">$strUtils.capitalize($locale.getDisplayName($defaultLocale))<br /><span xml:lang="$locale.getName()">$strUtils.capitalize($locale.getDisplayName($locale))</span><br />$percent.intValue()%<br /><a href="./translations?ucn_lang=$locale.getName()">Edit</a></th>
[1008]66                        #end
[645]67                        #end
[635]68                        </tr>
[637]69                </thead>
70                <tbody>
71                        #foreach($key in $defaultProps.keySet())
72                                <tr>
[1300]73                                        <th class="property_name" scope="row" title="$esc.xml($defaultProps.get($key))">$key</th>
[1008]74                                        #foreach($locale in $uiLocales)
75                                        #if ($locale != $defaultLocale)
76                                                #set($localeKey = $locale.getName())
77                                                #set($prop = $languageProps.get($locale))
[637]78                                                #if($prop.get($key))
[1008]79                                                <td class="ok"><span xml:lang="$localeKey" title="$!esc.xml($prop.get($key))">✔</span></td>
[637]80                                                #{else}
[1008]81                                                <td class="missing"><span title="Missing translation of &quot;$esc.xml($defaultProps.get($key))&quot; in $locale.getDisplayName($defaultLocale)"><a href="./translations?ucn_lang=$localeKey">✘</a></span></td>
[637]82                                                #end
83                                        #end
[1008]84                                        #end
[637]85                                </tr>
86                        #end
[970]87                        #foreach($key in $defaultMetadata.keySet())
88                                <tr>
[1300]89                                        <th class="property_name" scope="row" title="$esc.xml($defaultMetadata.get($key))">$key</th>
[1008]90                                        #foreach($locale in $uiLocales)
91                                        #if ($locale != $defaultLocale)
92                                                #set($localeKey = $locale.getName())
93                                                #set($meta = $metadataProps.get($locale))
[970]94                                                #if($meta.get($key))
[1008]95                                                <td class="ok"><span xml:lang="localeKey" title="$!esc.xml($meta.get($key))">✔</span></td>
[970]96                                                #{else}
[1008]97                                                <td class="missing"><span title="Missing translation of &quot;$esc.xml($defaultMetadata.get($key))&quot; in $locale.getDisplayName($defaultLocale)"><a href="./translations?ucn_lang=$localeKey">✘</a></span></td>
[970]98                                                #end
99                                        #end
[1008]100                                        #end
[970]101                                </tr>
102                        #end
[637]103                </tbody>
104        </table>
105</div>
[635]106
107#parse('footer.vm')
Note: See TracBrowser for help on using the browser.