LetoDMS Community Forum
chinese lang bug - Printable Version

+- LetoDMS Community Forum (https://community.letodms.com)
+-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4)
+--- Forum: Bugs/Errors (https://community.letodms.com/forumdisplay.php?fid=11)
+--- Thread: chinese lang bug (/showthread.php?tid=639)



chinese lang bug - xcl3721 - 02-04-2013

hi,i use leto dms 3.4.2
when i use chinese lang pack
i found some translate was lost
so i translate some language
but when i translate the week
the Calendar with unknow code on the year view
i check code inc\inc.Calendar.php line 124

$dayNames = array();
foreach ( $dayNamesLong as $dn ){
$dayNames[] = substr($dn,0,3);//i changed here beacause chinese char was three byte
}




RE: chinese lang bug - steinm - 02-04-2013

(02-04-2013, 08:36 AM)xcl3721 Wrote: hi,i use leto dms 3.4.2
when i use chinese lang pack
i found some translate was lost
so i translate some language
but when i translate the week
the Calendar with unknow code on the year view
i check code inc\inc.Calendar.php line 124

$dayNames = array();
foreach ( $dayNamesLong as $dn ){
$dayNames[] = substr($dn,0,3);//i changed here beacause chinese char was three byte
}

I'm not sure if this breaks other languages. German and english should be fine. What about other languages?

Uwe



RE: chinese lang bug - xcl3721 - 02-05-2013

oh how about make the short of week on language file

(02-04-2013, 03:34 PM)steinm Wrote:
(02-04-2013, 08:36 AM)xcl3721 Wrote: hi,i use leto dms 3.4.2
when i use chinese lang pack
i found some translate was lost
so i translate some language
but when i translate the week
the Calendar with unknow code on the year view
i check code inc\inc.Calendar.php line 124

$dayNames = array();
foreach ( $dayNamesLong as $dn ){
$dayNames[] = substr($dn,0,3);//i changed here beacause chinese char was three byte
}

I'm not sure if this breaks other languages. German and english should be fine. What about other languages?

Uwe

oh how about make the short of week on language file


RE: chinese lang bug - steinm - 02-05-2013

(02-05-2013, 09:08 AM)xcl3721 Wrote: oh how about make the short of week on language file

That's an option, too.

Uwe