http://themehybrid.com/themes/hybrid/translating

25 views
Skip to first unread message

Diego Lopes

unread,
Jul 16, 2009, 5:47:13 PM7/16/09
to WordPress Brasil Lista
Página relacionada à tradução...

Diego Lopes

unread,
Jul 16, 2009, 5:47:37 PM7/16/09
to WordPress Brasil Lista

Translating the Hybrid theme

Language fish icon

One of the biggest advantages of the Hybrid theme over more than 90% of other WordPress themes is that it has been fully localized. What this means is that you can translate the theme into your language and never have to dig into the theme files to change the text.

I’m no expert on the translation process, but it should be fairly easy to do once you get the proper tools. You also need a basic understanding of how the theme works to translate it because not all text strings will be clear.

Tools you’ll need for translating

The only tool you need for translating a WordPress theme is Poedit. Follow the instructions on its website to install the tool.

It’s very simple. Once you have Poedit, you’ll be ready to translate.

How to translate the theme

To translate the theme, you need to find the file named en_EN.po located in the hybrid theme folder. Open it.

From this point, you must go through every line of text and translate it to your language.

You must first click the text string you want to translate. Then, you type it in your language at the bottom of the screen.

How to translate a WordPress theme with Poedit

How to save your translation

Once you’ve translated the theme, you’ll want to save it two times. Once as a .po file and once as as .mo file. You must save this according to your language code. A list of language codes can be found at WordPress in your language.

For example, English is en_EN, so I would save the translation as en_EN.po first. Then, I would save it as en_EN.mo

Saving your WordPress theme translation

How to use theme translations

To use a translation, you first need to add the .mo and .po files to your hybrid theme folder.

Then, you’ll need to make sure your wp-config.php file matches your language files.

For example, if using a French translation, you’ll need to add the fr_FR.po and fr_FR.mo files to your theme folder. Then, you’ll want to set your language in wp-config.php, like this:

define ('WPLANG', 'fr_FR');

Save that file.

Now you can use the theme in your language!

You’ll also want to go to your WordPress dashboard and save any Hybrid Settings because those might have changed.

Other Resources

How to get a free membership

One of the things I like to do is reward those that give back to the Theme Hybrid community.

So, if you translate a theme, you’ll get a free theme club membership.

Rules for getting a free membership:

  • You must fully translate each text string to your language.
  • You must have both the .mo and .po files for your language.
  • You must create a readme.txt file explaining how to use the translation in your language.
  • You must submit it in a .zip or .tar file.
  • The translation must be for the latest version of the theme.
  • It can’t be for a language that’s already submitted.
  • 1 theme translation is worth a 3-month membership.

Although it is not required, I would also appreciate a translation of the readme.html file included with the Hybrid theme.

Each translation you create is worth three months of membership. So, if you translate two themes, you get six months of membership.

Updated translations of x.1.1 translations don’t earn extra months on your membership. Updated translations of x.1 theme versions do.

Please contact me if you’re interested.



2009/7/16 Diego Lopes <diegp...@gmail.com>

Página relacionada à tradução...




--
www.culturalivre.com - A favor da internet para um mundo melhor!
Reply all
Reply to author
Forward
0 new messages