mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 16:24:16 +02:00
[fix] Fix missing i18n keys when there are no mapped translations for the system's default locale
This commit is contained in:
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
|
|
||||||
|
## [0.7.5] 2019-12-20
|
||||||
|
### Fixes
|
||||||
|
- Fix missing i18n keys when there are no mapped translations for the system's default locale [#40](https://github.com/vinifmor/bauh/issues/40)
|
||||||
|
|
||||||
## [0.7.4] 2019-12-09
|
## [0.7.4] 2019-12-09
|
||||||
### Improvements
|
### Improvements
|
||||||
- AUR
|
- AUR
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
__version__ = '0.7.4'
|
__version__ = '0.7.5'
|
||||||
__app_name__ = 'bauh'
|
__app_name__ = 'bauh'
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ def get_locale_keys(key: str = None, locale_dir: str = resource.get_path('locale
|
|||||||
break
|
break
|
||||||
|
|
||||||
if not locale_path:
|
if not locale_path:
|
||||||
return key, {}
|
return current_locale if current_locale else key, {}
|
||||||
|
|
||||||
with open(locale_path, 'r') as f:
|
with open(locale_path, 'r') as f:
|
||||||
locale_keys = f.readlines()
|
locale_keys = f.readlines()
|
||||||
|
|||||||
Reference in New Issue
Block a user