'Create Translations from a {\'locale\': \'string\'} mapping.
If one of the locales matches lang, that Translation will be returned.'

def translation_from_dict(self, instance, lang, dict_):

    rv = None
    for (locale, string) in dict_.items():
        loc = mkt_to_language(locale)
        if (loc not in settings.AMO_LANGUAGES):
            continue
        trans = self.translation_from_string(instance, locale, string)
        self.__set__(instance, trans)
        if (to_language(locale) == lang):
            rv = trans
    return rv
