function lingotek_language_field_lookup in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.7 lingotek.reference.inc \lingotek_language_field_lookup()
- 7.2 lingotek.reference.inc \lingotek_language_field_lookup()
- 7.3 lingotek.reference.inc \lingotek_language_field_lookup()
- 7.4 lingotek.reference.inc \lingotek_language_field_lookup()
- 7.6 lingotek.reference.inc \lingotek_language_field_lookup()
1 call to lingotek_language_field_lookup()
- lingotek_download_translations_form in ./
lingotek.page.inc - Download Translations Form.
File
- ./
lingotek.reference.inc, line 214
Code
function lingotek_language_field_lookup($field, $lingotek_locale) {
$languages = language_list();
foreach ($languages as $key => $language) {
if (isset($language->lingotek_locale) && strcmp($language->lingotek_locale, $lingotek_locale) == 0) {
return $language->{$field};
}
}
return NULL;
}