root/WebContent/WEB-INF/resources/templates/language.vm @ 1300:025543f6dbbc

Revision 1300:025543f6dbbc, 5.0 KB (checked in by Thomas Gambet <tgambet@…>, 3 years ago)

removed comments

Line 
1#set ($title = "Unicorn - Translations")
2#set ($css = ['base_ucn.css'])
3#set ($js = ['mootools-1.2.3-core-more-yc.js', 'w3c_unicorn_languages.js'])
4#parse('head.vm')
5
6#if ($messages)
7#displayMessages($messages)
8#end
9
10<div class="text">
11        <h2>Translation of Unicorn</h2>
12        #set($langNb = $uiLocales.size())
13        <p>Unicorn is currently available in $langNb languages. <!--The translations are mainly contributed by <a href="thanks.html">volunteers</a>.--></p>
14
15        <h3>Translate Unicorn in a new language</h3>
16       
17        <p>If Unicorn is not yet available in your native language and you would like to translate it:</p>
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">
25                                        #foreach ($locale in $availableLocales)
26                                        #set($localeKey = $locale.getName())
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>
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>
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>
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       
45
46        <h3>Help complete the translation of Unicorn in your language</h3>
47        <p>The table below lists all the text strings used to translate the CSS validator:</p>
48        <ul>
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>
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>
51        </ul>
52        <p>You can help fill the blanks and complete the translation in <strong>your</strong> language!</p>
53</div>
54
55<div id="translations">
56        <table>
57                <thead>
58                        <tr>
59                                <th scope="col">Property</th>
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())))
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>
66                        #end
67                        #end
68                        </tr>
69                </thead>
70                <tbody>
71                        #foreach($key in $defaultProps.keySet())
72                                <tr>
73                                        <th class="property_name" scope="row" title="$esc.xml($defaultProps.get($key))">$key</th>
74                                        #foreach($locale in $uiLocales)
75                                        #if ($locale != $defaultLocale)
76                                                #set($localeKey = $locale.getName())
77                                                #set($prop = $languageProps.get($locale))
78                                                #if($prop.get($key))
79                                                <td class="ok"><span xml:lang="$localeKey" title="$!esc.xml($prop.get($key))">✔</span></td>
80                                                #{else}
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>
82                                                #end
83                                        #end
84                                        #end
85                                </tr>
86                        #end
87                        #foreach($key in $defaultMetadata.keySet())
88                                <tr>
89                                        <th class="property_name" scope="row" title="$esc.xml($defaultMetadata.get($key))">$key</th>
90                                        #foreach($locale in $uiLocales)
91                                        #if ($locale != $defaultLocale)
92                                                #set($localeKey = $locale.getName())
93                                                #set($meta = $metadataProps.get($locale))
94                                                #if($meta.get($key))
95                                                <td class="ok"><span xml:lang="localeKey" title="$!esc.xml($meta.get($key))">✔</span></td>
96                                                #{else}
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>
98                                                #end
99                                        #end
100                                        #end
101                                </tr>
102                        #end
103                </tbody>
104        </table>
105</div>
106
107#parse('footer.vm')
Note: See TracBrowser for help on using the browser.