Revision [1536]

This is an old revision of WikkaGettext made by JordaPolo on 2004-10-03 18:51:35.

 

The first stage of the gettext support for Wikka 1.1.5.3 is almost finished, and only requires some minor changes (3 lines of code).
83 strings have been made translatable so far.

How to make strings translatable with gettext?
It is simple, just use the _() or gettext() function.

Example (simple):
<?php
    print(_("Hello Wikka!"));
?>

Example (formatted):
<?php
    $here = $this->Format('[[PasswordForgotten '._("here").']]');
    printf(_("If you need a temporary password, click %s."), $here);
?>
There are 30 comments on this page. [Show comments]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki