G2 & VB3.5.4 Integrated - language problems

fudge55

Joined: 2006-07-31
Posts: 6
Posted: Mon, 2006-07-31 18:41

Ok, i've integrated the G2 and VB, everything works fine, except the international characters.

If i call the g2 without the integration, international chars are working well. But if i use it through the embedding script, they fail.

When i view the source i can see this:

1. Normal version

Galéria

2. Embedded version

GalĂŠria

It seems that the core module outputs something else when i use the embedded version. I don't know why... Any solutions?

Attaching 2 images to see the difference...

Anyone can help?

AttachmentSize
g2normal.jpg67.95 KB
g2emb.jpg89.35 KB
 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2006-08-01 09:18

Hello,

Gallery2 translation are UTF-8.
If your environment is not UTF-8 then the translations fail.

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
fudge55

Joined: 2006-07-31
Posts: 6
Posted: Tue, 2006-08-01 10:07

Well, i tried to change the header in VB to UTF-8 and there were no changes.

What do you mean by 'enviroment'?

The strange thing that i can see the difference in the SOURCE, so G2 outputs the strings in different format when it's embedded.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2006-08-01 10:22

This VB is your Environment.

Can you provide an URL to your embedded G2 ?

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
fudge55

Joined: 2006-07-31
Posts: 6
Posted: Tue, 2006-08-01 10:37

Sure, it's

http://www.salsaforum.hu/salsa/gallery2.php

and

http://www.salsaforum.hu/salsa/gallery2/ is the regular version.

View the source and see the differences.

(you can use L: Tim P: g2 if you don't see the localized version)

Thanks

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2006-08-01 11:15

i see: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />

nothing about utf-8

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
fudge55

Joined: 2006-07-31
Posts: 6
Posted: Tue, 2006-08-01 11:30

Ok, see it now, it's UTF-8, and the chars are still scrumbled...

 
fudge55

Joined: 2006-07-31
Posts: 6
Posted: Tue, 2006-08-01 12:55

Well, i just see if i change this line in GalleryTranslator.class

bind_textdomain_codeset($domain, 'UTF-8');

to

bind_textdomain_codeset($domain, 'iso-8859-2');

then the fixed strings look good, and only ones that the user inputted has problems...
(because these are not going through the gallerytranslator.class i guess)

So i think this is not going to be the right way...except it you can tell me how to send every string through the bind_textdomain_codeset function...

 
fudge55

Joined: 2006-07-31
Posts: 6
Posted: Tue, 2006-08-01 14:41

As i go deeper in the source code, it seems that the embedded version doesn't actually convert the special characters back to utf-8...

It's not an enviroment issue i think, because there's no difference now in my enviroment...

You can see this if you see the SOURCE of the two versions...

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2006-08-01 14:51

its still charset=iso-8859-2

Jens
--
Last Gallery v1 Developer and v1 translation manager.