Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The link part of '@entity added to @cart-link.' is untranslatable, as the link is built with a non-translatable 'your cart' string.
Patch is on the way...
Comment | File | Size | Author |
---|---|---|---|
#2 | add_to_cart_msg_translation-2722399-2.patch | 633 bytes | agoradesign |
Comments
Comment #2
agoradesign CreditAttribution: agoradesign commentedSo, here's my tiny patch. I've added a context to the translation, as in other languages than English this could be important. E.g. in German you would translate "your cart" standalone as "Ihr Warenkorb", but in the context of the sentence "... added to your cart" this would be a major grammatical error - "...zu Ihrem Warenkorb..." would be correct here.
Comment #4
bojanz CreditAttribution: bojanz at Centarro commentedTook the opportunity to also use $this->t() instead of t(). Thanks!