Commit 085a6f4f authored by Rolf Forst's avatar Rolf Forst
Browse files

Fix textdomain

parent 175c23b5
...@@ -52,7 +52,7 @@ add_action('plugins_loaded', __NAMESPACE__ . '\loaded'); ...@@ -52,7 +52,7 @@ add_action('plugins_loaded', __NAMESPACE__ . '\loaded');
*/ */
function loadTextdomain() 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 ...@@ -65,11 +65,11 @@ function systemRequirements(): string
$error = ''; $error = '';
if (version_compare(PHP_VERSION, RRZE_PHP_VERSION, '<')) { 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, '<')) { } 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()) { } 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; return $error;
} }
...@@ -124,7 +124,7 @@ function loaded() ...@@ -124,7 +124,7 @@ function loaded()
$tag = is_plugin_active_for_network(plugin()->getBaseName()) ? 'network_admin_notices' : 'admin_notices'; $tag = is_plugin_active_for_network(plugin()->getBaseName()) ? 'network_admin_notices' : 'admin_notices';
add_action($tag, function () use ($pluginName, $error) { add_action($tag, function () use ($pluginName, $error) {
printf( printf(
'<div class="notice notice-error"><p>' . __('Plugins: %s: %s', 'rrze-multilang') . '</p></div>', '<div class="notice notice-error"><p>' . __('Plugins: %s: %s', 'rrze-cache') . '</p></div>',
esc_html($pluginName), esc_html($pluginName),
esc_html($error) esc_html($error)
); );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment