do not split translatable strings

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Blocker
    • 2.1.0
    • Affects Version/s: 2.0.5
    • Component/s: 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'));
      }

            Assignee:
            Ivo Kurzemnieks
            Reporter:
            MATSUDA Daiki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: