def _set_lang(self, gettext):
        lang = request.GET['lang']
        try:
            set_lang(lang)
        except (LanguageError, IOError), e:
            resp_unicode = {'lang': lang} % gettext('Could not set language to "%(lang)s"')
        else:
            session['lang'] = lang
            session.save()
            resp_unicode = gettext('Set language to "%(lang)s"') % {'lang': lang}
        return resp_unicode
dataset/ETHPy150Open Pylons/pylons/tests/test_webapps/filestotest/controller_sqlatest.py/SampleController._set_lang/swapped operands of `%`