translate in new language

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Post Reply
zraja
Posts: 4
Joined: Mon Jul 04, 2016 11:53 am

translate in new language

Post by zraja »

I tried to do the translation into Bosnian, but it seems that translation does not work at all. Not even for one language, including those that come with the installation. I have installed a version 9.1.2 (Community edition) of the Ubuntu Linux.
Can someone give me some direction (guideline) in the right direction?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: translate in new language

Post by shaunw »

zraja
Posts: 4
Joined: Mon Jul 04, 2016 11:53 am

Re: translate in new language

Post by zraja »

OK let's go again.
I've installed TimeTrex version 9.1.2 from zip.
On Linux 4.4.0-28-generic, Ubuntu server
PHP Version 7.0.4-7 ubuntu2.1
Apache 2.0 Handler
SQL server Postgresql
---
It looks evrifing work good in English
---
Create bs_BA with mklocales.php
make some translations in messages.po file
run mergelocales.sh
Evrithing look good in interface/locale/bs_BA/LC_MESSAGES dir. I have .mo .po .json files
----
Connect to server from win10/firefox client.
On login screen there is not Bosnian language in language combobox.
There is:
english
Danish (UO)
German (UO)
Spanish (UO)
...
Yidish (UO)
I'll try to change language to German (UO). After some processing I am again on English.
It is the same for all other languages.
I logged and try to change language in user preferences. It is accepted but there is no change in the interface language.
Selected language is German bat everythig else is in english.
Try to change everything: language, date format. Without success
--
I enable debug.
There is no nothing intersting in logs.
No errors.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: translate in new language

Post by shaunw »

Have you installed the corresponding locales in Ubuntu? Often it would be a command like this:

Code: Select all

sudo apt-get install language-pack-XX
You can then verify its installed proper by running:

Code: Select all

locales -a
The installed locales must match the locale names that TimeTrex uses for its languages.
zraja
Posts: 4
Joined: Mon Jul 04, 2016 11:53 am

Re: translate in new language

Post by zraja »

After install de_De locale I got German to work.
Locale -a gives me:
bs_BA
bs_BA.iso88592
bs_BA.utf8
C
C.UTF-8
de_AT.utf8
de_BE.utf8
de_CH.utf8
de_DE.utf8
de_LI.utf8
de_LU.utf8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
hr_HR.utf8
POSIX
And I still can not get that Bosnia be an element in a list of combobox.
Is there another location where I need to enter it?
zraja
Posts: 4
Joined: Mon Jul 04, 2016 11:53 am

Re: translate in new language

Post by zraja »

Found.
Solved
Post Reply