Skip to content
Browse files

#1068682 added back i18n_variables into translatable variables, as op…

…tions
  • Loading branch information...
1 parent a88e73d commit f29503e6a9c727df284464ae2b38ba058b8aff30 Jose Reyero committed Feb 23, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 i18n_variable/i18n_variable.admin.inc
View
5 i18n_variable/i18n_variable.admin.inc
@@ -11,12 +11,15 @@
* There are two lists of variables here.
* - i18n_variable_conf, list with high level variable names, some of which are multiple variables
* - i18n_variable_list, translated list into actual variable names
+ *
+ * Aditional variables to be make translatable can be set into $conf['i18n_variables'] as for older versions
*/
function i18n_variable_admin_settings($form, $form_state) {
$translatable = array();
$current = variable_get('i18n_variable_conf', array());
+ $conf = variable_get('i18n_variables', array());
foreach (variable_get_info() as $name => $variable) {
- if (!empty($variable['localize'])) {
+ if (!empty($variable['localize']) || in_array($name, $conf)) {
$translatable[] = $name;
}
}

0 comments on commit f29503e

Please sign in to comment.
Something went wrong with that request. Please try again.