Closed (fixed)
Project:
Ubercart
Version:
6.x-2.0-rc3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2009 at 05:07 UTC
Updated:
25 Aug 2009 at 14:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
giorgoskcorrection
the 'uc_cod_policy' variable is never stored in the 'variable' table
because we never call variable_set('uc_cod_policy','....
Comment #2
Island Usurper commentedLooks like it was just an oversight. Added a form element to the payment method settings.
Comment #3
giorgoskSeemed like an oversight ;-)
Thanks patch is working
Comment #4
giorgoskThe message needs the option to be translatable by the admin I assume
added the t() function
but still does not work ...
have the feeling it is related to the ajaxy update functionality !!!
Comment #5
giorgoskTried also
putting 'uc_cod_policy', in settings.php to make it internationalization variable
and visiting the admin/store/settings/payment/edit/methods for each language
lets you create a string for each language
$conf['i18n_variables'] = array(
...
...
...
'uc_cod_policy',
);
but it does not seem work !!!
the settings pages will actually let you configure seperate string for each language but on the checkout page only the english is displayed (no matter what the language)
Comment #6
Island Usurper commentedIt's not the variable itself. (I have a patch to make all of the Ubercart variables translatable, so this was convenient for me to test.) Instead, it's because the path to the AHAH callback to get the payment method details isn't including the langcode at the front. If you set your account's default language to something else, it will show up in that language.
Since the problem will affect more than just the COD policy message, I've made a new issue at #546022: Make AHAH callbacks translated during checkout/editing orders and set this one back to fixed.