aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-03-28 11:41:21 +0100
committerintrigeri <intrigeri@boum.org>2009-03-28 11:41:21 +0100
commit055be361f5abfc989e32215f5dd6976af4a49bcd (patch)
tree4db1b99b6b853c53f27ce372b135883f69fa1491 /doc/plugins
parenta4d7ee255961e9d7f2ed75f9775f6d3e3cf47591 (diff)
downloadikiwiki-055be361f5abfc989e32215f5dd6976af4a49bcd.tar
ikiwiki-055be361f5abfc989e32215f5dd6976af4a49bcd.tar.gz
page.tmpl: use OTHERLANGUAGES and PERCENTTRANSLATED
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'doc/plugins')
-rw-r--r--doc/plugins/po.mdwn32
1 files changed, 5 insertions, 27 deletions
diff --git a/doc/plugins/po.mdwn b/doc/plugins/po.mdwn
index 1f57418b5..235674f31 100644
--- a/doc/plugins/po.mdwn
+++ b/doc/plugins/po.mdwn
@@ -150,24 +150,9 @@ display things only on translatable or translation pages.
The `OTHERLANGUAGES` loop provides ways to display other languages'
versions of the same page, and the translations' status.
-One typically adds the following code to `templates/page.tmpl`:
-
- <TMPL_IF NAME="OTHERLANGUAGES">
- <div id="otherlanguages">
- <ul>
- <TMPL_LOOP NAME="OTHERLANGUAGES">
- <li>
- <a href="<TMPL_VAR NAME="URL">"><TMPL_VAR NAME="LANGUAGE"></a>
- <TMPL_UNLESS NAME="MASTER">
- (<TMPL_VAR NAME="PERCENT">&nbsp;%)
- </TMPL_UNLESS>
- </li>
- </TMPL_LOOP>
- </ul>
- </div>
- </TMPL_IF>
-
-The following variables are available inside the loop (for every page in):
+An example of its use can be found in the default
+`templates/page.tmpl`. In case you want to customize it, the following
+variables are available inside the loop (for every page in):
* `URL` - url to the page
* `CODE` - two-letters language code
@@ -178,15 +163,8 @@ The following variables are available inside the loop (for every page in):
### Display the current translation status
The `PERCENTTRANSLATED` variable is set to the translation
-completeness, expressed in percent, on "slave" pages.
-
-One can use it this way:
-
- <TMPL_IF NAME="ISTRANSLATION">
- <div id="percenttranslated">
- <TMPL_VAR NAME="PERCENTTRANSLATED">
- </div>
- </TMPL_IF>
+completeness, expressed in percent, on "slave" pages. It is used by
+the default `templates/page.tmpl`.
Additional PageSpec tests
-------------------------