Template:OBX pot: Difference between revisions
Jump to navigation
Jump to search
m (don't show any text for localization URL property) |
(remove am(haric), update doc) |
||
Line 1: | Line 1: | ||
{{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><!-- |
{{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:{{{am|}}}| {{!}} [{{{po-root|}}}{{{am}}} am] }}<!-- |
|||
-->{{#if:{{{ar|}}}| {{!}} [{{{po-root|}}}{{{ar}}} ar] }}<!-- |
-->{{#if:{{{ar|}}}| {{!}} [{{{po-root|}}}{{{ar}}} ar] }}<!-- |
||
-->{{#if:{{{en|}}}| {{!}} [{{{po-root|}}}{{{en}}} en] }}<!-- |
-->{{#if:{{{en|}}}| {{!}} [{{{po-root|}}}{{{en}}} en] }}<!-- |
||
Line 24: | Line 23: | ||
HAVE POT |
HAVE POT |
||
-->[[Category:POT|{{PAGENAME}}]]<!-- |
-->[[Category:POT|{{PAGENAME}}]]<!-- |
||
-->{{#if:{{{am|}}}| [[Category:PO lang-am|{{PAGENAME}}]] | [[Category:PO wanted lang-am|{{PAGENAME}}]] }}<!-- |
|||
-->{{#if:{{{ar|}}}| [[Category:PO lang-ar|{{PAGENAME}}]] | [[Category:PO wanted lang-ar|{{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:{{{en|}}}| [[Category:PO lang-en|{{PAGENAME}}]] | [[Category:PO wanted lang-en|{{PAGENAME}}]] }}<!-- |
||
Line 73: | Line 71: | ||
<nowiki>}}</nowiki> |
<nowiki>}}</nowiki> |
||
The explicit [[ISO 639-1|language codes]] correspond to the current list of targeted languages of the green countries: |
The explicit [[ISO 639-1|language codes]] correspond to the current list of targeted languages of the ''obsolete'' green countries from 2007: |
||
: {{Status green language codes}} |
: {{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). |
'''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 (Amharic, Ethiopia) as no .po files in that language |
|||
== Categories == |
== Categories == |
||
Line 82: | Line 83: | ||
* [[:Category:Pootle]] |
* [[:Category:Pootle]] |
||
* [[:Category:POT]] if the <tt>pot</tt> parameter is provided, otherwise [[:Category:POT wanted]]. |
* [[:Category:POT]] if the <tt>pot</tt> parameter is provided, otherwise [[:Category:POT wanted]]. |
||
* Pages will be categorized in |
* 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]] |
* 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. |
* The [[Semantic MediaWiki|semantic]] [[Property:Localization URL]] is set as well if <tt>pot</tt> is specified. |
Revision as of 08:40, 24 May 2009
Localization .POT file NEEDED |
Usage
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 --> | am = <-- http (or relative path from po-root) to the PO file in [am] - አማርኛ --> | 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 --> | ha = <-- http (or relative path from po-root) to the PO file in [ha] - Hausa --> | hi = <-- http (or relative path from po-root) to the PO file in [hi] - हिन्दी --> | ig = <-- http (or relative path from po-root) to the PO file in [ig] - Igbo --> | ne = <-- http (or relative path from po-root) to the PO file in [ne] - नेपाली --> | 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ă --> | ru = <-- http (or relative path from po-root) to the PO file in [ru] - русский --> | rw = <-- http (or relative path from po-root) to the PO file in [rw] - Ikinyarwanda --> | th = <-- http (or relative path from po-root) to the PO file in [th] - ไทย --> | ur = <-- http (or relative path from po-root) to the PO file in [ur] - اردو --> | yo = <-- http (or relative path from po-root) to the PO file in [yo] - Yorùbá --> | 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 correspond to the current list of targeted languages of the obsolete green countries from 2007:
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 (Amharic, Ethiopia) as no .po files in that language
Categories
- Category:Pootle
- Category:POT if the pot 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 others parameter is specified, the including pages will also be in Category:PO lang-others
- The semantic Property:Localization URL is set as well if pot is specified.
Sample
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] }}
{{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]] }}
Categories:
- POT
- PO lang-ar
- PO wanted lang-en
- PO lang-es
- PO lang-fr
- PO wanted lang-ha
- PO wanted lang-hi
- PO wanted lang-ig
- PO wanted lang-ne
- PO wanted lang-pt
- PO wanted lang-ro
- PO wanted lang-ru
- PO wanted lang-rw
- PO wanted lang-th
- PO wanted lang-ur
- PO wanted lang-yo
- PO lang-others
- PO lang-en
- PO wanted lang-fr
- OBX templates
- Templates using ParserFunctions