Revision [1551]
This is an old revision of WikkaGettext made by JordaPolo on 2004-10-03 20:17:59.
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 -- 85 strings so far
Status
Available translations- Catalan (83/85)
- Spanish (2/85)
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);
?>