help/wikiedit/negotiation.en

Content negotiation plugin

Our Trac is using Content negotiation plugin (http://trac-hacks.org/wiki/TracWikiNegotiatorPlugin).

Description

This plugin provides content negotiation mechanism for Trac wiki pages. With this plugin, your trac site can provide multiple localized pages for users.

How to Use

Using the negotiation feature is simply providing suffixed page like 'Foo.ja' for Japanese, 'Foo.fr' for French, so on. When Japanese user (with Japanese setting in browser) access to the page 'Foo', he will see the content of Foo.ja instead of Foo. Likewise, French use will see the content of Foo.fr. So what you should to do is creating localized page content as usual way. Note that suffix like '.ja' and '.fr' is to be a standard language code.

Non-suffixed page Foo is used for default content (de) when no suffixed page is matched to user's request.

To see the page for your language, nothing to do to view localized page. To see the page for other language, specify the appropreate suffix for wiki page name in url explicitly, or add query parameter like "?lang=xx".

To edit the page, you can edit the page now you are seeing by simply press "Edit" button. To edit the page for other language, first, visit the desired page with a way described above, then press "Edit" button.

If you want to set explicit language you have to append the suffix to the link.