Translation issue. eng-GB

Author Message

Carlos Revillo

Tuesday 06 March 2007 3:01:42 am

Hi. i'm working with a bilingual site. when i installed ezpublish, i choosed castillian as main languages and english (UK) for additional languages.

There is no eng-GB folder under share -> translations. So, i made one by myself. but when i upload this new translation.ts file under eng-GB folder, i get a fatal error

Fatal error: Undefined class name 'eztstranslator' in /home/desorden/public_html/tanta/kernel/common/i18n.php on line 151
Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.

If i delete this folder, all goes as expected, but i would like to add strings to a translation file or something like that for my eng-GB version of my site.

any ideas?

Claudia Kosny

Tuesday 06 March 2007 3:24:05 am

Hi Carlos

eZ uses eng-GB as base language so usually there is no translation needed. Therefore some of the translation stuff only works for non-eng-GB languages, check e.g. line 121 in the i18n.php.

You can do the following
a) try to remove all language restrictions from the translation process, which involves some kernel hacking and might cause problems if you don't catch everything
b) create a new language which is eng-GB by another name
c) base your translations on english as well and don't use translation for the eng-GB siteaccess

Option b) creates a bit of overhead as eZ has to translate strings that were already in English
Option c) means that you have to go through your templates and translate everything there first

Claudia

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 16:09:19
Script start
Timing: Jan 18 2025 16:09:19
Module start 'layout'
Timing: Jan 18 2025 16:09:19
Module start 'content'
Timing: Jan 18 2025 16:09:19
Module end 'content'
Timing: Jan 18 2025 16:09:19
Script end

Main resources:

Total runtime0.0165 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.9063152.6250
Module start 'layout' 0.00610.0024 740.531339.4453
Module start 'content' 0.00840.0058 779.976689.3047
Module end 'content' 0.01420.0023 869.281330.3047
Script end 0.0165  899.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002817.0047140.0002
Check MTime0.00127.0019140.0001
Mysql Total
Database connection0.00074.481010.0007
Mysqli_queries0.002313.954730.0008
Looping result0.00000.079510.0000
Template Total0.001710.010.0017
Template load0.00095.546310.0009
Template processing0.00074.449210.0007
Override
Cache load0.00063.898510.0006
General
dbfile0.00031.900880.0000
String conversion0.00000.041940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs