Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2011
    Posts
    37
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

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

    Have you looked at the Norwegian Language Pack in Free Addons?

  3. #3
    Join Date
    Nov 2011
    Posts
    37
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. v150 CKEditor fails with norwegian language
    By hpldesign in forum General Questions
    Replies: 2
    Last Post: 5 Aug 2012, 07:36 AM
  2. Admin area disappears after 30min, using Norwegian language pack
    By kjellesvig in forum Basic Configuration
    Replies: 2
    Last Post: 14 Jul 2010, 07:13 PM
  3. Customizing Template for Multiple Product Fields
    By bini5 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Jan 2010, 09:59 PM
  4. A Norwegian JROX JAM language file?
    By Unicorn in forum Addon Language Packs
    Replies: 0
    Last Post: 26 Oct 2008, 03:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR