Problem using translation files

Author Message

Philip K.

Friday 25 July 2008 8:10:46 am

Hi!

I have a multilingual website. The existing siteaccesses are translated in german (default), english and french. I have a translation file for each languages but german because I use german sources.

Everything worked fine till I made an update (3.8.x to 3.9). From that day on nothing was translated. Today I made an update to version 4.0. But also in this new version I get no translations.

I never changed anything in my translation files and all files have correct permissions.

I use translations like this:

<a href="url" title='{"My Source"|i18n("design/plain/full")}'>{"My Source"|i18n("design/plain/full")}</a>

My translation file looks like:

<!DOCTYPE TS><TS>
<context>
    <name>design/plain/full</name>
    <message>
        <source>My Source</source>
        <translation>My translation</translation>
    </message>
    ...
</context>

Do you have any idea? Thanks a lot.

Philip

Linux is like a wigwam; no windows, now gates, and apache inside!

Norman Leutner

Wednesday 30 July 2008 2:47:31 am

Hi Philip,

mostly this is a problem with the utf8 decoding of the file itself.
Try editing the file with a editor that supports utf8 or use linguist for the translation files.

Anyway keep in mind that using html enities (for German umlauts like &auml; for ä) will break the translation file.

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

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

Main resources:

Total runtime0.7342 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.0076 589.0391152.6250
Module start 'layout' 0.00760.0043 741.664139.4453
Module start 'content' 0.01180.7204 781.1094532.4922
Module end 'content' 0.73220.0020 1,313.601612.1641
Script end 0.7342  1,325.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4433160.0002
Check MTime0.00140.1839160.0001
Mysql Total
Database connection0.00140.191210.0014
Mysqli_queries0.683993.1406540.0127
Looping result0.00050.0634520.0000
Template Total0.694494.620.3472
Template load0.00240.323920.0012
Template processing0.692094.245320.3460
Template load and register function0.00010.014710.0001
states
state_id_array0.00210.279510.0021
state_identifier_array0.00150.197520.0007
Override
Cache load0.00180.2517200.0001
Sytem overhead
Fetch class attribute can translate value0.00060.076120.0003
Fetch class attribute name0.00170.236840.0004
XML
Image XML parsing0.00100.135820.0005
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00120.1622230.0001
String conversion0.00000.001640.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/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/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs