Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2007
    Posts
    6
    Plugin Contributions
    0

    red flag Some wrong with setlocal() on windows xp local server

    my server is windows xp sp2+ APMServ5.2:
    Apache 2.2.3
      NetBox 2.8 Build 4128
     PHP 5.2.0
      MiniPerl 5.8
      MySQL 5.0.27
      MySQL 4.0.26
      SQLite 3.3.8
      phpMyAdmin 2.9.1.1
      SQLiteManager 1.2.0  ZendOptimizer 3.2.0
      OpenSSL 0.9.8d

    installed Simchinese language pack (utf-8).

    display wrong:该商品加入分类的日期为2003年%m月%d日

    How can i settle this problem?
    Thank you!

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Some wrong with setlocal()

    https://www.zen-cart.com/tutorials/index.php?article=26 You have followed the procedure of that FAQ?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Aug 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Some wrong with setlocal()

    change @setlocale(LC_TIME, 'zh_CN.UTF-8');
    to @setlocale ( LC_ALL, "China" );

    no effect yet.
    why?

    What is the corect format?
    Thanks

  4. #4
    Join Date
    Aug 2007
    Posts
    6
    Plugin Contributions
    0

    red flag Need help!setlocal()

    If anybody knows how to set the locale on Windows to the equivalent of "zh_CN.UTF-8" on windows xp sp2, please do tell me.

  5. #5
    Join Date
    Oct 2006
    Posts
    624
    Plugin Contributions
    0

    Default Re: Some wrong with setlocal() on windows xp local server

    Assuming you leave this setting at:

    PHP Code:
     @setlocale(LC_TIME'zh_CN.UTF-8'); 
    Maybe you can try to check and play with these 2 settings as well.

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

    // charset for web pages and emails
      
    define('CHARSET''UTF-8'); 
    Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
    Printed book: www.lulu.com/content/10576284
    Electronic book and Errata: www.cucumbermedia.com/store

  6. #6
    Join Date
    Aug 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Some wrong with setlocal() on windows xp local server

    Yes, I just do that! But the matter going on.

  7. #7
    Join Date
    Oct 2006
    Posts
    624
    Plugin Contributions
    0

    Default Re: Some wrong with setlocal() on windows xp local server

    Can you tell me where you got the language pack so I can take a closer look at it?

  8. #8
    Join Date
    Aug 2007
    Posts
    6
    Plugin Contributions
    0

    red flag Re: Some wrong with setlocal() on windows xp local server


  9. #9
    Join Date
    Oct 2006
    Posts
    624
    Plugin Contributions
    0

    Default Re: Some wrong with setlocal() on windows xp local server

    I have downloaded and experimented with the language pack you showed me.

    To display the month properly if your Zen Cart runs on a Windows machine, your "schinese.php" file could have the following settings.

    PHP Code:
    setlocale(LC_ALL'Chinese_China.936'); 
    PHP Code:
    define('HTML_PARAMS','dir="ltr" lang="zh"'); 
    PHP Code:
    define('CHARSET''Windows-936'); 
    Unfortunately, once your month displays properly, your browser may display the rest of the characters incorrectly due to the encoding that was used to edit the translated files. You may like to contact the language pack author and discuss with him/her on the best approach for your case - taking into consideration the possibility that your live Zen Cart store will be running on a Linux/Unix machine instead of a Windows machine.

    Alternatively, you can download and install the Simplified Chinese language pack in the downloads section on top of an existing English installation. That language pack is for GB2312 but you can adjust the "schinese.php" file with the above settings and see if it meets your needs assuming you are running on a Windows machine.
    Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
    Printed book: www.lulu.com/content/10576284
    Electronic book and Errata: www.cucumbermedia.com/store

  10. #10
    Join Date
    Aug 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Some wrong with setlocal() on windows xp local server

    我已经解决了问题,谢谢canopy

 

 

Similar Threads

  1. Replies: 0
    Last Post: 6 Aug 2014, 11:14 PM
  2. Local host windows to linux server
    By vazvi in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 4 Feb 2011, 02:41 PM
  3. Some images not found after transfer from local server to host server
    By simon1066 in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 1 Apr 2009, 02:48 PM
  4. Windows local machine to Linux server?
    By Waggle Dancer in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 3 Oct 2007, 04:28 AM
  5. Cannot send email after upgrade using local Windows server
    By AcurA in forum Upgrading from 1.3.x to 1.3.9
    Replies: 6
    Last Post: 8 Sep 2006, 09:18 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