Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    300
    Plugin Contributions
    2

    Default Now writing a Thai language pack.

    Hello,

    Many friends won't use zencart because there's no Thai pack available for the latest version. So, out of sheer generosity, I will write a Thai language pack but have a concern regarding encoding.

    For example, I open the english.php file that is located in the includes/language folder with Notepad++. I go to Encoding and 'Convert to utf-8 without BOM,' enter my text in Thai, save and close the file. (If I don't Convert to utf-8 without BOM first, the text I enter in Thai will show as question marks.)

    When I open it again the text I've just added now shows ลิขสิทธิ์. However, if I go to Encoding and select the 'Encode in utf-8 without boom,' the Thai text shows correctly again.

    My concern is that I checked the schinese.php file, from the Chinese pack, and all Chinese characters show correctly when I open the file, no need to select 'Encode in utf-8 without boom.' So I am not sure whether 'Converting to utf-8 without BOM,' entering my text in Thai, saving and closing the file is the only thing I need to do.

    Please advise if there's an

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Now writing a Thai language pack.

    Apparently a lot of Thai websites use:

    <meta http-equiv="Content-Type" content="text/html; charset=TIS-620">

    Then there is thai-language.com which is apparently a resource for learning Thai - suggests using Unicode for Thai

    Worth a try.......

  3. #3
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Now writing a Thai language pack.

    It may also just be the capabilities of your editor Notepad++ . If you are using a Linux box such as Ubuntu, Linux Mint, Fedora etc. then try installing Geany or Bluefish Editor and see if that gives you the desired results.

  4. #4
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    300
    Plugin Contributions
    2

    Default Re: Now writing a Thai language pack.

    Quote Originally Posted by frank18 View Post
    Apparently a lot of Thai websites use:

    <meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
    I also have seen this but wouldn't that create any problem with the database, especially for those sites that also use other languages with a charset in utf-8?

    It may also just be the capabilities of your editor Notepad++ . If you are using a Linux box such as Ubuntu, Linux Mint, Fedora etc. then try installing Geany or Bluefish Editor and see if that gives you the desired results.
    No, I am not using any linux box.

    Thanks for your answers. I have checked with neteasy (whom wrote the latest Chinese pack) to see how she/he did it and what editor did she/he used....

  5. #5
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Now writing a Thai language pack.

    Quote Originally Posted by Thannaree View Post
    I also have seen this but wouldn't that create any problem with the database, especially for those sites that also use other languages with a charset in utf-8?....
    Yeah, it probably would, didn't think about that. Which leaves me suspecting the editor may not be capable of handling Thai characters.

 

 

Similar Threads

  1. Adding second language in Thai
    By 1Mweeks in forum Addon Language Packs
    Replies: 5
    Last Post: 26 Jan 2015, 05:06 AM
  2. v139h Thai Language issue
    By barendfaber in forum Addon Language Packs
    Replies: 2
    Last Post: 21 Jan 2013, 10:37 AM
  3. Added gk language pack and now cart not showing!
    By barbs666 in forum Addon Language Packs
    Replies: 3
    Last Post: 9 Dec 2011, 04:34 AM
  4. Added a language without ftp pack, now have promlem
    By r1kob in forum Addon Language Packs
    Replies: 1
    Last Post: 7 Jul 2008, 06:12 AM

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