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.

eZ debug

Timing: Jan 20 2025 06:48:01
Script start
Timing: Jan 20 2025 06:48:01
Module start 'layout'
Timing: Jan 20 2025 06:48:01
Module start 'content'
Timing: Jan 20 2025 06:48:02
Module end 'content'
Timing: Jan 20 2025 06:48:02
Script end

Main resources:

Total runtime0.8065 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1484152.6250
Module start 'layout' 0.00550.0045 741.773439.4453
Module start 'content' 0.01000.7950 781.2188542.7891
Module end 'content' 0.80500.0015 1,324.007812.1719
Script end 0.8065  1,336.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4478160.0002
Check MTime0.00130.1646160.0001
Mysql Total
Database connection0.00070.090810.0007
Mysqli_queries0.752493.2886540.0139
Looping result0.00050.0678520.0000
Template Total0.767195.120.3836
Template load0.00250.304320.0012
Template processing0.764794.812620.3823
Template load and register function0.00010.016610.0001
states
state_id_array0.00100.126610.0010
state_identifier_array0.00130.156420.0006
Override
Cache load0.00210.2621310.0001
Sytem overhead
Fetch class attribute can translate value0.00100.127920.0005
Fetch class attribute name0.00100.126740.0003
XML
Image XML parsing0.00130.161920.0007
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00130.1646220.0001
String conversion0.00000.001740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs