Multilingual Problem

Author Message

Jianjun Hu

Friday 29 June 2007 9:12:46 pm

I establish a <b>multilingual site</b> with <b>eZ Publish 3.9.2</b>. The languages are <b>Chinese</b> and <b>English</b> and the <b>Chinese</b> is the default language. But I find that the vocabulary entries such as "<b>Tip a friend</b>", "<b>Search</b>", "<b>View as slideshow</b>", "<b>Add comment</b>", ..., and "<b>New comment</b>" are displayed as English other than Chinese.

For example, I search "<b>New comment</b>" within all the files.

In <i>./design/base/override/templates/full/weblog.tpl</i>

<div class="content-action">
                <form method="post" action={"content/action"|ezurl}>
                   <input type="hidden" name="ClassIdentifier" value="comment" />
                   <input type="hidden" name="NodeID" value="{$node.node_id}" />
                   <input class="button new_comment" type="submit" name="NewButton" value="{'New comment'|i18n("design/base")}" />
                </form>
</div>

In <i>./share/translations/chi-CN/translation.ts</i>

<context>
    <name>design/base</name>
......
    <message>
        <source>New comment</source>
        <translation>еÄÆÀÂÛ</translation>
    </message>
......
</context>

(The translation above is right!)

In <i>./share/translations/untranslated/translation.ts</i> there are two code sections related "<b>New comment</b>".

<context>
    <name>design/base</name>
......
    <message>
        <source>New comment</source>
        <translation type="unfinished"></translation>
    </message>
......
</context>
<context>
    <name>design/weblog/layout</name>
......
    <message>
        <source>New comment</source>
        <translation type="obsolete"></translation>
    </message>
......
</context>

Need I modify some settings?

Thanks!

OnlyBlue

☆..·°∴°.☆°°.☆°.
°∴ °☆ .·enjoy star° .·★°∴°
∴°.°★ .·°
  ミ☆°∴°.★☆° ∴·°
°.☆° .·∴° 

Is it a pleasure after all to practice in due time what one has learnt?

Mingxing Chen

Saturday 30 June 2007 6:47:06 am

Hi Jianjun,

Greetings from China. ^_^

It seems all the information you gave is right. But I wonder whether you installed the webin extension, perhaps other site packages.
Have you debugged the template to list the them that are used?
So, I suggest you to find whether ./design/base/override/templates/full/weblog.tpl is the right template!
Get the right one and see the code of it, then edit ./share/translations/chi-CN/translation.ts, clear the cache, it should work well.

I am sorry for my English. My Chinese is better than English. ;D
Do you know there have been a community for Chinese? Lots people need your kind experience and help.
Please visit these links:
http://ez.no/partner/worldwide_ez_publish_partners/enterprise_ab_ltd/ez_publish_chinese_community
http://www.ezpublish.com.cn

Best regards.

Shinetech is the leader in next generation global application outsourcing. Shinetech combines world class technical skills, recognized expertise in advanced development methodologies and industry experience to deliver results for global enterprises. Shinetech utilizes distributed Agile methods for rapid and precise systems development.
------------------------------------------------------------------------------------------
Blog: http://www.mingxing.me
Email: chenmx@shinetechchina.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.