My Subscriptions

No active or expired subscriptions. View Available Subscriptions

Advanced Search

Home arrow Forum arrow JCal Client 1.6.xarrow 1.6.x General Discussionarrow Swedish letters å, ä, ö
Pages: [1]
Print
Author Topic: Swedish letters å, ä, ö  (Read 1002 times)
ingotx
Newbie
*

Karma: +0/-0
Posts: 1


View Profile
« on: December 02, 2007, 10:01:41 AM »

My JCal seems to have a hard time with the Swedish letters å, ä, ö. As you can see from the pictures below JCal sometimes does the work pretty well, sometimes not. I have installed the Swedish language script (in utf-8). In this case the "misinterpretation" of the Swedish letters perhaps is due to something else. In trying to solve the problem I have changed the spelling of the name of the days, but that has no effect at all.

I'm always grateful for help. Please have a look!




Logged
kncarlsen
Newbie
*

Karma: +0/-0
Posts: 3


View Profile Email
« Reply #1 on: January 13, 2008, 07:05:41 PM »

Exactly the same problem with the norwegian character set.

Best regards,
Knut
Logged
StiffeL
Newbie
*

Karma: +0/-0
Posts: 5


View Profile
« Reply #2 on: January 14, 2008, 04:19:55 AM »

From my point of view this is because the Swedish index.php is saved in ANSI, not in UTF-8. Try to open the Swedish index.php in an editor and resave it in UTF-8 and it should all work.

There are still some minor issues with the minical which I am working on!

Anybody else agreeing that an update on the Swedish translation is very much needed? I think it's not up to standards with lot's of spelling and grammar errors...

I am working on updating it but don't know when it will be ready...
Logged
Krakke
Newbie
*

Karma: +0/-0
Posts: 1


View Profile
« Reply #3 on: January 17, 2008, 11:34:13 AM »

This is a problem for me to in danish, I don't have any problems in joomla so I can't see why it should help changing encoding on the index.php.

Still I tried but it did not help.

Are there any other things I can try, the calender really isn't much use if it can't display native characters.

###EDIT

Oh I get IT,.. its the files under the language folder in the component. Thanks heheh
« Last Edit: January 21, 2008, 12:17:15 PM by Krakke » Logged
antoniop
Newbie
*

Karma: +0/-0
Posts: 1


View Profile
« Reply #4 on: January 26, 2008, 04:50:48 PM »

On the minical there is a solution for it.

On the calendar component, it's just a matter of saving ALL files of the component in UTF-8.
However on the minical the problem lies on row 382 of modules/mod_jcalclient_minical/mod_jcalclient_minical.php

The function substr in
Code:
if($CONFIG_EXT['charset'] == "utf-8") {
if(preg_match('/(.{1,'.$max.'})/u', $string, $matches)) $new_string = $matches[0];
else $new_string = $string; // this state occurs if the string contains chars with mixed encodings
} else {
$new_string = substr($string,0,$max);  <----- See here (row 382)
}
must be changed to
Code:
if($CONFIG_EXT['charset'] == "utf-8") {
if(preg_match('/(.{1,'.$max.'})/u', $string, $matches)) $new_string = $matches[0];
else $new_string = $string; // this state occurs if the string contains chars with mixed encodings
} else {
$new_string = mb_substr($string,0,$max); <----- Change here(row 382)
}
Because this substr is encoding safe and uses the internally configured encoding.

It took me a while to find the culprit by now it works.... ufff
Logged
kncarlsen
Newbie
*

Karma: +0/-0
Posts: 3


View Profile Email
« Reply #5 on: January 31, 2008, 12:12:10 PM »

On the minical there is a solution for it.

On the calendar component, it's just a matter of saving ALL files of the component in UTF-8.
However on the minical the problem lies on row 382 of modules/mod_jcalclient_minical/mod_jcalclient_minical.php

The function substr in
Code:
if($CONFIG_EXT['charset'] == "utf-8") {
if(preg_match('/(.{1,'.$max.'})/u', $string, $matches)) $new_string = $matches[0];
else $new_string = $string; // this state occurs if the string contains chars with mixed encodings
} else {
$new_string = substr($string,0,$max);  <----- See here (row 382)
}
must be changed to
Code:
if($CONFIG_EXT['charset'] == "utf-8") {
if(preg_match('/(.{1,'.$max.'})/u', $string, $matches)) $new_string = $matches[0];
else $new_string = $string; // this state occurs if the string contains chars with mixed encodings
} else {
$new_string = mb_substr($string,0,$max); <----- Change here(row 382)
}
Because this substr is encoding safe and uses the internally configured encoding.

It took me a while to find the culprit by now it works.... ufff

Thanks.

That was the only one missing here in Norway:-)

Regards,
Knut
« Last Edit: February 09, 2008, 09:40:34 AM by kncarlsen » Logged
monzamonster
Newbie
*

Karma: +0/-0
Posts: 11



View Profile
« Reply #6 on: February 06, 2008, 05:22:19 AM »

I have the same problem in french.
I changed the 'charset' => 'utf-8' line in the languages/french/index.php
I changed the line : $new_string = mb_substr($string,0,$max); <----- Change here(row 382)
Nothing has changed... it doesn't work.
I want to try something else : when you say "On the calendar component, it's just a matter of saving ALL files of the component in UTF-8." Can you explain ? How can I do that ?
Thx
Logged
monzamonster
Newbie
*

Karma: +0/-0
Posts: 11



View Profile
« Reply #7 on: February 07, 2008, 09:31:48 AM »

I found a solution that works for me.
I had this row at the top of the main pages (example for french):

setlocale(LC_ALL, 'fr_FR.utf-8', 'fr_FR','fr','fr','fra','fr_FR@euro');

I'd try with each page, then refresh... till it works.
AND IT DOES !!
Logged
StiffeL
Newbie
*

Karma: +0/-0
Posts: 5


View Profile
« Reply #8 on: February 13, 2008, 11:45:38 AM »

I now have a a new Swedish translation update!

A lot of new strings translated, encoded with UTF-8 and corrected old spellingerrors and typos.....

Se my other post in this forum!

Cheers!
« Last Edit: February 13, 2008, 11:49:13 AM by StiffeL » Logged
Pages: [1]
Print
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com

Original Joomla Template design by RocketTheme ( Conversion by Bloc)