Missing translation for message in context:

Author Message

Damien MARTIN

Tuesday 26 April 2011 7:40:47 am

Hi there,

I'm trying to make an extension to translate a website in other languages but I have an error :

Missing translation for message in context: 'agrioccas'. The untranslated message is: 'Espace client'

My extension looks like the following structure :

/agrioccas
 |- settings
 |  `- site.ini.append.php
 `- translations
    `- eng-US
       `- translation.ts

The content of site.ini.append.php :

<?php /*

[RegionalSettings]
TranslationExtensions[]=agrioccas

*/ ?>

The content of translation.ts :

<!DOCTYPE TS>
<TS>
<context>

        <name>agrioccas</name>

        <message>
                <source>Espace client</source>
                <translation>Client area</translation>
        </message>

        <message>
                <source>Recherche avancée</source>
                <translation>Advanced search</translation>
        </message>

</context>
</TS>

An example of template code :

{"Espace client"|i18n("agrioccas")}

The extension has been successfully activated but I still have this error.

Could someone help me please ?

Thanks,

Damien

Damien MARTIN

Friday 29 April 2011 7:52:07 am

I found the solution.

My extension is ok.

The problem came from configuration files : settings/override/site.ini.append.php must not contains Locale declaration !

Else, the locale from settings/override/site.ini.append.php is taken instead of settings/siteaccess/mysite/site.ini.append.php

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

Main resources:

Total runtime1.1615 sec
Peak memory usage4,096.0000 KB
Database Queries52

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.0035 740.687539.4844
Module start 'content' 0.00971.1504 780.1719467.2891
Module end 'content' 1.16010.0014 1,247.46098.1250
Script end 1.1615  1,255.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2785160.0002
Check MTime0.00130.1150160.0001
Mysql Total
Database connection0.00110.098810.0011
Mysqli_queries1.103595.0095520.0212
Looping result0.00040.0363500.0000
Template Total1.129397.220.5647
Template load0.00230.193720.0011
Template processing1.127197.034820.5635
Template load and register function0.00020.014810.0002
states
state_id_array0.00120.102110.0012
state_identifier_array0.00160.139420.0008
Override
Cache load0.00180.1556270.0001
Sytem overhead
Fetch class attribute can translate value0.00110.092810.0011
Fetch class attribute name0.00110.090530.0004
XML
Image XML parsing0.00050.046310.0005
class_abstraction
Instantiating content class attribute0.00000.002040.0000
General
dbfile0.00150.1312160.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/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
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs