Skip to content

Commit

Permalink
pluralized strings should be unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
Sofia Margariti committed Apr 11, 2018
1 parent 35c3f21 commit 50f708b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openformats/formats/yaml/yaml_i18n.py
Expand Up @@ -53,9 +53,9 @@ def _compile_pluralized(self, string):
indent = " " * indentation_levels * self.indent

yml_str = yaml.dump(plurals_dict, default_flow_style=False,
allow_unicode=True)
plural_entry = ''.join([
"{indent}{line}".format(indent=indent, line=line)
allow_unicode=True).decode('utf-8')
plural_entry = u''.join([
u"{indent}{line}".format(indent=indent, line=line)
for line in yml_str.splitlines(True)
])

Expand Down

0 comments on commit 50f708b

Please sign in to comment.