You are here

function lingotek_lookup_locale_exists in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lingotek.util.inc \lingotek_lookup_locale_exists()
  2. 7.2 lingotek.util.inc \lingotek_lookup_locale_exists()
  3. 7.3 lingotek.util.inc \lingotek_lookup_locale_exists()
  4. 7.4 lingotek.util.inc \lingotek_lookup_locale_exists()
  5. 7.6 lingotek.util.inc \lingotek_lookup_locale_exists()
1 call to lingotek_lookup_locale_exists()
lingotek_add_target_language in ./lingotek.util.inc
Adds the target language as being enabled.

File

./lingotek.util.inc, line 800
Utility functions.

Code

function lingotek_lookup_locale_exists($drupal_language_code) {
  $languages = language_list();
  foreach ($languages as $target) {
    if (isset($target->language) && strcmp($target->language, $drupal_language_code) == 0) {
      return TRUE;
    }
  }
  return FALSE;
}