TubePress in Your Language

Built on the gettext framework, TubePress is available in several languages. The list of available languages (which is always growing) can be found on TubePress's features page. If you would like to donate a translation into your own language, instructions for how to do this can be found here.

As an example, check out how TubePress looks in Italian (left) and Russian (right)…

The procedure to switch the language that TubePress will use varies depending on your environment.

WordPress

TubePress will determine which language to use based on the WP_LANG setting that you can define in wp-config.php. Details for how to switch the language of your WordPress blog can be found here.

Standalone PHP

Switching the language of TubePress Pro in standalone PHP is very easy. Thanks to the php-gettext library, your installation of PHP does not need compiled-in gettext support. In fact, as the code listing below shows, you just need to add a single line of code to switch TubePress's language.

  1. Define the LANG environment variable to your two or four letter language code. Add this statement somewhere before the first time you invoke TubePress Pro
customize/language.txt · Last modified: 2011/03/21 00:12 by Eric Hough
GNU Free Documentation License 1.3