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.