Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
chinese lang bug
#1
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
}

Reply
#2
(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
Reply
#3
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
Reply
#4
(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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)