<?php
// Bitrix\Bizproc\RestActivityTable :: getLocalization()
// /dist/bitrix/modules/bizproc/lib/restactivity.php:195
public static function getLocalization($field, $langId)
{
$result = '';
$langId = strtoupper($langId);
if (is_string($field))
$result = $field;
elseif (!empty($field[$langId]))
$result = $field[$langId];
elseif ($langId == 'UA' && !empty($field['RU']))
$result = $field['RU'];
elseif (!empty($field['EN']))
$result = $field['EN'];
elseif (!empty($field['*']))
$result = $field['*'];
return $result;
}