9 - Multilingual website

Submitted by gerdamigerdami

This package helps creating a multilingual website based on wikidot categories, i.e. each language is a category, includes and _templates.

The main principle is that all language pages share the same pagename, i.e. fr:pagename, en:pagename, es:pagename, etc. to help switching from a language version to another. "xy" is the generic term for any language iso code. The number of languages is only limited by the number of flags to display on screen.

The attached files come from the backup facility with category separator ":" replaced by "_" and ":_" by a double underscore "__". They also contain comments for implementation.

Pages

_template

en:

es:

fr:

include:

nav:

search:

system:

Zip

The whole stuff, just in case it was possible to upload all at once…

Real life example

How to use

  • Install the package page to your site.
  • Each language category has its own left sidebar nav:side-xy with a language dependant sitemap, a language dependant tagcloud and a newpage button to create a page in the current language, with parent equal to the language start page.
  • Each language category has its own xy:_template and a newpage button to create a page in the current language, with parent equal to the current page. However, it is not ensured that an English page and a French page would share the same parent in the different language versions.
  • Each language category has its own tagcloud and its own landing page xy:page-tags while the default system:page-tags has been adapted to the same layout.
  • To add a new xy language, there is some housekeeping to do:
    • Add a new xy:start page
    • Edit include:language-flags and add a new language flag and why not a flag not hosted on the handbook…
    • Clone the nav:side-en to the new nav:side-xy and change all en occurences to xy
    • Clone the en:page-tags to the new xy:page-tags and change all en occurences to xy
  • The search:site page has been modified to use Google Custom Element.
Add a New Comment
or Sign in as Wikidot user
(will not be published)
- +

Edit | Tags | Source | Print

rating: +2+x

Who's watching this?

pieterhpieterh
gerdamigerdami
VittekVittek
Ed JohnsonEd Johnson
avokadoavokado
MRichrathMRichrath
DivanDivan
ValAerynValAeryn
RobElliottRobElliott
Wayne HildrethWayne Hildreth
arbitragearbitrage
VastOneVastOne
atsxltraderatsxltrader
DWK25DWK25
leigerleiger
Peter-ZAPeter-ZA
Arotaritei VladArotaritei Vlad
DrbmusicDrbmusic
blendertigerblendertiger
appliquetionappliquetion
Watch: site | category | page

Packages

18 - Slim Chatroom (21 Nov 2009 04:20) [+2, ]
17 - James' Chatroom (18 Nov 2009 10:23) [+1, ]
16 - Minimal Editor CSS (31 Aug 2009 12:45) [+0, ]
15 - File Manager (28 Aug 2009 16:15) [+5, ]
14 - Debugger (16 Aug 2009 07:52) [+0, ]
13 - Custom Forum (15 Aug 2009 10:56) [+1, ]
12 - Image Include (02 Aug 2009 20:51) [+3, image include infobox picture]
11 - User profile & badges (27 Jul 2009 07:25) [+1, badge profiles user]
10 - Voting poll (26 Jul 2009 13:41) [+1, poll vote]
9 - Multilingual website (05 Jul 2009 10:49) [+2, handbook multilingual]
8 - Photo Gallery (28 Jun 2009 19:41) [+3, 1col gallery images photo]
7 - Squark's Blog (22 May 2009 12:06) [+4, 1col blog]
6 - Multilanguage petition (01 May 2009 13:50) [+1, 2col multilingual]
5 - News & comments (29 Apr 2009 08:44) [+1, 2col blog]
4 - Chatter category (28 Apr 2009 15:06) [+1, 2col]
3 - Simple issue tracker (28 Apr 2009 14:58) [+3, 2col tracker]
2 - Wiki category (28 Apr 2009 14:49) [+1, 2col]
1 - Legal framework (28 Apr 2009 14:33) [+2, 2col]

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License