Misc. Items: Language support, Punches, Shifts

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Locked
jgolightly
Posts: 24
Joined: Mon Nov 16, 2009 8:43 am

Misc. Items: Language support, Punches, Shifts

Post by jgolightly »

Three short issues:

1) Non-English language support does not seem to be working. If I set "Language" at login or in preferences, it reverts to "English" every time. We have a number of Spanish-speaking employees that may benefit from Spanish language support.

2) Timesheet > Punches opens an empty page at http://server/timetrex/interface/punch/PunchList.php when opened in Firefox. In Internet Explorer, it is generating a Server 500 error.

3) Schedule > Scheduled Shifts opens an empty page at http://server/timetrex/interface/schedu ... leList.php when opened in Firefox. In Internet Explorer, this also generates a Server 500 error.

Can anyone help me with one or all of these things? Thanks!


Jim
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Misc. Items: Language support, Punches, Shifts

Post by shaunw »

You didn't supply any specific information about your platform, or TimeTrex version, so I can only make random shots in the dark to help you.
1) Non-English language support does not seem to be working. If I set "Language" at login or in preferences, it reverts to "English" every time. We have a number of Spanish-speaking employees that may benefit from Spanish language support.
This is likely caused by your operating system not having proper support for Spanish locales. If TimeTrex can't switch locales at the operating system level it defaults back to english.
2) Timesheet > Punches opens an empty page at http://server/timetrex/interface/punch/PunchList.php when opened in Firefox. In Internet Explorer, it is generating a Server 500 error.

3) Schedule > Scheduled Shifts opens an empty page at http://server/timetrex/interface/schedu ... leList.php when opened in Firefox. In Internet Explorer, this also generates a Server 500 error.
I'm going to guess that you are using MySQL with the legacy PHP driver, try switching to the MySQLi driver in the timetrex.ini.php file instead.
jgolightly
Posts: 24
Joined: Mon Nov 16, 2009 8:43 am

Re: Misc. Items: Language support, Punches, Shifts

Post by jgolightly »

My apologies, Shaun.

TimeTrex Standard 3.0.1 running on Ubuntu Linux 8.04 Server LTS with LAMP preinstallation with MySQL.

I'll investigate language support at the OS level and the MySQLi driver. Thanks for the quick response!

EDIT:

I assume this is where I need to change my driver:

timetrex.ini.php

Code: Select all

[database]
type = mysqlt
Just change that to "mysqli"? Is this safe to do in a running environment?
Last edited by jgolightly on Thu Dec 31, 2009 3:15 pm, edited 1 time in total.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Misc. Items: Language support, Punches, Shifts

Post by shaunw »

We definitely recommend upgrading to v3.0.4 while you are at it.
jgolightly
Posts: 24
Joined: Mon Nov 16, 2009 8:43 am

Re: Misc. Items: Language support, Punches, Shifts

Post by jgolightly »

Changed type to "mysqli", backed up the tmp (cache) directory and cleared it out. Punch List and Scheduled Shifts are working now. Thanks!

I'll investigate language support tomorrow. Have a Happy New Year, and thanks for all your help, Shaun!
jgolightly
Posts: 24
Joined: Mon Nov 16, 2009 8:43 am

Re: Misc. Items: Language support, Punches, Shifts

Post by jgolightly »

Good evening! I have successfully upgraded to 3.0.4 and installed the Ubuntu/Debian packages "language-support-es" and "language-pack-es", however I am unsure what else is necessary to provide Spanish language support in TimeTrex. The drop-down menu for language selection at login and in Preferences now correctly shows language selection (i.e. if I switch to Spanish, the languages change to "Ingles" and "Espanol" as appropriate), however the rest of TimeTrex remains in English.

Can you point me toward any resources that may remedy the issue? Thanks again!
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Misc. Items: Language support, Punches, Shifts

Post by shaunw »

Search the Ubuntu forums/docs (or this forum) for locale-gen, that is a good starting point. Also enable debugging mode as per the FAQ: http://forums.timetrex.com/viewtopic.php?f=6&t=89, if you paste the debug output here, it will help determine whats going on.
jgolightly
Posts: 24
Joined: Mon Nov 16, 2009 8:43 am

Re: Misc. Items: Language support, Punches, Shifts

Post by jgolightly »

Shaun,

Thanks for the assistance. I ran

$ sudo locale-gen es_ES
$ sudo dpkg-reconfigure locales

as per this thread: http://forums.timetrex.com/viewtopic.php?t=1333

Spanish is now working. Thanks again!


Jim
Locked