Forums / Setup & design / problems with translation and information collector

problems with translation and information collector

Author Message

Heiner Wurbs

Tuesday 04 April 2006 3:09:42 am

Hi,
has anybody experience in translating classes with information collection in a multilangual site?

All the attributes I have in a class that collect information are not really translatable, even if I mark them as translable (seems to translate the collected info). The website displays always the Name of this attribute.

Every comment and hint is welcome :)
Heiner

Heiner Wurbs

Tuesday 04 April 2006 4:46:10 am

Hi!
Nobody has an idea? Even not the eZ crew ?

Please give me some hints, it would be very helpful!
Heiner

Heiner Wurbs

Thursday 28 September 2006 2:58:55 am

This problem still exists, its a pitty, but it doesnt work. I tried this to translate the names of the information collectors:

{$ContentObjectAttribute:item.contentclass_attribute.name|i18n( 'myarea/texts' )}

no luck, very strange. Does anybody translated an information collector ?

Kristof Coomans

Thursday 28 September 2006 3:22:01 am

Hello Heiner

This will be a new feature in eZ 3.9 (<i>http://ez.no/community/developer/roadmap/ez_publish_3_9</i>).

Cheers

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Claudia Kosny

Thursday 28 September 2006 12:29:09 pm

Hello Heiner

ezlupdate cannot determine all possible values of the variable you set as input for i18n here. But the translation should work if you manually insert all possible values of the variable (meaning the names of all your attributes) into the translation.ts yourself.

So if the name is 'foo' which you want to translate to 'bar', add the respective info to your translation.ts in the context you have specified. As the translation.ts is an xml file you can open it in any txt editor (be careful to keep the utf8 encoding if necessary). You can see that the structure is quite easy to understand.

Please note that the ezlupdate will choke on variables as input for i18n so you might have to comment out the respective template line, run ezlupdate and then comment the line in again.
Afterwards add the additional translations as required.

Greetings from Luxembourg

Claudia

Sergiy Pushchin

Tuesday 03 October 2006 11:33:50 pm

Functionality for translation of class and classattribute names is allready in turnk.

--
SP

eZ debug

Timing: Jan 18 2025 05:22:37
Script start
Timing: Jan 18 2025 05:22:37
Module start 'content'
Timing: Jan 18 2025 05:22:37
Module end 'content'
Timing: Jan 18 2025 05:22:37
Script end

Main resources:

Total runtime0.3775 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 592.2891180.8125
Module start 'content' 0.00680.0144 773.101698.0547
Module end 'content' 0.02130.3561 871.1563526.3750
Script end 0.3774  1,397.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.9899200.0002
Check MTime0.00140.3815200.0001
Mysql Total
Database connection0.00090.233610.0009
Mysqli_queries0.191250.65711410.0014
Looping result0.00180.48231390.0000
Template Total0.355594.210.3555
Template load0.00090.234210.0009
Template processing0.354793.952210.3547
Override
Cache load0.00060.167410.0006
Sytem overhead
Fetch class attribute can translate value0.00110.297010.0011
XML
Image XML parsing0.00030.080810.0003
General
dbfile0.01383.6520200.0007
String conversion0.00000.001630.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs