Delicious      Technorati      Blinklist      Furl      Reddit

TimeTrex Time and Attendance

TimeTrex Time and Attendance


* FAQ    * Search
* Login   * Register

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Jan 12, 2017 1:52 am 
Offline

Joined: Mon Oct 17, 2016 8:19 am
Posts: 8
Hi,

Since i upgraded my timetrex v9.1.1 to v10.0.4, i'm not able to change language to French or any other language.
At login page, the dropdown menu only show English...

    PHP Version 5.6.29-0+deb8u1
    Apache/2.4.10 (Debian)
    Mysqli 5.5.53

    locale :
    LANG=fr_CA.UTF-8
    LANGUAGE=fr_CA:fr
    LC_CTYPE="fr_CA.UTF-8"
    LC_NUMERIC="fr_CA.UTF-8"
    LC_TIME="fr_CA.UTF-8"
    LC_COLLATE="fr_CA.UTF-8"
    LC_MONETARY="fr_CA.UTF-8"
    LC_MESSAGES="fr_CA.UTF-8"
    LC_PAPER="fr_CA.UTF-8"
    LC_NAME="fr_CA.UTF-8"
    LC_ADDRESS="fr_CA.UTF-8"
    LC_TELEPHONE="fr_CA.UTF-8"
    LC_MEASUREMENT="fr_CA.UTF-8"
    LC_IDENTIFICATION="fr_CA.UTF-8"
    LC_ALL=fr_CA.UTF-8

Image

Code:
---------------[ 12-Jan-2017 2:51:43 -0500 [1484207503.732] (PID: 1408) ]---------------
DEBUG [L0401] [00005ms]: [Function](): URI: /timetrex/interface/html5/index.php IP Address: **
DEBUG [L0403] [00005ms]: [Function](): USER-AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
DEBUG [L0404] [00005ms]: [Function](): Version: 10.0.4 (PHP: v5.6.29-0+deb8u1) Edition: 10 Production: 0 Server: 149.56.97.47 OS: LINUX Database: Type: mysqli Name: timetrex Config: /var/www/html/timetrex/includes/../timetrex.ini.php Demo
DEBUG [L0404] [00005ms]: [Function](): Mode: 0
DEBUG [L0163] [00010ms]: TTDate::setTimeZone(): Setting TimeZone: EST5EDT
DEBUG [L2483] [00013ms]: Misc::redirectMobileBrowser(): Desktop browser override: 0
DEBUG [L0574] [00015ms]: Authentication::loginHTTPAuthentication(): HTTPAuthentication is passing username: gestion however enable_http_authentication is not enabled.
---------------[ 12-Jan-2017 2:51:43 -0500 [1484207503.7463] (PID: 1408) ]---------------

---------------[ 12-Jan-2017 2:51:44 -0500 [1484207503.982] (PID: 2974) ]---------------
DEBUG [L0401] [00008ms]: [Function](): URI: /timetrex/interface/html5/global/APIGlobal.js.php?v=10.0.4-20170112-025100 IP Address: **
DEBUG [L0403] [00008ms]: [Function](): USER-AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
DEBUG [L0404] [00008ms]: [Function](): Version: 10.0.4 (PHP: v5.6.29-0+deb8u1) Edition: 10 Production: 0 Server: ** OS: LINUX Database: Type: mysqli Name: timetrex Config: /var/www/html/timetrex/includes/../timetrex.ini.php Demo
DEBUG [L0404] [00008ms]: [Function](): Mode: 0
DEBUG [L0163] [00010ms]: TTDate::setTimeZone(): Setting TimeZone: EST5EDT
DEBUG [L0376] [00011ms]: TTi18n::getBrowserLanguage(): HTTP_ACCEPT_LANGUAGE: fr-CA,fr;q=0.8,fr-FR;q=0.6,en-US;q=0.4,en;q=0.2
DEBUG [L0360] [00011ms]: TTi18n::setLocale(): Set Master Locale To: fr_CA
DEBUG [L0360] [00011ms]: TTi18n::setLocale(): Set Master Locale To: fr_FR
DEBUG [L0360] [00011ms]: TTi18n::setLocale(): Set Master Locale To: en_US
DEBUG [L0480] [00011ms]: TTi18n::chooseBestLocale(): Unable to find and set a locale.
DEBUG [L0413] [00015ms]: APIAuthentication::getCompanyName(): Primary Company ID: 2
DEBUG [L0365] [00016ms]: APIAuthentication::getTTProductEdition(): Edition: 10
DEBUG [L0365] [00016ms]: APIAuthentication::getTTProductEdition(): Edition: Community
DEBUG [L0253] [00017ms]: APIAuthentication::isLoggedIn(): AMF Session ID: 82fb7e6928982f646aa9cfbedf7413359e29d33d Source IP: ** Touch Updated Date: 1
DEBUG [L0732] [00017ms]: Authentication::Check(): Session ID: 82fb7e6928982f646aa9cfbedf7413359e29d33d IP Address: ** URL: /timetrex/interface/html5/global/APIGlobal.js.php?v=10.0.4-20170112-025100 Touch Updated Date: 1
DEBUG [L0754] [00021ms]: Authentication::Check():   Touching updated date due to more than 60s...
---------------[ 12-Jan-2017 2:51:44 -0500 [1484207504.0088] (PID: 2974) ]---------------

---------------[ 12-Jan-2017 2:51:46 -0500 [1484207506.17] (PID: 1408) ]---------------
DEBUG [L0401] [00003ms]: [Function](): URI: /timetrex/api/json/api.php?Class=APINotification&Method=getNotifications&v=2&MessageID=31aef568-3944-dded-ef92-7a0412a5f99f IP Address: **
DEBUG [L0403] [00003ms]: [Function](): USER-AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
DEBUG [L0404] [00003ms]: [Function](): Version: 10.0.4 (PHP: v5.6.29-0+deb8u1) Edition: 10 Production: 0 Server: ** OS: LINUX Database: Type: mysqli Name: timetrex Config: /var/www/html/timetrex/includes/../timetrex.ini.php Demo
DEBUG [L0404] [00003ms]: [Function](): Mode: 0
DEBUG [L0163] [00006ms]: TTDate::setTimeZone(): Setting TimeZone: EST5EDT
DEBUG [L0222] [00007ms]: [Function](): Handling JSON Call To API Factory: APINotification Method: getNotifications Message ID: 31aef568-3944-dded-ef92-7a0412a5f99f
DEBUG [L0261] [00007ms] Array: [Function](): Arguments: (Size: 32)
array(1) {
  [0]=>
  string(5) "login"
}


DEBUG [L0271] [00007ms]: [Function](): Session ID: 82fb7e6928982f646aa9cfbedf7413359e29d33d Source IP: **
DEBUG [L0732] [00007ms]: Authentication::Check(): Session ID: 82fb7e6928982f646aa9cfbedf7413359e29d33d IP Address: ** URL: /timetrex/api/json/api.php?Class=APINotification&Method=getNotifications&v=2&MessageID=31aef568-3944-dded-ef92-7a04
DEBUG [L0732] [00007ms]: Authentication::Check(): 12a5f99f Touch Updated Date: 1
DEBUG [L0158] [00020ms]: TTDate::setTimeZone(): TimeZone already set to: EST5EDT
DEBUG [L0213] [00020ms]: TTDate::setDateFormat(): Setting Default Date Format: d/m/Y
DEBUG [L0227] [00020ms]: TTDate::setTimeFormat(): Setting Default Time Format: g:i A
DEBUG [L0241] [00020ms]: TTDate::setTimeUnitFormat(): Setting Default Time Unit Format: 10
DEBUG [L0120] [00020ms]: authenticatedInvokeService(): Locale Cookie:
DEBUG [L0128] [00020ms]: authenticatedInvokeService(): User Preference Language matches cookie!
DEBUG [L0360] [00021ms]: TTi18n::setLocale(): Set Master Locale To: en_CA
DEBUG [L0143] [00022ms]: authenticatedInvokeService(): Current User: ** (User ID: 2) Company: ** (Company ID: 2)
DEBUG [L0259] [00036ms]: APINotification::getNotifications(): UnRead Messages: 0
DEBUG [L0158] [00039ms]: TTDate::setTimeZone(): TimeZone already set to: EST5EDT
DEBUG [L0213] [00039ms]: TTDate::setDateFormat(): Setting Default Date Format: d/m/Y
DEBUG [L0227] [00039ms]: TTDate::setTimeFormat(): Setting Default Time Format: g:i A
DEBUG [L0241] [00039ms]: TTDate::setTimeUnitFormat(): Setting Default Time Unit Format: 10
DEBUG [L0290] [00039ms]: [Function](): Server Response Time: 0.038370847702026
---------------[ 12-Jan-2017 2:51:46 -0500 [1484207506.2084] (PID: 1408) ]---------------


What is happening here ? :
Quote:
DEBUG [L0163] [00010ms]: TTDate::setTimeZone(): Setting TimeZone: EST5EDT
DEBUG [L0376] [00011ms]: TTi18n::getBrowserLanguage(): HTTP_ACCEPT_LANGUAGE: fr-CA,fr;q=0.8,fr-FR;q=0.6,en-US;q=0.4,en;q=0.2
DEBUG [L0360] [00011ms]: TTi18n::setLocale(): Set Master Locale To: fr_CA
DEBUG [L0360] [00011ms]: TTi18n::setLocale(): Set Master Locale To: fr_FR
DEBUG [L0360] [00011ms]: TTi18n::setLocale(): Set Master Locale To: en_US
DEBUG [L0480] [00011ms]: TTi18n::chooseBestLocale(): Unable to find and set a locale.
DEBUG [L0413] [00015ms]: APIAuthentication::getCompanyName(): Primary Company ID: 2


I tried to add
    [fr_CA]
    name = French
    encoding = utf-8
in langs.ini but nothing change, except if re-run install i will get a checksum error, samething with i18n tools.

How could i fix that ? I don't want to downgrade to v9.1.1..

Thanks you,


Top
 Profile  
 
PostPosted: Thu Jan 12, 2017 8:33 am 
Offline

Joined: Tue Sep 19, 2006 2:22 pm
Posts: 7229
You need to install the PHP INTL extension in v10.0 or higher to support different languages, on Ubuntu/Debian it can usually be done with:

Code:
apt-get install php5-intl


Then restart Apache of course.


Top
 Profile  
 
PostPosted: Thu Jan 12, 2017 9:45 am 
Offline

Joined: Mon Oct 17, 2016 8:19 am
Posts: 8
Thanks you !!!!!!!!!!!

It works !!!! :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron


Time and Attendance




Powered by phpBB® Forum Software © phpBB Group