Revision [1680]
This is an old revision of WikkaGettext made by JordaPolo on 2004-10-06 08:01:53.
Download
You can download the testing package with gettext support, some directories have been removed in order to reduce the file size.It should be installed like the normal Wikka, the only additional option in the setup process is the language selection. There are 2 languages available right now: Catalan and English. You can try to install it in catalan to see that the final result is a Wikka site, but in catalan (there are some missing strings).
wikka-1.1.5.3-gettext.tar.gz (135k)
Jobs
- gettext support -- done
- different domains (wikka and wikka-setup) -- done
- locale selection from the installer -- done
- script to update po files -- done
- make strings translatable -- 123 strings so far
- wikka.pot: 82 strings
- wikka-setup.pot: 41 strings
Status
Available translations- Catalan (122/123)
- Spanish (2/123)
FAQ
How to make strings translatable with gettext?It is simple, just use the _() or gettext() function.
Example (simple):
<?php
print(_("Hello Wikka!"));
?>
print(_("Hello Wikka!"));
?>
Example (formatted):
<?php
$here = $this->Format('[[PasswordForgotten '._("here").']]');
printf(_("If you need a temporary password, click %s."), $here);
?>
$here = $this->Format('[[PasswordForgotten '._("here").']]');
printf(_("If you need a temporary password, click %s."), $here);
?>
CategoryDevelopment