From dd5c96495c94d18257fab198c27317ef0ef7789e Mon Sep 17 00:00:00 2001 From: Robbert Date: Sat, 10 Mar 2018 00:56:35 +0100 Subject: [PATCH] NL Language updates (#1351) * add nl changes - part 1 * finish nl translation fixes * add missing translations * roundup * rm extra stuff * Removed`ADDMORE_PLUGINS` * rm meer plugins as requested rm 'installeer meer plugins' as requested * rm empty line? * revert to old NL version --- classes/admincontroller.php | 4 ++-- languages/en.yaml | 7 ++++--- languages/nl.yaml | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/classes/admincontroller.php b/classes/admincontroller.php index c03a92d5..9a5ed2b8 100644 --- a/classes/admincontroller.php +++ b/classes/admincontroller.php @@ -1005,13 +1005,13 @@ class AdminController extends AdminBaseController if ($result) { $this->admin->json_response = [ 'status' => 'success', - 'message' => $this->admin->translate(is_string($result) ? $result : sprintf($this->admin->translate($reinstall ? 'PLUGIN_ADMIN.PACKAGE_X_REINSTALLED_SUCCESSFULLY' : 'PLUGIN_ADMIN.PACKAGE_X_INSTALLED_SUCCESSFULLY', + 'message' => $this->admin->translate(is_string($result) ? $result : sprintf($this->admin->translate($reinstall ?: 'PLUGIN_ADMIN.PACKAGE_X_REINSTALLED_SUCCESSFULLY', null), $package)) ]; } else { $this->admin->json_response = [ 'status' => 'error', - 'message' => $this->admin->translate($reinstall ? 'PLUGIN_ADMIN.REINSTALLATION_FAILED' : 'PLUGIN_ADMIN.INSTALLATION_FAILED') + 'message' => $this->admin->translate($reinstall ?: 'PLUGIN_ADMIN.INSTALLATION_FAILED') ]; } diff --git a/languages/en.yaml b/languages/en.yaml index a5d5878c..c43f6a18 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -687,16 +687,16 @@ PLUGIN_ADMIN: ENABLE_AUTO_METADATA_HELP: "Automatically generate metadata files for images with exif information" 2FA_TITLE: "2-Factor Authentication" 2FA_INSTRUCTIONS: "##### 2-Factor Authentication\nYou have **2FA** enabled on this account. Please use your **2FA** app to enter the current **6-digit code** to complete the login process." - 2FA_REGEN_HINT: "regenerating the secret this will require you to update your authenticator app" + 2FA_REGEN_HINT: "Regenerating the secret will require you to update your authenticator app" 2FA_LABEL: "Admin Access" 2FA_FAILED: "Invalid 2-Factor Authentication code, please try again..." 2FA_ENABLED: "2FA Enabled" 2FA_CODE_INPUT: "000000" 2FA_SECRET: "2FA Secret" - 2FA_SECRET_HELP: "Scan this QR code into your [Authenticator App](https://learn.getgrav.org/admin-panel/2fa#apps). Also it's a good idea to backup the secret in a safe location, in case you need to reinstall your app. Check the [Grav docs](https://learn.getgrav.org/admin-panel/2fa) for more information " + 2FA_SECRET_HELP: "Scan this QR code into your [Authenticator App](https://learn.getgrav.org/admin-panel/2fa#apps). Also it's a good idea to backup the secret in a safe location, in case you need to reinstall your app. Check the [Grav docs](https://learn.getgrav.org/admin-panel/2fa) for more information " 2FA_REGENERATE: "Regenerate" FORCE_LOWERCASE_URLS: "Force lowercase URLs" - FORCE_LOWERCASE_URLS_HELP: "By default grav will set all slugs and routes to be lowercase. With this set to false, Uppercase slugs and routes can be used" + FORCE_LOWERCASE_URLS_HELP: "By default Grav will set all slugs and routes to be lowercase. With this set to false, Uppercase slugs and routes can be used" INTL_ENABLED: "Intl module integration" INTL_ENABLED_HELP: "Use Intl PHP module and collate to sort UTF8 based collections" VIEW_SITE_TIP: "View site" @@ -710,3 +710,4 @@ PLUGIN_ADMIN: ROUTE_DEFAULT: "Default Route" ROUTE_CANONICAL: "Canonical Route" ROUTE_ALIASES: "Route Aliases" + diff --git a/languages/nl.yaml b/languages/nl.yaml index de10cf69..086721d4 100644 --- a/languages/nl.yaml +++ b/languages/nl.yaml @@ -674,3 +674,4 @@ PLUGIN_ADMIN: USERNAME_REGEX_HELP: 'Standaard: alleen kleine letters tekens, cijfers, streepjes en onderstrepingstekens. 3 - 16 tekens' CONTENT_PADDING: "Opvulling van inhoud" CONTENT_PADDING_HELP: "Uit- of aanzetten van content padding rond de content om meer ruimte te creƫren" +