Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Customizing a template for a new language (norwegian)

Customizing a template for a new language (norwegian)

Views: 594

Results 1 to 3 of 3
24 Jan 2012, 6:05 PM
#1
einarso avatar

einarso

New Zenner

Join Date:
Nov 2011
Posts:
45
Plugin Contributions:
0

Customizing a template for a new language (norwegian)

Hi,
I am installing the "Emeralda" template on my site, but I am having trouble with the norwegian characters. It is my first time installing a new template, so I have been doing this by trial and error. So far I have duplicated the "english" files and named the folders "norwegian". I have also translated the /includes/languages/emeralda/norwegian.php file and replaced this:

@setlocale(LC_TIME, 'en_US.ISO_8859-1');
define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

With this:

@setlocale(LC_TIME, 'no_NO.ISO8859-1', 'nb_NO.ISO-8859-1', 'no', 'nb', 'no-NO', 'nb-NO', 'no_NO', 'nb_NO', 'nor', 'norwegian', 'bokmal');
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');

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

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

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

The norwegian letters I am missing are Å, Ø and Æ.

Anyone who can give me any tips how to get norwegian letters to funktion?

24 Jan 2012, 10:04 PM
#3
einarso avatar

einarso

New Zenner

Join Date:
Nov 2011
Posts:
45
Plugin Contributions:
0

Re: Customizing a template for a new language (norwegian)

Yes - I have installed the language pack. But the developmer of the language pack said to me that every template also has to be localized.