Revision [1541]
This is an old revision of WikkaGettext made by JordaPolo on 2004-10-03 18:58:51.
The gettext support only requires some minor changes (3 lines of code).
The second stage includes locale selection from the installer, and default pages 100% translatable (including WikiNames).
Status
83 strings have been made translatable so far.Available translations
- Catalan (83/83)
- Spanish (2/83)
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);
?>