diff --git a/CHANGELOG.md b/CHANGELOG.md index 228d4864..3b930552 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/bauh/gems/appimage/controller.py b/bauh/gems/appimage/controller.py index 066c9708..e08882c9 100644 --- a/bauh/gems/appimage/controller.py +++ b/bauh/gems/appimage/controller.py @@ -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])