--- select_translation/select_translation_filter_handler.inc 2008-09-16 14:21:43.000000000 +0100
+++ select_translation_new/select_translation_filter_handler.inc 2009-01-27 17:05:30.000000000 +0000
@@ -32,9 +32,9 @@ class select_translation_filter_handler
'#description' => t('If selection mode is set to "Choose language priorities",
you can enter here a comma separated list of language codes.
The filter will then return the node in the first available langauge
- in that list ; and the original version if no match were found.
+ in that list.
The special value "current" will be replaced with the current language,
- "default" will be replaced witht the default language,
+ "default" will be replaced with the default language,
and "original" with the original language of each node.
Example:
en,fr,current,default,original
@@ -50,15 +50,16 @@ class select_translation_filter_handler
$list = array();
if ($this->value == 'original') {
$list = array('current');
+ $list[] = 'original';
} else if ($this->value == 'default') {
$list = array('current', 'default');
+ $list[] = 'original';
} else if (!empty($this->options['priorities'])) {
$list = explode(',', $this->options['priorities']);
foreach ($list as $i => $v) {
$list[$i] = strtolower(trim($v));
}
}
- $list[] = 'original';
foreach ($list as $i => $v) {
if ($list[$i] == 'current') {
$list[$i] = '***CURRENT_LANGUAGE***';