views_plugin_localization_none.inc 669 B

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