def __get_system_translation(self, field, entity_definition_keyname='', property_definition_keyname=''):
        if not self.__translation:
            self.__translation = {}
            for t in self.db_query('SELECT field, value, IFNULL(entity_definition_keyname, \'\') AS entity_definition_keyname, IFNULL(property_definition_keyname, \'\') AS property_definition_keyname FROM translation WHERE language = %s OR language IS NULL ORDER BY language;', self.get_user_locale().code):
                self.__translation['%s|%s|%s' % (t.get('entity_definition_keyname'), t.get('property_definition_keyname'), t.get('field'))] = t.get('value')
        return self.__translation.get('%s|%s|%s' % (entity_definition_keyname, property_definition_keyname, field), None)
dataset/ETHPy150Open argoroots/Entu/app/main/db.py/Entity.__get_system_translation/original