1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* Definition of views_plugin_localization_none.
|
6
|
*/
|
7
|
|
8
|
/**
|
9
|
* Localization plugin for no localization.
|
10
|
*
|
11
|
* @ingroup views_localization_plugins
|
12
|
*/
|
13
|
class views_plugin_localization_none extends views_plugin_localization {
|
14
|
|
15
|
/**
|
16
|
* {@inheritdoc}
|
17
|
*/
|
18
|
public $translate = FALSE;
|
19
|
|
20
|
/**
|
21
|
* Translate a string; simply return the string.
|
22
|
*/
|
23
|
public function translate($source) {
|
24
|
return $source['value'];
|
25
|
}
|
26
|
|
27
|
/**
|
28
|
* Save a string for translation; not supported.
|
29
|
*/
|
30
|
public function save($source) {
|
31
|
return FALSE;
|
32
|
}
|
33
|
|
34
|
/**
|
35
|
* Delete a string; not supported.
|
36
|
*/
|
37
|
public function delete($source) {
|
38
|
return FALSE;
|
39
|
}
|
40
|
|
41
|
}
|