ranslation ready theme
-
Hi, i am finding some trouble to localize a theme to make it translation ready with .po and .mo files.
I added this line in the functions.php
load_theme_textdomain( ‘thethemename’, $template_directory . ‘/lang’ );
if the code for the menus in my header goes like this. which strings do i have to change and how?
<div class=”menu_cont”>
<!––>
<?php wp_nav_menu(‘menu=header_menu&container=false&menu_id=menu’, ”); ?>
</div><!–//menu_cont–>
<div class=”clear”></div>
</div><!–//header_top–><div id=”header”>
<?php if(get_option($shortname.’_custom_logo_url’,”) != “”) { ?>
“><img src=”<?php echo stripslashes(stripslashes(get_option($shortname.’_custom_logo_url’,”))); ?>” class=”logo” />
<?php } else { ?>
“><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/logo.png” class=”logo” />
<?php } ?><div id=”header_menu”>
<!––>
<?php wp_nav_menu(‘menu=category_menu&container=false&menu_id=menu’, ”); ?>
<div class=”clear”></div>
</div><!–//header_menu–>
<div class=”clear”></div>
</div><!–//header–>
<div id=”content”>thanks for the help indvance
The topic ‘ranslation ready theme’ is closed to new replies.