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

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

 
Topic revision: r5 - 2006-10-22 - ArthurClemens
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.