Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Error message:
The submitted string contains disallowed HTML: Torna alla home page.
This is due to the token "[site:url]". The following translation works, for instance:
The submitted string contains disallowed HTML: Torna alla home page.
Comments
Comment #1
longwaveThis string has been translated on the translation server, though: http://localize.drupal.org/translate/languages/de/translate?sid=435083
What else can we do here? We can't translate the string alone, what if you want to return to somewhere other than the front page?
Comment #2
aacraig CreditAttribution: aacraig commentedMaybe this is something to bring up with core, since the [variable:name] syntax is so common for tokens. Perhaps this could be allowed to pass the filter test.
Thanks for the heads up about the string already being translated. This will probably work for me, but some people may want to have a different translation of the same text, and won't be able to easily do the translation.
Comment #3
longwaveAlready noted against core, Drupal Commerce suffers from the same problem, with no solution yet
#1292140: Can't translate completion message due to tokens in t() string.
#1196488: Allow checkout completion message to be translated
Comment #4
longwaveMarked #1734690: Can't translate "<a href="[uc_order:url]">view your current order status</a>" as duplicate, although that's a slightly different string - we should deal with all strings containing tokens here.
Comment #5
longwaveComment #6
anrikun CreditAttribution: anrikun commentedFixed the typo in the title.
Comment #7
ñull CreditAttribution: ñull commentedWow since april 2012! Nice that at least the typo in the title was corrected.
Comment #8
TR CreditAttribution: TR commented@ñull: What's your point? We don't need your snide remarks. If you don't have anything to contribute please refrain from posting.
If you'd actually taken the time to read the above thread, you'd know this is a CORE DRUPAL issue - t() can't translate strings with tokens. @longwave gave the link to the core issue in #3, which I'll repeat here: #1292140: Can't translate completion message due to tokens in t() string.. If you want to see this fixed, contribute to that issue in the core Drupal issue queue. Try out the patch, give your feedback, maybe even work on the code yourself, etc.
This issue is left "postponed" here in the Ubercart issue queue solely as a tracking issue so that people can find the core issue and help out in the core issue queue - there is nothing that is going to be changed in Ubercart to correct the core problem.
If you want a work around, just enter a completion message that doesn't include a token - no one is making you use the default continue shopping message. That was made configurable for a reason ...
Comment #9
ñull CreditAttribution: ñull commentedI understand your frustration with my remarks. The point is that I hit against this issue already for years, without having too much to time to dig deeper. The other point is that nobody is perfect and in the end I apparently reached that point that the "snide remark" just came out.
I took your advice, tested the last patch.