Localization
-
Hi,
Thank you for a simple and elegant plugin. May I suggest some small changes to simple-download-monitor.php, on behalf of localization:
– line 290:
<h2><?php echo __("Simple Download Monitor error", self::GETTEXT_REALM); ?></h2>
to:
<h2><?php echo __('Simple Download Monitor error', self::GETTEXT_REALM); ?></h2>
– line 371 > 383:
// If the file exists and is valid, download it // Make sure the file is available for download if (!$exists) $this->ErrorMessage(404, sprintf(__("Requested file <strong>%s</strong> not found."), htmlspecialchars($filename)), 'Not found'); if (intval(get_option(self::PREFIX . 'detailed_errors'))) { if (!$valid_dir) $this->ErrorMessage(404, sprintf(__("Requested file <strong>%s</strong> has an invalid path."), htmlspecialchars($filename)), 'Not valid'); if (!$valid_ext) $this->ErrorMessage(404, sprintf(__("Requested file <strong>%s</strong> has an invalid extension."), htmlspecialchars($filename)), 'Not valid'); } if (!$valid) $this->ErrorMessage(404, sprintf(__("Requested file <strong>%s</strong> not found."), htmlspecialchars($filename)), 'Not found');
to:
// If the file exists and is valid, download it // Make sure the file is available for download if (!$exists) $this->ErrorMessage(404, sprintf(__('Requested file <strong>%s</strong> not found.', self::GETTEXT_REALM), htmlspecialchars($filename)), 'Not found'); if (intval(get_option(self::PREFIX . 'detailed_errors'))) { if (!$valid_dir) $this->ErrorMessage(404, sprintf(__('Requested file <strong>%s</strong> has an invalid path.', self::GETTEXT_REALM), htmlspecialchars($filename)), 'Not valid'); if (!$valid_ext) $this->ErrorMessage(404, sprintf(__('Requested file <strong>%s</strong> has an invalid extension.', self::GETTEXT_REALM), htmlspecialchars($filename)), 'Not valid'); } if (!$valid) $this->ErrorMessage(404, sprintf(__('Requested file <strong>%s</strong> not found.', self::GETTEXT_REALM), htmlspecialchars($filename)), 'Not found');
Thanks!
Jeroen.https://www.ads-software.com/extend/plugins/simple-download-monitor/
- The topic ‘Localization’ is closed to new replies.