Template:OBX pot: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (typo)
m (→‎Usage: only some language codes)
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{OBX boilerplate html | icon=POT | textstyle = "font-size:8pt; background:#ABB3AC; padding:4pt; line-height:1.25em;" | text = {{{3}}} - {{{1}}}<br><span class="plainlinks">{{{2}}}</span>}}<noinclude>{{-}}
{{OBX boilerplate html | icon=[[Image:Translate-icon-55px.svg|40px]] | text = {{#if:{{{root|}}}|{{{root}}} -|}} '''{{#if:{{{pot|}}}|[{{{pot}}} {{{name|POT}}}][[Localization URL::{{{pot}}}| ]]|<span style="color:red">[[Localization]]<br>.POT file NEEDED</span>}}'''<br><span class="plainlinks"><tt><!--
-->{{#if:{{{ar|}}}| {{!}} [{{{po-root|}}}{{{ar}}} ar]&nbsp;}}<!--
-->{{#if:{{{en|}}}| {{!}} [{{{po-root|}}}{{{en}}} en]&nbsp;}}<!--
-->{{#if:{{{es|}}}| {{!}} [{{{po-root|}}}{{{es}}} es]&nbsp;}}<!--
-->{{#if:{{{fr|}}}| {{!}} [{{{po-root|}}}{{{fr}}} fr]&nbsp;}}<!--
-->{{#if:{{{pt|}}}| {{!}} [{{{po-root|}}}{{{pt}}} pt]&nbsp;}}<!--
-->{{#if:{{{ro|}}}| {{!}} [{{{po-root|}}}{{{ro}}} ro]&nbsp;}}<!--
-->{{#if:{{{others|}}}| <br>'''Others''' {{{others}}}}}</tt></span>}}<!--

CATEGORIZATIONS PRESENT

--><includeonly><!--
-->{{#if:{{{pot|}}}|<!--
HAVE POT
-->[[Category:POT|{{PAGENAME}}]]<!--
-->{{#if:{{{ar|}}}| [[Category:PO lang-ar|{{PAGENAME}}]] | [[Category:PO wanted lang-ar|{{PAGENAME}}]] }}<!--
-->{{#if:{{{en|}}}| [[Category:PO lang-en|{{PAGENAME}}]] | [[Category:PO wanted lang-en|{{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:{{{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:{{{others|}}}| [[Category:PO lang-others|{{PAGENAME}}]] }}<!--
HAVE NO POT
--> | [[Category:POT wanted|{{PAGENAME}}]]}}</includeonly><noinclude>{{-}}


== Usage ==
== Usage ==


'''NOTE:''' Use {{tl|OBX pootle}} if your project uses [[Pootle]]!! That avoids hardcoded PO categories.
Used to declare the POT of the software. Has three unnamed parameters:

<nowiki>{{</nowiki>{{PAGENAME}}|linkToPOT|linkOrSeriesOfPOs|''linkToRepository''<nowiki>}}</nowiki>
Used to declare the POT & PO files of the software/activity. Parameters are:

linkToPOT &mdash; the wiki-link to the location of the master POT (ie: [http://foo.com/potFile potFile] or [[pot-in-wiki]])
<nowiki>{{</nowiki>{{PAGENAME}}
linkOrSeriesOfPOs &mdash; wiki-text containing the links to each of the translated POs
| ''root'' = &lt;-- OPTIONAL - full-wiki link to the 'root' directory where l10n resources are located --&gt;
''linkToRepository'' &mdash; OPTIONAL
| '''pot''' = &lt;-- URL of the '''POT''' file in <tt>http://foo.bar</tt> format --&gt;
| ''name'' = &lt;-- OPTIONAL - Name to show for the POT file &mdash; defaults to '''POT''' --&gt;
| ar = &lt;-- http (or relative path from ''po-root'') to the PO file in [ar] - {{#language:ar}} --&gt;
| en = &lt;-- http (or relative path from ''po-root'') to the PO file in [en] - {{#language:en}} --&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;
| 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;
| ''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;
| ''others'' = &lt;-- OPTIONAL - if no parameter for the specific [[ISO 639]] code is available, add as wiki-links --&gt;
<nowiki>}}</nowiki>

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}}

'''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 ==
== Categories ==

* {{Pending|need to determine if a category is needed (and which)}}
* <nowiki>[[:Category:???]]</nowiki>
* [[:Category:Pootle]]
* [[:Category:POT]] if the <tt>pot</tt> parameter is provided, otherwise [[:Category:POT wanted]].
* Pages will be categorized in "Category:PO lang-''code''" or "Category:PO lang-''code'' wanted" subcategories of [[:Category:PO]].
* If <tt>others</tt> parameter is specified, the including pages will also be in [[:Category:PO lang-others]]
* The [[Semantic MediaWiki|semantic]] [[Property:Localization URL]] is set as well if <tt>pot</tt> is specified.


== 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] }}
| 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] }}
{{-}}
{{-}}
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>
| [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.pot write.master.pot]
| root = [http://translate.fedoraproject.org/module/olpc-write fedoraproject.org]
| [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.ar.po ar]
| pot = http://translate.fedoraproject.org/POT/olpc-write.master/write.master.pot
| name = write.master.pot
{{!}} [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]
| po-root= http://translate.fedoraproject.org/POT/olpc-write.master/
| ar = write.master.ar.po
{{!}} [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.fr.po fr]
| es = write.master.es.po
{{!}} [http://translate.fedoraproject.org/POT/olpc-write.master/write.master.pt_BR.po pt_BR]
| fr = write.master.fr.po
| [http://translate.fedoraproject.org/module/olpc-write fedoraproject.org] }}</nowiki>
| 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] }}</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 = 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]] }}
{{-}}
{{-}}
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>
| [[Kuku/Localization#kuku.pot|kuku.pot]]
| pot = http://wiki.laptop.org/go/Kuku/Localization#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>




[[Category:OBX templates|Pot]]
[[Category:OBX templates|Pot]]
[[Category:Templates using ParserFunctions]]
</noinclude>
</noinclude>

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]] }}