Template:OBX pootle: Difference between revisions

From OLPC
Jump to navigation Jump to search
(→‎Usage: better explanation)
m (update now that Pootle happens on http://translate.sugarlabs.org)
Line 14: Line 14:


<nowiki>{{</nowiki>{{PAGENAME}}
<nowiki>{{</nowiki>{{PAGENAME}}
| &lt;-- http to the '''POT''' file in <tt>http://foo.bar</tt> format (preferably in [http://dev.laptop.org dev.laptop.org]) --&gt;
| &lt;-- http to the '''POT''' file in <tt>http://foo.bar</tt> format --&gt;
| &lt;-- '''{ xocore | xobundled }''' &mdash; [[Pootle]] project name that includes it --&gt;
| &lt;-- { fructose| honey | ''other'' }''' &mdash; [[Pootle]] project name on http://translate.sugarlabs.org that includes it --&gt;
| &lt;-- OPTIONAL - Name to show for the POT file &mdash; defaults to '''POT''' --&gt;
| &lt;-- OPTIONAL - Name to show for the POT file &mdash; defaults to '''POT''' --&gt;
<nowiki>}}</nowiki>
<nowiki>}}</nowiki>

Revision as of 04:36, 24 May 2009

Translate-icon-55px.svg OLPC-Pootle Localization
.POT file NEEDED


Usage

Declares that a particular activity or content localization is going to be done through the Pootle translating server. If there are more than one POT file, a separate box should be used for each one of them. Unnamed parameters are:

{{OBX pootle
 | <-- http to the POT file in http://foo.bar format -->
 | <-- { fructose| honey | other }Pootle project name on http://translate.sugarlabs.org that includes it  -->
 | <-- OPTIONAL - Name to show for the POT file — defaults to POT -->
 }}

NOTE: There can not be any whitespace between the parameters!

If you supply a project name as the second parameter, the template generates a set of links within that project, one for each language. The set of language links is a hardcoded list of language codes corresponding to the current (not sure WTF the date of "current" is here) list of targeted languages of the "green" countries:

am, ar, en, es, fr, ha, hi, ig, ne, pt, ro, ru, rw, th, ur, & yo

See also: {{OBX pot}} for specifying Localization resources for activities outside the scope of Pootle.

Categories

Sample

Translate-icon-55px.svg OLPC-PootlePOT


{{OBX pootle  |http://wiki.laptop.org/go/Kuku/Localization#kuku.pot}}
Translate-icon-55px.svg OLPC-PootlePOT
am, ar, en, es, fr, ha, hi, ig, ne, pt, pt_BR, ro, ru, rw, th, ur & yo.


{{OBX pootle |http://www.mediamods.com/public-svn/camera-activity/Record.activity/po/Record.pot|xocore}}
Translate-icon-55px.svg OLPC-Pootlewrite.master.pot
am, ar, en, es, fr, ha, hi, ig, ne, pt, pt_BR, ro, ru, rw, th, ur & yo.


{{OBX pootle |http://translate.fedoraproject.org/POT/olpc-write.master/write.master.pot|xocore|write.master.pot }}