-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Description
Validation text "Provided Zip/Postal Code seems to be invalid. Example: 12345-6789; 12345. If you believe it is the right one you can ignore this notice." in checkout is not fully translatable.
Preconditions
- Tested with Magento 2.1
Steps to reproduce
1. Install or create a language pack.
2. To reproduce this a minimal language pack is sufficient
app/i18n/xxx/de_DE/registration.php
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::LANGUAGE,
'xxx_de_de',
__DIR__
);
app/i18n/xxx/de_DE/language.xml
<?xml version="1.0"?>
<language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd">
<code>de_DE</code>
<vendor>xxx</vendor>
<package>de_de</package>
</language>
app/i18n/xxx/de_DE/de_DE.csv
Provided Zip/Postal Code seems to be invalid.,"Angegebene Postleitzahl scheint ungültig zu sein."
"Example:","Beispiel:"
If you believe it is the right one you can ignore this notice.,"Wenn sie richtig eingegeben wurde, können Sie diese Warnung ignorieren."
To activate:
bin/magento setup:static-content:deploy de_DE
php bin/magento setup:upgrade
3. Change your Locale under Stores -> Configuration -> General -> Locale Options
to e.g. Germany
4. Clear your cache
rm -rf Source/var/generation/*
rm -rf Source/var/di/*
rm -rf Source/var/cache/*
rm -rf Source/var/view_preprocessed/*
rm -rf Source/pub/static/_requirejs
rm -rf Source/pub/static/adminhtml
rm -rf Source/pub/static/frontend
5. go to checkout
6. type something into Zip/Postal Code
Expected result
- Displayed message is: "Angegebene Postleitzahl scheint ungültig zu sein. Beispiel:12345. Wenn sie richtig eingegeben wurde, können Sie diese Warnung ignorieren."
Actual result
- Displayed message is: "Angegebene Postleitzahl scheint ungültig zu sein. Example: 12345. Wenn sie richtig eingegeben wurde, können Sie diese Warnung ignorieren."
(Note: Example is not beeing translated)
Additional information
Translation for "Example:" is missing in js file:
$ cat pub/static/frontend/Magento/luma/de_DE/js-translation.json
{"Provided Zip\/Postal Code seems to be invalid.":"Angegebene Postleitzahl scheint ung\u00fcltig zu sein.","If you believe it is the right one you can ignore this notice.":"Wenn sie richtig eingegeben wurde, k\u00f6nnen Sie diese Warnung ignorieren."}%