Skip to content

Commit

Permalink
Czech translation
Browse files Browse the repository at this point in the history
  • Loading branch information
webaware committed Nov 3, 2014
1 parent 3b62620 commit c2114cf
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
8 changes: 6 additions & 2 deletions disable-emails.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Disable Emails
Plugin URI: http://shop.webaware.com.au/downloads/disable-emails/
Description: Stop WordPress from sending any emails. ANY!
Version: 1.2.2
Version: 1.2.3
Author: WebAware
Author URI: http://webaware.com.au/
Text Domain: disable-emails
Expand All @@ -28,10 +28,14 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

if (!defined('ABSPATH')) {
exit;
}

if (!defined('DISABLE_EMAILS_PLUGIN_ROOT')) {
define('DISABLE_EMAILS_PLUGIN_FILE', __FILE__);
define('DISABLE_EMAILS_PLUGIN_ROOT', dirname(__FILE__) . '/');
define('DISABLE_EMAILS_PLUGIN_NAME', basename(dirname(__FILE__)) . '/' . basename(__FILE__));
define('DISABLE_EMAILS_PLUGIN_FILE', __FILE__);

// options
define('DISABLE_EMAILS_OPTIONS', 'disable_emails');
Expand Down
Binary file added languages/disable-emails-cs_CZ.mo
Binary file not shown.
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Donate link: http://shop.webaware.com.au/downloads/disable-emails/
Tags: disable emails, block emails
Requires at least: 3.6.1
Tested up to: 4.0
Stable tag: 1.2.2
Stable tag: 1.2.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -28,6 +28,7 @@ WordPress websites can send emails for a variety of reasons -- e.g user registra

Many thanks to the generous efforts of our translators:

* Czech (cs-CZ) -- ([Rudolf Klusal](http://www.klusik.cz/))
* Norwegian: Bokmål (nb_NO) -- [neonnero](http://www.neonnero.com/)
* Norwegian: Nynorsk (nn_NO) -- [neonnero](http://www.neonnero.com/)

Expand Down Expand Up @@ -61,6 +62,9 @@ Behind the scenes, it creates a private copy of PHPMailer and allows the system

== Changelog ==

= 1.2.3 [2014-11-03] =
* added: Czech translation (thanks, [Rudolf Klusal](http://www.klusik.cz/)!)

= 1.2.2 [2014-08-31] =
* added: Norwegian translations (thanks, [neonnero](http://www.neonnero.com/)!)

Expand Down
6 changes: 3 additions & 3 deletions views/settings-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@

<div class="wrap">
<?php if (version_compare($wp_version, '3.8', '<')) screen_icon('options-general'); ?>
<h2><?php _e('Disable Emails settings', 'disable-emails'); ?></h2>
<h2><?php esc_html_e('Disable Emails settings', 'disable-emails'); ?></h2>

<form action="<?php echo admin_url('options.php'); ?>" method="POST">
<?php settings_fields(DISABLE_EMAILS_OPTIONS); ?>

<table class="form-table">

<tr valign="top">
<th scope="row"><?php _e('Call WordPress hooks', 'disable-emails'); ?></th>
<th scope="row"><?php esc_html_e('Call WordPress hooks', 'disable-emails'); ?></th>
<td>
<em><?php _e('call WordPress hooks so that listeners can act, e.g. log emails', 'disable-emails'); ?></em>
<em><?php esc_html_e('call WordPress hooks so that listeners can act, e.g. log emails', 'disable-emails'); ?></em>
<br /><label><input type="checkbox" name="disable_emails[wp_mail]" value="1" <?php checked($options['wp_mail']); ?> /> wp_mail</label>
<br /><label><input type="checkbox" name="disable_emails[wp_mail_from]" value="1" <?php checked($options['wp_mail_from']); ?> /> wp_mail_from</label>
<br /><label><input type="checkbox" name="disable_emails[wp_mail_from_name]" value="1" <?php checked($options['wp_mail_from_name']); ?> /> wp_mail_from_name</label>
Expand Down
2 changes: 1 addition & 1 deletion views/warn-already-defined.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

<div class="error">
<p><?php _e("Emails are not disabled! Something else has already declared wp_mail(), so Disable Emails cannot stop emails being sent!", 'disable-emails'); ?></p>
<p><?php esc_html_e("Emails are not disabled! Something else has already declared wp_mail(), so Disable Emails cannot stop emails being sent!", 'disable-emails'); ?></p>
</div>

0 comments on commit c2114cf

Please sign in to comment.