Template:Include PO

From OLPC
Revision as of 17:34, 2 April 2007 by Xavi (talk | contribs) (fixed section parameter)
Jump to navigation Jump to search
  Included page/section [[PO-laptop.org-{{{section}}}-{{{lang}}}]] [[PO-laptop.org-{{{section}}}-en-US|current english]] +/-  

{{:PO-laptop.org-{{{section}}}-{{{lang}}}}}

This template allows a simple way to include a given PO file of the new laptop.org site in the page. It provides links to:

  • the actual PO file translation of the section
  • the english original (by default) section
  • enter the edit-mode of the translated section

These links are helper links, nothing more.

Usage

{{Include PO
    lang    =     <!-- language code ie: en-US, es, kr, pt, zh-CN, etc) -->
    section =     <!-- section to include (top-level, vision, laptop, foundation, bio, children, or auxiliary) -->
    source_lang = <!-- OPTIONAL, by default the source language is en-US -->
}}

Examples

{{Include PO | lang = zh-CN | section = laptop }}
{{Include PO | lang = pt | section = bio  | source_lang = es}}