WordPress.org

Ready to get started?Download WordPress

Forums

Problem using Japanese language extension (3 posts)

  1. rb
    Member
    Posted 9 years ago #

    Hi all,
    I have been playing with wordpress to use in my site. I have used Japanese language .mo file. I have tested the whole system in my computer (Windows XP, Apache 2, PHP5, MySQL4.1) and the blog runs fine. When I run it from my website (Apache 2, MySQL4.1, PHP4.3) I can see default (English) interface only. I tried to debug the problem by adding some 'echo' codes in wp-l10n.php file. In the load_textdomain function I found one different behavor between my local server and website. In my local machine the $l10n[$domain] variable shows 'Object id #70' whereas the remotely hosted site shows 'Object' only. What setting is causing this difference and is it the reason why the language extension is not functioning properly? Please help me!

  2. rb
    Member
    Posted 9 years ago #

    Finally I solved this problem! There was a bug in the file 'gettext.php' (or in my server). In the original gettext file there are two possible values of $magic=$this->readint() [$MAGIC1 =- 1794895138 and $MAGIC2 = - 569244523]. My local computer shows a value of - 1794895138. However, in my host's server, the value was 2500072158. I modified the condition as 'if ($magic == $MAGIC1 || $magic==2500072158)' and the problem solved! Still puzzled why the server is unique.

  3. hennagaijin
    Member
    Posted 9 years ago #

    Hi there,

    I've been using the Japanese language version for a while and it's working fine, except for showing the month and date in the posts. What's weird is that they show up fine in the calendar. Any idea?

    Cheers,

    Sylvain

Topic Closed

This topic has been closed to new replies.

About this Topic