Template:OBX pot: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (remove ha(usa), only Sugar core was ever translated to it.)
m (→‎Usage: only some language codes)
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
-->{{#if:{{{es|}}}| {{!}} [{{{po-root|}}}{{{es}}} es]&nbsp;}}<!--
-->{{#if:{{{es|}}}| {{!}} [{{{po-root|}}}{{{es}}} es]&nbsp;}}<!--
-->{{#if:{{{fr|}}}| {{!}} [{{{po-root|}}}{{{fr}}} fr]&nbsp;}}<!--
-->{{#if:{{{fr|}}}| {{!}} [{{{po-root|}}}{{{fr}}} fr]&nbsp;}}<!--
-->{{#if:{{{hi|}}}| {{!}} [{{{po-root|}}}{{{hi}}} hi]&nbsp;}}<!--
-->{{#if:{{{ig|}}}| {{!}} [{{{po-root|}}}{{{ig}}} ig]&nbsp;}}<!--
-->{{#if:{{{ne|}}}| {{!}} [{{{po-root|}}}{{{ne}}} ne]&nbsp;}}<!--
-->{{#if:{{{pt|}}}| {{!}} [{{{po-root|}}}{{{pt}}} pt]&nbsp;}}<!--
-->{{#if:{{{pt|}}}| {{!}} [{{{po-root|}}}{{{pt}}} pt]&nbsp;}}<!--
-->{{#if:{{{ro|}}}| {{!}} [{{{po-root|}}}{{{ro}}} ro]&nbsp;}}<!--
-->{{#if:{{{ro|}}}| {{!}} [{{{po-root|}}}{{{ro}}} ro]&nbsp;}}<!--
-->{{#if:{{{ru|}}}| {{!}} [{{{po-root|}}}{{{ru}}} ru]&nbsp;}}<!--
-->{{#if:{{{rw|}}}| {{!}} [{{{po-root|}}}{{{rw}}} rw]&nbsp;}}<!--
-->{{#if:{{{th|}}}| {{!}} [{{{po-root|}}}{{{th}}} th]&nbsp;}}<!--
-->{{#if:{{{ur|}}}| {{!}} [{{{po-root|}}}{{{ur}}} ur]&nbsp;}}<!--
-->{{#if:{{{yo|}}}| {{!}} [{{{po-root|}}}{{{yo}}} yo]&nbsp;}}<!--
-->{{#if:{{{others|}}}| <br>'''Others''' {{{others}}}}}</tt></span>}}<!--
-->{{#if:{{{others|}}}| <br>'''Others''' {{{others}}}}}</tt></span>}}<!--


Line 26: Line 18:
-->{{#if:{{{es|}}}| [[Category:PO lang-es|{{PAGENAME}}]] | [[Category:PO wanted lang-es|{{PAGENAME}}]] }}<!--
-->{{#if:{{{es|}}}| [[Category:PO lang-es|{{PAGENAME}}]] | [[Category:PO wanted lang-es|{{PAGENAME}}]] }}<!--
-->{{#if:{{{fr|}}}| [[Category:PO lang-fr|{{PAGENAME}}]] | [[Category:PO wanted lang-fr|{{PAGENAME}}]] }}<!--
-->{{#if:{{{fr|}}}| [[Category:PO lang-fr|{{PAGENAME}}]] | [[Category:PO wanted lang-fr|{{PAGENAME}}]] }}<!--
-->{{#if:{{{hi|}}}| [[Category:PO lang-hi|{{PAGENAME}}]] | [[Category:PO wanted lang-hi|{{PAGENAME}}]] }}<!--
-->{{#if:{{{ig|}}}| [[Category:PO lang-ig|{{PAGENAME}}]] | [[Category:PO wanted lang-ig|{{PAGENAME}}]] }}<!--
-->{{#if:{{{ne|}}}| [[Category:PO lang-ne|{{PAGENAME}}]] | [[Category:PO wanted lang-ne|{{PAGENAME}}]] }}<!--
-->{{#if:{{{pt|}}}| [[Category:PO lang-pt|{{PAGENAME}}]] | [[Category:PO wanted lang-pt|{{PAGENAME}}]] }}<!--
-->{{#if:{{{pt|}}}| [[Category:PO lang-pt|{{PAGENAME}}]] | [[Category:PO wanted lang-pt|{{PAGENAME}}]] }}<!--
-->{{#if:{{{ro|}}}| [[Category:PO lang-ro|{{PAGENAME}}]] | [[Category:PO wanted lang-ro|{{PAGENAME}}]] }}<!--
-->{{#if:{{{ro|}}}| [[Category:PO lang-ro|{{PAGENAME}}]] | [[Category:PO wanted lang-ro|{{PAGENAME}}]] }}<!--
-->{{#if:{{{ru|}}}| [[Category:PO lang-ru|{{PAGENAME}}]] | [[Category:PO wanted lang-ru|{{PAGENAME}}]] }}<!--
-->{{#if:{{{rw|}}}| [[Category:PO lang-rw|{{PAGENAME}}]] | [[Category:PO wanted lang-rw|{{PAGENAME}}]] }}<!--
-->{{#if:{{{th|}}}| [[Category:PO lang-th|{{PAGENAME}}]] | [[Category:PO wanted lang-th|{{PAGENAME}}]] }}<!--
-->{{#if:{{{ur|}}}| [[Category:PO lang-ur|{{PAGENAME}}]] | [[Category:PO wanted lang-ur|{{PAGENAME}}]] }}<!--
-->{{#if:{{{yo|}}}| [[Category:PO lang-yo|{{PAGENAME}}]] | [[Category:PO wanted lang-yo|{{PAGENAME}}]] }}<!--
-->{{#if:{{{others|}}}| [[Category:PO lang-others|{{PAGENAME}}]] }}<!--
-->{{#if:{{{others|}}}| [[Category:PO lang-others|{{PAGENAME}}]] }}<!--
HAVE NO POT
HAVE NO POT
Line 41: Line 25:


== Usage ==
== Usage ==

'''NOTE:''' Use {{tl|OBX pootle}} if your project uses [[Pootle]]!! That avoids hardcoded PO categories.


Used to declare the POT & PO files of the software/activity. Parameters are:
Used to declare the POT & PO files of the software/activity. Parameters are:
Line 52: Line 38:
| es = &lt;-- http (or relative path from ''po-root'') to the PO file in [es] - {{#language:es}} --&gt;
| es = &lt;-- http (or relative path from ''po-root'') to the PO file in [es] - {{#language:es}} --&gt;
| fr = &lt;-- http (or relative path from ''po-root'') to the PO file in [fr] - {{#language:fr}} --&gt;
| fr = &lt;-- http (or relative path from ''po-root'') to the PO file in [fr] - {{#language:fr}} --&gt;
| hi = &lt;-- http (or relative path from ''po-root'') to the PO file in [hi] - {{#language:hi}} --&gt;
| ig = &lt;-- http (or relative path from ''po-root'') to the PO file in [ig] - {{#language:ig}} --&gt;
| ne = &lt;-- http (or relative path from ''po-root'') to the PO file in [ne] - {{#language:ne}} --&gt;
| pt = &lt;-- http (or relative path from ''po-root'') to the PO file in [pt] - {{#language:pt}} --&gt;
| pt = &lt;-- http (or relative path from ''po-root'') to the PO file in [pt] - {{#language:pt}} --&gt;
| ro = &lt;-- http (or relative path from ''po-root'') to the PO file in [ro] - {{#language:ro}} --&gt;
| ro = &lt;-- http (or relative path from ''po-root'') to the PO file in [ro] - {{#language:ro}} --&gt;
| ru = &lt;-- http (or relative path from ''po-root'') to the PO file in [ru] - {{#language:ru}} --&gt;
| rw = &lt;-- http (or relative path from ''po-root'') to the PO file in [rw] - {{#language:rw}} --&gt;
| th = &lt;-- http (or relative path from ''po-root'') to the PO file in [th] - {{#language:th}} --&gt;
| ur = &lt;-- http (or relative path from ''po-root'') to the PO file in [ur] - {{#language:ur}} --&gt;
| yo = &lt;-- http (or relative path from ''po-root'') to the PO file in [yo] - {{#language:yo}} --&gt;
| ''po-root''= &lt;-- OPTIONAL - the 'root' directory where all the POs l10n resources are located
| ''po-root''= &lt;-- OPTIONAL - the 'root' directory where all the POs l10n resources are located
- if specified is prepended to all the [[ISO 639]] codes link, not used for '''others''' --&gt;
- if specified is prepended to all the [[ISO 639]] codes link, not used for '''others''' --&gt;
Line 67: Line 45:
<nowiki>}}</nowiki>
<nowiki>}}</nowiki>


The explicit [[ISO 639-1|language codes]] correspond to the current list of targeted languages of the ''obsolete'' green countries from 2007:
The explicit [[ISO 639-1|language codes]] are a subset of the ''obsolete'' list of targeted languages from the ''obsolete'' green countries from 2007:
: {{Status green language codes}}
: {{Status green language codes}}


Line 73: Line 51:


=== Update 2009 ===
=== Update 2009 ===
Removed am(mharic), hi(ndi), ne(pali), rw (kinyarwanda) & ur(du) as nothing categorized to those languages;
Removed am (Amharic, Ethiopia) as no .po files in that language
remove ig(bo) & yo(ruba) only Sugar core;
remove ru(ssian) & th(ai) only the Ruler app.


== Categories ==
== Categories ==

Latest revision as of 12:09, 24 May 2009

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


Usage

NOTE: Use {{OBX pootle}} if your project uses Pootle!! That avoids hardcoded PO categories.

Used to declare the POT & PO files of the software/activity. Parameters are:

{{OBX pot
 | root   = <-- OPTIONAL - full-wiki link to the 'root' directory where l10n resources are located -->
 | pot    = <-- URL of the POT file in http://foo.bar format -->
 | name   = <-- OPTIONAL - Name to show for the POT file — defaults to POT -->
 | ar     = <-- http (or relative path from po-root) to the PO file in [ar] - العربية -->
 | en     = <-- http (or relative path from po-root) to the PO file in [en] - English -->
 | es     = <-- http (or relative path from po-root) to the PO file in [es] - español -->
 | fr     = <-- http (or relative path from po-root) to the PO file in [fr] - français -->
 | pt     = <-- http (or relative path from po-root) to the PO file in [pt] - português -->
 | ro     = <-- http (or relative path from po-root) to the PO file in [ro] - română -->
 | po-root= <-- OPTIONAL - the 'root' directory where all the POs l10n resources are located
                         - if specified is prepended to all the ISO 639 codes link, not used for others -->
 | others = <-- OPTIONAL - if no parameter for the specific ISO 639 code is available, add as wiki-links -->
 }}

The explicit language codes are a subset of the obsolete list of targeted languages from the obsolete green countries from 2007:

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

NOTE: We are not using country specific codes (yet? ever?). If need arises, we can add specific parameters (ie: pt_BR but special considerations regarding categorizations should be done (ie: if pt_BR is defined, should pt be tagged as missing? or viceversa).

Update 2009

Removed am(mharic), hi(ndi), ne(pali), rw (kinyarwanda) & ur(du) as nothing categorized to those languages; remove ig(bo) & yo(ruba) only Sugar core; remove ru(ssian) & th(ai) only the Ruler app.

Categories

Sample

Translate-icon-55px.svg fedoraproject.org - write.master.pot
| ar | es | fr 
Others el / pt_BR


{{OBX pot 
 | root   = [http://translate.fedoraproject.org/module/olpc-write fedoraproject.org]
 | pot    = http://translate.fedoraproject.org/POT/olpc-write.master/write.master.pot
 | name   = write.master.pot
 | po-root= http://translate.fedoraproject.org/POT/olpc-write.master/
 | ar     = write.master.ar.po
 | es     = write.master.es.po
 | fr     = write.master.fr.po
 | others = [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.el.po el] / [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.pt_BR.po pt_BR] }}
Translate-icon-55px.svg Kuku/Localization - POT
| ar | en | es 
Others pt_BR - sw


{{OBX pot 
 | pot    = http://wiki.laptop.org/go/Kuku/Localization#kuku.pot
 | ar     = http://wiki.laptop.org/go/Kuku/Localization#ar_-_kuku.po
 | en     = http://wiki.laptop.org/go/Kuku/Localization#en_-_kuku.po
 | es     = http://wiki.laptop.org/go/Kuku/Localization#es_-_kuku.po
 | others = [[Kuku/Localization#pt_BR - kuku.po|pt_BR]] - [[Kuku/Localization#sw - kuku.po|sw]]
 | root   = [[Kuku/Localization]] }}