Multilingual sites - Could not load translation file

Author Message

Josh Luo

Sunday 31 July 2005 3:18:56 pm

Hi all,

I created separate site en(English) and nl(Dutch) for my multilingual sites. The site en is default. I'm using the exact same site.ini.append.php in siteaccess/en for siteaccess/nl, changing only these lines:

[RegionalSettings]
Locale=dut-NL
ContentObjectLocale=dut-NL

When accessing the English homepage(www.myname.com/index.php/en), no problem. However, when accessing the Dutch site(www.myname.com/index.php/nl), I got the following debug output:

Debug: access.php Jul 31 2005 23:47:38
Updated settings to use siteaccess 'nl'

Timing: Jul 31 2005 23:47:38
Module start 'content'

Error: eZTSTranslator::loadTranslationFile Jul 31 2005 23:47:38
Could not load translation file: share/translations/dut-NL/translation.ts

Error: eZDebug::writeFile Jul 31 2005 23:47:38
Cannot open log file 'var/log/error.log' for writing
The web server must be allowed to modify the file.
File logging for 'var/log/error.log' is disabled.

Any help will be appreciated.

Josh

Ɓukasz Serwatka

Sunday 31 July 2005 11:40:15 pm

Hi Josh,

This is permission problem, make sure that eZ publish has read+write access to var/ (you can run ./bin/modifx.sh from ez_pub_root dir) directory, also check if file share/translations/dut-NL/translation.ts exists.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Josh Luo

Monday 01 August 2005 10:56:03 am

Hi luke,

Thanks for your help! I have checked the permission. The var/ and var/dir/ are all set to 777, only var/log/ is set to 775. I try setting it to 777 via FTP, but this operation not permitted.

Also the file share/translations/dut-NL/translation.ts exists.

Is any solution for this problem?

Josh

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 22:37:03
Script start
Timing: Jan 18 2025 22:37:03
Module start 'layout'
Timing: Jan 18 2025 22:37:03
Module start 'content'
Timing: Jan 18 2025 22:37:05
Module end 'content'
Timing: Jan 18 2025 22:37:05
Script end

Main resources:

Total runtime1.4082 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.5938152.6563
Module start 'layout' 0.00550.0030 742.250039.5078
Module start 'content' 0.00841.3984 781.7578538.2969
Module end 'content' 1.40680.0014 1,320.054712.1094
Script end 1.4082  1,332.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2294160.0002
Check MTime0.00130.0919160.0001
Mysql Total
Database connection0.00070.052010.0007
Mysqli_queries1.358396.4557570.0238
Looping result0.00050.0382550.0000
Template Total1.376797.820.6883
Template load0.00220.153020.0011
Template processing1.374597.605120.6872
Template load and register function0.00020.012910.0002
states
state_id_array0.00130.094710.0013
state_identifier_array0.00140.101520.0007
Override
Cache load0.00180.1307350.0001
Sytem overhead
Fetch class attribute can translate value0.00060.043320.0003
Fetch class attribute name0.00320.230440.0008
XML
Image XML parsing0.00050.037820.0003
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00080.0570180.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs