Forums / Setup & design / Multilingual Problem

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

eZ debug

Timing: Jan 20 2025 05:58:18
Script start
Timing: Jan 20 2025 05:58:18
Module start 'content'
Timing: Jan 20 2025 05:58:20
Module end 'content'
Timing: Jan 20 2025 05:58:20
Script end

Main resources:

Total runtime1.4292 sec
Peak memory usage4,096.0000 KB
Database Queries191

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 588.9453180.8438
Module start 'content' 0.00851.2622 769.7891547.8672
Module end 'content' 1.27070.1585 1,317.6563336.7578
Script end 1.4292  1,654.4141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2762210.0002
Check MTime0.00150.1037210.0001
Mysql Total
Database connection0.00090.059610.0009
Mysqli_queries1.350994.51691910.0071
Looping result0.00230.15991890.0000
Template Total1.395797.720.6979
Template load0.00160.112820.0008
Template processing1.394197.543220.6971
Template load and register function0.00010.009510.0001
states
state_id_array0.00140.100110.0014
state_identifier_array0.00090.066220.0005
Override
Cache load0.00140.0959310.0000
Sytem overhead
Fetch class attribute can translate value0.00160.108930.0005
Fetch class attribute name0.00100.068140.0002
XML
Image XML parsing0.00360.249630.0012
class_abstraction
Instantiating content class attribute0.00000.000440.0000
General
dbfile0.00970.6789330.0003
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs