function i18n_langcode in Internationalization 7
Get valid language code for current page or check whether the code is a defined language
15 calls to i18n_langcode()
- i18nStringTestCase::testCaching in i18n_string/i18n_string.test 
- Test base i18n_string caching.
- i18n_menu_form_menu_edit_item_alter in i18n_menu/i18n_menu.module 
- Implements hook_form_FORM_ID_alter().
- i18n_menu_i18n_translate_path in i18n_menu/i18n_menu.module 
- Implements hook_i18n_translate_path()
- i18n_node_tokens in i18n_node/i18n_node.tokens.inc 
- Implements hook_tokens().
- i18n_string_format in i18n_string/i18n_string.module 
- Format the resulting translation or the default string applying callbacks
File
- ./i18n.module, line 229 
- Internationalization (i18n) module.
Code
function i18n_langcode($langcode = NULL) {
  return $langcode && $langcode !== LANGUAGE_NONE ? $langcode : i18n_language()->language;
}