Are the customer visible shipping quote strings translatable? How? I try to translate "Recogida Local" at zero cost to "Local Pickup", but I don't find it among the translatable strings.

Then I tried to create a second shipping quote in English and find active language conditions but there aren't available, not even among the site variables.

So the only other option seems to hack it with theme css overrides or some hint how patch shipping quote for this.

Comments

ñull created an issue. See original summary.

TR’s picture

Status: Active » Fixed

If you're asking about flat rate quotes and the name that you've given them when you configured them, then you're correct there's no good way to translate that in core Drupal 7. Core Drupal doesn't provide a way to translate user defined data - this is one of the major weaknesses in core Drupal translation. These flat rate method names are just unknown strings in the database, not string literals, so the core Drupal t() mechanism doesn't work. (Although, if you want, you can fool the t() mechanism by adding your user-defined strings into the .po file - this is definitely a hack but it is an expedient solution for some things.) You might also try the String Overrides module.

Ubercart shipping quotes can use any normal Rules conditions. I haven't tried it myself but if there is a condition which detects the active language, either in core Rules or in one of the Rules add-on modules, you should be able to use that to select your second shipping quote. (Check under "Data comparision" Rules when you add your condition - people often overlook this section.) Using a Rule sounds like the best solution to me.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.