Tutorial - Translating a Theme
Often you will want to use a WordPress theme that is not in your language. If you happen to know both the language the theme is in and the language you would like it to be in, there is an easy way to translate the theme yourself.
Requirements:
- Latest version of a WPZOOM Theme (with localization support - /languages/ folder)
- Codestyling Localization plugin (installed & activated)
A couple notes before we begin:
Alright, let's begin...
In your WordPress administration area in the main menu go to Tools > Localization.

On this page look for the name of the theme you want to translate. For our examples we're going to use the Yamidoo PRO Magazine theme.

Once you've found the theme you want to translate, look to the right. You should see a link titled "Add New Language".

Click on it and a little window will pop up. You will see a long list of different languages with radio buttons next to them. Click on the radio button next to the language you want to translate your theme into and click on the button labeled "create po-file".

You will notice a new language item appear next to your theme's name. There will be a link titled "Rescan"; click it.

In the little window that pops up click the "scan now" button and then click "finished" when it's done scanning.

Now, right next to the "Rescan" link is a link titled "Edit".

Click on this and you will be presented with the translator page. You should see a list of strings from the theme that are translatable. Next to each string is an "Edit" link.

Go through the list clicking on the "Edit" links and inputting your translated strings in the provided input areas and clicking "Save" or "Save & Next".

Once you've completed inputting your translated strings look at the top of the page. You should see a button labeled "generate mo-file".

When you click on it you will notice the timestamp next to "last written" has updated. This means the translation file was saved successfully.
If you completed all of those steps correctly you will now have a new language file in the "languages" sub-folder of the theme you just translated. You can just leave it there for your own personal use, or, you can create a copy of it to distribute to the community. Giving back to the community is a great way to say thanks for the work put into the development of these themes.
If you would like to use this translation with your theme you will need to edit your wp-config.php file. In that file you should find a line like this: You will need to add the language code for your translation to this line. For example: This would enable a Romanian translation for your theme.
As you can see, there are a few steps to follow to create your own translations but, once you figure out how it's very easy to do. Hopefully this tutorial will help you get started.
Often you will want to use a WordPress theme that is not in your language. If you happen to know both the language the theme is in and the language you would like it to be in, there is an easy way to translate the theme yourself.
Requirements:
- Latest version of a WPZOOM Theme (with localization support - /languages/ folder)
- Codestyling Localization plugin (installed & activated)
A couple notes before we begin:
- The theme you want to translate must have the proper hooks in the code to allow for translation. For WPZOOM themes, you should make sure you have the very latest version of the theme. All current versions of WPZOOM themes have the necessary hooks to allow for translation.
- You will need to download and install the Codestyling Localization WordPress plugin. We won't be covering how to install the plugin because it is out of the scope of this tutorial.
Alright, let's begin...
In your WordPress administration area in the main menu go to Tools > Localization.

On this page look for the name of the theme you want to translate. For our examples we're going to use the Yamidoo PRO Magazine theme.

Once you've found the theme you want to translate, look to the right. You should see a link titled "Add New Language".

Click on it and a little window will pop up. You will see a long list of different languages with radio buttons next to them. Click on the radio button next to the language you want to translate your theme into and click on the button labeled "create po-file".

You will notice a new language item appear next to your theme's name. There will be a link titled "Rescan"; click it.

In the little window that pops up click the "scan now" button and then click "finished" when it's done scanning.

Now, right next to the "Rescan" link is a link titled "Edit".

Click on this and you will be presented with the translator page. You should see a list of strings from the theme that are translatable. Next to each string is an "Edit" link.

Go through the list clicking on the "Edit" links and inputting your translated strings in the provided input areas and clicking "Save" or "Save & Next".

Once you've completed inputting your translated strings look at the top of the page. You should see a button labeled "generate mo-file".

When you click on it you will notice the timestamp next to "last written" has updated. This means the translation file was saved successfully.
If you completed all of those steps correctly you will now have a new language file in the "languages" sub-folder of the theme you just translated. You can just leave it there for your own personal use, or, you can create a copy of it to distribute to the community. Giving back to the community is a great way to say thanks for the work put into the development of these themes.
If you would like to use this translation with your theme you will need to edit your wp-config.php file. In that file you should find a line like this:
define ('WPLANG', ''); define ('WPLANG', 'ro_RO'); As you can see, there are a few steps to follow to create your own translations but, once you figure out how it's very easy to do. Hopefully this tutorial will help you get started.
i followed this manual
my install of wordpress was already localized nl_NL
for some awkward reason sometimes it uses the dutch translation
otherwise english ?
in the slider it mentions "lees verder"
in the recent videos it mentions "continue reading"
strange
thx for advice
johan
my install of wordpress was already localized nl_NL
for some awkward reason sometimes it uses the dutch translation
otherwise english ?
in the slider it mentions "lees verder"
in the recent videos it mentions "continue reading"
strange
thx for advice
johan
Attachments:
localizing wpzoom.jpg [ 412.67 KiB | Viewed 9523 times ]
1. kinokinetic.com
2. 3.2.1.
3. v 2.0. I have also updated /scripts/timthumb.php
4. I have successfully used your tutorial to translate some of the buttons in my theme. However when I go to the page displaying posts of one of the categories, in postfunc line there is a link to main page which is called "HOME". I can't find where I can translate it, because it is not possible to do it through the localization menu as it is not there.
Can you please advise me how to translate "HOME" title. Thank you.
2. 3.2.1.
3. v 2.0. I have also updated /scripts/timthumb.php
4. I have successfully used your tutorial to translate some of the buttons in my theme. However when I go to the page displaying posts of one of the categories, in postfunc line there is a link to main page which is called "HOME". I can't find where I can translate it, because it is not possible to do it through the localization menu as it is not there.
Can you please advise me how to translate "HOME" title. Thank you.
firstrayoflight
You can change that from wp-admin -> Appearance -> Menus. Here you can edit your menu links.
You can change that from wp-admin -> Appearance -> Menus. Here you can edit your menu links.
_________________
Pavel Ciorici
WPZOOM Founder
Follow me on Twitter
Follow WPZOOM on Twitter
Become our Fan on Facebook
Hi Pavel,
thank you for quick reply. Sorry to be a pain, but in the wp-admin => Appearance => Menus, I can't find where I can change this "HOME" button.
I can add new menu links (Pages and Categories and Links)and remove them. However this one only shows up when I choose one of the categories. It is not in my wp-admin-appearance-menus section and there is no way to change it.
Please find the screenshot attached, perhaps it will explain better what link I am having troubles with.
regards,
Vecheslav
thank you for quick reply. Sorry to be a pain, but in the wp-admin => Appearance => Menus, I can't find where I can change this "HOME" button.
I can add new menu links (Pages and Categories and Links)and remove them. However this one only shows up when I choose one of the categories. It is not in my wp-admin-appearance-menus section and there is no way to change it.
Please find the screenshot attached, perhaps it will explain better what link I am having troubles with.
regards,
Vecheslav
Attachments:
Home.jpg [ 113.96 KiB | Viewed 9209 times ]
firstrayoflight
Sorry for wrong solution.
To change the "Home" word from breadcrumbs, open "functions/wpzoom-functions.php" file, and replace this line:
Sorry for wrong solution.
To change the "Home" word from breadcrumbs, open "functions/wpzoom-functions.php" file, and replace this line:
$name = 'Home'; //text for the 'Home' link_________________
Pavel Ciorici
WPZOOM Founder
Follow me on Twitter
Follow WPZOOM on Twitter
Become our Fan on Facebook
how about the right to left problem, i want to translate themes into arabic that require switching direction and most of the themes got broken when doing this
is there a fast solution for this problem ?
is there a fast solution for this problem ?
blazeeboy
Hello,
Just download and install WordPress in your RTL language, and the theme should automatically appear in RTL mode.
http://codex.wordpress.org/WordPress_in_Your_Language
Or you can change this in "header.php" file of themes:
Hello,
Just download and install WordPress in your RTL language, and the theme should automatically appear in RTL mode.
http://codex.wordpress.org/WordPress_in_Your_Language
Or you can change this in "header.php" file of themes:
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> I have done a German translation for your Sportpress theme. How and where can I share this to the community?
pesty
Look in the /languages/ folder of your theme, and there you should find a ".mo" file which you can upload on the forum and share with others.
Look in the /languages/ folder of your theme, and there you should find a ".mo" file which you can upload on the forum and share with others.
_________________
Pavel Ciorici
WPZOOM Founder
Follow me on Twitter
Follow WPZOOM on Twitter
Become our Fan on Facebook
Dear Pavel
I used RTLer plugin to align the theme I am using (Yamidoo Pro), and it works perfectly, but when I used the localization step by step as describe by you, the theme alignment returned back to LEFT, any advise please?
I used RTLer plugin to align the theme I am using (Yamidoo Pro), and it works perfectly, but when I used the localization step by step as describe by you, the theme alignment returned back to LEFT, any advise please?
Dear Pavel,
I have done a Italian translation for your Domestica theme following this manual but I can't translate all strings.
I don't want to use the translations labels on Theme Option> General> Translation.
I want to use only .po .mo files for translations.
Is it possible?
I have done a Italian translation for your Domestica theme following this manual but I can't translate all strings.
I don't want to use the translations labels on Theme Option> General> Translation.
I want to use only .po .mo files for translations.
Is it possible?
marcomazzei
Hello,
Actually we wanted to make the theme a little easier to be translated, and that's why we left important strings to be modified from Theme Options.
But if you don't prefer this method, then you'll have to replace the code from a few files, so you can later translate theme via po, mo files:
Here are the files and code which you have to replace:
author.php - http://pastebin.com/raw.php?i=z4NpQmTy
loop-estate.php - http://pastebin.com/raw.php?i=66J82wWi
single-estate.php - http://pastebin.com/raw.php?i=UpSaXM94
wpzoom-search.php - http://pastebin.com/raw.php?i=SdsEmJ7F
wpzoom-toggler.php - http://pastebin.com/raw.php?i=1cGMNTCk
You will also have to update the default language file:
/languages/en_US.po - http://pastebin.com/raw.php?i=rzJypsBU
Hello,
Actually we wanted to make the theme a little easier to be translated, and that's why we left important strings to be modified from Theme Options.
But if you don't prefer this method, then you'll have to replace the code from a few files, so you can later translate theme via po, mo files:
Here are the files and code which you have to replace:
author.php - http://pastebin.com/raw.php?i=z4NpQmTy
loop-estate.php - http://pastebin.com/raw.php?i=66J82wWi
single-estate.php - http://pastebin.com/raw.php?i=UpSaXM94
wpzoom-search.php - http://pastebin.com/raw.php?i=SdsEmJ7F
wpzoom-toggler.php - http://pastebin.com/raw.php?i=1cGMNTCk
You will also have to update the default language file:
/languages/en_US.po - http://pastebin.com/raw.php?i=rzJypsBU
_________________
Pavel Ciorici
WPZOOM Founder
Follow me on Twitter
Follow WPZOOM on Twitter
Become our Fan on Facebook
Hi Pavel,
thank you for super quick reply :)
I really like your easy solution for translation in option theme... unfortunately I'm doing a multilingual website so i need to translate Property Labels and Property Details too... Is it possible just the same?
i am using WPML for language management... do you have any suggestions for me about this?
Thanks a lot
best regards
Marco
thank you for super quick reply :)
I really like your easy solution for translation in option theme... unfortunately I'm doing a multilingual website so i need to translate Property Labels and Property Details too... Is it possible just the same?
i am using WPML for language management... do you have any suggestions for me about this?
Thanks a lot
best regards
Marco
marcomazzei
It's possible to translate Property Labels.
Modify following file:
single-estate.php - http://pastebin.com/raw.php?i=6FaGU9V1
But it's a little difficult to make translatable Additional Property Details because you insert them manually in Theme Options so we should know first which additional labels have you added so we can send ou modified file.
It's possible to translate Property Labels.
Modify following file:
single-estate.php - http://pastebin.com/raw.php?i=6FaGU9V1
But it's a little difficult to make translatable Additional Property Details because you insert them manually in Theme Options so we should know first which additional labels have you added so we can send ou modified file.
_________________
Pavel Ciorici
WPZOOM Founder
Follow me on Twitter
Follow WPZOOM on Twitter
Become our Fan on Facebook
Hello,
I have the Videozoom theme.
1. URL to your website
I am still learning and invastigating the theme so I have my theme installed in a localhost.
2. WordPress version
WordPress 3.3.2
3. Theme version
Videozoom 3.0.4
4. Your request details
I am using Arabic (RTL layout) so I want to display the text from right to left.
Working on an Arabic localized Wordpress version did not solve the problem.
I noticed that you mentioned modifying some code in the header file but did not know what to replace in the language attribute part in the code your provided.
Can you help me?
I have the Videozoom theme.
1. URL to your website
I am still learning and invastigating the theme so I have my theme installed in a localhost.
2. WordPress version
WordPress 3.3.2
3. Theme version
Videozoom 3.0.4
4. Your request details
I am using Arabic (RTL layout) so I want to display the text from right to left.
Working on an Arabic localized Wordpress version did not solve the problem.
I noticed that you mentioned modifying some code in the header file but did not know what to replace in the language attribute part in the code your provided.
Can you help me?
1- claudel.squanto.net/website
2- 3.4.2
3-
Hi,
I followed the steps to use codestyling, unfortunately it gives me an error related to the WPZOOM theme... and indicates to contact the author of the script :)
Error message:
Malfunction at current Theme detected!
Name: Erudito | Author: WPZOOM
Below listed scripts has been automatically stripped because of injection:
http://claudel.squanto.net/website/wp-c ... p-admin.js
2- 3.4.2
3-
Hi,
I followed the steps to use codestyling, unfortunately it gives me an error related to the WPZOOM theme... and indicates to contact the author of the script :)
Error message:
Malfunction at current Theme detected!
Name: Erudito | Author: WPZOOM
Below listed scripts has been automatically stripped because of injection:
http://claudel.squanto.net/website/wp-c ... p-admin.js
Hi,
Though I did a search in the forum I was unable to find an answer to my concern.
I am using the videozoom theme (latest) with the latest wordpress version. The site, www.newdiaspora.com, is in two languages (english and greek) and I want the theme texts to also appear in both languages greek.
I saw your great tutorial (and I have installed the plugin you suggest), but it was not clear to me if by completing the tutorial the new language (greek in my case) would replace the old (english). I need them both to be functional, so I thought best to ask in advance.
Also, I m already using qtranslate to switch between languages but clicking on the logo always takes me to the home page in english. Any ideas on how to fix that?
Thanks in advance for your help!
Though I did a search in the forum I was unable to find an answer to my concern.
I am using the videozoom theme (latest) with the latest wordpress version. The site, www.newdiaspora.com, is in two languages (english and greek) and I want the theme texts to also appear in both languages greek.
I saw your great tutorial (and I have installed the plugin you suggest), but it was not clear to me if by completing the tutorial the new language (greek in my case) would replace the old (english). I need them both to be functional, so I thought best to ask in advance.
Also, I m already using qtranslate to switch between languages but clicking on the logo always takes me to the home page in english. Any ideas on how to fix that?
Thanks in advance for your help!
tzoanna
Hello,
You'll have to follow this tutorial in order to translate your theme in Greek language.
After that you will have to use a multilingual plugin like WPML or qTranslate to translate your content, and when you will read an article in Greek for example, the theme will automatically appear in Greek.
http://wordpress.org/extend/plugins/qtranslate/
http://wpml.org/
Hello,
You'll have to follow this tutorial in order to translate your theme in Greek language.
After that you will have to use a multilingual plugin like WPML or qTranslate to translate your content, and when you will read an article in Greek for example, the theme will automatically appear in Greek.
http://wordpress.org/extend/plugins/qtranslate/
http://wpml.org/
_________________
Pavel Ciorici
WPZOOM Founder
Follow me on Twitter
Follow WPZOOM on Twitter
Become our Fan on Facebook
Great thanks!