You are here

function i18nviews_plugin_localization_i18nstrings::stringid in Internationalization Views 7.3

Same name and namespace in other branches
  1. 6.3 includes/i18nviews_plugin_localization_i18nstrings.inc \i18nviews_plugin_localization_i18nstrings::stringid()

Get string id for i18n

Parameters

$keys: Array of keys for the string to be translated.

3 calls to i18nviews_plugin_localization_i18nstrings::stringid()
i18nviews_plugin_localization_i18nstrings::delete in includes/i18nviews_plugin_localization_i18nstrings.inc
Delete a string.
i18nviews_plugin_localization_i18nstrings::save_string in includes/i18nviews_plugin_localization_i18nstrings.inc
Save a string for translation
i18nviews_plugin_localization_i18nstrings::translate_string in includes/i18nviews_plugin_localization_i18nstrings.inc
Translate a string.

File

includes/i18nviews_plugin_localization_i18nstrings.inc, line 65
Contains the i18nstrings localization plugin.

Class

i18nviews_plugin_localization_i18nstrings
Localization plugin to pass translatable strings through i18n_string().

Code

function stringid($keys) {
  foreach ($keys as $key => $value) {
    if (is_array($value)) {
      $keys[$key] = implode(':', $value);
    }
  }
  return 'views:' . implode(':', $keys);
}