[appimage] fix -> not properly retrieving the 'Category' field options translated

This commit is contained in:
Vinicius Moreira
2020-09-11 17:18:28 -03:00
parent 6b634545c9
commit ce8c2bd370
2 changed files with 2 additions and 1 deletions

View File

@@ -96,6 +96,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- AppImage
- manual file installation
- crashing if the AppImage icon is not on the extracted folder root path [#132](https://github.com/vinifmor/bauh/issues/132)
- not properly retrieving the 'Category' field options translated
- some environment variable are not available during the launch process
- Arch
- not able to upgrade a package that explicitly defines a conflict with itself (e.g: grub)

View File

@@ -105,7 +105,7 @@ class AppImageManager(SoftwareManager):
input_description = TextInputComponent(label=self.i18n['description'].capitalize())
cat_ops = [InputOption(label=self.i18n['category.none'].capitalize(), value=0)]
cat_ops.extend([InputOption(label=self.i18n[c.lower()].capitalize(), value=c) for c in self.context.default_categories])
cat_ops.extend([InputOption(label=self.i18n.get('category.{}'.format(c.lower()), c.lower()).capitalize(), value=c) for c in self.context.default_categories])
inp_cat = SingleSelectComponent(label=self.i18n['category'], type_=SelectViewType.COMBO, options=cat_ops,
default_option=cat_ops[0])