Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

wordpress theme translation

Posted on 2014-11-27
2
95 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

If you are looking for plug-ins to add functions to your WordPress small business web site, take some time to read though this comprehensive list.  These are all the plugins I use for my customers WordPress web sites, as well as my own.  Be sure to …
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…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

792 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