The above is the 'front page' of our localize tools. These tools help you translate the interface of TWiki into other languages. Please note, this is not the same as translating the content of Topics - the developers (FLOSS Manuals) have another plugin called 'XchangeTranslate' for this purpose.
Localize uses Mochikit for the dymanic loading of language variables into memory. This means that you can fast forward through the strings to be translated without the need to reload and save content as you go. Hence the interface is very fluid and fast, and feels more like a desktop application than a webpage. Pre-loading of the variables is done in stages so the browser does not time-out over slow connections.
# Put the full path to your twiki installation directory $TWiki::cfg{InstallDirectory} = '/var/www/twiki'; $TWiki::cfg{DefaultLanguage} = "en"; $TWiki::cfg{UserInterfaceInternationalisation} = 1;You will also need to create a preference in Main WebPreferences to state who can access Localize. eg.
* Set ALLOWLOCALIZE = AdamHyde, AleksandarErkalovicYou may also need to change the permissions on your locale folder. To do this open a terminal onthe computer hosting the TWiki installation, change directories to the install dir and execute this command :
chmod -R 777 locale/
LocalizeContrib.zip
in your twiki installation directory. Content: File: | Description: |
---|---|
data/TWiki/LocalizeContrib.txt | Contrib topic |
data/TWiki/LocalizeContrib.txt,v | Contrib topic repository |
lib/TWiki/Contrib/LocalizeContrib.pm | Contrib Perl module |
bin/localize | binary |
pub/TWiki/MochiKit/ | Mochikit js lib |
templates/localize.tmpl | template file |
pub/TWiki/LocalizeContrib/translate.gif | template css |
pub/TWiki/LocalizeContrib/typography_cover.css | template image |
Author: | TWiki:Main/AleksandarErkalovic |
Copyright ©: | 2007, Aleksandar Erkalovic |
License: | GPL (GNU General Public License) |
Dependencies: | none |
Version: | 1.0 |
Change History: | |
02 Apr 2008: | Initial version |
Home: | http://TWiki.org/cgi-bin/view/Plugins/LocalizeContrib |
Feedback: | http://TWiki.org/cgi-bin/view/Plugins/LocalizeContribDev |
Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/LocalizeContribAppraisal |
I | Attachment | History | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|---|
zip | LocalizeContrib.zip | r1 | manage | 109.5 K | 2008-04-04 - 16:45 | UnknownUser | LocalizeContrib ZIP archive |