Tags:
internationalization1Add my vote for this tag transformation1Add my vote for this tag create new tag
, view all tags

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 History Action Size Date Who Comment
Unknown file formatmd5 TranslateTagPlugin.md5 r2 r1 manage 0.2 K 2008-12-12 - 12:46 SopanShewale checksum file , Uploaded as a part of Release Process
Compressed Zip archivetgz TranslateTagPlugin.tgz r2 r1 manage 5.9 K 2008-12-12 - 12:46 SopanShewale See TranslateTagPlugin for details. Untar and run the installer script, Uploaded as a part of Release Process
Compressed Zip archivezip TranslateTagPlugin.zip r3 r2 r1 manage 8.7 K 2008-12-12 - 12:46 SopanShewale See TranslateTagPlugin for details. Unzip and run the installer script , Uploaded as a part of Release Process
Unknown file formatEXT TranslateTagPlugin_installer r2 r1 manage 3.6 K 2008-12-12 - 12:46 SopanShewale Installer Script, Uploaded as a part of Release Process
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2008-12-12 - SopanShewale
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.