From 085a6f4fe0abaa69e1774d3d9193212c98e6eb4f Mon Sep 17 00:00:00 2001 From: rvdforst Date: Tue, 10 Nov 2020 09:57:11 +0100 Subject: [PATCH 1/2] Fix textdomain --- rrze-cache.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rrze-cache.php b/rrze-cache.php index 6bd289d..0c1b7a0 100644 --- a/rrze-cache.php +++ b/rrze-cache.php @@ -52,7 +52,7 @@ add_action('plugins_loaded', __NAMESPACE__ . '\loaded'); */ function loadTextdomain() { - load_plugin_textdomain('rrze-multilang', false, sprintf('%s/languages/', dirname(plugin_basename(__FILE__)))); + load_plugin_textdomain('rrze-cache', false, sprintf('%s/languages/', dirname(plugin_basename(__FILE__)))); } /** @@ -65,11 +65,11 @@ function systemRequirements(): string $error = ''; if (version_compare(PHP_VERSION, RRZE_PHP_VERSION, '<')) { - $error = sprintf(__('The server is running PHP version %s. The Plugin requires at least PHP version %s.', 'rrze-multilang'), PHP_VERSION, RRZE_PHP_VERSION); + $error = sprintf(__('The server is running PHP version %s. The Plugin requires at least PHP version %s.', 'rrze-cache'), PHP_VERSION, RRZE_PHP_VERSION); } elseif (version_compare($GLOBALS['wp_version'], RRZE_WP_VERSION, '<')) { - $error = sprintf(__('The server is running WordPress version %s. The Plugin requires at least WordPress version %s.', 'rrze-multilang'), $GLOBALS['wp_version'], RRZE_WP_VERSION); + $error = sprintf(__('The server is running WordPress version %s. The Plugin requires at least WordPress version %s.', 'rrze-cache'), $GLOBALS['wp_version'], RRZE_WP_VERSION); } elseif (!is_multisite()) { - $error = __('The plugin is compatible only with WordPress Multisite.', 'rrze-multilang'); + $error = __('The plugin is compatible only with WordPress Multisite.', 'rrze-cache'); } return $error; } @@ -124,7 +124,7 @@ function loaded() $tag = is_plugin_active_for_network(plugin()->getBaseName()) ? 'network_admin_notices' : 'admin_notices'; add_action($tag, function () use ($pluginName, $error) { printf( - '

' . __('Plugins: %s: %s', 'rrze-multilang') . '

', + '

' . __('Plugins: %s: %s', 'rrze-cache') . '

', esc_html($pluginName), esc_html($error) ); -- GitLab From 01655fe27c66ca73c07c5732446005d54ac21163 Mon Sep 17 00:00:00 2001 From: rvdforst Date: Tue, 10 Nov 2020 09:57:40 +0100 Subject: [PATCH 2/2] Version 2.6.1 --- rrze-cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rrze-cache.php b/rrze-cache.php index 0c1b7a0..abcdd09 100644 --- a/rrze-cache.php +++ b/rrze-cache.php @@ -4,7 +4,7 @@ Plugin Name: RRZE Cache Plugin URI: https://gitlab.rrze.fau.de/rrze-webteam/rrze-cache Description: Advanced cache management. -Version: 2.6.0 +Version: 2.6.1 Author: RRZE-Webteam Author URI: https://blogs.fau.de/webworking/ License: GNU General Public License v2 -- GitLab