function _views_timelinejs_language_map in Views TimelineJS integration 7.3
Same name and namespace in other branches
- 8.3 views_timelinejs.module \_views_timelinejs_language_map()
Returns an array of Drupal language codes mapped to TimelineJS codes.
Return value
array An array of language codes supported by TimelineJS, keyed by the equivalent Drupal language code.
1 call to _views_timelinejs_language_map()
- views_timelinejs_plugin_style_timelinejs::prepare_language_option in ./
views_timelinejs_plugin_style_timelinejs.inc - Sets the timeline language option to the site's current language.
File
- ./
views_timelinejs.module, line 215 - Views TimelineJS API, theming, libraries, etc.
Code
function _views_timelinejs_language_map() {
return array(
'cs' => 'cz',
'nb' => 'no',
'nn' => 'no',
'pt-pt' => 'pt',
'zh-hans' => 'zh-cn',
'zh-hant' => 'zh-cn',
);
}