Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Developer experience
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2011 at 12:17 UTC
Updated:
24 Jul 2014 at 15:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
giorgoskFinally seems that stringoverrides changes Subtotal
but still it does not change Order Total
Comment #2
giorgoskEnded up using an ugly str_replace
is there a better way ?
Comment #3
rszrama commentedYou should be able to use hook_commerce_price_formatted_components_alter() to change the labels on these. See the documentation in commerce_price.api.php.
Comment #5
jawad.shah commentedFirstly, I try with stringoverrides module but it is not working.
Ref #2 works for me, Thanks to Giorgosk.
zeropoint.IT
Comment #6
jmaties commentedYou can use this patch
Comment #7
jmaties commentedUpps sorry change version :P
Comment #8
dsdeiz commentedHm, that's kinda weird. Did a check on the commerce_price.module and it looks like this component title is coming from the instance label of the commerce_order_total field of that order entity. Shouldn't this be already translatable?
Comment #9
thirdender commentedYou want to implement
hook_commerce_price_component_type_info_alter(&$component_types):Comment #10
kenorb commentedComment #11
kenorb commentedComment #12
bojanz commented#9 is the way to go. Adding t() around a variable is never a committable patch.