-
Incident report
-
Resolution: Fixed
-
Blocker
-
2.0.5
Never split sentense to worlds! Because, can not to be transrated in Japanese.
In European languages 'translation' is simply replaced the word. But in Japanese, Korean and other languages it is not simple for some reasons.
frontends/php/include/maintenances.inc.php
if ($timeperiod['timeperiod_type'] == TIMEPERIOD_TYPE_ONETIME)
elseif ($timeperiod['timeperiod_type'] == TIMEPERIOD_TYPE_DAILY)
{ $str .= _('every').SPACE.(($timeperiod['every'] > 1) ? $timeperiod['every'].SPACE._('days') : _('day')); } elseif ($timeperiod['timeperiod_type'] == TIMEPERIOD_TYPE_WEEKLY) {
$days = '';
$dayofweek = zbx_num2bitstr($timeperiod['dayofweek'], true);
$length = zbx_strlen($dayofweek);
for ($i = 0; $i < $length; $i++) {
if ($dayofweek[$i] == 1) {
if (!zbx_empty($days))
$days .= getDayOfWeekCaption($i + 1);
}
}
$str.= ('every').SPACE.$days.SPACE.('of every').SPACE.(($timeperiod['every'] > 1) ? $timeperiod['every'].SPACE._('weeks') : _('week'));
}