Forums / Setup & design / Translation / Internationalization

Translation / Internationalization

Author Message

John Hoskins

Tuesday 08 April 2003 2:34:09 pm

Trying to get support for several languages going on my test site.

So I added a new language under admin / setup tab / translations and chose one and hit new. I go into one of the articles on the site and add a new translation for the document and publish it.

1. So the english version shows at /content/view/full/217, where is the norwegian one I published?

2. How does a user get setup so that they come in and get the language that they want? Is that a browser thing? And how can I allow users to choose a translation

3. What ini file needs to be changed to show things like Hebrew, Arabic and stuff that does not come close to using latin? What about Swedish, German, and other languages that use mostly latin but some other funky characters?

4. If a site has some content in a language but it is all in english, will it show up in english if there is no translation available? Is this a behavior that is settable?

5. It seems like there is no easy way to tie a version of the main (english) article to a translation. When I look into the ezcontentobject_name table, I see version numbers for translations but they never appear when I edit the translations. Further, it seems like translation are published in tandem and are not serperately controlled.

This is the behavior that I need for my project. New content is written in english and put into a workflow. Site manger gets notice that there is new content. Site manager assigns translation duty for that document to available people. Site manger can publish english version while the translations are coming. As translation are coming in, they are published. If a correction to a translation is needed it can be updated seperately from the english version. Each translation is tied to a version of the english articled. If the english version is updated, the site manager assigns updating of the translation and the translators use their last version as the start of their edits.

I know I need to do some workflow stuff but is the current presentation of translation, coding login in the edit pages or login lower down?

Jan Borsodi

Friday 11 April 2003 7:12:43 am

1.
/content/view/full/217/nor-NO should show it, however it seems like a bug with these syntax with the 3.0 release.

2.
Currently there's no personality system in eZ publish. You will have to manually tweak the index.php file to handle language changes, for instance based on browser language or a user selectable language in a custom module.

3.
To get hebrew, arabic etc. you will have to use the UTF-8 encoding. You will have to change this in settings/i18n.ini which defines the core charset for the site.
With UTF-8 (Unicode) you can get most languages in the world on the same site at the same time.

4.
Yes, that is the purpose.

5.
Translations are not versioned independently. If you want need that feature I can recommend using different objects for different languages. You will then link in the various languages using related objects.
This is also the best solution if you want translations made while the main language is published, for instance the site manager would tell the translators to copy the original object and create the translations.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

John Hoskins

Friday 11 April 2003 8:15:01 am

Thanks for the reply.

Want to understand further your reply.

4 & 5. So if I do what you suggest in 5. Then the feature in 4 will not work without custom coding?

3. If I put content in using Latin in i18n.ini and then change it to utf-8 will that stuff be screwed up. Is that setting central to the way the system understands its internal content or just is a display function?

2. So I either need to do browser detection and/or have a global variable that is set to keep language together.

eZ debug

Timing: Jan 18 2025 02:10:59
Script start
Timing: Jan 18 2025 02:10:59
Module start 'content'
Timing: Jan 18 2025 02:10:59
Module end 'content'
Timing: Jan 18 2025 02:10:59
Script end

Main resources:

Total runtime0.8057 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 588.8672180.8281
Module start 'content' 0.00830.6747 769.6953548.8828
Module end 'content' 0.68300.1226 1,318.5781336.7734
Script end 0.8057  1,655.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5111210.0002
Check MTime0.00150.1891210.0001
Mysql Total
Database connection0.00130.159510.0013
Mysqli_queries0.736891.45111940.0038
Looping result0.00180.22441920.0000
Template Total0.774396.120.3871
Template load0.00220.267520.0011
Template processing0.772195.826520.3860
Template load and register function0.00010.016910.0001
states
state_id_array0.00070.089010.0007
state_identifier_array0.00180.223320.0009
Override
Cache load0.00190.2302320.0001
Sytem overhead
Fetch class attribute can translate value0.00190.234230.0006
Fetch class attribute name0.00110.142040.0003
XML
Image XML parsing0.00100.118030.0003
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00260.3269280.0001
String conversion0.00000.000730.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
3content/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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/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: 6

Time used to render debug report: 0.0001 secs