mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 00:34:16 +02:00
fix: not retrieving the system default locale to translate the application texts
This commit is contained in:
@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- Update-check daemon not showing notifications
|
- Update-check daemon not showing notifications
|
||||||
|
- Not retrieving the system default locale to translate the application texts
|
||||||
- Installed button available after a recent installation if a new search is done
|
- Installed button available after a recent installation if a new search is done
|
||||||
|
|
||||||
## [0.6.1] 2019-09-26
|
## [0.6.1] 2019-09-26
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ def read() -> Namespace:
|
|||||||
help='default memory caches expiration time in SECONDS. Default: %(default)s')
|
help='default memory caches expiration time in SECONDS. Default: %(default)s')
|
||||||
parser.add_argument('-ie', '--icon-exp', action="store", default=int(os.getenv('BAUH_ICON_EXPIRATION', 60 * 5)),
|
parser.add_argument('-ie', '--icon-exp', action="store", default=int(os.getenv('BAUH_ICON_EXPIRATION', 60 * 5)),
|
||||||
type=int, help='cached icons expiration time in SECONDS. Default: %(default)s')
|
type=int, help='cached icons expiration time in SECONDS. Default: %(default)s')
|
||||||
parser.add_argument('-l', '--locale', action="store", default=os.getenv('BAUH_LOCALE', 'en'),
|
parser.add_argument('-l', '--locale', action="store", default=os.getenv('BAUH_LOCALE'), help='Locale key. e.g: en, es, pt, ...')
|
||||||
help='Translation key. Default: %(default)s')
|
|
||||||
parser.add_argument('-i', '--check-interval', action="store", default=int(os.getenv('BAUH_CHECK_INTERVAL', 60)),
|
parser.add_argument('-i', '--check-interval', action="store", default=int(os.getenv('BAUH_CHECK_INTERVAL', 60)),
|
||||||
type=int, help='Updates check interval in SECONDS. Default: %(default)s')
|
type=int, help='Updates check interval in SECONDS. Default: %(default)s')
|
||||||
parser.add_argument('-n', '--system-notifications', action="store", choices=[0, 1],
|
parser.add_argument('-n', '--system-notifications', action="store", choices=[0, 1],
|
||||||
@@ -48,7 +47,7 @@ def validate(args: Namespace, logger: logging.Logger):
|
|||||||
if args.icon_exp < 0:
|
if args.icon_exp < 0:
|
||||||
logger.info("'icon-exp' set to '{}': cache will not expire.".format(args.cache_exp))
|
logger.info("'icon-exp' set to '{}': cache will not expire.".format(args.cache_exp))
|
||||||
|
|
||||||
if not args.locale.strip():
|
if args.locale and not args.locale.strip():
|
||||||
logger.info("'locale' set as '{}'. You must provide a valid one. Aborting...".format(args.locale))
|
logger.info("'locale' set as '{}'. You must provide a valid one. Aborting...".format(args.locale))
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user