Jump to content

liyiwu

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by liyiwu

  1. I'm not aware of all the considerations that may be necessary for using the blog profile with Chinese characters (not had a chance to try that yet), but you may be able to resolve the issue you mentioned by changing that substr() to an mb_substr(). 

    Thanks ryan!

    I use  the code shown below. Because group tags by 26 characters is better than by  thousands of Chinese characters.

    $letter = strtoupper(mb_substr($tag->name, 0, 1));
    
    • Like 1
  2. Thanks ryan.

    I have try to set the code to ‘fr’, It not work too. 

    After a lot of trying, I find that is not about the language code, maybe is that TinyMCE 3.8 can't work fine with chrom-30, firefox-20 and opera-12.

    If the code  set to anything otherwise ‘en’, I have a empty body field.

    IE-10 works well  with any code. 

    In my case,  TinyMCE 3.x language pack and set code to ‘cn’ is OK.

    In the Chinese pack, I set the code to ’en‘ to make it works with all browser.

    update: IE11 don't work with it any more.

    post-1840-0-30997400-1383292383_thumb.jp

    post-1840-0-99004400-1383292400_thumb.jp

  3. Chinese Language Packs. note: The TinyMCE works in English, because I can't set the language code to zh-CN.

    click this link for detail.

    http://processwire.com/talk/topic/4803-i-want-translate-pw-to-chinese-and-need-support/

    you can download this pack from github too. https://github.com/liyiwu/Chinese-ProcessWire

    update:

    cd wire
    grep -Rl '[>_][_nx](' * | uniq
    

    I find 90 files, and translate all of them that is translatable.

    Hope this can help others.

    Chinese-ProcessWire.zip

    • Like 5
  4. I am translating PW to Chinese.

    I need add the language code zh_CN to the system.

    Enter: cs, da, de, en, es, fi, fr, hr, it, nl, no, pt, ro, ru, sk, sl, sv, uk. If your language isn't there, ask us to add it. We will if TinyMCE has it: http://www.tinymce.com/i18n
    

    I have download zh_CN.js from http://www.tinymce.com/i18n , and put it into wire/modules/Inputfield/InputfieldTinyMCE/tinymce-3.5.8/langs.

    It doesn't work for me.

    What will I do?

  5. I am using processwire 2.3 and blog profile. It works well but tags title is Chinese characters. 

    I can't post a new blog when use the Chinese characters in tags, because the tag name can't use Chinese characters.

    After I change a tag title from english to chinese, I cant use this tag to post a new blog. 

    Another error in the tag page , beacuse site/templates/markup/tags.php

       $letter = strtoupper(substr($tag->title, 0, 1));
    
    
×
×
  • Create New...