You are here

views_plugin_localization_none.inc in Views (for Drupal 7) 7.3

Same filename and directory in other branches
  1. 6.3 plugins/views_plugin_localization_none.inc

Definition of views_plugin_localization_none.

File

plugins/views_plugin_localization_none.inc
View source
<?php

/**
 * @file
 * Definition of views_plugin_localization_none.
 */

/**
 * Localization plugin for no localization.
 *
 * @ingroup views_localization_plugins
 */
class views_plugin_localization_none extends views_plugin_localization {

  /**
   * {@inheritdoc}
   */
  public $translate = FALSE;

  /**
   * Translate a string; simply return the string.
   */
  public function translate($source) {
    return $source['value'];
  }

  /**
   * Save a string for translation; not supported.
   */
  public function save($source) {
    return FALSE;
  }

  /**
   * Delete a string; not supported.
   */
  public function delete($source) {
    return FALSE;
  }

}

Classes

Namesort descending Description
views_plugin_localization_none Localization plugin for no localization.