[fix] missing categories i18n

This commit is contained in:
Vinícius Moreira
2020-01-09 12:20:34 -03:00
parent 0acb5b7047
commit 8b77c87dab
5 changed files with 11 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- not using HTTP sessions anymore to perform the searches. It seems to avoid URLs not being found after an internet drop event.
### Fixes
- missing categories i18n [48](https://github.com/vinifmor/bauh/issues/48)
- not verifying if an icon path is a file
- Web:
- not handling HTTP connection issues

View File

@@ -171,4 +171,5 @@ files=Dateien
all_files=Alle Dateien
file_chooser.title=Dateiauswahl
message.file.not_exist=Datei existiert nicht
message.file.not_exist.body=Die Datei {} scheint nicht zu existieren
message.file.not_exist.body=Die Datei {} scheint nicht zu existieren
development=Entwicklung

View File

@@ -175,4 +175,5 @@ files=files
all_files=all files
file_chooser.title=File selector
message.file.not_exist=File does not exist
message.file.not_exist.body=The file {} seems not to exist
message.file.not_exist.body=The file {} seems not to exist
development=development

View File

@@ -172,4 +172,5 @@ files=files
all_files=tutti i files
file_chooser.title=Selettore file
message.file.not_exist=File non esiste
message.file.not_exist.body=Il file {} sembra non esistere
message.file.not_exist.body=Il file {} sembra non esistere
development=sviluppo

View File

@@ -19,7 +19,10 @@ class I18n(dict):
return self.current.__getitem__(item)
except KeyError:
if self.default:
return self.default.__getitem__(item)
try:
return self.default.__getitem__(item)
except KeyError:
return item
else:
return item