r5 - 22 Oct 2006 - 20:29:14 - ArthurClemensYou are here: TWiki >  Codev Web > MAKETEXT
Tags:
localization 1 Add my vote for this tag, translation 1 Add my vote for this tag, , create new tag

MAKETEXT Variable

All English text in templates is enclosed in %MAKETEXT{"string" args="..."}% variables, wich enables translators to translate the user interface into different languages.

-- Contributors: PeterThoeny - 22 Oct 2006

Discussion

And surely it slows the system down too.... -- TW

To speed up things WordPress uses compressed .po files: these are .mo files. Compression can be done using the maketext command.

Now we need TWiki to read .mo files. This seems easy. Maketext Gettext has the function read_mo.

/lib/CPAN/lib/Locale/Maketext/Lexicon/Gettext.pm has routine parse that automatically checks if a file is compressed to .mo.

Everything seems to be in place.

-- ArthurClemens - 22 Oct 2006

%MAKETEXT% does not work in plugins. How do I put translatable texts in plugin code?

-- ArthurClemens - 22 Oct 2006

 
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r5 < r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo