Révision 950416da
Ajouté par Assos Assos il y a plus de 5 ans
drupal7/sites/all/modules/rules/rules_i18n/rules_i18n.rules.inc | ||
---|---|---|
115 | 115 |
'type' => array('text', 'list<text>', 'token', 'list<token>'), |
116 | 116 |
// Be sure to translate after doing PHP evaluation. |
117 | 117 |
'weight' => -8, |
118 |
),
|
|
118 |
), |
|
119 | 119 |
); |
120 | 120 |
} |
121 | 121 |
|
... | ... | |
128 | 128 |
return user_access('translate admin strings'); |
129 | 129 |
} |
130 | 130 |
|
131 |
/** |
|
132 |
* Overrides RulesDataInputEvaluator::prepare(). |
|
133 |
*/ |
|
131 | 134 |
public function prepare($text, $var_info, $param_info = NULL) { |
132 | 135 |
if (!empty($param_info['translatable'])) { |
133 | 136 |
$this->setting = TRUE; |
... | ... | |
177 | 180 |
return $value; |
178 | 181 |
} |
179 | 182 |
|
183 |
/** |
|
184 |
* Overrides RulesDataInputEvaluator::help(). |
|
185 |
*/ |
|
180 | 186 |
public static function help($var_info, $param_info = array()) { |
181 | 187 |
if (!empty($param_info['translatable'])) { |
182 |
if ($param_info['custom translation language']) {
|
|
188 |
if (!empty($param_info['custom translation language'])) {
|
|
183 | 189 |
$text = t('Translations can be provided at the %translate tab. The argument value is translated to the configured language.', array('%translate' => t('Translate'))); |
184 | 190 |
} |
185 | 191 |
else { |
... | ... | |
193 | 199 |
return $render; |
194 | 200 |
} |
195 | 201 |
} |
202 |
|
|
196 | 203 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules