Language problems

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Krzyzak
Regular
Posts: 41
Joined: Mon Oct 16, 2006 1:13 pm

Language problems

Post by Krzyzak »

Hi. My problem is with translation- it`s in UTF-8, and some of special- Polish signs aren`t displayed (for example ń,ć,ł,ą - displayed as sth. like (?) ) If I change in lang file as
@define('LANG_CHARSET', 'UTF-8');
as
@define('LANG_CHARSET', 'iso-8859-2"');
translation is good, but whole content from my site are displayed uncorrectly.
Sorry for my language errors- It`s not my native language.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Language problems

Post by garvinhicking »

Hi!

In your s9y configuration, you can simply choose "Native" charset, does that help in your case?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Krzyzak
Regular
Posts: 41
Joined: Mon Oct 16, 2006 1:13 pm

Post by Krzyzak »

negative, sir :wink:
Sorry for my language errors- It`s not my native language.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

What's your URL? Which browser to do you use to create entries? Do you use the WYSIWYG editor?

In either case, you need to not edit the language.php files and change the charset,, that's quite bad. :)

You must also pay attention that if you change the Native/UTF-8 setting of s9y, this does not effect older entries. Try to create a new entry and see if those are right instead!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Krzyzak
Regular
Posts: 41
Joined: Mon Oct 16, 2006 1:13 pm

Post by Krzyzak »

Hi!
Hi!

What's your URL? Which browser to do you use to create entries? Do you use the WYSIWYG editor?
currently: http://localhost ;) Opera 9/Linux without any WYSIWYG
You must also pay attention that if you change the Native/UTF-8 setting of s9y, this does not effect older entries. Try to create a new entry and see if those are right instead!
I`ve change charset to iso, than post new entry- that works! but problem is, that all data in database has bad charset- which sql charset shall I use? (if it`s possible, to that cause problems...)
Sorry for my language errors- It`s not my native language.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

If you use the "native" mode with iso-8859-2 you'll need to set the charset to latin1 or latin2 as well, I think. However it shouldn't reall ymatter how it's stored in the database, as long as serendipity fetches it with the right charset "in mind"...

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Krzyzak
Regular
Posts: 41
Joined: Mon Oct 16, 2006 1:13 pm

Post by Krzyzak »

Hi.
http://digital-creations.pl/blog/ check it - charset: iso-8859-2 in ACP- Native. Databese Data looks good, but file data has some errors.
Sorry for my language errors- It`s not my native language.
Krzyzak
Regular
Posts: 41
Joined: Mon Oct 16, 2006 1:13 pm

Post by Krzyzak »

could anybody help me?
Sorry for my language errors- It`s not my native language.
Krzyzak
Regular
Posts: 41
Joined: Mon Oct 16, 2006 1:13 pm

Post by Krzyzak »

could anybody help me?
Sorry for my language errors- It`s not my native language.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Can you tell us where we can see the errors exactly?

Bear with us/me, I'm not able to read polish. :) Maybe you could ask CoSTa from the forums if he has any clues?!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Krzyzak
Regular
Posts: 41
Joined: Mon Oct 16, 2006 1:13 pm

Post by Krzyzak »

I`ll try to explain where is my problem-
On first image content has good charset, translation bad charset (in ACP Native, Lang. file: UTF-8 )
Second Image translation has good charset, content bad. (ACP Native, Lang: iso-8859-2)
Maybe you could ask CoSTa from the forums if he has any clues?!
CoSTa ? I think, I know him - I`ll try :)
Sorry for my language errors- It`s not my native language.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Never mix ISO-charsets and UTF/NATIVE options.

Only use UTF-8 when you use UTF-8 charse.t Only use NATIVE when you use ISO-charset.

Will look at your images tomorrow, but maybe costa can help too, as he uses polish :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply