WordPress.org

Ready to get started?Download WordPress

Forums

Simple Download Monitor
Localization (1 post)

  1. luchtspin
    Member
    Posted 1 year ago #

    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.

    http://wordpress.org/extend/plugins/simple-download-monitor/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic