'Looks at the manifest.webapp inside the current version\'s file and
updates the app\'s name and translated names.
Note: Make sure the correct version is in place before calling this.'

def update_name_from_package_manifest(self):

    if (not self.is_packaged):
        return None
    file_ = self.current_version.all_files[0]
    mf = self.get_manifest_json(file_)
    locale_names = get_locale_properties(mf, 'name', self.default_locale)
    locale_changed = self.update_default_locale(mf.get('default_locale'))
    if locale_changed:
        log.info((u'[Webapp:%s]    Default    locale    changed    from    "%s"    to    "%s".' % (self.pk, locale_changed[0], locale_changed[1])))
    crud = self.update_names(locale_names)
    if any(crud.values()):
        self.save()
