Author Topic: Swedish language file  (Read 1566 times)

Offline hq

  • Jr. Member
  • *****
  • Posts: 5
  • Karma: +0/-0
Swedish language file
« on: January 17, 2017, 08:17:58 AM »
phpEnter Web Hosting
Hello.

I noticed that someone else has posted topics about Swedish in this forum (well, almost this forum), no less than twice. However those threads didn't help me much, when it came to changing languages in "php Enter".

Thus I'm hereby uploading a file called "lang_swedish.php" to be placed in the "languages" folder. I'm sure the contents of that file could be improved but at least it's a good foundation.

A good thing to do, for the Swedish characters to be really working, is to then change the charset line of the "themes/classic/main.php" file (provided "classic" is your theme, otherwise the same applies to whatever your theme is called) to:
"<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />".

In order for the file to be "synched" with the site, you'll also have to login at "www.SITENAME.XXX/admin" and then go to "Settings" and "Configuration" and type "swedish" in the "Language" field.

That step surprised me a bit, since I had expected a drop down menu with files to choose from.
You can't expect to get everything, now can you?  ???

Good luck!  8)

Offline goli

  • Full Member
  • *****
  • Posts: 40
  • Karma: +2/-0
Re: Swedish language file
« Reply #1 on: January 18, 2017, 12:03:15 AM »
No need to change

Code: [Select]
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
to

Code: [Select]
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
Just save file lang_swedish.phpf in utf-8 format without bom.
« Last Edit: January 18, 2017, 12:13:13 AM by goli »

Offline hq

  • Jr. Member
  • *****
  • Posts: 5
  • Karma: +0/-0
Re: Swedish language file
« Reply #2 on: January 19, 2017, 06:30:30 AM »
Just save file lang_swedish.phpf in utf-8 format without bom.

Not sure how to do that (with or without "bom", a new word for me; have to admit that) in Notepad and you probably meant ".php", right?

Anyway, when using your file (seemingly saved in utf-8 format), the encoding works.
Thanks for helping out.
 :)

Offline goli

  • Full Member
  • *****
  • Posts: 40
  • Karma: +2/-0
Re: Swedish language file
« Reply #3 on: January 19, 2017, 01:30:03 PM »
Encoding without bom  :)