Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Not all text strings are language files ....


Guest

Recommended Posts

Just a small issue, in the popup coupon help window I noticed that not all text is localized, i.e defined in language files (in this case the text NONE). So I added this to change that.

 

In "popup_coupon_help.php" change:

  if ($prods=='') $prods = '<br>NONE';

...

 if ($cats=='') $cats = '<br>NONE;

 

to:

  if ($prods=='') $prods = '<br>'.TEXT_COUPON_NONE; //Fix Fred

...

 if ($cats=='') $cats = '<br>'.TEXT_COUPON_NONE; //Fix Fred

 

Add the following define to "language/YOUR_LANGUAGE/popup_coupon_help.php":

define('TEXT_COUPON_NONE', 'NONE');

 

/Fred

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...