Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Multi Lingual new box


Guest

Recommended Posts

Posted

I've created a new box on my site but it only shows up in English.

 

Anyone know how I can edit this box in the multiple languages I have my site in?

 

I want the box header to be in German when someone chooses german as their language.

 

Much like the other boxes do.

 

The box shows up in these other languages but in English. Any idea how I do this.

 

You can see my site at http://www.theleftyshop.com/catalog

 

Any help would be really appreciated. Willing to pay for a solution.

Posted
I've created a new box on my site but it only shows up in English.

 

Anyone know how I can edit this box in the multiple languages I have my site in?

 

I want the box header to be in German when someone chooses german as their language.

 

Much like the other boxes do.

 

The box shows up in these other languages but in English. Any idea how I do this.

 

You can see my site at http://www.theleftyshop.com/catalog

 

Any help would be really appreciated. Willing to pay for a solution.

 

If you have build your box like the others you should find something like (sample from categories box):

  $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
						   'text'  => BOX_HEADING_CATEGORIES
						  );
 new CategoriesBoxHeading($info_box_contents, true, false);

The define BOX_HEADING_CATEGORIES is a define you will find in the main language files like

(catalog)/includes/languages/english.php

 

All you have to do is to create a define called BOX_HEADING_MOREINFOBOX, or whatever you want to name it, in all of your main language files with the appropriate translation.

In your infobox you will have something like

  $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
						   'text'  => BOX_HEADING_MOREINFOBOX
						  );
 new InfoBoxHeading($info_box_contents, true, false);

That's all.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...