Commit d3eb3cb
Fix file dialog on windows
Changed files (3)
modifiedlibbirdfont/FileDialogTab.valamodifiedlibbirdfont/Glyph.valamodifiedscripts/complete_translations.py
Diff
@@ -127,8 +127,11 @@ public class FileDialogTab : Table { if (f.file_name.index_of (":") > -1) { propagate_files (f.file_name); } else {- printd (@"Subdir: $(f.file_name) in $((!) current_dir.get_path ()) path_separator: $path_separator\n");- propagate_files (((!) current_dir.get_path ()) + path_separator + f.file_name);+ string d = (!) current_dir.get_path ();+ printd (@"Subdir: $(f.file_name) in $d path_separator: $path_separator\n");+ string p = d + path_separator + f.file_name;+ p = p.replace ("\\\\", "\\");+ propagate_files (p); } selected_filename = "";@@ -73,10 +73,6 @@ public class Glyph : FontDisplay { } set {- if (value == 0) {- warning (@"zero left_limit in $(get_name ())");- } - _left_limit = value; } }@@ -14,7 +14,7 @@ except ImportError: def completeness (pofile): """ Returns the completeness of the translation in percent """- with open (pofile) as f:+ with open (pofile, 'r', encoding='utf-8') as f: content = f.readlines () translated = 0.0@@ -65,6 +65,7 @@ elif options.compiled: completed = completeness (pofile) podir = pofile.replace ("po/", "") podir = podir.replace (".po", "")+ podir = podir.replace ("\\", "/") if completed >= float (options.threshold): print ("Releasing " + podir) else: