Forums / Install & configuration / Multilingual sites - Could not load translation file

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

eZ debug

Timing: Jan 18 2025 19:29:34
Script start
Timing: Jan 18 2025 19:29:34
Module start 'content'
Timing: Jan 18 2025 19:29:34
Module end 'content'
Timing: Jan 18 2025 19:29:34
Script end

Main resources:

Total runtime0.0198 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 587.9609180.8047
Module start 'content' 0.00820.0058 768.765693.9766
Module end 'content' 0.01390.0058 862.742270.7031
Script end 0.0197  933.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002512.6745120.0002
Check MTime0.00125.8182120.0001
Mysql Total
Database connection0.00126.315010.0012
Mysqli_queries0.003819.120940.0009
Looping result0.00000.110920.0000
Template Total0.005327.010.0053
Template load0.00125.931610.0012
Template processing0.004221.045010.0042
Override
Cache load0.00073.392610.0007
General
dbfile0.00041.7891100.0000
String conversion0.00000.035030.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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