1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
* Contains the 'none' localization plugin.
|
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 |
|
|
var $translate = FALSE;
|
15 |
|
|
|
16 |
|
|
/**
|
17 |
|
|
* Translate a string; simply return the string.
|
18 |
|
|
*/
|
19 |
|
|
function translate($source) {
|
20 |
|
|
return $source['value'];
|
21 |
|
|
}
|
22 |
|
|
|
23 |
|
|
/**
|
24 |
|
|
* Save a string for translation; not supported.
|
25 |
|
|
*/
|
26 |
|
|
function save($source) {
|
27 |
|
|
return FALSE;
|
28 |
|
|
}
|
29 |
|
|
|
30 |
|
|
/**
|
31 |
|
|
* Delete a string; not supported.
|
32 |
|
|
*/
|
33 |
|
|
function delete($source) {
|
34 |
|
|
return FALSE;
|
35 |
|
|
}
|
36 |
|
|
} |