| 1 | = !TranslatedPages Macro - Show translated versions of a page. = |
| 2 | |
| 3 | == Description == |
| 4 | |
| 5 | 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 |
| 6 | |
| 7 | to direct to translated versions of wiki pages. |
| 8 | |
| 9 | == Bugs/Feature Requests == |
| 10 | |
| 11 | Existing bugs and feature requests for TranslatedPagesMacro are |
| 12 | [report:9?COMPONENT=TranslatedPagesMacro here]. |
| 13 | |
| 14 | If you have any issues, create a |
| 15 | [http://trac-hacks.org/newticket?component=TranslatedPagesMacro&owner=ftofficer new ticket]. |
| 16 | |
| 17 | == Download == |
| 18 | |
| 19 | Download the zipped source from [download:translatedpagesmacro here]. |
| 20 | |
| 21 | == Source == |
| 22 | |
| 23 | You can check out TranslatedPagesMacro from [http://trac-hacks.org/svn/translatedpagesmacro here] using Subversion, or [source:translatedpagesmacro browse the source] with Trac. |
| 24 | |
| 25 | == Example == |
| 26 | |
| 27 | Drop the attached TranslatedPages.py to <trac environment>/plugins. |
| 28 | |
| 29 | 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: |
| 30 | |
| 31 | And in WikiStart/zh will generate: |
| 32 | |
| 33 | |
| 34 | == Recent Changes == |
| 35 | |
| 36 | [[ChangeLog(translatedpagesmacro, 3)]] |
| 37 | |
| 38 | == Author/Contributors == |
| 39 | |
| 40 | '''Author:''' [wiki:ftofficer] [[BR]] |
| 41 | '''Contributors:''' |