diff --git a/assets/css/admin.css b/assets/css/admin.css index 4f45ddb..cd95e9a 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -1,12 +1,21 @@ +input[type="number"] { + text-align: right; +} .pill { - border-radius: 5px; - background-color: #000; - padding: 2px 3px; - color: #fff; + display: inline-block; + padding: .25em .4em; + font-weight: 700; + line-height: 1; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + border-radius: .25rem; } .pill.pill-active { - background-color: darkgreen; + color: #fff; + background-color: #28a745; } .pill.pill-inactive { - background-color: darkred; + color: #fff; + background-color: #dc3545; } \ No newline at end of file diff --git a/includes/class-config.php b/includes/class-config.php index 4adceb1..5089bb1 100644 --- a/includes/class-config.php +++ b/includes/class-config.php @@ -287,8 +287,8 @@ public function register_settings() { * @return void */ public function trigger_save() { - static $once = false; - if ( ! $once ) { + static $once; + if ( ! isset( $once ) ) { $once = true; add_action( 'shutdown', [ Config::class, 'save' ] ); } diff --git a/includes/class-redis-connection-params.php b/includes/class-redis-connection-params.php index 11e60ca..eb17ccb 100644 --- a/includes/class-redis-connection-params.php +++ b/includes/class-redis-connection-params.php @@ -1,4 +1,8 @@ + * @version 1.0.0 + */ namespace WPR_Redis; diff --git a/includes/class-redis.php b/includes/class-redis.php index d0beebd..f024e33 100644 --- a/includes/class-redis.php +++ b/includes/class-redis.php @@ -1,4 +1,8 @@ + * @version 1.0.0 + */ namespace WPR_Redis; @@ -336,6 +340,7 @@ protected static function lua_flush_closure( /** * Retrieved set WP Rocket expiry time * + * @since 1.0.0 * @return int */ protected static function expiry_time() { diff --git a/includes/class-update-checker.php b/includes/class-update-checker.php index 69692e9..0eb6503 100644 --- a/includes/class-update-checker.php +++ b/includes/class-update-checker.php @@ -1,4 +1,8 @@ + * @version 1.0.1 + */ namespace WPR_Redis; @@ -17,12 +21,27 @@ class Update_Checker { * @since 1.0.0 */ public function __construct() { + $slug = 'wpr-redis'; + add_filter( + "puc_manual_check_link-{$slug}", + [ $this, 'manual_check_link' ] + ); require_once WPR_REDIS_VENDOR_PATH . '/yahnis-elsts/plugin-update-checker/plugin-update-checker.php'; $update_checker = \Puc_v4_Factory::buildUpdateChecker( self::GITHUB_REPO, WPR_REDIS_FILE, - 'wpr-redis' + $slug ); } + /** + * Returns the translatable check for updates link label + * + * @since 1.0.1 + * @return string + */ + public function manual_check_link() { + return __( 'Check for updates', 'wpr-redis' ); + } + } // Update_Checker diff --git a/includes/class-wpr-redis.php b/includes/class-wpr-redis.php index 409745b..6ba602c 100644 --- a/includes/class-wpr-redis.php +++ b/includes/class-wpr-redis.php @@ -34,8 +34,8 @@ public function __construct() { * @return string */ public static function meta( $key ) { - static $metadata = null; - if ( null === $metadata ) { + static $metadata; + if ( ! isset( $metadata ) ) { $metadata = get_file_data( WPR_REDIS_FILE, array( diff --git a/includes/config-template.php b/includes/config-template.php index eb9c045..00b6304 100644 --- a/includes/config-template.php +++ b/includes/config-template.php @@ -1,4 +1,8 @@ + * @version 1.0.0 + */ defined( '\\ABSPATH' ) || exit; diff --git a/languages/wpr-redis-de_AT.mo b/languages/wpr-redis-de_AT.mo index b42ead4..a1a0a26 100644 Binary files a/languages/wpr-redis-de_AT.mo and b/languages/wpr-redis-de_AT.mo differ diff --git a/languages/wpr-redis-de_AT.po b/languages/wpr-redis-de_AT.po index 5ac6f8f..ce2b4f7 100644 --- a/languages/wpr-redis-de_AT.po +++ b/languages/wpr-redis-de_AT.po @@ -2,10 +2,10 @@ msgid "" msgstr "" "Project-Id-Version: WP Rocket Redis\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-12 17:26+0000\n" -"PO-Revision-Date: 2019-08-12 18:05+0000\n" -"Last-Translator: admin \n" -"Language-Team: \n" +"POT-Creation-Date: 2019-08-12 22:01+0000\n" +"PO-Revision-Date: 2019-08-12 22:04+0000\n" +"Last-Translator: naxvog \n" +"Language-Team: Deutsch (Österreich)\n" "Language: de_AT\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "MIME-Version: 1.0\n" @@ -15,92 +15,96 @@ msgstr "" "X-Loco-Version: 2.3.0; wp-5.2.2\n" "X-Loco-Template: languages/wpr-redis-de_DE.po" -#. Description of the plugin -msgid "Addon to WP Rocket that allows storage of cache files in Redis." -msgstr "" -"Erweiterung für WP Rocket die es erlaubt Redis als Speicherort für Cache-" -"Dateien zu verwenden." - -#: views/admin-settings.php:31 -msgid "Connected" -msgstr "Verbunden" +#: views/admin-settings.php:19 includes/class-config.php:79 +msgid "WP Rocket Redis Settings" +msgstr "WP Rocket Redis Einstellungen" -#: includes/class-config.php:242 -msgid "Database" -msgstr "Datenbank" +#: views/admin-settings.php:23 +msgid "Remove WPR Redis Caching Integration" +msgstr "WPR Redis Cache Integration entfernen" -#: views/admin-settings.php:35 -msgid "Disconnected" -msgstr "Getrennt" +#: views/admin-settings.php:28 +msgid "Integrate WPR Redis Caching" +msgstr "WPR Redis Caching integrieren" -#: includes/class-config.php:234 -msgid "Host" -msgstr "Host" +#: views/admin-settings.php:32 +msgid "Status" +msgstr "Status" -#. Author URI of the plugin -msgid "https://github.com/naxvog/" -msgstr "https://github.com/naxvog/" +#: views/admin-settings.php:35 +msgid "Redis Connection Status:" +msgstr "Redis Verbindungsstatus:" -#. URI of the plugin -msgid "https://github.com/naxvog/wpr-redis/" -msgstr "https://github.com/naxvog/wpr-redis/" +#: views/admin-settings.php:39 +msgid "Connected" +msgstr "Verbunden" -#: views/admin-settings.php:20 -msgid "Integrate WPR Redis Caching" -msgstr "WPR Redis Caching integrieren" +#: views/admin-settings.php:43 +msgid "Disconnected" +msgstr "Getrennt" -#: views/admin-settings.php:45 +#: views/admin-settings.php:53 msgid "Integrated" msgstr "Eingebunden" -#. Author of the plugin -msgid "naxvog " -msgstr "naxvog " - -#: includes/class-config.php:246 -msgid "Password" -msgstr "Passwort" - -#: views/admin-settings.php:49 +#: views/admin-settings.php:57 msgid "Pending Integration" msgstr "Nicht Eingebunden" -#: includes/class-config.php:238 -msgid "Port" -msgstr "Port" +#: includes/class-update-checker.php:44 +msgid "Check for updates" +msgstr "Auf Updates prüfen" -#: views/admin-settings.php:27 -msgid "Redis Connection Status:" -msgstr "Redis Verbindungsstatus:" - -#: views/admin-settings.php:16 -msgid "Remove WPR Redis Caching Integration" -msgstr "WPR Redis Cache Integration entfernen" - -#: includes/class-config.php:230 -msgid "Scheme" -msgstr "Schema" +#: includes/class-wpr-redis.php:187 +msgid "WP Rocket Redis:" +msgstr "WP Rocket Redis:" -#: includes/class-config.php:55 +#: includes/class-config.php:66 msgid "Settings" msgstr "Einstellungen" -#: includes/class-config.php:138 +#: includes/class-config.php:147 msgid "Setup your Redis connection" msgstr "Konfiguriere deine Redis Verbindung" -#: views/admin-settings.php:24 -msgid "Status" -msgstr "Status" +#: includes/class-config.php:237 +msgid "Scheme" +msgstr "Schema" + +#: includes/class-config.php:241 +msgid "Host" +msgstr "Host" + +#: includes/class-config.php:245 +msgid "Port" +msgstr "Port" + +#: includes/class-config.php:249 +msgid "Database" +msgstr "Datenbank" + +#: includes/class-config.php:253 +msgid "Password" +msgstr "Passwort" #. Name of the plugin msgid "WP Rocket Redis" msgstr "WP Rocket Redis" -#: includes/class-config.php:68 -msgid "WP Rocket Redis Settings" -msgstr "WP Rocket Redis Einstellungen" +#. Description of the plugin +msgid "Addon to WP Rocket that allows storage of cache files in Redis." +msgstr "" +"Erweiterung für WP Rocket die es erlaubt Redis als Speicherort für Cache-" +"Dateien zu verwenden." -#: includes/class-wpr-redis.php:141 -msgid "WP Rocket Redis:" -msgstr "WP Rocket Redis:" +#. URI of the plugin +msgid "https://github.com/naxvog/wpr-redis/" +msgstr "https://github.com/naxvog/wpr-redis/" + +#. Author of the plugin +msgid "naxvog " +msgstr "naxvog " + +#. Author URI of the plugin +msgid "https://github.com/naxvog/" +msgstr "https://github.com/naxvog/" diff --git a/languages/wpr-redis-de_CH.mo b/languages/wpr-redis-de_CH.mo index 0f3051b..b8f9efe 100644 Binary files a/languages/wpr-redis-de_CH.mo and b/languages/wpr-redis-de_CH.mo differ diff --git a/languages/wpr-redis-de_CH.po b/languages/wpr-redis-de_CH.po index 50106a4..d145f64 100644 --- a/languages/wpr-redis-de_CH.po +++ b/languages/wpr-redis-de_CH.po @@ -2,10 +2,10 @@ msgid "" msgstr "" "Project-Id-Version: WP Rocket Redis\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-12 17:26+0000\n" -"PO-Revision-Date: 2019-08-12 18:05+0000\n" -"Last-Translator: admin \n" -"Language-Team: \n" +"POT-Creation-Date: 2019-08-12 22:01+0000\n" +"PO-Revision-Date: 2019-08-12 22:04+0000\n" +"Last-Translator: naxvog \n" +"Language-Team: Deutsch (Schweiz)\n" "Language: de_CH\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "MIME-Version: 1.0\n" @@ -15,92 +15,96 @@ msgstr "" "X-Loco-Version: 2.3.0; wp-5.2.2\n" "X-Loco-Template: languages/wpr-redis-de_DE_formal.po" -#. Description of the plugin -msgid "Addon to WP Rocket that allows storage of cache files in Redis." -msgstr "" -"Erweiterung für WP Rocket die es erlaubt Redis als Speicherort für Cache-" -"Dateien zu verwenden." - -#: views/admin-settings.php:31 -msgid "Connected" -msgstr "Verbunden" +#: views/admin-settings.php:19 includes/class-config.php:79 +msgid "WP Rocket Redis Settings" +msgstr "WP Rocket Redis Einstellungen" -#: includes/class-config.php:242 -msgid "Database" -msgstr "Datenbank" +#: views/admin-settings.php:23 +msgid "Remove WPR Redis Caching Integration" +msgstr "WPR Redis Cache Integration entfernen" -#: views/admin-settings.php:35 -msgid "Disconnected" -msgstr "Getrennt" +#: views/admin-settings.php:28 +msgid "Integrate WPR Redis Caching" +msgstr "WPR Redis Caching integrieren" -#: includes/class-config.php:234 -msgid "Host" -msgstr "Host" +#: views/admin-settings.php:32 +msgid "Status" +msgstr "Status" -#. Author URI of the plugin -msgid "https://github.com/naxvog/" -msgstr "https://github.com/naxvog/" +#: views/admin-settings.php:35 +msgid "Redis Connection Status:" +msgstr "Redis Verbindungsstatus:" -#. URI of the plugin -msgid "https://github.com/naxvog/wpr-redis/" -msgstr "https://github.com/naxvog/wpr-redis/" +#: views/admin-settings.php:39 +msgid "Connected" +msgstr "Verbunden" -#: views/admin-settings.php:20 -msgid "Integrate WPR Redis Caching" -msgstr "WPR Redis Caching integrieren" +#: views/admin-settings.php:43 +msgid "Disconnected" +msgstr "Getrennt" -#: views/admin-settings.php:45 +#: views/admin-settings.php:53 msgid "Integrated" msgstr "Eingebunden" -#. Author of the plugin -msgid "naxvog " -msgstr "naxvog " - -#: includes/class-config.php:246 -msgid "Password" -msgstr "Passwort" - -#: views/admin-settings.php:49 +#: views/admin-settings.php:57 msgid "Pending Integration" msgstr "Nicht Eingebunden" -#: includes/class-config.php:238 -msgid "Port" -msgstr "Port" +#: includes/class-update-checker.php:44 +msgid "Check for updates" +msgstr "Auf Updates prüfen" -#: views/admin-settings.php:27 -msgid "Redis Connection Status:" -msgstr "Redis Verbindungsstatus:" - -#: views/admin-settings.php:16 -msgid "Remove WPR Redis Caching Integration" -msgstr "WPR Redis Cache Integration entfernen" - -#: includes/class-config.php:230 -msgid "Scheme" -msgstr "Schema" +#: includes/class-wpr-redis.php:187 +msgid "WP Rocket Redis:" +msgstr "WP Rocket Redis:" -#: includes/class-config.php:55 +#: includes/class-config.php:66 msgid "Settings" msgstr "Einstellungen" -#: includes/class-config.php:138 +#: includes/class-config.php:147 msgid "Setup your Redis connection" msgstr "Konfigurieren Sie Ihre Redis Verbindung" -#: views/admin-settings.php:24 -msgid "Status" -msgstr "Status" +#: includes/class-config.php:237 +msgid "Scheme" +msgstr "Schema" + +#: includes/class-config.php:241 +msgid "Host" +msgstr "Host" + +#: includes/class-config.php:245 +msgid "Port" +msgstr "Port" + +#: includes/class-config.php:249 +msgid "Database" +msgstr "Datenbank" + +#: includes/class-config.php:253 +msgid "Password" +msgstr "Passwort" #. Name of the plugin msgid "WP Rocket Redis" msgstr "WP Rocket Redis" -#: includes/class-config.php:68 -msgid "WP Rocket Redis Settings" -msgstr "WP Rocket Redis Einstellungen" +#. Description of the plugin +msgid "Addon to WP Rocket that allows storage of cache files in Redis." +msgstr "" +"Erweiterung für WP Rocket die es erlaubt Redis als Speicherort für Cache-" +"Dateien zu verwenden." -#: includes/class-wpr-redis.php:141 -msgid "WP Rocket Redis:" -msgstr "WP Rocket Redis:" +#. URI of the plugin +msgid "https://github.com/naxvog/wpr-redis/" +msgstr "https://github.com/naxvog/wpr-redis/" + +#. Author of the plugin +msgid "naxvog " +msgstr "naxvog " + +#. Author URI of the plugin +msgid "https://github.com/naxvog/" +msgstr "https://github.com/naxvog/" diff --git a/languages/wpr-redis-de_CH_informal.mo b/languages/wpr-redis-de_CH_informal.mo index 06a5aa2..529aabf 100644 Binary files a/languages/wpr-redis-de_CH_informal.mo and b/languages/wpr-redis-de_CH_informal.mo differ diff --git a/languages/wpr-redis-de_CH_informal.po b/languages/wpr-redis-de_CH_informal.po index 7253181..d4ad156 100644 --- a/languages/wpr-redis-de_CH_informal.po +++ b/languages/wpr-redis-de_CH_informal.po @@ -2,10 +2,10 @@ msgid "" msgstr "" "Project-Id-Version: WP Rocket Redis\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-12 17:26+0000\n" -"PO-Revision-Date: 2019-08-12 18:06+0000\n" -"Last-Translator: admin \n" -"Language-Team: \n" +"POT-Creation-Date: 2019-08-12 22:01+0000\n" +"PO-Revision-Date: 2019-08-12 22:03+0000\n" +"Last-Translator: naxvog \n" +"Language-Team: Deutsch (Schweiz, Du)\n" "Language: de_CH_informal\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "MIME-Version: 1.0\n" @@ -15,92 +15,96 @@ msgstr "" "X-Loco-Version: 2.3.0; wp-5.2.2\n" "X-Loco-Template: languages/wpr-redis-de_DE.po" -#. Description of the plugin -msgid "Addon to WP Rocket that allows storage of cache files in Redis." -msgstr "" -"Erweiterung für WP Rocket die es erlaubt Redis als Speicherort für Cache-" -"Dateien zu verwenden." - -#: views/admin-settings.php:31 -msgid "Connected" -msgstr "Verbunden" +#: views/admin-settings.php:19 includes/class-config.php:79 +msgid "WP Rocket Redis Settings" +msgstr "WP Rocket Redis Einstellungen" -#: includes/class-config.php:242 -msgid "Database" -msgstr "Datenbank" +#: views/admin-settings.php:23 +msgid "Remove WPR Redis Caching Integration" +msgstr "WPR Redis Cache Integration entfernen" -#: views/admin-settings.php:35 -msgid "Disconnected" -msgstr "Getrennt" +#: views/admin-settings.php:28 +msgid "Integrate WPR Redis Caching" +msgstr "WPR Redis Caching integrieren" -#: includes/class-config.php:234 -msgid "Host" -msgstr "Host" +#: views/admin-settings.php:32 +msgid "Status" +msgstr "Status" -#. Author URI of the plugin -msgid "https://github.com/naxvog/" -msgstr "https://github.com/naxvog/" +#: views/admin-settings.php:35 +msgid "Redis Connection Status:" +msgstr "Redis Verbindungsstatus:" -#. URI of the plugin -msgid "https://github.com/naxvog/wpr-redis/" -msgstr "https://github.com/naxvog/wpr-redis/" +#: views/admin-settings.php:39 +msgid "Connected" +msgstr "Verbunden" -#: views/admin-settings.php:20 -msgid "Integrate WPR Redis Caching" -msgstr "WPR Redis Caching integrieren" +#: views/admin-settings.php:43 +msgid "Disconnected" +msgstr "Getrennt" -#: views/admin-settings.php:45 +#: views/admin-settings.php:53 msgid "Integrated" msgstr "Eingebunden" -#. Author of the plugin -msgid "naxvog " -msgstr "naxvog " - -#: includes/class-config.php:246 -msgid "Password" -msgstr "Passwort" - -#: views/admin-settings.php:49 +#: views/admin-settings.php:57 msgid "Pending Integration" msgstr "Nicht Eingebunden" -#: includes/class-config.php:238 -msgid "Port" -msgstr "Port" +#: includes/class-update-checker.php:44 +msgid "Check for updates" +msgstr "Auf Updates prüfen" -#: views/admin-settings.php:27 -msgid "Redis Connection Status:" -msgstr "Redis Verbindungsstatus:" - -#: views/admin-settings.php:16 -msgid "Remove WPR Redis Caching Integration" -msgstr "WPR Redis Cache Integration entfernen" - -#: includes/class-config.php:230 -msgid "Scheme" -msgstr "Schema" +#: includes/class-wpr-redis.php:187 +msgid "WP Rocket Redis:" +msgstr "WP Rocket Redis:" -#: includes/class-config.php:55 +#: includes/class-config.php:66 msgid "Settings" msgstr "Einstellungen" -#: includes/class-config.php:138 +#: includes/class-config.php:147 msgid "Setup your Redis connection" msgstr "Konfiguriere deine Redis Verbindung" -#: views/admin-settings.php:24 -msgid "Status" -msgstr "Status" +#: includes/class-config.php:237 +msgid "Scheme" +msgstr "Schema" + +#: includes/class-config.php:241 +msgid "Host" +msgstr "Host" + +#: includes/class-config.php:245 +msgid "Port" +msgstr "Port" + +#: includes/class-config.php:249 +msgid "Database" +msgstr "Datenbank" + +#: includes/class-config.php:253 +msgid "Password" +msgstr "Passwort" #. Name of the plugin msgid "WP Rocket Redis" msgstr "WP Rocket Redis" -#: includes/class-config.php:68 -msgid "WP Rocket Redis Settings" -msgstr "WP Rocket Redis Einstellungen" +#. Description of the plugin +msgid "Addon to WP Rocket that allows storage of cache files in Redis." +msgstr "" +"Erweiterung für WP Rocket die es erlaubt Redis als Speicherort für Cache-" +"Dateien zu verwenden." -#: includes/class-wpr-redis.php:141 -msgid "WP Rocket Redis:" -msgstr "WP Rocket Redis:" +#. URI of the plugin +msgid "https://github.com/naxvog/wpr-redis/" +msgstr "https://github.com/naxvog/wpr-redis/" + +#. Author of the plugin +msgid "naxvog " +msgstr "naxvog " + +#. Author URI of the plugin +msgid "https://github.com/naxvog/" +msgstr "https://github.com/naxvog/" diff --git a/languages/wpr-redis-de_DE.mo b/languages/wpr-redis-de_DE.mo index baa4409..8fe44e5 100644 Binary files a/languages/wpr-redis-de_DE.mo and b/languages/wpr-redis-de_DE.mo differ diff --git a/languages/wpr-redis-de_DE.po b/languages/wpr-redis-de_DE.po index 884d89e..8b8e574 100644 --- a/languages/wpr-redis-de_DE.po +++ b/languages/wpr-redis-de_DE.po @@ -2,9 +2,9 @@ msgid "" msgstr "" "Project-Id-Version: WP Rocket Redis\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-12 17:26+0000\n" -"PO-Revision-Date: 2019-08-12 17:45+0000\n" -"Last-Translator: admin \n" +"POT-Creation-Date: 2019-08-12 22:01+0000\n" +"PO-Revision-Date: 2019-08-12 22:02+0000\n" +"Last-Translator: naxvog \n" "Language-Team: Deutsch\n" "Language: de_DE\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" @@ -14,92 +14,96 @@ msgstr "" "X-Generator: Loco https://localise.biz/\n" "X-Loco-Version: 2.3.0; wp-5.2.2" -#. Description of the plugin -msgid "Addon to WP Rocket that allows storage of cache files in Redis." -msgstr "" -"Erweiterung für WP Rocket die es erlaubt Redis als Speicherort für Cache-" -"Dateien zu verwenden." - -#: views/admin-settings.php:31 -msgid "Connected" -msgstr "Verbunden" +#: views/admin-settings.php:19 includes/class-config.php:79 +msgid "WP Rocket Redis Settings" +msgstr "WP Rocket Redis Einstellungen" -#: includes/class-config.php:242 -msgid "Database" -msgstr "Datenbank" +#: views/admin-settings.php:23 +msgid "Remove WPR Redis Caching Integration" +msgstr "WPR Redis Cache Integration entfernen" -#: views/admin-settings.php:35 -msgid "Disconnected" -msgstr "Getrennt" +#: views/admin-settings.php:28 +msgid "Integrate WPR Redis Caching" +msgstr "WPR Redis Caching integrieren" -#: includes/class-config.php:234 -msgid "Host" -msgstr "Host" +#: views/admin-settings.php:32 +msgid "Status" +msgstr "Status" -#. Author URI of the plugin -msgid "https://github.com/naxvog/" -msgstr "https://github.com/naxvog/" +#: views/admin-settings.php:35 +msgid "Redis Connection Status:" +msgstr "Redis Verbindungsstatus:" -#. URI of the plugin -msgid "https://github.com/naxvog/wpr-redis/" -msgstr "https://github.com/naxvog/wpr-redis/" +#: views/admin-settings.php:39 +msgid "Connected" +msgstr "Verbunden" -#: views/admin-settings.php:20 -msgid "Integrate WPR Redis Caching" -msgstr "WPR Redis Caching integrieren" +#: views/admin-settings.php:43 +msgid "Disconnected" +msgstr "Getrennt" -#: views/admin-settings.php:45 +#: views/admin-settings.php:53 msgid "Integrated" msgstr "Eingebunden" -#. Author of the plugin -msgid "naxvog " -msgstr "naxvog " - -#: includes/class-config.php:246 -msgid "Password" -msgstr "Passwort" - -#: views/admin-settings.php:49 +#: views/admin-settings.php:57 msgid "Pending Integration" msgstr "Nicht Eingebunden" -#: includes/class-config.php:238 -msgid "Port" -msgstr "Port" +#: includes/class-update-checker.php:44 +msgid "Check for updates" +msgstr "Auf Updates prüfen" -#: views/admin-settings.php:27 -msgid "Redis Connection Status:" -msgstr "Redis Verbindungsstatus:" - -#: views/admin-settings.php:16 -msgid "Remove WPR Redis Caching Integration" -msgstr "WPR Redis Cache Integration entfernen" - -#: includes/class-config.php:230 -msgid "Scheme" -msgstr "Schema" +#: includes/class-wpr-redis.php:187 +msgid "WP Rocket Redis:" +msgstr "WP Rocket Redis:" -#: includes/class-config.php:55 +#: includes/class-config.php:66 msgid "Settings" msgstr "Einstellungen" -#: includes/class-config.php:138 +#: includes/class-config.php:147 msgid "Setup your Redis connection" msgstr "Konfiguriere deine Redis Verbindung" -#: views/admin-settings.php:24 -msgid "Status" -msgstr "Status" +#: includes/class-config.php:237 +msgid "Scheme" +msgstr "Schema" + +#: includes/class-config.php:241 +msgid "Host" +msgstr "Host" + +#: includes/class-config.php:245 +msgid "Port" +msgstr "Port" + +#: includes/class-config.php:249 +msgid "Database" +msgstr "Datenbank" + +#: includes/class-config.php:253 +msgid "Password" +msgstr "Passwort" #. Name of the plugin msgid "WP Rocket Redis" msgstr "WP Rocket Redis" -#: includes/class-config.php:68 -msgid "WP Rocket Redis Settings" -msgstr "WP Rocket Redis Einstellungen" +#. Description of the plugin +msgid "Addon to WP Rocket that allows storage of cache files in Redis." +msgstr "" +"Erweiterung für WP Rocket die es erlaubt Redis als Speicherort für Cache-" +"Dateien zu verwenden." -#: includes/class-wpr-redis.php:141 -msgid "WP Rocket Redis:" -msgstr "WP Rocket Redis:" +#. URI of the plugin +msgid "https://github.com/naxvog/wpr-redis/" +msgstr "https://github.com/naxvog/wpr-redis/" + +#. Author of the plugin +msgid "naxvog " +msgstr "naxvog " + +#. Author URI of the plugin +msgid "https://github.com/naxvog/" +msgstr "https://github.com/naxvog/" diff --git a/languages/wpr-redis-de_DE_formal.mo b/languages/wpr-redis-de_DE_formal.mo index c647ff4..7b99b55 100644 Binary files a/languages/wpr-redis-de_DE_formal.mo and b/languages/wpr-redis-de_DE_formal.mo differ diff --git a/languages/wpr-redis-de_DE_formal.po b/languages/wpr-redis-de_DE_formal.po index 59dbc1b..deeb567 100644 --- a/languages/wpr-redis-de_DE_formal.po +++ b/languages/wpr-redis-de_DE_formal.po @@ -2,9 +2,9 @@ msgid "" msgstr "" "Project-Id-Version: WP Rocket Redis\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-12 17:26+0000\n" -"PO-Revision-Date: 2019-08-12 17:46+0000\n" -"Last-Translator: admin \n" +"POT-Creation-Date: 2019-08-12 22:01+0000\n" +"PO-Revision-Date: 2019-08-12 22:03+0000\n" +"Last-Translator: naxvog \n" "Language-Team: Deutsch (Sie)\n" "Language: de_DE_formal\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" @@ -15,92 +15,96 @@ msgstr "" "X-Loco-Version: 2.3.0; wp-5.2.2\n" "X-Loco-Template: languages/wpr-redis-de_DE.po" -#. Description of the plugin -msgid "Addon to WP Rocket that allows storage of cache files in Redis." -msgstr "" -"Erweiterung für WP Rocket die es erlaubt Redis als Speicherort für Cache-" -"Dateien zu verwenden." - -#: views/admin-settings.php:31 -msgid "Connected" -msgstr "Verbunden" +#: views/admin-settings.php:19 includes/class-config.php:79 +msgid "WP Rocket Redis Settings" +msgstr "WP Rocket Redis Einstellungen" -#: includes/class-config.php:242 -msgid "Database" -msgstr "Datenbank" +#: views/admin-settings.php:23 +msgid "Remove WPR Redis Caching Integration" +msgstr "WPR Redis Cache Integration entfernen" -#: views/admin-settings.php:35 -msgid "Disconnected" -msgstr "Getrennt" +#: views/admin-settings.php:28 +msgid "Integrate WPR Redis Caching" +msgstr "WPR Redis Caching integrieren" -#: includes/class-config.php:234 -msgid "Host" -msgstr "Host" +#: views/admin-settings.php:32 +msgid "Status" +msgstr "Status" -#. Author URI of the plugin -msgid "https://github.com/naxvog/" -msgstr "https://github.com/naxvog/" +#: views/admin-settings.php:35 +msgid "Redis Connection Status:" +msgstr "Redis Verbindungsstatus:" -#. URI of the plugin -msgid "https://github.com/naxvog/wpr-redis/" -msgstr "https://github.com/naxvog/wpr-redis/" +#: views/admin-settings.php:39 +msgid "Connected" +msgstr "Verbunden" -#: views/admin-settings.php:20 -msgid "Integrate WPR Redis Caching" -msgstr "WPR Redis Caching integrieren" +#: views/admin-settings.php:43 +msgid "Disconnected" +msgstr "Getrennt" -#: views/admin-settings.php:45 +#: views/admin-settings.php:53 msgid "Integrated" msgstr "Eingebunden" -#. Author of the plugin -msgid "naxvog " -msgstr "naxvog " - -#: includes/class-config.php:246 -msgid "Password" -msgstr "Passwort" - -#: views/admin-settings.php:49 +#: views/admin-settings.php:57 msgid "Pending Integration" msgstr "Nicht Eingebunden" -#: includes/class-config.php:238 -msgid "Port" -msgstr "Port" +#: includes/class-update-checker.php:44 +msgid "Check for updates" +msgstr "Auf Updates prüfen" -#: views/admin-settings.php:27 -msgid "Redis Connection Status:" -msgstr "Redis Verbindungsstatus:" - -#: views/admin-settings.php:16 -msgid "Remove WPR Redis Caching Integration" -msgstr "WPR Redis Cache Integration entfernen" - -#: includes/class-config.php:230 -msgid "Scheme" -msgstr "Schema" +#: includes/class-wpr-redis.php:187 +msgid "WP Rocket Redis:" +msgstr "WP Rocket Redis:" -#: includes/class-config.php:55 +#: includes/class-config.php:66 msgid "Settings" msgstr "Einstellungen" -#: includes/class-config.php:138 +#: includes/class-config.php:147 msgid "Setup your Redis connection" msgstr "Konfigurieren Sie Ihre Redis Verbindung" -#: views/admin-settings.php:24 -msgid "Status" -msgstr "Status" +#: includes/class-config.php:237 +msgid "Scheme" +msgstr "Schema" + +#: includes/class-config.php:241 +msgid "Host" +msgstr "Host" + +#: includes/class-config.php:245 +msgid "Port" +msgstr "Port" + +#: includes/class-config.php:249 +msgid "Database" +msgstr "Datenbank" + +#: includes/class-config.php:253 +msgid "Password" +msgstr "Passwort" #. Name of the plugin msgid "WP Rocket Redis" msgstr "WP Rocket Redis" -#: includes/class-config.php:68 -msgid "WP Rocket Redis Settings" -msgstr "WP Rocket Redis Einstellungen" +#. Description of the plugin +msgid "Addon to WP Rocket that allows storage of cache files in Redis." +msgstr "" +"Erweiterung für WP Rocket die es erlaubt Redis als Speicherort für Cache-" +"Dateien zu verwenden." -#: includes/class-wpr-redis.php:141 -msgid "WP Rocket Redis:" -msgstr "WP Rocket Redis:" +#. URI of the plugin +msgid "https://github.com/naxvog/wpr-redis/" +msgstr "https://github.com/naxvog/wpr-redis/" + +#. Author of the plugin +msgid "naxvog " +msgstr "naxvog " + +#. Author URI of the plugin +msgid "https://github.com/naxvog/" +msgstr "https://github.com/naxvog/" diff --git a/languages/wpr-redis.pot b/languages/wpr-redis.pot index fe25089..09590e1 100644 --- a/languages/wpr-redis.pot +++ b/languages/wpr-redis.pot @@ -3,9 +3,9 @@ msgid "" msgstr "" "Project-Id-Version: WP Rocket Redis\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-12 17:26+0000\n" +"POT-Creation-Date: 2019-08-12 22:01+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" +"Last-Translator: naxvog \n" "Language-Team: \n" "Language: \n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" @@ -15,90 +15,94 @@ msgstr "" "X-Generator: Loco https://localise.biz/\n" "X-Loco-Version: 2.3.0; wp-5.2.2" -#. Description of the plugin -msgid "Addon to WP Rocket that allows storage of cache files in Redis." -msgstr "" - -#: views/admin-settings.php:31 -msgid "Connected" +#: views/admin-settings.php:19 includes/class-config.php:79 +msgid "WP Rocket Redis Settings" msgstr "" -#: includes/class-config.php:242 -msgid "Database" +#: views/admin-settings.php:23 +msgid "Remove WPR Redis Caching Integration" msgstr "" -#: views/admin-settings.php:35 -msgid "Disconnected" +#: views/admin-settings.php:28 +msgid "Integrate WPR Redis Caching" msgstr "" -#: includes/class-config.php:234 -msgid "Host" +#: views/admin-settings.php:32 +msgid "Status" msgstr "" -#. Author URI of the plugin -msgid "https://github.com/naxvog/" +#: views/admin-settings.php:35 +msgid "Redis Connection Status:" msgstr "" -#. URI of the plugin -msgid "https://github.com/naxvog/wpr-redis/" +#: views/admin-settings.php:39 +msgid "Connected" msgstr "" -#: views/admin-settings.php:20 -msgid "Integrate WPR Redis Caching" +#: views/admin-settings.php:43 +msgid "Disconnected" msgstr "" -#: views/admin-settings.php:45 +#: views/admin-settings.php:53 msgid "Integrated" msgstr "" -#. Author of the plugin -msgid "naxvog " +#: views/admin-settings.php:57 +msgid "Pending Integration" msgstr "" -#: includes/class-config.php:246 -msgid "Password" +#: includes/class-update-checker.php:44 +msgid "Check for updates" msgstr "" -#: views/admin-settings.php:49 -msgid "Pending Integration" +#: includes/class-wpr-redis.php:187 +msgid "WP Rocket Redis:" msgstr "" -#: includes/class-config.php:238 -msgid "Port" +#: includes/class-config.php:66 +msgid "Settings" msgstr "" -#: views/admin-settings.php:27 -msgid "Redis Connection Status:" +#: includes/class-config.php:147 +msgid "Setup your Redis connection" msgstr "" -#: views/admin-settings.php:16 -msgid "Remove WPR Redis Caching Integration" +#: includes/class-config.php:237 +msgid "Scheme" msgstr "" -#: includes/class-config.php:230 -msgid "Scheme" +#: includes/class-config.php:241 +msgid "Host" msgstr "" -#: includes/class-config.php:55 -msgid "Settings" +#: includes/class-config.php:245 +msgid "Port" msgstr "" -#: includes/class-config.php:138 -msgid "Setup your Redis connection" +#: includes/class-config.php:249 +msgid "Database" msgstr "" -#: views/admin-settings.php:24 -msgid "Status" +#: includes/class-config.php:253 +msgid "Password" msgstr "" #. Name of the plugin msgid "WP Rocket Redis" msgstr "" -#: includes/class-config.php:68 -msgid "WP Rocket Redis Settings" +#. Description of the plugin +msgid "Addon to WP Rocket that allows storage of cache files in Redis." msgstr "" -#: includes/class-wpr-redis.php:141 -msgid "WP Rocket Redis:" +#. URI of the plugin +msgid "https://github.com/naxvog/wpr-redis/" +msgstr "" + +#. Author of the plugin +msgid "naxvog " +msgstr "" + +#. Author URI of the plugin +msgid "https://github.com/naxvog/" msgstr "" diff --git a/views/admin-settings.php b/views/admin-settings.php index 1a92edb..a23172d 100644 --- a/views/admin-settings.php +++ b/views/admin-settings.php @@ -1,4 +1,8 @@ + * @version 1.0.1 + */ namespace WPR_Redis; diff --git a/wpr-redis.php b/wpr-redis.php index b802773..9d113ba 100644 --- a/wpr-redis.php +++ b/wpr-redis.php @@ -35,8 +35,8 @@ $loader->add_namespace( 'WP_Rocket', WPR_REDIS_OVERRIDE_PATH . '/wp-rocket' ); function wpr_redis() { - static $instance = null; - if ( null === $instance ) { + static $instance; + if ( ! isset( $instance ) ) { $instance = new WPR_Redis\WPR_Redis(); } return $instance;