Get the 'You need to be logged in to be able to checkout' to be tranlatable.

        $commerce_checkout_redirect_message = variable_get('commerce_checkout_redirect_message', t('You need to be logged in to be able to checkout.')); 
        if (!empty($commerce_checkout_redirect_message)) {
          drupal_set_message($commerce_checkout_redirect_message);
        }

You will see that
drupal_set_message($commerce_checkout_redirect_message);
will not really translate if the variable_get function get a string from the database.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wqmeng’s picture

Issue summary: View changes
morybel’s picture

Thank you so much, this worked for me.

gmrmedia’s picture

Works good. Thank you for your work ;)

rreiss’s picture

Status: Active » Needs review
FileSize
1.76 KB

I used the same fix as on the 1st patch + remove the t function from the default value attribute.
Patch is attached, and should be reviewed and committed to the dev branch.

Thanks :)