Lester Chan's Forums
06 January 2009, 06:00 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Become a fan of Lester Chan's WordPress Plugins in Facebook.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Translating WordPress Plugins  (Read 27831 times)
0 Members and 1 Guest are viewing this topic.
GaMerZ
lesterchan.net
Administrator
*****
Offline Offline

Posts: 8,203



View Profile WWW
« Topic Start: 04 January 2007, 15:16 »

This is a rough guide on how to translate WordPress Plugins using poEdit. I will use WP-Polls as the example here. We will translate it to French.

Step 1
Download poEdit From http://www.poedit.net/download.php

Step 2
Install poEdit

Step 3 (Step 3 ScreenShot)
Launch poEdit

Step 4 (Step 4 ScreenShot)
Go To 'File -> New catalog from POT file'

Step 5 (Step 5 ScreenShot)
Browse for the file 'wp-polls.pot' which is in your YOUR_WORDPRESS_FOLDER/wp-contents/plugin/wp-polls/
Click 'Open'

Step 6 (Step 6a ScreenShot | Step 6b ScreenShot)
Fill in the following details to the settings:
  • Project name and version: WP-Polls 2.13
  • Team: Fill in your own name
  • Team's email address: Fill in your own email address
  • Language: French
  • Country: FRANCE
  • Charset: utf-8
  • Source code charset: Leave it blank
  • Pural Forms: nplurals=2; plural=n != 1;
Click 'Ok'
Save it as wp-polls-fr_FR.po in YOUR_WORDPRESS_FOLDER/wp-contents/plugin/wp-polls/
Click 'Save'

Step 7 (Step 7 ScreenShot)
Type in the translated string in the small box located at the bottom left hand corner of the screen.
Translate the remaining strings.

Step 8 (Step 8 ScreenShot)
When you are done, click on the 'Save Catalog' button located on the top, it is the second button from the left.

Step 9
Upload wp-polls-fr_FR.po and wp-polls-fr_FR.mo to your site into YOUR_WORDPRESS_FOLDER/wp-contents/plugin/wp-polls/
Just a note, the wp-polls-fr_FR.mo is automatically generated by poEdit, you need the file in order for the translation to work.

Step 10
Make sure that WordPress is already in your own language or the plugin translation will not work.
« Last Edit: 23 November 2008, 10:31 by GaMerZ » Logged


++ lesterchan.net - Lester Chan's Website

I DO NOT provide support for any modifications of any plugin to meet your needs/requirements, unless it is a paid job and I have the time to do it due to the large number of request.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.047 seconds with 23 queries.