Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Can't change language to Danish  (Read 4032 times)

0 Members and 1 Guest are viewing this topic.

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
Can't change language to Danish
« on: February 09, 2004, 09:56:04 pm »

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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Can't change language to Danish
« Reply #1 on: February 10, 2004, 12:12:48 am »

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

GauGau
Logged

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
Can't change language to Danish
« Reply #2 on: February 10, 2004, 08:15:06 am »

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?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Can't change language to Danish
« Reply #3 on: February 10, 2004, 09:19:35 am »

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
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
Can't change language to Danish
« Reply #4 on: February 10, 2004, 10:56:13 am »

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?
Logged

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
Can't change language to Danish
« Reply #5 on: February 10, 2004, 12:57:16 pm »

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.
Logged

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
Can't change language to Danish
« Reply #6 on: February 10, 2004, 12:58:15 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Can't change language to Danish
« Reply #7 on: February 11, 2004, 12:39:58 am »

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
Logged

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
Can't change language to Danish
« Reply #8 on: February 12, 2004, 10:10:58 am »

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?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Can't change language to Danish
« Reply #9 on: February 12, 2004, 11:29:11 am »

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
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
Can't change language to Danish
« Reply #10 on: February 25, 2004, 02:58:22 pm »

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.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Can't change language to Danish
« Reply #11 on: February 25, 2004, 06:18:53 pm »

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.
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Can't change language to Danish
« Reply #12 on: February 26, 2004, 06:42:06 am »

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

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
Can't change language to Danish
« Reply #13 on: February 26, 2004, 03:06:52 pm »

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?
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 14 queries.