1 views_plugin_localization.inc | public views_plugin_localization::save($source) |
Save string source for translation.
Parameters
array $source: Full data for the string to be translated.
- value: string for translation
- keys: array of keys
- format: optional text format
File
- core/
modules/ views/ plugins/ views_plugin_localization.inc, line 81 - Definition of views_plugin_localization.
Class
- views_plugin_localization
- The base plugin to handle localization of Views strings.
Code
public function save($source) {
// Allow other modules to make changes to the string before saving.
$source['pre_process'] = $this->invoke_translation_process($source, 'pre');
$this->save_string($source['value'], $source['keys'], isset($source['format']) ? $source['format'] : '');
}