Spanish translation
This commit is contained in:
@@ -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)'
|
||||
|
@@ -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,
|
||||
|
@@ -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:]
|
||||
|
Reference in New Issue
Block a user