Changes between Version 9 and Version 10 of TranslatedPagesMacro


Ignore:
Timestamp:
Jun 22, 2011, 2:50:23 PM (4 years ago)
Author:
stoecker
Comment:

Updated

Legend:

Unmodified
Added
Removed
Modified
  • TranslatedPagesMacro

    v9 v10  
    3838''[http://trac-hacks.org/svn/translatedpagesmacro/0.11/#egg=TranslatedPages-dev This is a link for setuptools to find the SVN download]''
    3939
     40== Upgrading from older version 0.3 ==
     41
     42The 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
     44For existing installations using the old schema following settings must be used:
     45{{{
     46[translatedpages]
     47template = {page}/{lang}
     48regexp = ([a-z]{2})
     49}}}
     50
     51also the layout of the language specification page changed.
     52
    4053== Example ==
    4154
    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:
     55An example of the required language specification page can be found at [wiki:TranslatedPagesMacro/TracLanguages].
     56
     57For 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:
    4358
    4459[[Image(translated_pages_sample_english.png)]]
    4560
    46 And in WikiStart/zh will generate:
     61And in Zh_TW:WikiStart will generate:
    4762
    4863[[Image(translated_pages_sample_chinese.png)]]