mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 08:42:15 +09:00
AM/PM에 대한 국가별 처리할 수 있는 코드 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4584 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2496d51f54
commit
96eacfd921
10 changed files with 68 additions and 2 deletions
|
|
@ -328,9 +328,12 @@
|
|||
$string = date($format, ztime($str));
|
||||
}
|
||||
|
||||
// 요일, 월을 각 언어에 맞게 변경
|
||||
// 요일, am/pm을 각 언어에 맞게 변경
|
||||
$unit_week = Context::getLang('unit_week');
|
||||
return str_replace(array('Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'),$unit_week, $string);
|
||||
$unit_meridiem = Context::getLang('unit_meridiem');
|
||||
$string = str_replace(array('Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'),$unit_week, $string);
|
||||
$string = str_replace(array('am','pm','AM','PM'), $unit_meridiem, $string);
|
||||
return $string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue