Template:OBX pot: Difference between revisions

From OLPC
Jump to navigation Jump to search
(tweaking for option POT repository)
(switching to named parameters for each lang-xx)
Line 1: Line 1:
{{OBX boilerplate html | icon=POT | textstyle = "font-size:8pt; background:#ABB3AC; padding:4pt; line-height:1.25em;" | text = {{#if:{{{3|}}}|{{{3}}} -|}} '''{{{1}}}'''<br><span class="plainlinks">{{{2}}}</span>}}<noinclude>{{-}}
{{OBX boilerplate html | icon=POT | textstyle = "font-size:8pt; background:#ABB3AC; padding:4pt; line-height:1.25em;" | text = {{#if:{{{root|}}}|{{{root}}} -|}} '''{{{pot|NONE}}}'''<br><span class="plainlinks"><!--
-->{{#if:{{{am|}}}| - [{{{am}}} am]}}<!--
-->{{#if:{{{ar|}}}| - [{{{ar}}} ar]}}<!--
-->{{#if:{{{en|}}}| - [{{{en}}} en]}}<!--
-->{{#if:{{{es|}}}| - [{{{es}}} es]}}<!--
-->{{#if:{{{fr|}}}| - [{{{fr}}} fr]}}<!--
-->{{#if:{{{ha|}}}| - [{{{ha}}} ha]}}<!--
-->{{#if:{{{ig|}}}| - [{{{ig}}} ig]}}<!--
-->{{#if:{{{ne|}}}| - [{{{ne}}} ne]}}<!--
-->{{#if:{{{pt|}}}| - [{{{pt}}} pt]}}<!--
-->{{#if:{{{ro|}}}| - [{{{ro}}} ro]}}<!--
-->{{#if:{{{ru|}}}| - [{{{ru}}} ru]}}<!--
-->{{#if:{{{rw|}}}| - [{{{rw}}} rw]}}<!--
-->{{#if:{{{th|}}}| - [{{{th}}} th]}}<!--
-->{{#if:{{{ur|}}}| - [{{{ur}}} ur]}}<!--
-->{{#if:{{{yo|}}}| - [{{{yo}}} yo]}}<!--
-->{{#if:{{{others|}}}| - {{{others}}}}}</span>}}<!--

CATEGORIZATIONS PRESENT

--><includeonly><!--
-->{{#if:{{{pot|}}}|[[Category:POT|{{PAGENAME}}]]}}<!--
-->{{#if:{{{am|}}}|[[Category:PO lang-am|{{PAGENAME}}]]}}<!--
-->{{#if:{{{ar|}}}|[[Category:PO lang-ar|{{PAGENAME}}]]}}<!--
-->{{#if:{{{en|}}}|[[Category:PO lang-en|{{PAGENAME}}]]}}<!--
-->{{#if:{{{es|}}}|[[Category:PO lang-es|{{PAGENAME}}]]}}<!--
-->{{#if:{{{fr|}}}|[[Category:PO lang-fr|{{PAGENAME}}]]}}<!--
-->{{#if:{{{ha|}}}|[[Category:PO lang-ha|{{PAGENAME}}]]}}<!--
-->{{#if:{{{ig|}}}|[[Category:PO lang-ig|{{PAGENAME}}]]}}<!--
-->{{#if:{{{ne|}}}|[[Category:PO lang-ne|{{PAGENAME}}]]}}<!--
-->{{#if:{{{pt|}}}|[[Category:PO lang-pt|{{PAGENAME}}]]}}<!--
-->{{#if:{{{ro|}}}|[[Category:PO lang-ro|{{PAGENAME}}]]}}<!--
-->{{#if:{{{ru|}}}|[[Category:PO lang-ru|{{PAGENAME}}]]}}<!--
-->{{#if:{{{rw|}}}|[[Category:PO lang-rw|{{PAGENAME}}]]}}<!--
-->{{#if:{{{th|}}}|[[Category:PO lang-th|{{PAGENAME}}]]}}<!--
-->{{#if:{{{ur|}}}|[[Category:PO lang-ur|{{PAGENAME}}]]}}<!--
-->{{#if:{{{yo|}}}|[[Category:PO lang-yo|{{PAGENAME}}]]}}<!--
-->{{#if:{{{others|}}}|[[Category:PO lang-others|{{PAGENAME}}]]}}<!--

CATEGORIZATIONS ABSENT

-->{{#if:{{{pot|}}}||[[Category:POT wanted|{{PAGENAME}}]]}}<!--
-->{{#if:{{{am|}}}||[[Category:PO wanted lang-am|{{PAGENAME}}]]}}<!--
-->{{#if:{{{ar|}}}||[[Category:PO wanted lang-ar|{{PAGENAME}}]]}}<!--
-->{{#if:{{{en|}}}||[[Category:PO wanted lang-en|{{PAGENAME}}]]}}<!--
-->{{#if:{{{es|}}}||[[Category:PO wanted lang-es|{{PAGENAME}}]]}}<!--
-->{{#if:{{{fr|}}}||[[Category:PO wanted lang-fr|{{PAGENAME}}]]}}<!--
-->{{#if:{{{ha|}}}||[[Category:PO wanted lang-ha|{{PAGENAME}}]]}}<!--
-->{{#if:{{{ig|}}}||[[Category:PO wanted lang-ig|{{PAGENAME}}]]}}<!--
-->{{#if:{{{ne|}}}||[[Category:PO wanted lang-ne|{{PAGENAME}}]]}}<!--
-->{{#if:{{{pt|}}}||[[Category:PO wanted lang-pt|{{PAGENAME}}]]}}<!--
-->{{#if:{{{ro|}}}||[[Category:PO wanted lang-ro|{{PAGENAME}}]]}}<!--
-->{{#if:{{{ru|}}}||[[Category:PO wanted lang-ru|{{PAGENAME}}]]}}<!--
-->{{#if:{{{rw|}}}||[[Category:PO wanted lang-rw|{{PAGENAME}}]]}}<!--
-->{{#if:{{{th|}}}||[[Category:PO wanted lang-th|{{PAGENAME}}]]}}<!--
-->{{#if:{{{ur|}}}||[[Category:PO wanted lang-ur|{{PAGENAME}}]]}}<!--
-->{{#if:{{{yo|}}}||[[Category:PO wanted lang-yo|{{PAGENAME}}]]}}</includeonly><noinclude>{{-}}


== Usage ==
== Usage ==


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

<nowiki>{{</nowiki>{{PAGENAME}}|linkToPOT|linkOrSeriesOfPOs|''linkToRepository''<nowiki>}}</nowiki>
<nowiki>{{</nowiki>{{PAGENAME}}
| ''root'' = &lt;-- OPTIONAL - the 'root' directory where l10n resources are located --&gt;
linkToPOT &mdash; the wiki-link to the location of the master POT (ie: [http://foo.com/potFile potFile] or [[pot-in-wiki]])
| '''pot''' = &lt;-- link to the '''POT''' file --&gt;
linkOrSeriesOfPOs &mdash; wiki-text containing the links to each of the translated POs
| am = &lt;-- link to the PO file in [am] - {{#language:am}} --&gt;
''linkToRepository'' &mdash; OPTIONAL
| ar = &lt;-- link to the PO file in [ar] - {{#language:ar}} --&gt;
| en = &lt;-- link to the PO file in [en] - {{#language:en}} --&gt;
| es = &lt;-- link to the PO file in [es] - {{#language:es}} --&gt;
| fr = &lt;-- link to the PO file in [fr] - {{#language:fr}} --&gt;
| ha = &lt;-- link to the PO file in [ha] - {{#language:ha}} --&gt;
| ig = &lt;-- link to the PO file in [ig] - {{#language:ig}} --&gt;
| ne = &lt;-- link to the PO file in [ne] - {{#language:ne}} --&gt;
| pt = &lt;-- link to the PO file in [pt] - {{#language:pt}} --&gt;
| ro = &lt;-- link to the PO file in [ro] - {{#language:ro}} --&gt;
| ru = &lt;-- link to the PO file in [ru] - {{#language:ru}} --&gt;
| rw = &lt;-- link to the PO file in [rw] - {{#language:rw}} --&gt;
| th = &lt;-- link to the PO file in [th] - {{#language:th}} --&gt;
| ur = &lt;-- link to the PO file in [ur] - {{#language:ur}} --&gt;
| yo = &lt;-- link to the PO file in [yo] - {{#language:yo}} --&gt;
| ''others'' = &lt;-- OPTIONAL - if no parameter for the specific [[ISO 639]] code is available, add as wiki-links --&gt;
<nowiki>}}</nowiki>

'''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).


== Categories ==
== Categories ==

* {{Pending|need to determine if a category is needed (and which)}}
* {{Pending|need to determine if a category is needed (and which)}}
* Pages will be categorized in either a sub-category of [[:Category:POs available]] or [[:Category:POs wanted]] (both sub-divided by language).
* <nowiki>[[:Category:???]]</nowiki>
* If '''others''' parameter is declared, the including pages will also be in [[:Category:PO lang-others]]


== Sample ==
== Sample ==


{{{{PAGENAME}}
{{{{PAGENAME}} | [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.pot write.master.pot] | [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.ar.po ar] {{!}} [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.el.po el] {{!}} [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.es.po es] {{!}} [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.fr.po fr] {{!}} [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.pt_BR.po pt_BR] | [http://translate.fedoraproject.org/module/olpc-write fedoraproject.org] }}
| pot=[http://translate.fedoraproject.org/POT/olpc-write.master/write.master.pot write.master.pot]
| ar=http://translate.fedoraproject.org/POT/olpc-write.master/write.master.ar.po
| es=http://translate.fedoraproject.org/POT/olpc-write.master/write.master.es.po
| fr=http://translate.fedoraproject.org/POT/olpc-write.master/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]
| root=[http://translate.fedoraproject.org/module/olpc-write fedoraproject.org] }}
{{-}}
{{-}}
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>
| [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.pot write.master.pot]
| pot=[http://translate.fedoraproject.org/POT/olpc-write.master/write.master.pot write.master.pot]
| [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.ar.po ar]
| ar=http://translate.fedoraproject.org/POT/olpc-write.master/write.master.ar.po
{{!}} [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.el.po el]
| es=http://translate.fedoraproject.org/POT/olpc-write.master/write.master.es.po
{{!}} [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.es.po es]
| fr=http://translate.fedoraproject.org/POT/olpc-write.master/write.master.fr.po
{{!}} [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.fr.po fr]
| 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]
{{!}} [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.pt_BR.po pt_BR]
| root=[http://translate.fedoraproject.org/module/olpc-write fedoraproject.org] }}
</nowiki>
| [http://translate.fedoraproject.org/module/olpc-write fedoraproject.org] }}</nowiki>


{{{{PAGENAME}}
{{{{PAGENAME}} | [[Kuku/Localization#kuku.pot|kuku.pot]] | [[Kuku/Localization#ar - kuku.po|ar]] {{!}} [[Kuku/Localization#en - kuku.po|en]] {{!}} [[Kuku/Localization#es - kuku.po|es]] {{!}} [[Kuku/Localization#pt_BR - kuku.po|pt_BR]] {{!}} [[Kuku/Localization#sw - kuku.po|sw]] {{!}} | [[Kuku/Localization]] }}
| pot=[[Kuku/Localization#kuku.pot|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]] }}
{{-}}
{{-}}
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>
| [[Kuku/Localization#kuku.pot|kuku.pot]]
| pot=[[Kuku/Localization#kuku.pot|kuku.pot]]
| [[Kuku/Localization#ar - kuku.po|ar]]
| ar=http://wiki.laptop.org/go/Kuku/Localization#ar - kuku.po
{{!}} [[Kuku/Localization#en - kuku.po|en]]
| en=http://wiki.laptop.org/go/Kuku/Localization#en - kuku.po
{{!}} [[Kuku/Localization#es - kuku.po|es]]
| es=http://wiki.laptop.org/go/Kuku/Localization#es - kuku.po
{{!}} [[Kuku/Localization#pt_BR - kuku.po|pt_BR]]
| others=[[Kuku/Localization#pt_BR - kuku.po|pt_BR]] / [[Kuku/Localization#sw - kuku.po|sw]]
{{!}} [[Kuku/Localization#sw - kuku.po|sw]]
| root=[[Kuku/Localization]] }} </nowiki>
| [[Kuku/Localization]] }}</nowiki>





Revision as of 16:51, 13 September 2007

POT NONE


Usage

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

{{OBX pot
 | root   = <-- OPTIONAL - the 'root' directory where l10n resources are located -->
 | pot    = <-- link to the POT file -->
 | am     = <-- link to the PO file in [am] - አማርኛ -->
 | ar     = <-- link to the PO file in [ar] - العربية -->
 | en     = <-- link to the PO file in [en] - English -->
 | es     = <-- link to the PO file in [es] - español -->
 | fr     = <-- link to the PO file in [fr] - français -->
 | ha     = <-- link to the PO file in [ha] - Hausa -->
 | ig     = <-- link to the PO file in [ig] - Igbo -->
 | ne     = <-- link to the PO file in [ne] - नेपाली -->
 | pt     = <-- link to the PO file in [pt] - português -->
 | ro     = <-- link to the PO file in [ro] - română -->
 | ru     = <-- link to the PO file in [ru] - русский -->
 | rw     = <-- link to the PO file in [rw] - Ikinyarwanda -->
 | th     = <-- link to the PO file in [th] - ไทย -->
 | ur     = <-- link to the PO file in [ur] - اردو -->
 | yo     = <-- link to the PO file in [yo] - Yorùbá -->
 | others = <-- OPTIONAL - if no parameter for the specific ISO 639 code is available, add as wiki-links -->
 }}

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).

Categories

Sample

POT fedoraproject.org - write.master.pot
- ar- es- fr- el / pt_BR


{{OBX pot 
 | pot=[http://translate.fedoraproject.org/POT/olpc-write.master/write.master.pot write.master.pot]
 | ar=http://translate.fedoraproject.org/POT/olpc-write.master/write.master.ar.po
 | es=http://translate.fedoraproject.org/POT/olpc-write.master/write.master.es.po
 | fr=http://translate.fedoraproject.org/POT/olpc-write.master/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]
 | root=[http://translate.fedoraproject.org/module/olpc-write fedoraproject.org] }}

POT Kuku/Localization - kuku.pot
- - kuku.po ar- - kuku.po en- - kuku.po es- pt_BR / sw


{{OBX pot 
 | pot=[[Kuku/Localization#kuku.pot|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]] }}