From eaa3d088a0a9c946e014c9d4126a633ef578130d Mon Sep 17 00:00:00 2001 From: SM Date: Fri, 26 Feb 2016 15:09:32 -1000 Subject: [PATCH 1/4] Update: Add text domain plugin header --- main.php | 1 + 1 file changed, 1 insertion(+) diff --git a/main.php b/main.php index fda314d..8e022c0 100644 --- a/main.php +++ b/main.php @@ -6,6 +6,7 @@ Version: 0.0.0-dev Author: Archetyped Author URI: http://archetyped.com +Text Domain: favicon-rotator */ require_once 'model.php'; From e060707c13ecdfdf9796bd19d35f2c9a1f21349f Mon Sep 17 00:00:00 2001 From: SM Date: Fri, 26 Feb 2016 15:15:23 -1000 Subject: [PATCH 2/4] Update: Set plugin-specific text domain for localized strings --- includes/class.media.php | 8 ++++---- model.php | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/includes/class.media.php b/includes/class.media.php index 5a4a581..af4b3e7 100644 --- a/includes/class.media.php +++ b/includes/class.media.php @@ -341,10 +341,10 @@ function post_mime_types($post_mime_types) { $mime_types = $post_mime_types; //Add additional mime types $mime_types_extra = array( - 'image/png' => array(__('PNG Images'), __('Manage PNG Images'), _n_noop('PNG Image (%s)', 'PNG Images (%s)')), - 'image/gif' => array(__('GIF Images'), __('Manage GIF Images'), _n_noop('GIF Image (%s)', 'GIF Images (%s)')), - 'image/jpeg' => array(__('JPG Images'), __('Manage JPG Images'), _n_noop('JPG Image (%s)', 'JPG Images (%s)')), - 'image/x-icon' => array(__('ICO Images'), __('Manage ICO Images'), _n_noop('ICO Image (%s)', 'ICO Images (%s)')) + 'image/png' => array(__('PNG Images', 'favicon-rotator'), __('Manage PNG Images', 'favicon-rotator'), _n_noop('PNG Image (%s)', 'PNG Images (%s)')), + 'image/gif' => array(__('GIF Images', 'favicon-rotator'), __('Manage GIF Images', 'favicon-rotator'), _n_noop('GIF Image (%s)', 'GIF Images (%s)')), + 'image/jpeg' => array(__('JPG Images', 'favicon-rotator'), __('Manage JPG Images', 'favicon-rotator'), _n_noop('JPG Image (%s)', 'JPG Images (%s)')), + 'image/x-icon' => array(__('ICO Images', 'favicon-rotator'), __('Manage ICO Images', 'favicon-rotator'), _n_noop('ICO Image (%s)', 'ICO Images (%s)')) ); $mime_types = wp_parse_args($mime_types_extra, $mime_types); //Clear mime types array diff --git a/model.php b/model.php index 70c03b9..29d0c5d 100644 --- a/model.php +++ b/model.php @@ -430,7 +430,7 @@ function display_icon($type) { function admin_plugin_action_links($actions, $plugin_file, $plugin_data, $context) { //Add link to settings (only if active) if ( is_plugin_active($this->util->get_plugin_base_name()) ) { - $settings = __('Settings'); + $settings = __('Settings', 'favicon-rotator'); $settings_url = add_query_arg('page', dirname($this->util->get_plugin_base_name()), admin_url('themes.php')); array_unshift($actions, '' . $settings . ''); } @@ -449,7 +449,7 @@ function admin_get_settings_section() { * Adds admin submenu item to Appearance menu */ function admin_menu() { - $this->page = $p = add_theme_page(__('Favicon'), __('Favicon'), 'edit_theme_options', $this->util->get_plugin_base(), $this->m('admin_page')); + $this->page = $p = add_theme_page(__('Favicon', 'favicon-rotator'), __('Favicon', 'favicon-rotator'), 'edit_theme_options', $this->util->get_plugin_base(), $this->m('admin_page')); //Head add_action("admin_print_scripts-$p", $this->m('admin_scripts')); add_action("admin_print_styles-$p", $this->m('admin_styles')); @@ -461,7 +461,7 @@ function admin_menu() { */ function admin_page() { if ( ! current_user_can('edit_theme_options') ) - wp_die(__('You do not have permission to customize favicons.')); + wp_die(__('You do not have permission to customize favicons.', 'favicon-rotator')); //Get saved icons if ( isset($_POST['fv_submit']) ) @@ -479,7 +479,7 @@ function admin_page() { ?>
-

+

get_icon_types() as $tname => $t ) : /* Output UI for icon types */ $icons = $this->get_icons($t->type_name); @@ -531,7 +531,7 @@ function admin_page() { action_save); ?> -

+

add_help_tab(array( 'id' => $this->add_prefix('help'), - 'title' => __('Overview'), + 'title' => __('Overview', 'favicon-rotator'), 'content' => $help, )); } From 688a56968c0a7440e6a265b68d28b6285bc6ad2f Mon Sep 17 00:00:00 2001 From: SM Date: Fri, 26 Feb 2016 15:17:10 -1000 Subject: [PATCH 3/4] Update readme (1.2.7) --- readme.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/readme.txt b/readme.txt index e852abd..456050c 100644 --- a/readme.txt +++ b/readme.txt @@ -49,6 +49,10 @@ No upgrade notices == Changelog == += 1.2.7 = +* Add: Text Domain plugin header (for translations) +* Update: Use plugin-specific text domain for localized strings + = 1.2.6 = * Update: WordPress compatibility (4.4) * Optimize: PHP standards From 0278e6b694d1dc876e963ea239d31d1aaf8771a0 Mon Sep 17 00:00:00 2001 From: SM Date: Fri, 26 Feb 2016 15:18:56 -1000 Subject: [PATCH 4/4] Prep release (1.2.7) --- main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.php b/main.php index 8e022c0..e67104f 100644 --- a/main.php +++ b/main.php @@ -3,7 +3,7 @@ Plugin Name: Favicon Rotator Plugin URI: http://archetyped.com/tools/favicon-rotator/ Description: Easily set site favicon and even rotate through multiple icons -Version: 0.0.0-dev +Version: 1.2.7 Author: Archetyped Author URI: http://archetyped.com Text Domain: favicon-rotator