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;








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



enter image description here



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; ?>









share|improve this question


























  • 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

















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



enter image description here



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; ?>









share|improve this question


























  • 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













0












0








0


1






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



enter image description here



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; ?>









share|improve this question
















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



enter image description here



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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










1 Answer
1






active

oldest

votes


















0















Follow this steps.



  1. go to /pub/static/frontend/your_theme_vendor/theme/de_DE


  2. Find js-translation.json and delete it (make a copy of it just in case!)


  3. Go back to your magento root folder and run php bin/magento setup:static-content:deploy de_DE


  4. Then run php bin/magento cache:flush






share|improve this answer

























  • 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













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
);



);













draft saved

draft discarded


















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









0















Follow this steps.



  1. go to /pub/static/frontend/your_theme_vendor/theme/de_DE


  2. Find js-translation.json and delete it (make a copy of it just in case!)


  3. Go back to your magento root folder and run php bin/magento setup:static-content:deploy de_DE


  4. Then run php bin/magento cache:flush






share|improve this answer

























  • 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















0















Follow this steps.



  1. go to /pub/static/frontend/your_theme_vendor/theme/de_DE


  2. Find js-translation.json and delete it (make a copy of it just in case!)


  3. Go back to your magento root folder and run php bin/magento setup:static-content:deploy de_DE


  4. Then run php bin/magento cache:flush






share|improve this answer

























  • 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













0














0










0









Follow this steps.



  1. go to /pub/static/frontend/your_theme_vendor/theme/de_DE


  2. Find js-translation.json and delete it (make a copy of it just in case!)


  3. Go back to your magento root folder and run php bin/magento setup:static-content:deploy de_DE


  4. Then run php bin/magento cache:flush






share|improve this answer













Follow this steps.



  1. go to /pub/static/frontend/your_theme_vendor/theme/de_DE


  2. Find js-translation.json and delete it (make a copy of it just in case!)


  3. Go back to your magento root folder and run php bin/magento setup:static-content:deploy de_DE


  4. Then run php bin/magento cache:flush







share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?