changing templates

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Grettir

changing templates

Post by Grettir »

Hello

I set up serendipity 0.7 and I like it very much, but there is one thing that "bothers" me. I would like to have certain parts of the blog in Icelandic(my language) but I don´t know how to change it, or if I can change it.

I read through some of the php files in the folder but couldn´t find anything about changing the "visual text"(i.e. what appears).

I don´t have much php knowledge so you have to be accurate if you are going to tell me to alter some codes. But maybe this can only be changed in the mySQL?

I hope you can help me somehow, and if you would like help with making Icelandic language file, I am more than ready to assist you.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: changing templates

Post by garvinhicking »

To create an icelandic language file do this:

1. Get the latest Serendipity 0.8-beta4.
2. Copy the file lang/serendipity_lang_en.inc.php to lang/serendipity_lang_icl.inc.php (I guess that 'icl' is the ISO-code for 'Icelandic'?)
3. Edit serendipity_config.inc.php and search for the $serendipity['languages'] array definition (about line 70). Just add a new entry

Code: Select all

'icl' => 'Icelandic'
to that file and save it.

Now you can enter the configuration of Serendipity and choose Icelandic from the list. Of course you now also need to edit the serendipity_lang_icl.inc.php file and translate the english strings to Icelandic! :)

If you're finished, please let us know, so we can add the translation to Serendipity!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Grettir

Post by Grettir »

As I know little about php I will give it a try.

Not sure about the result though :?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

That's no problem, there's mostly no PHP involved :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Grettir

Post by Grettir »

I was actually to lazy to install 0.8.4 so I just followed your advise and changed the language of one of the language files. I am not finished translating though, it will take many days but after that I can send you the language file if you think you can use it!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Grettir,

great! I'm waiting :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply