No, it is used in templates, ralsina commented in some mail it needs to be
a string


On Fri, Oct 11, 2013 at 12:28 PM, Chris “Kwpolska” Warrick <
notifications@github.com> wrote:

> In nikola/utils.py:
>
> >          self.__dict__ = self.__shared_state
> >
> > +    @classmethod
> > +    def set_locale(cls, lang):
> > +        """Sets the locale for language lang, returns ''
> > +
> > +        in linux the locale encoding is set to utf8,
> > +        in windows that cannot be guaranted.
> > +        In either case, the locale encoding is available in cls.encodings[lang]
> > +        """
> > +        # intentional non try-except: templates must ask locales with a lang,
> > +        # let the code explode here and not hide the point of failure
> > +        if lang != cls.__shared_state['current_lang']:
> > +            locale_n = cls.locales[lang]
> > +            cls.__shared_state['current_lang'] = lang
> > +            locale.setlocale(locale.LC_ALL, locale_n)
> > +        return ''
>
> None would be a better idea.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/getnikola/nikola/pull/818/files#r6918164>
> .
>