62
edits
m (→Caveats: Adding declensions) |
m (→Localizing Templates: Adding other examples, links towards cvsview) |
||
| Line 208: | Line 208: | ||
</tr> | </tr> | ||
</pre> | </pre> | ||
TBD : add other tricky examples | |||
You will encounter many buttons you will want to localize. These are looking like this: | |||
<pre> | |||
<input type="submit" id="create" value="Add"> | |||
<input type="hidden" name="action" value="new"> | |||
<input type="hidden" name='product' value="[% product.name FILTER html %]"> | |||
<input type="hidden" name="token" value="[% token FILTER html %]"> | |||
</pre> | |||
Whenever you see this, the only line that needs to be localize is the one with <tt>type="submit"</tt>. DO NOT translate lines with <tt>type="hidden"</tt>: | |||
<pre> | |||
<input type="submit" id="create" value="Ajouter"> | |||
<input type="hidden" name="action" value="new"> | |||
<input type="hidden" name='product' value="[% product.name FILTER html %]"> | |||
<input type="hidden" name="token" value="[% token FILTER html %]"> | |||
</pre> | |||
Other common lines through the templates are text enclosed between an opening and a closing tag: | |||
<pre> | |||
<td valign="top">Description du produit :</td> | |||
<TD VALIGN="top">[% IF product.disallow_new %]Oui[% ELSE %]Non[% END %]</td> | |||
<a title="Liste des [% terms.bugs %] pour le composant « [% comp.name FILTER html %] »" | |||
href="buglist.cgi?component=[% comp.name FILTER url_quote %]&product= | |||
[%- product.name FILTER url_quote %]">[% comp.bug_count %]</a> | |||
</pre> | |||
If you have doubts, you can take a look at other working locales. Though there might have some errors left, the are working and noone reported bugs at they moment about localization : | |||
[http://frenchmozilla.cvs.sourceforge.net/frenchmozilla/bugzilla/ French 3.1.x Bugzilla series] | |||
[http://frenchmozilla.cvs.sourceforge.net/frenchmozilla/bugzilla/?pathrev=BZ_3_0_BRANCH French 3.0.x Bugzilla series] | |||
... | |||
TBD : add other tricky examples; some examples should be in non-Latin alphabet to popup clearly. Adding other links towards working locales. | |||
==== Hardcoded strings ==== | ==== Hardcoded strings ==== | ||
edits