materio-base-legacy/plugins/views_plugin_localization_none.inc
bachy b20b38f514 first import
Signed-off-by: bachy <git@g-u-i.net>
2013-01-09 10:53:26 +01:00

37 lines
607 B
PHP

<?php
/**
* @file
* Contains the 'none' localization plugin.
*/
/**
* Localization plugin for no localization.
*
* @ingroup views_localization_plugins
*/
class views_plugin_localization_none extends views_plugin_localization {
var $translate = FALSE;
/**
* Translate a string; simply return the string.
*/
function translate($source) {
return $source['value'];
}
/**
* Save a string for translation; not supported.
*/
function save($source) {
return FALSE;
}
/**
* Delete a string; not supported.
*/
function delete($source) {
return FALSE;
}
}