User account menu

  • Log in
BXTra.net

Breadcrumb

  • Home
  • Articles
  • Modify zenmagick 0.9.4.2 to support UTF-8

Modify zenmagick 0.9.4.2 to support UTF-8

By BXTra | 11:33 PM PST, Wed February 25, 2009
Zencart

I just have a chance to play around with ZenMagick, an extension of ZenCart. ZenCart is one of the most popular shopping cart software. After I followed the installation process. everything seems to work fine until I found that ZenMagick doesn't support UTF-8 in the front end. What you have to do to make it support is :

1. Search for this file -> zenmagick\themes\default\lang\english\i18n.php , Open it.
2. Change from 'LC_TIME_LOCALE' => 'en_US.ISO_8859-1', to 'LC_TIME_LOCALE' => 'UTF-8',
3. Change from 'HTML_CHARSET' => 'iso-8859-1', to 'HTML_CHARSET' => 'UTF-8',

After the change, it will looks like below :

?>
 'UTF-8',

        // to format dates
        'DATE_FORMAT' => 'd/m/Y',

        // to parse user input 
        'UI_DATE_FORMAT' => 'dd/mm/yyyy',
        'UI_DATE_FORMAT_SAMPLE' => '16/11/1967',

        // various date/time formats used
        'DATE_FORMAT_LONG' => '%A %d %B, %Y',
        'DATE_TIME_FORMAT' => '%d/%m/%Y %H:%M:%S',

        'HTML_CHARSET' => 'UTF-8',
        // NOTE: This is *NOT* used in ZenMagick, however zen-cart uses it in some places...
        'HTML_PARAMS' => 'dir="ltr" lang="en"'
    ));

?>

That's it. Now, the front end of Zencart + ZenMagick works as UTF-8.

About text formats
  • No HTML tags allowed.
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.

  • Will the router get the Openvpn as a client option?
    6 years ago
  • cancellation
    6 years 1 month ago
  • Router ASUS RT-N12 D1 tomatoes passwort falsch
    7 years 8 months ago
  • WPS button = 30/30/30 hard reset button
    7 years 9 months ago
  • Save my day!
    8 years 3 months ago
  • How to
    8 years 6 months ago
  • Can i still access my modem (the one with the ISP provided)?
    8 years 6 months ago
  • A saving step!
    8 years 10 months ago
  • Problem with Asus n12e-c1
    8 years 11 months ago
  • don't use Hostgator
    9 years 2 months ago

© 2007 - 2023 BXTra.net. All Rights Reserved. 
Certain other content, photos and artwork displayed on BXTra.net are protected by copyright and are the property of their respective owners.

Privacy Policy