def restore(self, value, context=None, inflated=True):
context = context or orb.Context()<EOL>if self.testFlag(self.Flags.I18n):<EOL><INDENT>locales = context.locale.split('<STR_LIT:U+002C>')<EOL>if not isinstance(value, dict):<EOL><INDENT>default_locale = locales[<NUM_LIT:0>]<EOL>if default_locale == '<STR_LIT:all>':<EOL><INDENT>default_locale = orb.system.settings().default_locale<EOL><DEDENT>value = {default_locale: value}<EOL><DEDENT>if '<STR_LIT:all>' in locales:<EOL><INDENT>return value<EOL><DEDENT>if len(locales) == <NUM_LIT:1>:<EOL><INDENT>return value.get(locales[<NUM_LIT:0>])<EOL><DEDENT>else:<EOL><INDENT>return {locale: value.get(locale) for locale in locales}<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return value<EOL><DEDENT>
Restores the value from a table cache for usage.

:param      value   | <variant>
            context | <orb.Context> || None