function openlayers_i18n_string_update in Openlayers 7.3
Wrapper to update / create translation source for user defined strings.
Wrapper around i18n_string_update() that ensures the module is available.
Parameters
string|array $name: Array or string concatenated with ':' that contains textgroup and string context.
string $string: Source string in default language. Default language may or may not be English. Array of key => string to update multiple strings at once.
array $options: Array with additional options:
- 'format', String format if the string has text format
- 'messages', Whether to print out status messages.
Return value
mixed Same return as from i18n_string_update()
See also
1 call to openlayers_i18n_string_update()
- LayerSwitcher::i18nStringsRefresh in src/
Plugin/ Control/ LayerSwitcher/ LayerSwitcher.php - Refresh string translations.
File
- ./
openlayers.module, line 159 - Openlayers module.
Code
function openlayers_i18n_string_update($name, $string, $options = array()) {
if (module_exists('i18n_string')) {
return i18n_string_update($name, $string, $options);
}
}