Share » Forums » General » Translations & encoding problems (.ts...

Translations & encoding problems (.ts files)

Translations & encoding problems (.ts files)

Thursday 08 February 2007 12:10:06 am - 2 replies

Modified on Thursday 08 February 2007 12:11:06 am by Ludovic André

Author Message

Ludovic André

Thursday 08 February 2007 12:52:26 am

Some more details about my problem:

After some tests inside the eZ code, I found out this difference between server A & B, when ez is looking for the translations:

server A, running fine:

eztranslatormanager Object
(
    [Handlers] => Array
        (
            [0] => eztstranslator Object
                (
                    [IsKeyBased] => 1
                    [Messages] => Array
                        (
                            [3bf24ce0ec94cd82720184848a1d31f6] => Array
                                (
                                    [context] => bcee/dpp
                                    [source] => Demande de prêt personnel
                                    [comment] => 
                                    [translation] => Personal loan request
                                    [key] => 3bf24ce0ec94cd82720184848a1d31f6
                                )

server B, same scripts,

eztranslatormanager Object
(
    [Handlers] => Array
        (
            [0] => eztstranslator Object
                (
                    [IsKeyBased] => 1
                    [Messages] => Array
                        (
                            [f9f26a43b59903480b4f9c7e5e8cc5ed] => Array
                                (
                                    [context] => bcee/dpp
                                    [source] => Demande de prêt personnel
                                    [comment] => 
                                    [translation] => Personal loan request
                                    [key] => f9f26a43b59903480b4f9c7e5e8cc5ed
                                )

So on server B, it's not converting back the ê into " ê ", and then the md5 key is not correct anymore...

If that can help you (to help me ;) )

Thanks!

Ludovic André

Ludovic André

Thursday 08 February 2007 5:01:52 am

Ok, quick update :) I'm answering my own questions ;)

So, what I did right now, is a quick php script to convert those hex html entities to the real character behind, and then use iconv to encode the file into utf8.

As from now, everything is now running fine, my translations are correctly taken into account...

But, it would be really great If I could skip this step of converting the file... why does not ezlupdate generate directly the file into utf8 ? (like the translations.ts which come with the original distribution?)

Ludovic André

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu