Code below should be added to uc_price_visibility.module to make message field multilingual

/**
 * Implementation of hook_init().
 */
function uc_price_visibility_init() {
  global $conf;
  $conf['i18n_variables'][] = 'uc_price_visibility_message';
}

Comments

fizk’s picture

Status: Active » Postponed (maintainer needs more info)

Would changing this line work instead:

$node->content[$field]['#value'] = variable_get('uc_price_visibility_message', '');

to

$node->content[$field]['#value'] = t(variable_get('uc_price_visibility_message', ''));
fizk’s picture

Status: Postponed (maintainer needs more info) » Fixed
miccelito’s picture

Your fix works fine

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.