Forums / Install & configuration / [Solved] Translate Error Message ?

[Solved] Translate Error Message ?

Author Message

Paul Etienney

Wednesday 19 November 2008 2:28:37 am

Hello,

I have a form to collect information.

Some attributes are "Requiered". If i dont "fill" this attributes, the error message is :

Missing or invalid input

* Nom: Input required.
* Email: The email address is empty.
* Téléphone: Input required.

I would like to show the same message but in French. I can't remember what is the good setting and where the .ts file must be.

Here is my RegionalSettings

[RegionalSettings]
Locale=fre-FR
ContentObjectLocale=fre-FR
ShowUntranslatedObjects=disabled
SiteLanguageList[]
SiteLanguageList[]=fre-FR
SiteLanguageList[]=eng-GB
TextTranslation=enabled

Thank you very much.

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

Stéphane Bullier

Friday 21 November 2008 10:54:30 am

Hello,

The text for validation
design/standard/templates/content/collectedinfo_validation.tpl

If you use eZ publish 4.0.1, you have to download and install fr internationalization file into /share/translations folder

http://ez.no/content/download/218929/1468770/file/translation.zip

Stéphane

Paul Etienney

Wednesday 03 December 2008 8:11:31 am

Thank you,

I did install the french .ts file.

I set French as the main language of siteaccess, the object i am viewing is in french. The translation in the .ts file is ok and so is the context. The cache is cleared.

Do I forget a point ?

- Settings OK
- Object language Ok
- .ts file OK
- cache OK

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

Stéphane Bullier

Wednesday 03 December 2008 12:50:03 pm

Hello Paul,

Are you using the website interface extension?

Have you identified the model used to collect information display ?

Stéphane

Paul Etienney

Monday 08 December 2008 9:18:11 am

Hello Stéphane,

I use the ezwebin_sit extension. I have already tried to edit the .ts files inside but it does not produce any change.

What do you mean by "mode".

I actually i have edited every french .ts file. If the the translation was not created, i did create it but nothing changes.

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

Stéphane Bullier

Tuesday 09 December 2008 12:32:05 am

Hello Paul,

About model, I mean template.

The template use to show error message is :
design/standard/templates/content/collectedinfo_validation.tpl

The translations have to be add in share/translations/fre-FR/translation.ts file into context
"<name>kernel/classes/datatypes</name>" :

<message>
  <source>Input required.</source>
  <translation>Entrée requise.</translation>
</message>
<message>
  <source>The email address is empty.</source>
  <translation>L&apos;adresse courriel est vide.</translation>
</message>

Stéphane

Paul Etienney

Tuesday 09 December 2008 2:19:32 am

Stéphane, everything you wrote is done :

- I use content/collectedinfo_validation.tpl
- I do have the french .ts file with good context, good source... But this .ts file is not used.

In my debug I have something ike this :

Non-static method eZInformationCollectionAttribute::create() should not be called statically, assuming $this from incompatible context in C:\wamp\www\aspaway\kernel\content\collectinformation.php on line 212

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

Stéphane Bullier

Tuesday 09 December 2008 9:08:11 am

I check my settings/siteaccess/fr/site.ini.append.php and I see a difference between your.

[RegionalSettings]
Locale=fre-FR
ContentObjectLocale=fre-FR
SiteLanguageList[]=fre-FR
SiteLanguageList[]=eng-GB
TextTranslation=enabled

You have also clear the cache ?

Stéphane

Paul Etienney

Thursday 11 December 2008 6:31:48 am

THANK YOU !!!!!!

I enabled the text translation. It works.

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney