blob: 84a55bda28f6c81419d9a3ea9eee1cd6abf04308 [file] [log] [blame]
Jonas Häggqvist31ca70b2010-01-31 00:44:07 +00001{include file="header.tpl" title=$title rss="rss.php"}
2
3<h1>Rockbox translations</h1>
4
5<p>
6On this page you can see the current status of the various Rockbox translations.
7Ideally, all languages below should be at 100%. In reality though, this is not
8the case. You can help remedy this situation by clicking on the name of a
9language you speak and help translate Rockbox all within the comfort of your
10webbrowser. Alternatively, you can go to <a
Solomon Peachy5c91bbb2020-05-21 20:59:25 -040011href="//www.rockbox.org/twiki/bin/view/Main/LangFiles">this page</a> in the
Jonas Häggqvist31ca70b2010-01-31 00:44:07 +000012Rockbox wiki, which will tell you how to update languages the more manual, but
13possibly slightly safer way.
14</p>
Solomon Peachy5c91bbb2020-05-21 20:59:25 -040015<p>You can also find some stats about <a href="//translate.rockbox.org/whichfont.php">font coverage</a>.</p>
Solomon Peachya7f2dca2020-07-14 08:31:11 -040016<p><em>Note that the Rockbox Utility is translated separately, please see the
17<a href="//www.rockbox.org/wiki/Main/RockboxUtilityDevelopment#How_to_Translate">Rockbox Utility Development</a> page on the wiki.</em></p>
Jonas Häggqvist31ca70b2010-01-31 00:44:07 +000018
19<h2>Current translation status</h2>
20<ul>
21{foreach from=$summary key=k item=v}
22 <li>{$v} {$k} translations
23 {if $k=="good"}(&gt;95% translated){/if}
24 {if $k=="normal"}(&gt;50% translated){/if}
25 {if $k=="bad"}(&lt;50% translated){/if}
26 </li>
27{/foreach}
28</ul>
29
30<table>
31 <thead>
32 <tr>
33 <td colspan='4'>Language</td>
34 <td>Last update</td>
35 <td>Progress</td>
Solomon Peachyb61343c2020-07-27 15:59:47 -040036 <td>Missing phrases</td>
Jonas Häggqvist31ca70b2010-01-31 00:44:07 +000037 <td>Changed description</td>
38 <td>Changed source</td>
Solomon Peachyb61343c2020-07-27 15:59:47 -040039 <td>Missing translation</td>
40 <td>Missing voice</td>
41 <td>Same as English</td>
Jonas Häggqvist31ca70b2010-01-31 00:44:07 +000042 </tr>
43 </thead>
44 {foreach from=$langstats key=langfile item=language}
45 {if $language.percentage == 100}
46 {assign var='rowclass' value='good'}
47 {elseif $language.percentage < 50}
48 {assign var='rowclass' value='poor'}
49 {else}
50 {assign var='rowclass' value=''}
51 {/if}
52 <tr class="{$rowclass}">
53 <td>
54 <img class="flagthumb" src="flags/22/{$language.flag}.png" />
55 </td>
56 <td>
Solomon Peachybe29be12020-04-10 16:39:41 -040057 {if $langfile != 'english'}
Jonas Häggqvist31ca70b2010-01-31 00:44:07 +000058 <a href='problems.php?lang={$langfile}'><img style='border: none' src='warning.gif' width='16' height='16' /></a>
Solomon Peachybe29be12020-04-10 16:39:41 -040059 {/if}
Jonas Häggqvist31ca70b2010-01-31 00:44:07 +000060 </td>
61 <td>
62 {if file_exists('graphs/$langfile')}
63 <a href='graphs/{$langfile}.png'><img style='border: none' src='graph.png' width='16' height='16' /></a>
64 {/if}
65 </td>
66 <td>
Solomon Peachyb61343c2020-07-27 15:59:47 -040067 {if $language.percentage == 100 && $language.desc == 0 && $language.source == 0 && $language.dest == 0 && $language.voice == 0}
Jonas Häggqvist31ca70b2010-01-31 00:44:07 +000068 {$language.name}
69 {else}
70 <a href='edit.php?lang={$langfile}'>{$language.name}</a>
71 {/if}
72 </td>
73 <td>
Solomon Peachy18b71412020-07-08 21:11:27 -040074 <a href='//git.rockbox.org/cgit/rockbox.git/commit/?id={$language.last_update_rev}' title='{$language.last_update|date_format:"%c"}'>
Jonas Häggqvist31ca70b2010-01-31 00:44:07 +000075 {$language.last_update|simple_timesince}
76 </a>
77 </td>
78 <td><img title='{$language.percentage|string_format:"%.2f%%"}' src='graph.php?p={$language.percentage|string_format:"%.2f"}' /></td>
79 </td>
80 <td>{$language.missing}</td>
81 <td>{$language.desc}</td>
82 <td>{$language.source}</td>
Solomon Peachyb61343c2020-07-27 15:59:47 -040083 <td>{$language.dest}</td>
84 <td>{$language.voice}</td>
85 <td>{$language.voicedup + $language.destdup}</td>
Jonas Häggqvist31ca70b2010-01-31 00:44:07 +000086 </tr>
87 {/foreach}
88</table>
89
90<h2>Perform automated cleanup</h2>
91<p>Using the form below, it's possible to perform automated cleanups of a
92translation. Be aware though, that this might produce unwanted results in some
93cases, so you're required to check the results rather than blindly trusting
94them.</p>
95
96<form action="fixlang.php" method="GET">
97<table>
98 <tr>
99 <td>Language</td>
100 <td>
101 <select name="lang">
102 {foreach from=$languages item=language key=langfile}
103 {if $langfile != 'upload'}
104 <option value='{$langfile}'>{$language.name}</option>
105 {/if}
106 {/foreach}
107 </select>
108 </td>
109 </tr>
110 <tr>
111 <td>
112 <label for='voice' title='Copy translation to voice for phrases where string and voice are the same in the English language file'>Copy voice strings</label>
113 </td>
114 <td>
115 <input type='checkbox' id='voice', name='voice' title='Copy translation to voice for phrases where string and voice are the same in the English language file' />
116 </td>
117 </tr>
118 <tr>
119 <td>
120 <label for='empty' title='Make empty and "none" strings match the English language file'>Fix empty strings</label>
121 </td>
122 <td>
123 <input type='checkbox' id='empty', name='empty' title='Make empty and "none" strings match the English language file' />
124 </td>
125 </tr>
126 <tr>
127 <td>
128 <label for='sort' title='Sort phrases in the same order as the English language file'>Sort in English order</label>
129 </td>
130 <td>
131 <input type='checkbox' id='sort', name='sort' title='Sort phrases in the same order as the English language file' />
132 </td>
133 </tr>
134 <tr>
135 <td>
136 <label for='sendfile' title='Prompt to save the result on disk'>Save result as file</label>
137 </td>
138 <td>
139 <input type='checkbox' id='sendfile', name='sendfile' title='Prompt to save the result on disk' />
140 </td>
141 </tr>
142 <tr>
143 <td align="right" colspan="2"><input type="submit" /></td>
144 </tr>
145</table>
146</form>
147
148</table>
149
150{include file="footer.tpl"}