Ticket #4108 (new enhancement)

Opened 5 years ago

Last modified 4 years ago

Add conditional rendering of wiki paragraph according to browser accepted languages

Reported by: anonymous Assigned to: anybody
Priority: normal Component: Request-a-Hack
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

There is a plugin to select a wiki page according to the visitor language, but often, only parts of the page are translated. I would like to write something like this:

This text is always rendered.

[iflang=fr]
= Bienvenu ! =
Ce texte est affiché pour les francais.
[iflang=de]
= Wilkomen! =
Diese Text ist für Deutchs.
[else]
= Welcome! =
This text for others.
[end]

This text is for everybody.

Attachments

Change History

09/06/09 12:10:38 changed by rjollos

  • summary changed from Add conditionnal rendering of wiki paragraph according to browser accepted languages to Add conditional rendering of wiki paragraph according to browser accepted languages.

11/02/09 16:37:37 changed by izzy

You might want to take a look at the TracWikiNegotiatorPlugin. Not the same, but very close to your request.


Add/Change #4108 (Add conditional rendering of wiki paragraph according to browser accepted languages)




Change Properties
Action