Help:Add language bar

From Free Pascal wiki
Jump to navigationJump to search

Deutsch (de) English (en) español (es) suomi (fi) français (fr) magyar (hu) 日本語 (ja) 한국어 (ko) polski (pl) português (pt) русский (ru) slovenčina (sk) 中文(中国大陆)‎ (zh_CN)

Overview

This page describes how a language bar can be added to translated - and original - pages. The language bar helps users to see, what translations are available. If the user comes to an English page through a search engine, the user can see immediately, if the page is available in their own language too.

Templates are used to reduce maintenance if a page gets a new translation.

See for example adding the language bar to the Lazarus DB Faq page.

Adding the language bar

These instructions describe adding the language bar to the Lazarus DB Faq page.

  • Edit the page by using the link "Edit" on the VIEWS panel.
  • Add the following template to the top of the page.
{{LanguageBar}}
  • Now go to each translated page (in this case Lazarus DB Faq/de) and add {{LanguageBar}} to the top of the page.