- Timestamp:
- 07/21/09 16:08:35 (3 years ago)
- Location:
- trunk/TopicTranslationsPlugin/data/System
- Files:
-
- 1 added
- 1 moved
-
. (added)
-
TopicTranslationsPlugin.txt (moved) (moved from trunk/TopicTranslationsPlugin/data/TWiki/TopicTranslationsPlugin.txt) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/TopicTranslationsPlugin/data/System/TopicTranslationsPlugin.txt
r2847 r4517 1 %META:TOPICINFO{author=" AntonioTerceiro" date="1128026733" format="1.0" version="1.1"}%1 %META:TOPICINFO{author="ProjectContributor" date="1128026733" format="1.0" version="1.1"}% 2 2 ---+!! !TopicTranslationsPlugin 3 3 … … 16 16 Each web that is going to use !TopicTranslationsPlugin must define a variable named 17 17 =%<nop/>TOPICTRANSLATIONS%=, which must contains a comma-delimited list of language 18 code. =%<nop/>TOPICTRANSLATIONS%= can be defined TWiki-wide, which means that those19 languages will be used for the entire TWiki installation. It can also be defined18 code. =%<nop/>TOPICTRANSLATIONS%= can be defined system-wide, which means that those 19 languages will be used for the entire site. It can also be defined 20 20 per user. If none of th above is set, the plugin setting for !TopicTranslationsPlugin 21 21 with the same name (=%<nop/>TOPICTRANSLATIONS%=) will be used as a default. … … 70 70 The language detected for the current topic (based on the current topic's name suffix). 71 71 72 ---+++ =%<nop/>CURRENTLANGUAGESUFFIX%= 73 74 The language suffix of the current topic (empty if the current topic is in the 75 default language, since the default language has not suffix). This is useful 76 in menus to create links to fixed topics in the current language. Example: 77 78 <verbatim> 79 <a href="%SCRIPTURL{view}%/%WEB%/SomeTopic%CURRENTLANGUAGESUFFIX%"></a> 80 </verbatim> 81 72 82 ---+++=%<nop/>DEFAULTLANGUAGE%= 73 83 … … 109 119 110 120 It's useful when used in conjuntcion with a view VIEW_TEMPLATE setting or some 111 similar way of making TWiki-editable custom layouts (like the obsolete112 TWiki:Main/FreeSkin), or even site-specific custom skins.121 similar way of making user-editable custom layouts (like the obsolete 122 [[TWiki:Main/FreeSkin][FreeSkin]]), or even site-specific custom skins. 113 123 114 124 %RED% __Warnings:__ %ENDCOLOR% … … 116 126 * This tag is a workaround for sites that want to display user-written 117 127 different translations of some text based on the current topic's language, 118 while TWiki does not provide a standard way to do that in its core (what 119 is mainly [[TWiki:Main/AntonioTerceiro][my]] fault). 128 while Foswiki does not provide a standard way to do that in its core. 120 129 * This tag is also somewhat conflicting with core's %<nop/>MAKETEXT{}%. The 121 difference is that MAKETEXT uses TWiki-detected language and 122 TRANSLATEMESSAGE uses !TopicTranslationsPlugin-detected language, which 123 may be different in some casse. 130 difference is that MAKETEXT uses system-detected language (e.g. detected 131 from the browser, or set explicitly by the user) and TRANSLATEMESSAGE uses 132 !TopicTranslationsPlugin-detected language (detected from the topic name), 133 which may be different in some casse. 124 134 125 135 ---++ Automatic Redirection … … 144 154 from =no=, =off= and =0=). 145 155 146 __Note:__ in TWiki:Codev/CairoRelease, to make this work you'll have to apply the 147 following patch to =TWiki/Func.pm= module (got from TWiki's Subversion repository): 156 <blockquote> 157 __Note:__ in older TWiki releases, such as TWiki:Codev/CairoRelease, to make 158 this work you'll have to apply the following patch to =TWiki/Func.pm= module 159 (got from TWiki's Subversion repository): 148 160 149 161 <verbatim> 150 --- /var/lib/twiki/lib/ TWiki/Func.pm 2005-07-02 13:33:46.893777128 -0300162 --- /var/lib/twiki/lib/Foswiki/Func.pm 2005-07-02 13:33:46.893777128 -0300 151 163 +++ Func.pm 2005-07-02 13:37:22.187047576 -0300 152 164 @@ -407,8 +407,9 @@ … … 163 175 # ========================= 164 176 </verbatim> 177 </blockquote> 165 178 166 179 ---++ Examples … … 193 206 ---++ Plugin Installation Instructions 194 207 195 __Note:__ You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.208 __Note:__ You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where Foswiki is running. 196 209 197 210 * Download the ZIP file from the Plugin web (see below) … … 201 214 | ==data/System/%TOPIC%.txt,v== | Plugin topic repository | 202 215 | ==lib/Foswiki/Plugins/%TOPIC%.pm== | Plugin Perl module | 203 * (Dakar) Visit =configure= in your TWiki installation, and enable the plugin in the {Plugins} section.216 * Visit =configure= in your Foswiki installation, and enable the plugin in the {Plugins} section. 204 217 * Test if the installation was successful: 205 218 * see the examples [[#Examples][above]] … … 207 220 ---++ Plugin Info 208 221 209 | Plugin Author: | TWiki:Main.AntonioTerceiro |210 | Copyright: | © 2006, TWiki:Main.AntonioTerceiro |222 | Plugin Author: | Foswiki:Main.AntonioTerceiro | 223 | Copyright: | Copyright © 2005-2009, Foswiki:Main.AntonioTerceiro | 211 224 | License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) | 212 225 | Plugin Version: | 03 Jul 2005 (V1.003) | … … 220 233 | 02 Jul 2005 | Version =1.002=: major rewrite; documented all (or almost all :)) the code; added selection of available/missing translations; added =missingformat=; added support for custom topics (and webs) in <code>%<nop/>TRANSLATIONS%</code>; added automatic redirection for the "best" translation (detection via =I18N::AcceptLanguage=). | 221 234 | 19 Jun 2005: | Initial version: =1.001= | 222 | TWiki Dependency: | $TWiki::Plugins::VERSION 1.024 |235 | Foswiki Dependency: | $Foswiki::Plugins::VERSION 1.024 | 223 236 | CPAN Dependencies: | =I18N::AcceptLanguage= | 224 237 | Other Dependencies: | none | … … 229 242 __Related Topics:__ %SYSTEMWEB%.DefaultPreferences, %USERSWEB%.SitePreferences, [[%SYSTEMWEB%.Plugins][Plugins]] 230 243 231 -- TWiki:Main.AntonioTerceiro - 03 Jul 2005232 244 -- Foswiki:Main.AntonioTerceiro - 21 Jul 2009 245
Note: See TracChangeset
for help on using the changeset viewer.
