r8 - 08 Aug 2006 - 21:03:30 - PeterThoenyYou are here: TWiki >  Plugins Web > TranslateTagPlugin
Tags:
internationalization 1 Add my vote for this tag, transformation 1 Add my vote for this tag, , create new tag

Translate Tags, Options and Formats

This Plugin transparently translates tags/options and format variables from English to other languages (for the happyness of our foreign friends smile ).

The translation happens only at Edit and Preview time.

  • the stored form is always English
  • at Edit time the english TAGS are translated
    • this way you edit in your preferred language
  • at Preview time the tags are translated back to English
    • this way all the twiki/plugins machinery works as usual

The table of Translations is kept in the TagTranslations? topic (by default).

Plugin settings

  • One line description, shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Translates TAGS on-the-fly for editing in foreign languages.
  • Topic containing the translations (default: TagTranslations? )
  • Language setting (you can place it also in a global/web/user preference topic)
    • Set LANG = it
  • Set to 1 to enable some debug
    • Set DEBUG = 0

Syntax Example

Each translation is stored as a table row as in the example below.
English Translated Language
SEARCH.format.topic CERCA.formato.pagina it
SEARCH.format.topic CHERCHE.format.page FR

Is it working?

Check for correct installation by uncommenting the above TOPIC setting. This will enable the example translations above.

  • on edit the %SEARCH{"Plugin" format="$topic"}% tag below will be translated to %CERCA{"Plugin" formato="$pagina"}%.
  • on preview the search will work fine as usual.

Search: Plugin

AbusePlugin AbusePluginAppraisal AbusePluginDev AccessStatsPlugin AccessStatsPluginAppraisal AccessStatsPluginDev ActionTrackerPlugin ActionTrackerPluginAppraisal ActionTrackerPluginDev ActionTrackerPluginDevArchive ActionTrackerPluginHistory ActionTrackerPluginModified AddDBMGroupPlugin AddDBMGroupPluginAppraisal AddDBMGroupPluginDev AgentPlugin AgentPluginAppraisal AgentPluginDev AlbumOfSnapsPlugin AlbumOfSnapsPluginAppraisal AlbumOfSnapsPluginDev AliasPlugin AliasPluginAppraisal AliasPluginDev AnnotationPlugin AntiWikiSpamPlugin AntiWikiSpamPluginAppraisal AntiWikiSpamPluginDev AnyWikiDrawPlugin AnyWikiDrawPluginAppraisal AnyWikiDrawPluginDev ApprovalPlugin

Number of topics: 32

Installation

  • Unpack the package
  • apply (if needed) the attached before/afterEditHandler patches to enable before/afterEditHandler calls
  • Edit TagTranslations?

TODO

  • Translate also VARIABLES

Change History

  • V 1.000 First release

-- AndreaSterbini - 05 May 2002

Topic attachments
I Attachment Action Size Date Who Comment
zipzip TranslateTagPlugin.zip manage 8.4 K 05 May 2002 - 21:51 AndreaSterbini initial incarnation
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r8 < r7 < r6 < r5 < r4 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo