Difference between revisions of "Template:Hig-nav-lang"

From Sugar Labs
Jump to navigation Jump to search
m (fix camelcase links)
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
{| width="100%" cellpadding="0" cellspacing="0"
 
{| width="100%" cellpadding="0" cellspacing="0"
 
|-
 
|-
|width=25% align=left bgcolor=#C3D9FF|← '''[[Design Team/Human Interface Guidelines/{{{prev}}}/lang-{{{lang}}}|{{:Design Team/Human Interface Guidelines/{{{prev}}}/lang-{{{lang}}}/title}}]]'''
+
|width=25% align=left bgcolor=#C3D9FF|← '''[[Human Interface Guidelines/{{{prev}}}/lang-{{{lang}}}|{{:Human Interface Guidelines/{{{prev}}}/lang-{{{lang}}}/title}}]]'''
|width=50% align=center bgcolor=#C3D9FF|'''[[Design Team/Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}|{{:Design Team/Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}/title}}]] [[{{NAMESPACE}} talk:Design Team/Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}|<font color="white"><b>(discussion)</b></font>]]'''
+
|width=50% align=center bgcolor=#C3D9FF|'''[[Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}|{{:Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}/title}}]]'''
|width=25% align=right bgcolor=#C3D9FF| '''[[Design Team/Human Interface Guidelines/{{{next}}}/lang-{{{lang}}}|{{:Design Team/Human Interface Guidelines/{{{next}}}/lang-{{{lang}}}/title}}]]''' &#8594;
+
|width=25% align=right bgcolor=#C3D9FF| '''[[Human Interface Guidelines/{{{next}}}/lang-{{{lang}}}|{{:Human Interface Guidelines/{{{next}}}/lang-{{{lang}}}/title}}]]''' &rarr;
 
|}
 
|}
 
</div><noinclude>[[Category:Template]]
 
</div><noinclude>[[Category:Template]]
The 'normal' [[Template:hig-nav]] assumes that all chapters are sub-pages of [[Design Team/Human Interface Guidelines]].
+
The 'normal' [[Template:hig-nav]] assumes that all chapters are sub-pages of [[Human Interface Guidelines]].
  
 
This modification assumes not only that, but adds two more things:
 
This modification assumes not only that, but adds two more things:
Line 17: Line 17:
 
So a 'typical' structure would be:
 
So a 'typical' structure would be:
  
* OLPC Human Interface Guidelines
+
* Human Interface Guidelines
 
** /aChapterName - ''the original chapter in english''
 
** /aChapterName - ''the original chapter in english''
 
*** /lang-xx - ''the translation of the chapter into language 'xx'''
 
*** /lang-xx - ''the translation of the chapter into language 'xx'''

Latest revision as of 13:06, 11 July 2009

[[Human Interface Guidelines/{{{prev}}}/lang-{{{lang}}}|{{:Human Interface Guidelines/{{{prev}}}/lang-{{{lang}}}/title}}]] [[Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}|{{:Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}/title}}]] [[Human Interface Guidelines/{{{next}}}/lang-{{{lang}}}|{{:Human Interface Guidelines/{{{next}}}/lang-{{{lang}}}/title}}]]

The 'normal' Template:hig-nav assumes that all chapters are sub-pages of 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:

  • 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.)