Solved

wordpress theme translation

Posted on 2014-11-27
2
93 Views
Last Modified: 2014-11-27
hi
i am using poedit to translate a theme i'm building.
within the theme folder i have a languages folder. so for the path in poedit i used: ../
for keywords i use: __ and _e
it did scan and recognised when i have put on the index page:
<h2><?php  _e('To be Translated','boottheme'); ?></h2>
but the translation to hebrew that i gave doesn't show

in the comment for the theme in style.css i have this: Text Domain: boottheme

any idea why it is not translated on the page?
0
Comment
Question by:derrida
2 Comments
 
LVL 15

Accepted Solution

by:
eemit earned 500 total points
ID: 40468771
You also need the following in your theme's functions.php (at best from the use of 'after_setup_theme' action):
load_theme_textdomain( 'boottheme', get_template_directory() . '/languages' );

Open in new window

0
 
LVL 1

Author Closing Comment

by:derrida
ID: 40468907
just saved my life :) thanks
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you think that WordPress is just for blogs?  Think again!  WordPress is really a fantastic all around platform that you can use to develop websites on.  Integrated into its basic functionality is the ability to create pages using your choice of a…
In Part I (http://www.experts-exchange.com/Web_Development/Blogs/WordPress/A_8410-Getting-Started-In-WordPress-Part-I.html), I introduced you to the powerful WordPress backend, the WordPress administrative Dashboard.  In Part II, I will introduce yo…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question