Post by Mathias » Thu Sep 10, 2009 3:24 am

Hi everybody

I'm sitting and translating OpenCart to danish, but can't get the danish signs as Æ-Ø-Å to work.

In HTML: Æ - ć Ø - ř Å - ĺ

Does anybody know what to write in Locale? da_dk.ISO-8859-1 ??

//Mathias

Newbie

Posts

Joined
Thu Sep 10, 2009 3:22 am

Post by Blueforce » Thu Sep 10, 2009 6:39 am

Hi Mathias,

I think you have to stick with UTF-8 (unfortunately)... I tried to use ISO-8859-1 for Swedish but there where a lot of problems.
In my Swedish Locale i use:

sv_SE.UTF-8,sv_SE,sv,swedish

You can try to use standard HTML for the characters.
Æ - Æ
Ø - Ø
Å - Å

I aslo have changed the database to use "collate utf8_swedish_ci" instead of "collate utf8_unicode_ci", that took care of my broblem anyways. Try using utf8_danish_ci

I really would like to get rid of UTF-8, because there are ALLWAYS problem with UTF!
With UTF-8 everything should be simple, allways showing the expected character for everyone, wherever in the world... Yeah Right!! hehe...

/Leffe

New member

Posts

Joined
Thu Feb 12, 2009 7:11 am
Location - Sweden

Post by Mathias » Thu Sep 10, 2009 8:04 pm

That helped... Thanks

But I still can't use danish letters like the Æ-Ø-Å ...

If somebody know how to use them, I would like to hear it still :) ...

//Mathias

Newbie

Posts

Joined
Thu Sep 10, 2009 3:22 am

Post by dbstr » Thu Sep 10, 2009 8:09 pm

-
Last edited by dbstr on Thu Sep 23, 2010 12:37 am, edited 1 time in total.

Request Reviews v1.0 released.


Active Member

Posts

Joined
Sun Aug 30, 2009 12:20 am

Post by Mathias » Thu Sep 10, 2009 8:58 pm

that helped a lot ...

Is line 87 nessasary ?

I'm nearly halfway with translating to danish, so an translation will be made public in 2-3 days i think :)

/-/TW

Newbie

Posts

Joined
Thu Sep 10, 2009 3:22 am

Post by dbstr » Thu Sep 10, 2009 9:07 pm

I think you would want to keep it just below "$response = new Response();" and above "Registry::set('response', $response);" ;)

Are you translating the admin files aswell?

Request Reviews v1.0 released.


Active Member

Posts

Joined
Sun Aug 30, 2009 12:20 am

Post by Mathias » Thu Sep 10, 2009 9:24 pm

I'm translating the administration also :) ...

//Mathias

Newbie

Posts

Joined
Thu Sep 10, 2009 3:22 am

Post by dbstr » Fri Sep 18, 2009 9:45 pm

Forget what I wrote before. Just make sure your editor is set to UTF-8 encoding.

That doesn't explain why the f*ck I can't update/create products/options/descriptions that includes any danish character tho.

Could anyone tell me how it's working?

Request Reviews v1.0 released.


Active Member

Posts

Joined
Sun Aug 30, 2009 12:20 am

Post by dbstr » Fri Sep 18, 2009 11:39 pm

Think I got it, don't know what I changed tho. All I can say is: Dont add the new header, and make sure your editor is set to UTF-8 encoding.

Request Reviews v1.0 released.


Active Member

Posts

Joined
Sun Aug 30, 2009 12:20 am

Post by tommyla » Sat Feb 06, 2010 12:35 pm

i also has the same problem but on norwegian translation
the funny thing is the Æ Ø Å works with those things you type in into the database like description, new pages etc, its only the php files that you translate thats the problem

so it might be just better to move the translations to the database instead of php files, that way there wont be so many duplicates as well ::)

better yet make it xml and database based ;)

OpenCart 1.4.0

Active Member

Posts

Joined
Wed Jul 22, 2009 9:49 pm
Location - Norway

Post by dbstr » Sat Feb 06, 2010 1:17 pm

Make sure all your opencart files are UTF-8 encoded.

Request Reviews v1.0 released.


Active Member

Posts

Joined
Sun Aug 30, 2009 12:20 am

Post by Kemster » Fri Apr 09, 2010 5:14 am

dbstr wrote:Make sure all your opencart files are UTF-8 encoded.
Well I encoded all the files to UTF-8, and it helped on the character issue, but just got the message that the headers allready were sent - in top and other places.

Also tried to find a space somewhere the norwegian.php file, but couldn't find that either.

Got any ideas dbstr?

Newbie

Posts

Joined
Fri Apr 09, 2010 5:02 am

Post by kingprawn » Wed Mar 02, 2011 7:26 pm

UTF-8 is the best choice for nearly every language. Make sure everything is UTF-8:

- Save PHP files UTF-8 encoded
- Meta charset tag UTF-8 (HTML head area)
- Database, tables, fields: utf8_unicode_ci

Newbie

Posts

Joined
Fri Feb 25, 2011 5:38 pm

Post by J-P » Sun Nov 13, 2011 4:18 pm

Trying to get Finnish locale, but still strugling.

I have tried utf-8 as well as utf-swedish, but cannot get Ä ä and Ö ö letters to work in emails properly.
In product descriptions etc. letters are displayed like they should when viewed in browser. But in order- or return emails sent to customers, letters are shown ä and ö on those words that come from language/ files.

UTF-8 encoding all didn´t help. Any more ideas?

J-P
Newbie

Posts

Joined
Sun Nov 13, 2011 4:03 pm
Who is online

Users browsing this forum: No registered users and 24 guests