Active
Project:
Commerce coupon percentage
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2012 at 07:28 UTC
Updated:
18 Dec 2013 at 14:40 UTC
Jump to comment: Most recent
Comments
Comment #1
bradjones1st() is actually a function, and it appears it might be appropriate here since this code could run during installation. See http://api.drupal.org/api/drupal/includes!install.inc/function/st/7
Comment #2
sja1 commentedSee next comment
Comment #3
sja1 commentedIf this code can be run both during installation and at other times, the api documentation states that the correct function to use is "get_t".
See: https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/get_t/7
Comment #4
sja1 commentedTo change the text from "Percentage discount" to something else, you can go to admin/commerce/coupons/types, click "edit" for the "Percentage discount" type, and change its name there. This will modify the text that shows up in the order component summary on the checkout pages.
It doesn't solve the translation problem though, your modified text will be displayed for all languages.