_getTranslationStrings

Get translation strings from the query result and return the array of $i18n[fieldName][lang] = $value

Parameters
object|array $data

The query result

#
array|string $fields

The array of field names to get data, e.g., 'fieldName' or array('fieldName1', 'fieldName2')

#
string $lang = null

The language code to fetch (if it is not provided, all languages will be fetched)

#
Returns
array|object

The array or object of translation strings