Template:Hig-nav-lang

Revision as of 22:43, 4 February 2009 by Dfarning-bot (talk | contribs) (Robot: Automated text replacement (-[OLPC Human Interface Guidelines +[DesignTeam/Human Interface Guidelines))
[[DesignTeam/Human Interface Guidelines/{{{prev}}}/lang-{{{lang}}}|{{:DesignTeam/Human Interface Guidelines/{{{prev}}}/lang-{{{lang}}}/title}}]] [[DesignTeam/Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}|{{:DesignTeam/Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}/title}}]] [[Template talk:DesignTeam/Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}|(discussion)]] [[DesignTeam/Human Interface Guidelines/{{{next}}}/lang-{{{lang}}}|{{:DesignTeam/Human Interface Guidelines/{{{next}}}/lang-{{{lang}}}/title}}]]

The 'normal' Template:hig-nav assumes that all chapters are sub-pages of DesignTeam/Human Interface Guidelines.

This modification assumes not only that, but adds two more things:

  1. Translated chapters are sub-pages of the original chapter, and labeled .../lang-xx
  2. The title of the chapters are are themselves a sub-page of the translated chapter's sub-page: .../lang-xx/title

The purpose of this is that changing the translation of a chapter's name as simple as changing the contents of the title page (ie: .../lang-xx/title) and all navigation bars and the table of contents remains consistent.

So a 'typical' structure would be:

  • OLPC Human Interface Guidelines
    • /aChapterName - the original chapter in english
      • /lang-xx - the translation of the chapter into language 'xx'
        • /title - the translated title of the previous chapter into language 'xx'
    • /anotherChapterName - another original chapter in english
      • /lang-xx - the translation of another chapter into language 'xx'
        • /title - the translated title of another chapter into language 'xx'

Usage

Same structure as the Template:hig-nav with the addition of an extra parameter "| lang=xx" where xx should be replaced by a standard language identificacion (ie: es, fr, etc.)