Spanish translation

This commit is contained in:
BasioMeusPuga
2018-03-19 17:48:25 +05:30
parent aca08827fb
commit 7bdf01a67e
12 changed files with 3212 additions and 4371 deletions

View File

@@ -1229,7 +1229,7 @@ def main():
# Internationalization support
translator = QtCore.QTranslator()
translations_found = translator.load(
QtCore.QLocale.system(), ':/translations/Lector_')
QtCore.QLocale.system(), ':/translations/translations_bin/Lector_')
app.installTranslator(translator)
translations_out_string = '(Translations found)'

View File

@@ -103,7 +103,10 @@ class Library:
except KeyError:
position_perc = None
file_exists = os.path.exists(path)
try:
file_exists = os.path.exists(path)
except UnicodeEncodeError:
print('Error with unicode encoding in the library module')
all_metadata = {
'title': title,

View File

@@ -152,7 +152,9 @@ class BookSorter:
if self.mode == 'addition' and file_md5 in self.hashes_and_paths:
if (self.hashes_and_paths[file_md5] == filename
and os.path.exists(self.hashes_and_paths[file_md5])):
print(f'{os.path.basename(filename)} is already in database')
if not self.hashes_and_paths[file_md5] == filename:
print(f'{os.path.basename(filename)} is already in database')
return
file_extension = os.path.splitext(filename)[1][1:]