How to Translate “Home” Text in Atahualpa 3.4.6 Theme of WordPress

Another modification that needed to be applied if you are running Atahualpa theme in a website that support for multi language powered by the certain plugin is to add the translation function to the Home text. As we know, in Atahualpa version 3.4.6, this string has not been translated properly yet, neither in the page menu bar and in the category menu bar. So here is the modification that I have already successfully done.

Open your /wp-content/themes/{youratahualpathemedirectory}/functions/bfa_header_config.php file, and find this code:

32
33
		$page_menu_bar .= '"><a href="' . $bfa_ata['get_option_home'] . '/" title="' . $bfa_ata['bloginfo_name'] . '">' . 
		$bfa_ata['home_page_menu_bar'] . '</a></li>' . "\n";

then replace with this following code:

32
33
		$page_menu_bar .= '"><a href="' . $bfa_ata['get_option_home'] . '" title="' . $bfa_ata['bloginfo_name'] . '">' . 
		__($bfa_ata['home_page_menu_bar'], 'atahualpa') . '</a></li>' . "\n";

That modification above intended for the home text in page menu bar. After that, we need also to modify the similar code for the home text in category menu bar.

Find again this code:

80
81
	$cat_menu_bar .= '"><a href="' . $bfa_ata['get_option_home'] . '/" title="' . $bfa_ata['bloginfo_name'] . '">' . 
	$bfa_ata['home_cat_menu_bar'] . '</a></li>' . "\n";

then replace with this following code:

80
81
	$cat_menu_bar .= '"><a href="' . $bfa_ata['get_option_home'] . '" title="' . $bfa_ata['bloginfo_name'] . '">' . 
	__($bfa_ata['home_cat_menu_bar'], 'atahualpa') . '</a></li>' . "\n";

That’s all, folks! Hopefully this will help you.

Share

2,117 viewsPrint This Post Print This Post

Comments

  1. gaurav says:

    hello sir,

    i want to change the look of this website…

    http://www.studyukvisa.gauravmainali.com/

    the categories are not in proper order, how can i actually make the categories properly attached below the header image,

    this is the code..

    <?php
    // this is your breadcrumb
    $nav = "";
    if ($script_name == 'index') {
        $nav .= "Home";
    } elseif ($script_name == 'showarticles') {
        $nav .= "<a href="" title="" rel="nofollow">Home</a>";
        $nav .= ">";
        $nav .= "$category_desc";
    } elseif ($script_name == 'showarticle') {
        $nav .= "<a href="" title="" rel="nofollow">Home</a>";
        $nav .= ">";
        $nav .= "<a href="" rel="nofollow">$category_desc</a>";
        $nav .= ">";
        $nav .= "$article_title";
    }
    echo $nav;
    ?>

    i don’t understand what is to be done?
    please reply me

  2. @gaurav

    Sorry I cannot acces your website as the URL you provided above.

Speak Your Mind

*


*