Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Posts
    5
    Plugin Contributions
    0

    Default Re: Change CHARSET for home page & Localizing v1.5.1 for Vietnamese language

    Finally I found the problem is english.php file.

    I just changed the file F:\wamp\www\zen\includes\languages\sheffield_blue\english.php:

    PHP Code:
    Line 22: @setlocale(LC_TIME'en_US.utf8'); 
    And refresh the page. Done.
    Thank you for your help DrByte.

    By the way, could you show me the tutorial or some link to create new language package?
    I would wanna localize the version 1.5.1.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Change CHARSET for home page & Localizing v1.5.1 for Vietnamese language

    Quote Originally Posted by truongtamphong View Post
    By the way, could you show me the tutorial or some link to create new language package?
    I would wanna localize the version 1.5.1.
    Simple:

    copy:
    /includes/languages/english.php
    /includes/languages/english/-everything, files and folders

    to:
    /includes/languages/vietnamese.php
    /includes/languages/vietnamese/... all those other files and folders

    Then translate every "define" statement in those files:
    define('LEAVE_THIS_ALONE', 'translate this part here');
    And be sure to save the files as "UTF8-without-BOM". There's a setting in your text editor for that encoding choice.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Dec 2012
    Posts
    5
    Plugin Contributions
    0

    Default Re: Change CHARSET for home page & Localizing v1.5.1 for Vietnamese language

    Cool,

    I knew the problem with UTF with BOM in Notepad++.
    Thank you so much for dedicated help, DrByte.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,879
    Plugin Contributions
    96

    Default Re: Change CHARSET for home page & Localizing v1.5.1 for Vietnamese language

    Don't forget the email templates:

    /email/??

    where ?? is the 2-character language code for vietnamese. You can start by just copying all the files from the /email directory into that one.

 

 

Similar Threads

  1. change size of price in new products for month on home page
    By ebaobao in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Oct 2011, 09:26 PM
  2. Replies: 5
    Last Post: 1 Sep 2010, 06:20 PM
  3. Change order of home page - featured items above new products for december--
    By abs007 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Dec 2009, 02:25 PM

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