Template:Include PO

From OLPC
Revision as of 17:27, 2 April 2007 by Xavi (talk | contribs) (template to embed PO files in a simpler way)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  Included page/section [[PO-laptop.org-bio-{{{lang}}}]] 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
    section =     <!-- section to include (top-level, vision, laptop, foundation, bio, children, or auxiliary) -->
    lang    =     <!-- language code ie: en-US, es, kr, pt, zh-CN, etc) -->
    source_lang = <!-- OPTIONAL, by default the source language is en-US -->
}}

Examples

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