Modify

Opened 5 years ago

Last modified 4 years ago

#4108 new enhancement

Add conditional rendering of wiki paragraph according to browser accepted languages

Reported by: anonymous Owned by: 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 (0)

Change History (2)

comment:1 Changed 5 years ago 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

comment:2 Changed 4 years ago by izzy

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

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.