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.
UC Quote module already defines i18n_variables, but as the related settings form doesn't go through system_settings_form(), the i18n module has no grip on those variables. And thus, they don't get translated.
I created a patch to fix this, although I agree with TR and firewing1; it would be better to "fix" i18n, as they state in #896436: Shipping quotes and credit card information strings do not show multi-lingual description message
But for now, the patch will do, for me.
Losing formatting options for those 2 fields isn't really a loss, for me.
Enjoy!
Comment | File | Size | Author |
---|---|---|---|
#4 | 1257488-uc_quote-i18n-settings.patch | 7.5 KB | longwave |
ubercart-make_shipping_i18n_variables_translatable.patch | 7.31 KB | PieterDC | |
Comments
Comment #2
PieterDCPs: losing formatting options is not required to fix this issue.
We can have both at the same time, cfr. uc_cart_checkout_messages_form()
Be my guest to adjust the patch...
Comment #3
mgiffordNote duplicate: #736966: Descriptive text for anonymous users in checkout page cannot be translated - Patch
Comment #4
longwaveThis patch is based on #0 but keeps the format options in place.
Comment #5
longwaveCommitted #4.
In 7.x-3.x variable translations are significantly different, so this will be fixed in #1533286: Add support for Variable module