Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to refer to localized variable


SGershon

Recommended Posts

Posted

Hello.

I have a good contribution installed o my site.

 

Unfortunately, the text on the boxes are hard coded onto it, as in:

  define('BOX_HEADING_LOGIN_BOX_MY_ACCOUNT','My Account Info.');
 define('LOGIN_BOX_MY_ACCOUNT','My Account Overview');
 define('LOGIN_BOX_ACCOUNT_EDIT','Edit My Account Information');
 define('LOGIN_BOX_ADDRESS_BOOK','Edit Address Book');
 define('LOGIN_BOX_ACCOUNT_HISTORY','View My Order History');
 define('LOGIN_BOX_PRODUCT_NOTIFICATIONS','Product Notifications');
 define('LOGIN_BOX_PASSWORD_FORGOTTEN','Password Forgotten?');

 

I want to refer those values to values defined in:

CATALOG_DIR/INCLUDES_DIR/LANGUAGES_DIR/language.php

(where the catalog and subdirectories are the common ones)

(where language can be espanol, portugues, english)

 

I tried to require the $language . '.php', but no avail.

 

How do I reference variable to the variables defined in the languaged files?

 

SGershon

If at first you don't succeed, you must be a programmer.

 

Tip Posted: Languageless Reviews

Posted

I think I need to express my self better:

 

Those "define(...)" are in the functional loginbox.php itself, not in the localized word definition language files.

 

And I need to refer to the localized files.

If at first you don't succeed, you must be a programmer.

 

Tip Posted: Languageless Reviews

Archived

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

×
×
  • Create New...