Can't translate text in cookie popup in magento 2where can i translate this?Magento 2.1 Translate text to given localeHow to translate text without auto translate magentoHow to translate URL in magento 2?Can't translate mini cart magento 2Magento 2 translate the .pdf invoiceTranslate text from blocks in admin panelM2 - Translate password requirements alertUnable to translate message in magento 2
Why does Windows store Wi-Fi passwords in a reversible format?
Redacting URLs as an email-phishing preventative?
Biological refrigeration?
can you help me identify this aircraft?
How to prevent a hosting company from accessing a VM's encryption keys?
Notice period 60 days but I need to join in 45 days
50-move rule: only the last 50 or any consecutive 50?
Is there a word or phrase that means "use other people's wifi or Internet service without consent"?
How many birds in the bush?
LINQ for generating all possible permutations
How to actually concatenate two Strings?
What's special ammo in Destiny 2?
Why is sh (not bash) complaining about functions defined in my .bashrc?
What are the IPSE’s, the ASPE’s, the FRIPSE’s and the GRIPSE’s?
How do you capitalize agile costs with less mature teams?
What is the name of this plot that has rows with two connected dots?
Which old Technic set included large yellow motor?
Can I renew my USA passport book and passport card separately?
Why does matter stays collapsed following the supernova explosion?
Do you pay one or two mana to bounce a transformed Delver of Secrets with Repeal?
Expressing an implication as ILP where each implication term comprises a chain of boolean ORs
How is linear momentum conserved in case of a freely falling body?
Reusing studs to hang shoe bins
Why is a statement like 1 + n *= 3 allowed in Ruby?
Can't translate text in cookie popup in magento 2
where can i translate this?Magento 2.1 Translate text to given localeHow to translate text without auto translate magentoHow to translate URL in magento 2?Can't translate mini cart magento 2Magento 2 translate the .pdf invoiceTranslate text from blocks in admin panelM2 - Translate password requirements alertUnable to translate message in magento 2
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Can't translate text in cookie popup in magento 2
I tryed add this text to de_DE.csv, but it not translate
"We use cookies to make your experience better.","Wir verwenden Cookies, um Ihre Erfahrungen besser machen.",module,Magento_Cookie
"We use cookies to make your experience better.","Wir verwenden Cookies, um Ihnen ein besseres Erlebnis zu ermöglichen."
"To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies.","Um der neuen e-Privacy-Richtlinie zu entsprechen, müssen wir um Ihre Zustimmung bitten, die Cookies zu setzen.",module,Magento_Cookie
"<a href=""%1"">Learn more</a>.","<a href=""%1""> Erfahren Sie mehr</a>.",module,Magento_Cookie
"Allow Cookies","Cookies setzen erlauben",module,Magento_Cookie
My cookie
UPDATE
I tryed create a file notices.phtml in custom theme but it not apply in popup
<?php if ($this->helper(MagentoCookieHelperCookie::class)->isCookieRestrictionModeEnabled()): ?>
<div role="alertdialog"
tabindex="-1"
class="message global cookie"
id="notice-cookie-block"
style="display: none;">
<div role="document" class="content" tabindex="0">
<p>
<strong><?= $block->escapeHtml(__('We use cookies to make your experience better...')) ?></strong>
<span><?= $block->escapeHtml(__('To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies.')) ?></span>
<?= $block->escapeHtml(__('<a href="%1">Learn more</a>.', $block->getPrivacyPolicyLink()), ['a']) ?>
</p>
<div class="actions">
<button id="btn-cookie-allow" class="action allow primary">
<span><?= $block->escapeHtml(__('Allow Cookies')) ?></span>
</button>
</div>
</div>
</div>
<script type="text/x-magento-init">
"#notice-cookie-block":
"cookieNotices":
"cookieAllowButtonSelector": "#btn-cookie-allow",
"cookieName": "<?= /* @noEscape */ MagentoCookieHelperCookie::IS_USER_ALLOWED_SAVE_COOKIE ?>",
"cookieValue": <?= /* @noEscape */ $this->helper(MagentoCookieHelperCookie::class)->getAcceptedSaveCookiesWebsiteIds() ?>,
"cookieLifetime": <?= /* @noEscape */ $this->helper(MagentoCookieHelperCookie::class)->getCookieRestrictionLifetime() ?>,
"noCookiesUrl": "<?= $block->escapeJs($block->escapeUrl($block->getUrl('cookie/index/noCookies'))) ?>"
</script>
<?php endif; ?>
magento2 translate
add a comment |
Can't translate text in cookie popup in magento 2
I tryed add this text to de_DE.csv, but it not translate
"We use cookies to make your experience better.","Wir verwenden Cookies, um Ihre Erfahrungen besser machen.",module,Magento_Cookie
"We use cookies to make your experience better.","Wir verwenden Cookies, um Ihnen ein besseres Erlebnis zu ermöglichen."
"To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies.","Um der neuen e-Privacy-Richtlinie zu entsprechen, müssen wir um Ihre Zustimmung bitten, die Cookies zu setzen.",module,Magento_Cookie
"<a href=""%1"">Learn more</a>.","<a href=""%1""> Erfahren Sie mehr</a>.",module,Magento_Cookie
"Allow Cookies","Cookies setzen erlauben",module,Magento_Cookie
My cookie
UPDATE
I tryed create a file notices.phtml in custom theme but it not apply in popup
<?php if ($this->helper(MagentoCookieHelperCookie::class)->isCookieRestrictionModeEnabled()): ?>
<div role="alertdialog"
tabindex="-1"
class="message global cookie"
id="notice-cookie-block"
style="display: none;">
<div role="document" class="content" tabindex="0">
<p>
<strong><?= $block->escapeHtml(__('We use cookies to make your experience better...')) ?></strong>
<span><?= $block->escapeHtml(__('To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies.')) ?></span>
<?= $block->escapeHtml(__('<a href="%1">Learn more</a>.', $block->getPrivacyPolicyLink()), ['a']) ?>
</p>
<div class="actions">
<button id="btn-cookie-allow" class="action allow primary">
<span><?= $block->escapeHtml(__('Allow Cookies')) ?></span>
</button>
</div>
</div>
</div>
<script type="text/x-magento-init">
"#notice-cookie-block":
"cookieNotices":
"cookieAllowButtonSelector": "#btn-cookie-allow",
"cookieName": "<?= /* @noEscape */ MagentoCookieHelperCookie::IS_USER_ALLOWED_SAVE_COOKIE ?>",
"cookieValue": <?= /* @noEscape */ $this->helper(MagentoCookieHelperCookie::class)->getAcceptedSaveCookiesWebsiteIds() ?>,
"cookieLifetime": <?= /* @noEscape */ $this->helper(MagentoCookieHelperCookie::class)->getCookieRestrictionLifetime() ?>,
"noCookiesUrl": "<?= $block->escapeJs($block->escapeUrl($block->getUrl('cookie/index/noCookies'))) ?>"
</script>
<?php endif; ?>
magento2 translate
show us the code where oyu are rendering the text. i assume you are just printing the text and not using one of magentos translation functionalities
– Philipp Sander
Aug 14 at 13:53
it is core in magento 2, i not custom it
– TN98
Aug 14 at 13:54
have you cleaned your translation cache?
– Philipp Sander
Aug 14 at 13:59
yes, i clean cache, flush, deploy
– TN98
Aug 14 at 14:00
add a comment |
Can't translate text in cookie popup in magento 2
I tryed add this text to de_DE.csv, but it not translate
"We use cookies to make your experience better.","Wir verwenden Cookies, um Ihre Erfahrungen besser machen.",module,Magento_Cookie
"We use cookies to make your experience better.","Wir verwenden Cookies, um Ihnen ein besseres Erlebnis zu ermöglichen."
"To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies.","Um der neuen e-Privacy-Richtlinie zu entsprechen, müssen wir um Ihre Zustimmung bitten, die Cookies zu setzen.",module,Magento_Cookie
"<a href=""%1"">Learn more</a>.","<a href=""%1""> Erfahren Sie mehr</a>.",module,Magento_Cookie
"Allow Cookies","Cookies setzen erlauben",module,Magento_Cookie
My cookie
UPDATE
I tryed create a file notices.phtml in custom theme but it not apply in popup
<?php if ($this->helper(MagentoCookieHelperCookie::class)->isCookieRestrictionModeEnabled()): ?>
<div role="alertdialog"
tabindex="-1"
class="message global cookie"
id="notice-cookie-block"
style="display: none;">
<div role="document" class="content" tabindex="0">
<p>
<strong><?= $block->escapeHtml(__('We use cookies to make your experience better...')) ?></strong>
<span><?= $block->escapeHtml(__('To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies.')) ?></span>
<?= $block->escapeHtml(__('<a href="%1">Learn more</a>.', $block->getPrivacyPolicyLink()), ['a']) ?>
</p>
<div class="actions">
<button id="btn-cookie-allow" class="action allow primary">
<span><?= $block->escapeHtml(__('Allow Cookies')) ?></span>
</button>
</div>
</div>
</div>
<script type="text/x-magento-init">
"#notice-cookie-block":
"cookieNotices":
"cookieAllowButtonSelector": "#btn-cookie-allow",
"cookieName": "<?= /* @noEscape */ MagentoCookieHelperCookie::IS_USER_ALLOWED_SAVE_COOKIE ?>",
"cookieValue": <?= /* @noEscape */ $this->helper(MagentoCookieHelperCookie::class)->getAcceptedSaveCookiesWebsiteIds() ?>,
"cookieLifetime": <?= /* @noEscape */ $this->helper(MagentoCookieHelperCookie::class)->getCookieRestrictionLifetime() ?>,
"noCookiesUrl": "<?= $block->escapeJs($block->escapeUrl($block->getUrl('cookie/index/noCookies'))) ?>"
</script>
<?php endif; ?>
magento2 translate
Can't translate text in cookie popup in magento 2
I tryed add this text to de_DE.csv, but it not translate
"We use cookies to make your experience better.","Wir verwenden Cookies, um Ihre Erfahrungen besser machen.",module,Magento_Cookie
"We use cookies to make your experience better.","Wir verwenden Cookies, um Ihnen ein besseres Erlebnis zu ermöglichen."
"To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies.","Um der neuen e-Privacy-Richtlinie zu entsprechen, müssen wir um Ihre Zustimmung bitten, die Cookies zu setzen.",module,Magento_Cookie
"<a href=""%1"">Learn more</a>.","<a href=""%1""> Erfahren Sie mehr</a>.",module,Magento_Cookie
"Allow Cookies","Cookies setzen erlauben",module,Magento_Cookie
My cookie
UPDATE
I tryed create a file notices.phtml in custom theme but it not apply in popup
<?php if ($this->helper(MagentoCookieHelperCookie::class)->isCookieRestrictionModeEnabled()): ?>
<div role="alertdialog"
tabindex="-1"
class="message global cookie"
id="notice-cookie-block"
style="display: none;">
<div role="document" class="content" tabindex="0">
<p>
<strong><?= $block->escapeHtml(__('We use cookies to make your experience better...')) ?></strong>
<span><?= $block->escapeHtml(__('To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies.')) ?></span>
<?= $block->escapeHtml(__('<a href="%1">Learn more</a>.', $block->getPrivacyPolicyLink()), ['a']) ?>
</p>
<div class="actions">
<button id="btn-cookie-allow" class="action allow primary">
<span><?= $block->escapeHtml(__('Allow Cookies')) ?></span>
</button>
</div>
</div>
</div>
<script type="text/x-magento-init">
"#notice-cookie-block":
"cookieNotices":
"cookieAllowButtonSelector": "#btn-cookie-allow",
"cookieName": "<?= /* @noEscape */ MagentoCookieHelperCookie::IS_USER_ALLOWED_SAVE_COOKIE ?>",
"cookieValue": <?= /* @noEscape */ $this->helper(MagentoCookieHelperCookie::class)->getAcceptedSaveCookiesWebsiteIds() ?>,
"cookieLifetime": <?= /* @noEscape */ $this->helper(MagentoCookieHelperCookie::class)->getCookieRestrictionLifetime() ?>,
"noCookiesUrl": "<?= $block->escapeJs($block->escapeUrl($block->getUrl('cookie/index/noCookies'))) ?>"
</script>
<?php endif; ?>
magento2 translate
magento2 translate
edited Aug 14 at 13:59
TN98
asked Aug 14 at 13:45
TN98TN98
3641 silver badge11 bronze badges
3641 silver badge11 bronze badges
show us the code where oyu are rendering the text. i assume you are just printing the text and not using one of magentos translation functionalities
– Philipp Sander
Aug 14 at 13:53
it is core in magento 2, i not custom it
– TN98
Aug 14 at 13:54
have you cleaned your translation cache?
– Philipp Sander
Aug 14 at 13:59
yes, i clean cache, flush, deploy
– TN98
Aug 14 at 14:00
add a comment |
show us the code where oyu are rendering the text. i assume you are just printing the text and not using one of magentos translation functionalities
– Philipp Sander
Aug 14 at 13:53
it is core in magento 2, i not custom it
– TN98
Aug 14 at 13:54
have you cleaned your translation cache?
– Philipp Sander
Aug 14 at 13:59
yes, i clean cache, flush, deploy
– TN98
Aug 14 at 14:00
show us the code where oyu are rendering the text. i assume you are just printing the text and not using one of magentos translation functionalities
– Philipp Sander
Aug 14 at 13:53
show us the code where oyu are rendering the text. i assume you are just printing the text and not using one of magentos translation functionalities
– Philipp Sander
Aug 14 at 13:53
it is core in magento 2, i not custom it
– TN98
Aug 14 at 13:54
it is core in magento 2, i not custom it
– TN98
Aug 14 at 13:54
have you cleaned your translation cache?
– Philipp Sander
Aug 14 at 13:59
have you cleaned your translation cache?
– Philipp Sander
Aug 14 at 13:59
yes, i clean cache, flush, deploy
– TN98
Aug 14 at 14:00
yes, i clean cache, flush, deploy
– TN98
Aug 14 at 14:00
add a comment |
1 Answer
1
active
oldest
votes
Follow this steps.
go to /pub/static/frontend/your_theme_vendor/theme/de_DE
Find js-translation.json and delete it (make a copy of it just in case!)
Go back to your magento root folder and run php bin/magento setup:static-content:deploy de_DE
Then run php bin/magento cache:flush
can i do it but not run php bin/magento setup:static-content:deploy de_DE ?
– TN98
Aug 14 at 13:55
Why? You couldn't run deploying content? because without deploying static content your translation changes will not work
– Mitro
Aug 14 at 13:56
yes, i tryed, but it not translate, i tryed create custom magento_cookies in custom theme but it not apply
– TN98
Aug 14 at 13:58
What is your csv file path? can you share it?
– Mitro
Aug 14 at 13:59
Yes, i can, it ad link docs.google.com/document/d/…
– TN98
Aug 14 at 14:02
|
show 3 more comments
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f285502%2fcant-translate-text-in-cookie-popup-in-magento-2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Follow this steps.
go to /pub/static/frontend/your_theme_vendor/theme/de_DE
Find js-translation.json and delete it (make a copy of it just in case!)
Go back to your magento root folder and run php bin/magento setup:static-content:deploy de_DE
Then run php bin/magento cache:flush
can i do it but not run php bin/magento setup:static-content:deploy de_DE ?
– TN98
Aug 14 at 13:55
Why? You couldn't run deploying content? because without deploying static content your translation changes will not work
– Mitro
Aug 14 at 13:56
yes, i tryed, but it not translate, i tryed create custom magento_cookies in custom theme but it not apply
– TN98
Aug 14 at 13:58
What is your csv file path? can you share it?
– Mitro
Aug 14 at 13:59
Yes, i can, it ad link docs.google.com/document/d/…
– TN98
Aug 14 at 14:02
|
show 3 more comments
Follow this steps.
go to /pub/static/frontend/your_theme_vendor/theme/de_DE
Find js-translation.json and delete it (make a copy of it just in case!)
Go back to your magento root folder and run php bin/magento setup:static-content:deploy de_DE
Then run php bin/magento cache:flush
can i do it but not run php bin/magento setup:static-content:deploy de_DE ?
– TN98
Aug 14 at 13:55
Why? You couldn't run deploying content? because without deploying static content your translation changes will not work
– Mitro
Aug 14 at 13:56
yes, i tryed, but it not translate, i tryed create custom magento_cookies in custom theme but it not apply
– TN98
Aug 14 at 13:58
What is your csv file path? can you share it?
– Mitro
Aug 14 at 13:59
Yes, i can, it ad link docs.google.com/document/d/…
– TN98
Aug 14 at 14:02
|
show 3 more comments
Follow this steps.
go to /pub/static/frontend/your_theme_vendor/theme/de_DE
Find js-translation.json and delete it (make a copy of it just in case!)
Go back to your magento root folder and run php bin/magento setup:static-content:deploy de_DE
Then run php bin/magento cache:flush
Follow this steps.
go to /pub/static/frontend/your_theme_vendor/theme/de_DE
Find js-translation.json and delete it (make a copy of it just in case!)
Go back to your magento root folder and run php bin/magento setup:static-content:deploy de_DE
Then run php bin/magento cache:flush
answered Aug 14 at 13:50
MitroMitro
3267 bronze badges
3267 bronze badges
can i do it but not run php bin/magento setup:static-content:deploy de_DE ?
– TN98
Aug 14 at 13:55
Why? You couldn't run deploying content? because without deploying static content your translation changes will not work
– Mitro
Aug 14 at 13:56
yes, i tryed, but it not translate, i tryed create custom magento_cookies in custom theme but it not apply
– TN98
Aug 14 at 13:58
What is your csv file path? can you share it?
– Mitro
Aug 14 at 13:59
Yes, i can, it ad link docs.google.com/document/d/…
– TN98
Aug 14 at 14:02
|
show 3 more comments
can i do it but not run php bin/magento setup:static-content:deploy de_DE ?
– TN98
Aug 14 at 13:55
Why? You couldn't run deploying content? because without deploying static content your translation changes will not work
– Mitro
Aug 14 at 13:56
yes, i tryed, but it not translate, i tryed create custom magento_cookies in custom theme but it not apply
– TN98
Aug 14 at 13:58
What is your csv file path? can you share it?
– Mitro
Aug 14 at 13:59
Yes, i can, it ad link docs.google.com/document/d/…
– TN98
Aug 14 at 14:02
can i do it but not run php bin/magento setup:static-content:deploy de_DE ?
– TN98
Aug 14 at 13:55
can i do it but not run php bin/magento setup:static-content:deploy de_DE ?
– TN98
Aug 14 at 13:55
Why? You couldn't run deploying content? because without deploying static content your translation changes will not work
– Mitro
Aug 14 at 13:56
Why? You couldn't run deploying content? because without deploying static content your translation changes will not work
– Mitro
Aug 14 at 13:56
yes, i tryed, but it not translate, i tryed create custom magento_cookies in custom theme but it not apply
– TN98
Aug 14 at 13:58
yes, i tryed, but it not translate, i tryed create custom magento_cookies in custom theme but it not apply
– TN98
Aug 14 at 13:58
What is your csv file path? can you share it?
– Mitro
Aug 14 at 13:59
What is your csv file path? can you share it?
– Mitro
Aug 14 at 13:59
Yes, i can, it ad link docs.google.com/document/d/…
– TN98
Aug 14 at 14:02
Yes, i can, it ad link docs.google.com/document/d/…
– TN98
Aug 14 at 14:02
|
show 3 more comments
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f285502%2fcant-translate-text-in-cookie-popup-in-magento-2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
show us the code where oyu are rendering the text. i assume you are just printing the text and not using one of magentos translation functionalities
– Philipp Sander
Aug 14 at 13:53
it is core in magento 2, i not custom it
– TN98
Aug 14 at 13:54
have you cleaned your translation cache?
– Philipp Sander
Aug 14 at 13:59
yes, i clean cache, flush, deploy
– TN98
Aug 14 at 14:00