Hi,

I just had a thought... how about the following stragegy.

When there exists a translation of the current page, the sidebar contains a link to the translated page (and the primary english page). This could perhaps be done with the following wiki markup:

        (:if exist WebJa.{$Name}:)
        * Languages images:language_icon.png
          * [[images:English-flag.png  -> Web.{$Name}]]
          * [[images:Japanese-flag.png -> WebJa.{$Name}]]
        (:ifend:)

If no translation exist, then the sidebar contains a link to the translated home page, and uses a different flag icon to indicate this:

        (:if ! exist WebJa.{$Name}:)
        * Languages images:language_icon.png
          * [[images:English-flag.png  -> Web.{$Name}]]
          * [[images:no-Japanese-flag.png -> WebJa.Home]]
        (:ifend:)

What do you think? I'm not sure how this different flag icon should like like though...

/Christian

--
Christian Ridderström, +46-8-768 39 44            http://www.md.kth.se/~chr

Reply via email to