Submit problem with danish language

Phoca Guestbook - creating guestbooks in Joomla! CMS
Alexh
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Jul 2009, 17:57

Submit problem with danish language

Post by Alexh »

I noticed an error when I submit the form in my danish website. It doesn't return a confirmed text in the message module after submit and an email to administrator fails to be sent. It seems to be the language files for the danish version that causes the problem, I tested it with english only and it worked. Is it because of utf8 characters that are used in danish language that can't be processed through your php files? The languages files themselves seems alright (danish ones). Thank you in advance. // Alex
Last edited by Alexh on 23 Jul 2009, 13:55, edited 2 times in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Submit problem with danish language

Post by Jan »

Hi, there should not be any problems with utf-8 characters as all strings should be saved in utf-8. I am testing it with czech (which has a lot of diacritics) and no problem there :-(, maybe try to check your database settings (collation of tables, columns and database)

Jan
If you find Phoca extensions useful, please support the project
Alexh
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Jul 2009, 17:57

Re: Submit problem with danish language

Post by Alexh »

I've tried to collate the database and tables to utf8_danish_ci but it will still not work. Is there any other sollution?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Submit problem with danish language

Post by Jan »

No idea what can be the problem then :idea: :(
If you find Phoca extensions useful, please support the project
Alexh
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Jul 2009, 17:57

Re: Submit problem with danish language

Post by Alexh »

I've found it! In the danish language where "PHOCA GUESTBOOK ITEM SAVED" is at row nr 51 and the whole #1.3.0 section (row 128-159), the translation causes the error. When I corrected it to english it work. It seems strange that it should, and where does the ", message will be displayed after the Administrator has reviewed it" after comes from? I can't find it in any of the languges files. Also if I put the danish files in admin/language and administrator/com_phocaguestbook/language it makes languages errors in admin where åæø is. The admin email can't be translated even if a change it to danish. Can the post messege and email have the correct translation (and utf-8 characters in admin, but it is not an priority) and how to do that?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Submit problem with danish language

Post by Jan »

Hi, as I wrote, the message is in utf-8 so it should use all utf-8 characters

About danish translation? Is the dannish translation complete?
If you find Phoca extensions useful, please support the project
Alexh
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Jul 2009, 17:57

Re: Submit problem with danish language

Post by Alexh »

Thats the strange thing. If I change the messege text without danish characters it works but thats no solution. And the additional text after ", message will be displayed after the Administrator has reviewed it " I can't find it anywhere which also bugs me. Any ideas?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Submit problem with danish language

Post by Jan »

then maybe the danish translation is not complete. Can you find the string in english language?
If you find Phoca extensions useful, please support the project
Alexh
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Jul 2009, 17:57

Re: Submit problem with danish language

Post by Alexh »

I coudn't find it first because Dreamweaver ignores .ini files apparently in its search. But those strings that causes the messege and email error (in the languages file) are the following; PHOCA GUESTBOOK ITEM SAVED, REVIEW MESSAGE and NEW PHOCA GUESTBOOK ITEM. They cannot contain danish characters for some reason. I've change the text a bit to make an temperary sollution (without åæø). The admin email sent contains questionmarks where danish characters are except the messege text from the user. Should be a fix for this I think, to correct this problem (and the admin one explained above). Thanks for an otherwise excellent component. // Alex
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Submit problem with danish language

Post by Jan »

Hi, did you check the uft-8 encoding for the translation files?
If you find Phoca extensions useful, please support the project
Post Reply