public static function localized_field($field, $locale = null)
    {
        if ($locale === null) {
            $locale = Translatable::get_current_locale();
        }
        if ($locale == Translatable::default_locale()) {
            return $field;
        }
        return $field . TRANSLATABLE_COLUMN_SEPARATOR . $locale;
    }
public static function localized_field($field, $locale = null)
    {
        if ($locale === null) {
            $locale = Translatable::get_current_locale();
        }
        if ($locale == Translatable::default_locale()) {
            return $field;
        }
        return $field . TRANSLATABLE_COLUMN_SEPARATOR . $locale;
    }
public static function localized_field ( $ field , $ locale = null ) { if ( $ locale === null ) { $ locale = Translatable :: get_current_locale ( ) ; } if ( $ locale == Translatable :: default_locale ( ) ) { return $ field ; } return $ field . TRANSLATABLE_COLUMN_SEPARATOR . $ locale ; }
Given a field name and a locale name, create a composite string that represents
the field in the database.

@param string $field The field name or null to use the current locale
@param string|null $locale The locale name or null
@return string
Given a field name and a locale name create a composite string that represents the field in the database .