Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-6459

do not split translatable strings

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.1.0
    • 2.0.5
    • Frontend (F)

      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)

      { $str = _('At').SPACE.date('H', $timeperiod['start_date']).':'.date('i',$timeperiod['start_date']).SPACE._('on').SPACE.zbx_date2str(_('d M Y'), $timeperiod['start_date']); }

      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 .= ', '; }

      $days .= getDayOfWeekCaption($i + 1);
      }
      }
      $str.= ('every').SPACE.$days.SPACE.('of every').SPACE.(($timeperiod['every'] > 1) ? $timeperiod['every'].SPACE._('weeks') : _('week'));
      }

            iivs Ivo Kurzemnieks
            daiki.matsuda@miraclelinux.com MATSUDA Daiki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: