I began translating to Greek (el)
First of all, thx for the very good work.
Second
One of the problems has to do with the implementation.
in GeneralWork.php
you have :
public static function displayShortWorkUnit() {
self::setWorkUnit();
$res=substr(i18n(self::$workUnit),0,1);
return $res;
}
The problem is that the word hours is translated in Greek as 'ώρες'.
The problem is solved if we write the above function as :
public static function displayShortWorkUnit() {
self::setWorkUnit();
$res=substr(i18n(self::$workUnit),0,2);
return $res;
}
Third
I think that the xls file is outdated. After I made some translations and created the lang.js some of the strings in the GUI showed as [xxxxxxxxxx]
Your solutions works only woth greek language and would lead to display "da" for days in english.
It is because in greek, the first letter is 2 bytes long in UTF-8.
So, solution is :
public static function displayShortWorkUnit() {
self::setWorkUnit();
$res=mb_substr(i18n(self::$workUnit),0,1);
return $res;
}
You were right : lang.xls file was about V4.3.
I updated with V4.4 one.
NB : rather than trying to copy your changes in new fie, I think it will be more easy to sort on Version the V4.4 file, and then copy the last lines into your own competed file (you'll get less chance for errors)
Your solutions works only woth greek language and would lead to display "da" for days in english.
It is because in greek, the first letter is 2 bytes long in UTF-8.
So, solution is :
public static function displayShortWorkUnit() {
self::setWorkUnit();
$res=mb_substr(i18n(self::$workUnit),0,1);
return $res;
}
Will be fixed this way in V4.5
Even with this change I don' see the correct character.
As I wrote in the other utf8 post I think that the problem has to do with something like this: mathiasbynens.be/notes/mysql-utf8mb4
En poursuivant votre navigation, vous acceptez le dépôt de cookies tiers destinés au bon fonctionnement et à la sécurisation du site (gestion de session, reCaptcha) et à une analyse statistique anonymisée des accès sur notre site (Google Analytics). Si vous vous inscrivez, les informations que vous fournirez ne seront jamais divulguées à un tiers sous quelque forme que ce soit. En savoir plus
Cookies settings
×
Functional Cookies
Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.
Session
Please login to see yours activities!
Other cookies
Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.