Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Language specific text


karoloydi

Recommended Posts

Hi guyz,

 

I need your expert advise. I d like to add a text next to the quantity box that is different for each language.

More specifically I want to add the word "meters" next to the quantity box, but on different language depending what language is selected.

Hope I made myself clear.

Thanks in advance

Link to comment
Share on other sites

Would think you need to add it into each php file in /includes/languages/.

 

Then you need to add it next to each place where you display a qty box, so at least product_info.php.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Would think you need to add it into each php file in /includes/languages/.

 

Then you need to add it next to each place where you display a qty box, so at least product_info.php.

 

I got it! Thanks for steering me to the right direction. I thought I only had to edit the main product_info.php file. Didnt think to edit the ones in the /includes/languages.

If anyone is interested, this is how to do it:

 

Create the following line of code in the product_info.php file in the root folder:

<?php echo TEXT_QUANTITY;?>

 

Then add the following code in each product_info.php file in the includes/languages folder (right before the ?> at the end:

define('TEXT_QUANTITY', 'meters'); (relace meters with the correct translation for each language)

 

Wasnt that hard. Even with zero php knowledge.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...