Can't change language to Danish Can't change language to Danish
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Can't change language to Danish

Started by je79ayps, February 09, 2004, 09:56:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

je79ayps

I've just installed 1.2.0 and trying to change langauge to Danish bot get this error:

Parse error: parse error, unexpected ',', expecting ')' in /STORE/ejstrup_kongskov/public_html/forside/lang/danish.php on line 335

Anyone knows what to do?

Joachim Müller

you shouldn't be using cpg1.2.0 - the most recent stable version is cpg1.2.1!

GauGau

je79ayps

I chose 1.2.0 because I could see that 1.2.1 didn't had support for Danish language - but can I use the 1.2.0 language file for 1.2.1?

Casper

1.2.1 does have support for danish, and the language file should be ok.

there was an error in the danish language file for 1.2.0, but I thought that had been fixed.

You really should use 1.2.1
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

je79ayps

Thanks - I just found out too at http://forum.coppermine-gallery.net/index.php?topic=1799.  :)

I'll try the 1.2.1 version - the easiest is to make a new installation right?

je79ayps

Just uploaded the new version and it works thanks!

Some where the danish æ, ø and å is shown wrongly - like æ is shown as æ.

But it's not everywhere.

je79ayps

The source shows this:
<meta http-equiv="content-type" content="text/html; charset={charset}" />

Joachim Müller

dunno where this has been posted, change it manually to ISO-whatever if you only use danish, or search the board. Thanks for pointing this out anyway; I'll look after this - needs fixing...

GauGau

je79ayps

I have both visitors from home and abroad, so it would be nice if visitors outside Denmark got the pages in their language - or at least showed the Danish characters correctly.

If I use a standard Mozilla Firebird/Firebox browser (with auto detection off) the same problem persists. If I change the character coding to unicode-utf-8 - it shows it rightly.

Should I "hardcode" the meta tag?

Casper

for the ability for users to see the menus in their own language, see this thread, http://forum.coppermine-gallery.net/index.php?topic=621
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

je79ayps

Thanks for the link but I don't want to give my users the ability to change the language with flags etcs. As I understood when choosing fx "Danish-utf-8" as the main language would be Danish. But when character-coding is set to unicode (utf-8) then the main titles would be displayed in the viewers own language.

It looks like en error in the "Hardwired" theme. When in the admin mode characters like ø is displayed like Ã¥. If I choose the default theme it's fine.

And apparently gecko browsers like Mozilla connot figure out to display the characters correctly when it's not set to display unicode - which it isn't by default.

Casper

Quote from: "je79ayps"Thanks for the link but I don't want to give my users the ability to change the language with flags etcs. As I understood when choosing fx "Danish-utf-8" as the main language would be Danish. But when character-coding is set to unicode (utf-8) then the main titles would be displayed in the viewers own language.

Well thats a new one on me.  I thought that set the character set, but where do you think it gets the translation.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

in the hardwired theme, change<meta http-equiv="content-type" content="text/html; charset={charset}" />to<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />GauGau

je79ayps

I've changed it in the template.html file but apparently there's no difference. The theme.php had charset with capitals.

Strange. When I view the source of the site it says:
<meta http-equiv="content-type" content="text/html; charset={charset}" />

So do I need to change it somewhere else?