|Version 8 (modified by 6 years ago) (diff),|
Show translated versions of wiki page
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.
If you have any issues, create a new ticket.
Get the Plugin
See the Trac plugin requirements for instructions on installing
Setuptools includes the
easy_install application which you can use to install the SpamFilter:
You can also obtain the code from the Trac Subversion repository:
svn co http://trac-hacks.org/svn/translatedpagesmacro
or download [download:translatedpagesmacro zipped source].
See TracPlugins for instructions on building and installing 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:
- Display english page prominently in missing page overview
- translated_pages_sample_chinese.png (3.4 KB) - added by 8 years ago.
- translated_pages_sample_english.png (1.6 KB) - added by 8 years ago.
translated_pages_1.0_sample_chinese.png (2.7 KB) - added by 6 years ago.
translated_pages_1.0_sample_english.png (2.5 KB) - added by 6 years ago.
translated_pages_1.0_sample_espanol_update.png (3.0 KB) - added by 6 years ago.
espanol example with update
Download all attachments as: .zip