wiki:TranslatedPagesMacro

Version 4 (modified by Zhang Cong, 8 years ago) (diff)

--

Show translated versions of wiki page.

Description

A macro to output a list of translated versions of in current page. The English page should use the wiki name without language code, and translated wiki pages use OriginalWiki/language_code format (language_code follows ISO 639.2 Alpha-2 format). The [[TranslatedPages]] macro generates a list of languages like

to direct to translated versions of wiki pages.

Bugs/Feature Requests

Existing bugs and feature requests for TranslatedPagesMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:translatedpagesmacro here].

Source

You can check out TranslatedPagesMacro from here using Subversion, or browse the source with Trac.

Example

Drop TranslatedPages.py to $trac_environment/plugins.

For example, the page WikiStart was translated to Chinese version WikiStart/zh, Russian version WikiStart/ru and Spanish version WikiStart/es. Insert [[TranslatedPages]] to WikiStart will generate the following list:

And in WikiStart/zh will generate:

Recent Changes

16340 by rjollos on 2017-03-17 08:43:48
1.0.2: Remove unused method
16339 by rjollos on 2017-03-17 08:40:40
1.0.2: Don't log warning for line with whitespace or newline
16338 by rjollos on 2017-03-17 08:39:23
1.0.2: Fix string interpolation in logger calls
(more)

Author/Contributors

Author: ftofficer
Contributors: dottedmag

Attachments (5)

Download all attachments as: .zip