Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.
   1  <?php
   2  // This file is part of Moodle - http://moodle.org/
   3  //
   4  // Moodle is free software: you can redistribute it and/or modify
   5  // it under the terms of the GNU General Public License as published by
   6  // the Free Software Foundation, either version 3 of the License, or
   7  // (at your option) any later version.
   8  //
   9  // Moodle is distributed in the hope that it will be useful,
  10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12  // GNU General Public License for more details.
  13  //
  14  // You should have received a copy of the GNU General Public License
  15  // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16  
  17  /**
  18   * Strings for component 'antivirus_clamav', language 'en'.
  19   *
  20   * @package    antivirus_clamav
  21   * @copyright  2015 Ruslan Kabalin, Lancaster University.
  22   * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  23   */
  24  
  25  $string['antivirusfailed'] = 'There is a problem with AntiVirus scanning at the moment. Your file {$a->item} has not been uploaded. Please try again later.';
  26  $string['configclamactlikevirus'] = 'Treat files like viruses';
  27  $string['configclamdonothing'] = 'Treat files as OK';
  28  $string['configclamfailureonupload'] = 'If \'Treat files as OK\' is selected, files will be moved to the destination directory. If \'Refuse upload, try again\' is selected, the user will be prompted to try again later. If \'Treat files like viruses\' is selected, files will be moved into the quarantine area, or deleted. Warning: With this option, if for some reason clam fails to run (usually because of an invalid pathtoclam), then ALL uploaded files will be moved to the given quarantine area, or deleted.';
  29  $string['configclamtryagain'] = 'Refuse upload, try again';
  30  $string['clamfailed'] = 'ClamAV has failed to run.  The return error message was "{$a}". Here is the output from ClamAV:';
  31  $string['clamfailureonupload'] = 'On ClamAV failure';
  32  $string['errorcantopensocket'] = 'Connecting to Unix domain socket resulted in error {$a}';
  33  $string['errorclamavnoresponse'] = 'ClamAV does not respond; check daemon running state.';
  34  $string['errornounixsocketssupported'] = 'Unix domain socket transport is not supported on this system. Please use the command line option instead.';
  35  $string['invalidpathtoclam'] = 'Path to ClamAV, {$a}, is invalid.';
  36  $string['pathtoclam'] = 'Command line';
  37  $string['pathtoclamdesc'] = 'If the running method is set to "command line", enter the path to ClamAV here. On Linux this will be /usr/bin/clamscan or /usr/bin/clamdscan.';
  38  $string['pathtounixsocket'] = 'Unix domain socket';
  39  $string['pathtounixsocketdesc'] = 'If the running method is set to "Unix domain socket", enter the path to ClamAV Unix socket here. On Debian Linux this will be /var/run/clamav/clamd.ctl. Please make sure that clamav daemon has read access to uploaded files, the easiest way to ensure that is to add \'clamav\' user to your webserver group (\'www-data\' on Debian Linux).';
  40  $string['pluginname'] = 'ClamAV antivirus';
  41  $string['privacy:metadata'] = 'The ClamAV antivirus plugin does not store any personal data.';
  42  $string['quarantinedir'] = 'Quarantine directory';
  43  $string['runningmethod'] = 'Running method';
  44  $string['runningmethoddesc'] = 'Method of running ClamAV. Command line is used by default, however on Unix systems better performance can be obtained by using system sockets.';
  45  $string['runningmethodcommandline'] = 'Command line';
  46  $string['runningmethodunixsocket'] = 'Unix domain socket';
  47  $string['runningmethodtcpsocket'] = 'TCP socket';
  48  $string['tcpsockethost'] = 'TCP socket hostname';
  49  $string['tcpsockethostdesc'] = 'Domain name of the ClamAV server';
  50  $string['tcpsocketport'] = 'TCP socket port';
  51  $string['tcpsocketportdesc'] = 'The port to use when connecting to ClamAV';
  52  $string['unknownerror'] = 'There was an unknown error with ClamAV.';
  53  $string['tries'] = 'Scanning attempts';
  54  $string['tries_desc'] = 'Number of attempts made by ClamAV if there is an error during the scanning process.';
  55  $string['tries_notice'] = 'Clamav scanning has tried {$a->tries} time(s).
  56  {$a->notice}';