The translation of the message set by uc_cart_new_account_details is not working.

I made a change to get this working, but I guess it would be better to understand what is happening.

from:

'#description' => variable_get('uc_cart_new_account_details', t('Optional. New customers may supply custom account details.
We will create these for you if no values are entered.')),

to:

'#description' => t('Optional. New customers may supply custom account details.
We will create these for you if no values are entered.'),

Someone can help?

Comments

longwave’s picture

Category: bug » support
Status: Active » Fixed

Translation of this variable was added after 7.x-3.4 was released, so you need 7.x-3.x-dev or wait until 7.x-3.5.

You also need the Variable Translation (i18n_variable) module enabled, then go to /admin/config/system/variable/realm/language/configure, click "Ubercart checkout settings" and ensure "New account details help message" is checked. You will then be able to add custom translations for each enabled language at /admin/store/settings/checkout.

camilohollanda’s picture

Thanks!

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

fixed a mistake when pasting the change