localization1Add my vote for this tag translation1Add my vote for this tag create new tag
, view all tags


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

-- Contributors: PeterThoeny - 22 Oct 2006


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 | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2013-06-14 - JonForrest
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.