Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Language Text Definitions


butterfly

Recommended Posts

The osCommerce instruction here:

osCommerce Instruction page says:

"The top left of the browser window shows the name osCommerce. This can be altered to your site's name in catalog/includes/languages/english.php on approximately line 48.

So I found that file and changed this:

// page title define('TITLE', 'osCommerce');

I replaced 'osCommerce' (not on line 48 though. It is on the first top lines) with my own store name.

But the above change made my store home page a mess. Anyone know why this happened and how to change the store name disply from 'osCommerce' to my own store name? Thank you.

Link to comment
Share on other sites

The osCommerce instruction here:

osCommerce Instruction page says:

"The top left of the browser window shows the name osCommerce. This can be altered to your site's name in catalog/includes/languages/english.php on approximately line 48.

So I found that file and changed this:

// page title define('TITLE', 'osCommerce');

I replaced 'osCommerce' (not on line 48 though. It is on the first top lines) with my own store name.

But the above change made my store home page a mess. Anyone know why this happened and how to change the store name disply from 'osCommerce' to my own store name? Thank you.

 

 

Find this in cat/inc/lang/english.php

 

<?php
/*
?$Id: english.php,v 1.114 2003/07/09 18:13:39 dgw_ Exp $

?osCommerce, Open Source E-Commerce Solutions
?http://www.oscommerce.com

?Copyright ? 2003 osCommerce

?Released under the GNU General Public License
*/

// look in your $PATH_LOCALE/locale directory for available locales
// or type locale -a on the server.
// Examples:
// on RedHat try 'en_US'
// on FreeBSD try 'en_US.ISO_8859-1'
// on Windows try 'en', or 'English'
@setlocale(LC_TIME, 'en_Uk.ISO_8859-1');

define('DATE_FORMAT_SHORT', '%d/%m/%Y'); ?// this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'd/m/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

////
// Return date in raw format
// $date should be in format dd/mm/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
function tep_date_raw($date, $reverse = false) {
?if ($reverse) {
? ?return substr($date, 3, 2) . substr($date, 3, 2) . substr($date, 6, 4);
?} else {
? ?return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 3, 2);
?}
}

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)
define('LANGUAGE_CURRENCY', 'USD');

// Global entries for the <html> tag
define('HTML_PARAMS','dir="LTR" lang="en"');

// charset for web pages and emails
define('CHARSET', 'iso-8859-1');

// page title
define('TITLE', 'oscommerce');

:thumbsup:

 

 

make sure you dont delete the ' '

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...