How to Translate ‘Archive by Page X’ Text in Current Item of Breadcrumb NavXT Plugin of WordPress

Breadcrumb NavXT is one of the best WordPress plugin that generates locational breadcrumb trails for your WordPress powered blog or website. These breadcrumb trails are highly customizable to suit the needs of just about any website running WordPress. Up to version 3.8.1, it has supported to display the page name of the current page item that you are visitting. For example, you are currently now at the page 3 of total 8 pages of the “General” category. So this plugin will show you the breadcrumb trail more less like this: “Home > Archive by category ‘General’ > Archive by Page ’3′”. Unfortunately, if your WordPress website is a multilanguage that uses the certain plugin which will turn your website into another language, you cannot translate that breadcrumb trail into the other language. So here is the modification I made to fix that problem.

Open your /wp-content/plugins/breadcrumb-navxt/breadcrumb_navxt_class.php file, and find this code:

			//Paged options 
			//The prefix for paged breadcrumbs, place on all page elements and inside of current_item prefix
			'paged_prefix' => '',
			//The suffix for paged breadcrumbs, place on all page elements and inside of current_item suffix
			'paged_suffix' => '',

then replace with this following code:

			//Paged options  <-- Modified by Masino Sinaga, in order to translate the breadcrumb trail for the current item page
			//The prefix for paged breadcrumbs, place on all page elements and inside of current_item prefix
			'paged_prefix' => __('Archive by page &#39;', 'breadcrumb_navxt'),
			//The suffix for paged breadcrumbs, place on all page elements and inside of current_item suffix
			'paged_suffix' => __('&#39;', 'breadcrumb_navxt'),

Is that all? Yep! That’s all!
If your website supports for multilanguage, then it should be translated into the other language that you have in your website.

Share

223 viewsPrint This Post Print This Post

Comments

  1. riza says:

    Wah artikelnya bagus-bagus. bookmark dulu ah

Speak Your Mind

*


*