From: intrigeri Date: Sat, 28 Mar 2009 10:41:21 +0000 (+0100) Subject: page.tmpl: use OTHERLANGUAGES and PERCENTTRANSLATED X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/055be361f5abfc989e32215f5dd6976af4a49bcd?ds=inline page.tmpl: use OTHERLANGUAGES and PERCENTTRANSLATED Signed-off-by: intrigeri --- 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`: - - -
-
    - -
  • - "> - - ( %) - -
  • -
    -
-
-
- -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: - - -
- -
-
+completeness, expressed in percent, on "slave" pages. It is used by +the default `templates/page.tmpl`. Additional PageSpec tests ------------------------- diff --git a/templates/page.tmpl b/templates/page.tmpl index 29ba688c7..8622d1a01 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -28,6 +28,9 @@ + +( %) + @@ -60,6 +63,24 @@ + + +
+
    + +
  • +"> + +(master) + +( %) + +
  • +
    +
+
+
+