Posted by Anselm Heaton on August 27, 2009 at 10:20am
| 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
| Attachment | Size |
|---|---|
| uc_donation_patch.txt | 743 bytes |
Comments
#1
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.