Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trying to change includes/languages/english.php


Guest

Recommended Posts

Question to developers

I've been trying to customize error messages but changes into

includes/languages/english.php do not seem to have any result

Where is the problem?

 

Thanks in advance

 

EDITED: Please do not cross post. 1 is plenty. Duplicates have been deleted. Thanks, Linda

Link to comment
Share on other sites

Form verification error messages

I am placing them in different place on the side of the form and changing their content

As an example here is one of the strings that I tried to change in includes/languages/english.php and didn't get any result

 

define('ENTRY_FIRST_NAME_ERROR', ' <small><font color="#FF0000">min ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' chars</font></small>');

INTO:

define('ENTRY_FIRST_NAME_ERROR', ' <small><font color="#FF0000">The minimum length of the field should be ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' chars</font></small>');

Link to comment
Share on other sites

I will try explain you in the better way i can, since my english is terrible ;)

 

Your error is you are making the modification directly in the code, that's wrong,

you must find the right line in the includes/languages/english.php and modify from there.

 

for example:

 

find this line in english.php

 

define('JS_FIRST_NAME', '* The 'First Name' entry must have at least ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' characters.n');

 

and change to:

 

define('JS_FIRST_NAME', '* The 'First Name' The minimum length of the field should be ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' characters.n');

 

 

----------------------

That have to work fine, somebody fix me if im wrong.

 

grettings.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...