Philipp Hörist pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/common/i18n.py
    ... ... @@ -67,7 +67,7 @@ def iter_locale_dirs():
    67 67
                 continue
    
    68 68
             found_paths.append(locale_dir)
    
    69 69
             if locale_dir.is_dir():
    
    70
    -            yield locale_dir
    
    70
    +            yield str(locale_dir)
    
    71 71
     
    
    72 72
     def initialize_direction_mark():
    
    73 73
         from gi.repository import Gtk
    
    ... ... @@ -150,7 +150,7 @@ if os.name == 'nt':
    150 150
     # Search for the translation in all locale dirs
    
    151 151
     for dir_ in iter_locale_dirs():
    
    152 152
         try:
    
    153
    -        _translation = gettext.translation(DOMAIN, str(dir_))
    
    153
    +        _translation = gettext.translation(DOMAIN, dir_)
    
    154 154
             _ = _translation.gettext
    
    155 155
         except OSError:
    
    156 156
             continue