Modify

Opened 15 years ago

Last modified 14 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 15 years ago by Ryan J Ollos

Summary: Add conditionnal rendering of wiki paragraph according to browser accepted languagesAdd conditional rendering of wiki paragraph according to browser accepted languages

comment:2 Changed 14 years ago by izzy

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain anybody.

Add Comment


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

 
Note: See TracTickets for help on using tickets.