Translation question

Author Message

Ivan Švogor

Monday 13 December 2010 7:23:20 am

I'm developing a site that has one main language, and one extra. Now, not all content will be translated to this extra language. Now, is there a way, to do the following. When user is browsing the site on this extra language, and there is no translation, I would like to show the original language. So it will not show blank page if there is no translation.

Thank you!

Ivo Lukac

Monday 13 December 2010 10:21:32 am

For every siteaccess you can add list of languages that are shown (in priority order), so you cro siteaccess site.ini will have this:

[RegionalSettings]
SiteLanguageList[]
SiteLanguageList[]=cro-HR
SiteLanguageList[]=eng-GB

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Lo' F.

Wednesday 15 December 2010 1:59:49 pm

..Besides, in the admin interface, the translation tab of the selected node has a checkbox which allows you to decide whether or not use the main language if there are no prioritized translation.

By the way, if you decide not to tick this checkbox for a node without translation (and so decide to make the page available only if it has the current siteaccess version), this won't show an empty page when you click but just redirect you to the home page.

loredanaebook.it

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 18 2025 01:57:27
Script start
Timing: Jan 18 2025 01:57:27
Module start 'layout'
Timing: Jan 18 2025 01:57:27
Module start 'content'
Timing: Jan 18 2025 01:57:27
Module end 'content'
Timing: Jan 18 2025 01:57:27
Script end

Main resources:

Total runtime0.6979 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.7891152.6094
Module start 'layout' 0.00690.0030 740.398439.4375
Module start 'content' 0.00990.6864 779.8359573.9297
Module end 'content' 0.69640.0015 1,353.765612.1875
Script end 0.6978  1,365.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5096160.0002
Check MTime0.00130.1928160.0001
Mysql Total
Database connection0.00130.181310.0013
Mysqli_queries0.644392.3283590.0109
Looping result0.00080.1159570.0000
Template Total0.663495.120.3317
Template load0.00200.292320.0010
Template processing0.661394.760420.3307
Template load and register function0.00020.034310.0002
states
state_id_array0.00200.279410.0020
state_identifier_array0.00140.204620.0007
Override
Cache load0.00170.2385130.0001
Sytem overhead
Fetch class attribute can translate value0.00170.244930.0006
Fetch class attribute name0.00180.253450.0004
XML
Image XML parsing0.00300.430630.0010
class_abstraction
Instantiating content class attribute0.00000.002550.0000
General
dbfile0.00370.5336230.0002
String conversion0.00000.001340.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs