Jump to content

I want translate PW to Chinese, and need support.

Recommended Posts

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?

Share this post

Link to post
Share on other sites

I've noticed that the TinyMCE language files are all just the first part of the language code, i.e. "zh" rather than "zh_CN". I think that the full code is what TinyMCE 4 is using, but it doesn't look like 3.5.8 does. Have you tried renaming it to just zh.js? Also, the page you linked to is the TinyMCE 4 language pack directory, and I don't think those would be compatible with TinyMCE 3.5.8, though not positive on that. 

Share this post

Link to post
Share on other sites

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.



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By cosmicsafari
      Hi all,
      This is my first foray into a multi lingual PW site, what i'm unsre about is whether the frontend output is translated automatically or do I have to provide the content in another language also?
      As it stands I have installed the following modules:

      And have created and uploaded the Chinese language pack.

      At this point I can successfully change my profile and the backend successfully displays in Chinese.
      However I am confused about how I now get that translation to work on the frontend?
      I have setup the alternative url for the page I wish to view in Chinese

      So as a basic test I tried adding the following into the template used for the page above.

      However both urls still display the message in English?
      I take it I have missed something, do I then need to enter the frontend output in Chinese in another field within the backend to enable Chinese url to output the content?
      Any ideas would be greatly appreciated.
    • By SwimToWin
      How can I translate the admin buttons that are shown when mousing over a page in the admin interface ("Edit", "View", "New", "Move", "Unpub", "Hide", "Lock", "Trash")?

      The site uses the built-in Language Support module. I am here: /processwire/page/.
      I looked for files to translate in the Languages setup section (/processwire/setup/languages/edit/?id=1234), so far unsuccessfully because I was not able to identify a file to translate.
    • By Harmen
      Hi all,
      Recently I launched a module -ImportPagesPrestashop-, and now I was thinking if it is worthy to translate this module in several languages (starting with a translation in dutch, because I'm from the Netherlands). Is it worth to put the effort into the translation or do you guys think ->English is the best and translations are not needed?
      Thanks in advance,
    • By FrancisChung
      Saw this on ghacks.net. I've never seen a conversion site so comprehensive.

    • By lenno
      Our ProcessWire website has a simple site search, which is implemented following the ProcessWire search demo code. It uses the %= operator to get broader results.
      $queryResults = $this->pages->find('title%=应用'); // return everything The problem: It will return ALL pages. The reason is probably that %= uses SQL LIKE and SQL needs to be told that the search string contains unicode characters by adding 'N' as the prefix. At least this is what I think I learned from: http://stackoverflow.com/questions/22156413/how-to-select-rows-with-chinese-japanese-characters
      I tried this, but I still get everything:
      $queryResults = $this->pages->find("title%=N'应用'"); // return everything I also tried encoding my chinese text:
      $queryResults = $this->pages->find('title%=\u5e94\u7528'); // no results But now I get zero results. And by the way: The ~= operator also returns zero results:
      $queryResults = $this->pages->find('title~=\u5e94\u7528'); // no results $queryResults = $this->pages->find('title~=应用'); // also no results I guess I could build my own SQL queries, but we have already build a very nice customized search based on ProcessWire selectors and would really like to stick with them.
      Any idea how to solve this?
      Many thanks, René
  • Create New...