How can you change a static string of a class?

Author Message

esperion H

Thursday 19 January 2006 3:03:19 pm

I try to build up a bilingual site, english and norwegian. Ez pub 3.5.

I want to change the headline of the account info page to the customers of my site.

I want to change it from the technical sounding."Default object view" to "My account info". I have tried to do this by editing the file: design/standard/templates/node/view/full.tpl. I just replace the text (I do it in admin). The problem is that it is not translated into Norwegian. It just reproduces the text in english, even if I have kept the language operator i18n where it used to be.

I thought a translation engine would take care of this on a one to one word basis? What am I supposed to do?

I have browsed the forum and the documentation pages. It is very time-consuming given the large number of irrelevant results you get. I hope there will be an easier access to answers to basic questions as this in the future.

Appreciate your help.

Esperion

Mads Ovesen

Friday 20 January 2006 12:06:35 am

You have to provide the translations yourself. Open the share/translations/<your_language>/translation.ts file. The parameter of i18n gives the path to the translation in the file.
Hope this helps your problem.

/m

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 21:07:05
Script start
Timing: Jan 18 2025 21:07:05
Module start 'layout'
Timing: Jan 18 2025 21:07:05
Module start 'content'
Timing: Jan 18 2025 21:07:06
Module end 'content'
Timing: Jan 18 2025 21:07:06
Script end

Main resources:

Total runtime1.1767 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.0469152.6406
Module start 'layout' 0.00610.0032 740.687539.4766
Module start 'content' 0.00931.1658 780.1641485.8203
Module end 'content' 1.17510.0015 1,265.98448.1250
Script end 1.1766  1,274.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2836160.0002
Check MTime0.00140.1164160.0001
Mysql Total
Database connection0.00080.068510.0008
Mysqli_queries1.132396.2305540.0210
Looping result0.00040.0369520.0000
Template Total1.143997.220.5719
Template load0.00210.179420.0011
Template processing1.141797.030820.5709
Template load and register function0.00010.012410.0001
states
state_id_array0.00130.112110.0013
state_identifier_array0.00170.142920.0008
Override
Cache load0.00170.1418130.0001
Sytem overhead
Fetch class attribute can translate value0.00060.051220.0003
Fetch class attribute name0.00090.080120.0005
XML
Image XML parsing0.00020.020720.0001
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00060.0525100.0001
String conversion0.00000.000840.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs