function views_plugin_localization::save

Save string source for translation.

Parameters

string $source: Full data for the string to be translated.

1 call to views_plugin_localization::save()
views_plugin_localization::process_locale_strings in plugins/views_plugin_localization.inc
1 method overrides views_plugin_localization::save()
views_plugin_localization_none::save in plugins/views_plugin_localization_none.inc
Save a string for translation; not supported.

File

plugins/views_plugin_localization.inc, line 84

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'] : '');
}