phpScheduleIt
May 22, 2013, 10:32:21 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Creating new language file?  (Read 549 times)
Scurmicurv
Newbie
*

Karma: 0
Posts: 23


« on: March 20, 2012, 08:12:27 AM »

Hey, just a quick newbie question:
I'd like to use the software with a language (Swedish) that's not currently available in the download pack; is it possible for me to just copy one of the existing language files, translate all the words and sentences, place it in the lang directory and use it as normal? Or is there any extra procedure required? I'll make the translation available here when I'm done, of course!

Logged
kordan
Jr. Member
**

Karma: 0
Posts: 53


« Reply #1 on: March 20, 2012, 08:23:33 AM »

I am newbie like you but I feel that at least the modification of the class name at line 23 of /phpScheduleIt/lang/<<yourlang>>.php and of the array in /phpScheduleIt/lang/AvailableLanguages.php are needed. I am trying as you but I am facing a strange problem. Once logged in I am always forced to use English language.
Can you confirm if the same issue is with you too, please?
Thanks in advance.
Logged
Scurmicurv
Newbie
*

Karma: 0
Posts: 23


« Reply #2 on: March 21, 2012, 08:53:59 AM »

As far as I can tell I can switch between languages okay. I haven't tested all of them, but the three I can read seem to work alright for me. Which language is acting up for you? Or are you using a file of your own?

Anyway, I got my installation up and running now and I've started translation work. I'd love to share the file once it is done, so basically I'm wondering a) what modifications I need to do in other files in order to get a new language file working and b) where I can post the translation?
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #3 on: March 23, 2012, 05:18:26 PM »

The language files are all in /lang. You'll want to translate all of the en_us files. If you send me the files when you're done I'll include them in the next release.

Thanks!

nkorbel at gmail dot com
Logged
Scurmicurv
Newbie
*

Karma: 0
Posts: 23


« Reply #4 on: April 03, 2012, 10:19:13 AM »

I'm pretty much done - studies and whatnot tend to put huge blackout times for me on this front - but I'll send a passable translation within in the week. Sort of a follow up though, hope I'm not just missing something obvious:
We're much more at home with time formats like 19:00 than 7:00PM around here; is it possible to change this format? I've had a look through the files, but I'm still not entirely sure where I should fiddle around.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #5 on: April 04, 2012, 02:04:25 PM »

Yes, you can change this by overriding the time formats in the LoadDates() function.
Logged
Scurmicurv
Newbie
*

Karma: 0
Posts: 23


« Reply #6 on: April 06, 2012, 02:02:53 PM »

I was kind of afraid you'd say that... I've already modified that function for the dates (we go dd/mm/Y here) but I'm honestly not clear on what I need to change the given time formats to. Sorry to be a drag.

One last thing that hit me today - I've used å, ä and ö in the translation instead of &aring, &auml and &ouml. Will this work in general, or should I change them? No big deal in that case; find-and-replace functions are a wonderful thing. With these two things the translation is finished and I think it should work for most people. I'll mail it straight away when this is sorted out.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #7 on: April 10, 2012, 09:27:54 AM »

Quote
but I'm honestly not clear on what I need to change the given time formats to

No worries. Instead of lower case g for hours, use upper case G. Also, remove the A (am/pm), since that won't be needed.

Quote
I've used å, ä and ö in the translation instead of &aring, &auml and &ouml

That's no problem.
Logged
Feldegast
Newbie
*

Karma: 0
Posts: 1


« Reply #8 on: May 08, 2012, 08:38:53 AM »

Scurmicurv: Did you finish the translation? Would love to get my hands on a swedish translation Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!