Skip to content

Checkout Validation Message is not fully translatable: "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." #6347

@bka

Description

@bka

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

  1. 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

  1. 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

  1. 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)

auswahl_007

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."}%

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions