Solved

wordpress theme translation

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

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…
Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

726 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