Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-10893

No translation caches generated when ts-list option is omitted

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 3.10.0, 3.9.4
    • 3.9.2
    • Misc
    • None

    Description

      The ezgeneratetranslationcache.php script won't generate any caches when the ts-list command line option is not provided.

      $translations = split( ' ', $scriptOptions['ts-list'] );
      

      If the ts-list option is not provided, $scriptOptions['ts-list'] will be null in the code above and $translations will become an array with one item: an empty string. But eZTSTranslator::fetchList checks the count of the passed array.

      I propose to replace the code above with this:

      if ( isset( $scriptOptions['ts-list'] ) )
      {
          $translations = split( ' ', $scriptOptions['ts-list'] );
      }
      else
      {
          $translations = array();
      }
      

      Attachments

        Activity

          People

            cyberwolf cyberwolf
            cyberwolf cyberwolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: