Changes between Version 9 and Version 10 of TranslatedPagesMacro
- Timestamp:
- Jun 22, 2011, 12:50:23 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TranslatedPagesMacro
v9 v10 38 38 ''[http://trac-hacks.org/svn/translatedpagesmacro/0.11/#egg=TranslatedPages-dev This is a link for setuptools to find the SVN download]'' 39 39 40 == Upgrading from older version 0.3 == 41 42 The macro enhanced a lot since version 0.3. A major change is the layout of the pages. Version 0.3 hardcoded the format {{{page/<lang>}}}. The new version has {{{<lang>:page}}} as default which is used more ofthen for wikis. 43 44 For existing installations using the old schema following settings must be used: 45 {{{ 46 [translatedpages] 47 template = {page}/{lang} 48 regexp = ([a-z]{2}) 49 }}} 50 51 also the layout of the language specification page changed. 52 40 53 == Example == 41 54 42 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: 55 An example of the required language specification page can be found at [wiki:TranslatedPagesMacro/TracLanguages]. 56 57 For example, the page WikiStart was translated to Chinese version Zh_CN:WikiStart, Russian version Ru:WikiStart and Spanish version Es:WikiStart. Insert `[[TranslatedPages]]` to WikiStart will generate the following list: 43 58 44 59 [[Image(translated_pages_sample_english.png)]] 45 60 46 And in WikiStart/zhwill generate:61 And in Zh_TW:WikiStart will generate: 47 62 48 63 [[Image(translated_pages_sample_chinese.png)]]