Download & Extend

Make "Add to cart" text translatable (patch)

Project:Ubercart Donation Products
Version:6.x-2.0-beta3
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

Hello,

The module allows to change the "Add to cart" text, but it's not possible to translate it. This can look strange, as in the rest of Ubercart the "Add to cart" text is translated. The attached patch fixes this.

Thank you for this useful module :)

Anselm

AttachmentSize
uc_donation_patch.txt743 bytes

Comments

#1

Status:active» needs review

The variable should actually be renamed to uc_product_add_to_cart_text to match what the latest version of Ubercart uses. This ensures that the button text is configurable through /admin/store/settings/products/edit/general.

Sorry for the additional whitespace alterations in this patch. My IDE is set up to clean up whitespace upon save, according to Drupal coding conventions.

AttachmentSize
560934-uc_donation-add-to-cart-button-text.patch 2.12 KB
nobody click here