Solved

wordpress theme translation

Posted on 2014-11-27
2
102 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
[X]
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
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

How to install BuddyPress on your self-hosted WordPress site It’s been called everything from “social networking in a box” to “Facebook without the terms of service,” but until Feb. 16, BuddyPress was a relatively unknown outside the WordPress MU…
WordPress can be pretty daunting, especially for a beginner, so I thought it might be a good idea to write an article to show how easy it is to get started in WordPress and to design a custom theme.  The first step is to check with your hosting comp…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

695 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