translate static link - closed

Author Message

scrieler _

Wednesday 09 April 2008 2:23:09 am

heya, i wanna translate a static link,
if language == ger => echo Impressum else => echo Imprint

dont know how, thanks for help

Maxime Thomas

Wednesday 09 April 2008 11:42:35 pm

Hi.

If it's a static link, you may put it in some content and then translate the content.
The link attribute type provide the mecanism you need to translate links.

Greetings.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

scrieler _

Thursday 10 April 2008 1:46:35 am

no, I wanna translate a link hardcoded in the pagelayout.tpl
to do that, i have to code a if else, i think.
but i dont know how.

Maxime Thomas

Thursday 10 April 2008 11:30:34 pm

You may use the i18n operator and edit your xml translation file.
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_operators/formatting_and_internationalization/i18n

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

scrieler _

Friday 11 April 2008 3:07:33 am

great! big thx to u!

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 19 2025 12:49:58
Script start
Timing: Jan 19 2025 12:49:58
Module start 'layout'
Timing: Jan 19 2025 12:49:58
Module start 'content'
Timing: Jan 19 2025 12:49:59
Module end 'content'
Timing: Jan 19 2025 12:49:59
Script end

Main resources:

Total runtime0.9055 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 589.1641152.6250
Module start 'layout' 0.00770.0028 741.789139.4453
Module start 'content' 0.01050.8938 781.2344557.6563
Module end 'content' 0.90430.0012 1,338.890612.1641
Script end 0.9055  1,351.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3796160.0002
Check MTime0.00130.1439160.0001
Mysql Total
Database connection0.00190.214510.0019
Mysqli_queries0.851894.0687630.0135
Looping result0.00050.0606610.0000
Template Total0.872396.320.4361
Template load0.00260.291920.0013
Template processing0.869696.034420.4348
Template load and register function0.00020.022710.0002
states
state_id_array0.00110.119310.0011
state_identifier_array0.00060.070520.0003
Override
Cache load0.00210.2291220.0001
Sytem overhead
Fetch class attribute can translate value0.00080.084920.0004
Fetch class attribute name0.00130.144960.0002
XML
Image XML parsing0.00060.067520.0003
class_abstraction
Instantiating content class attribute0.00000.001570.0000
General
dbfile0.00080.0874160.0000
String conversion0.00000.000640.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs