Skip to content

Commit

Permalink
Include some hints in the "Priority" label (bsc#1154693) (#482)
Browse files Browse the repository at this point in the history
- 4.4.9
  • Loading branch information
lslezak committed Aug 23, 2021
1 parent f620fe9 commit 4c2f9c5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
7 changes: 7 additions & 0 deletions package/yast2-packager.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Aug 23 13:31:34 UTC 2021 - Ladislav Slezák <lslezak@suse.cz>

- Include some hints in the "Priority" label in the repository
manager (if there is enough screen space) (bsc#1154693)
- 4.4.9

-------------------------------------------------------------------
Tue Aug 17 15:18:07 UTC 2021 - Ladislav Slezák <lslezak@suse.cz>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-packager.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-packager
Version: 4.4.8
Version: 4.4.9
Release: 0
Summary: YaST2 - Package Library
License: GPL-2.0-or-later
Expand Down
19 changes: 18 additions & 1 deletion src/lib/packager/clients/repositories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,24 @@ def initialize
# default (minimal) priority of a repository
@default_priority = 99

@priority_label = _("&Priority")
# use a longer label in wide terminals, assume that in Qt the
# longer label always fits
@priority_label = if textmode && UI.GetDisplayInfo["Width"].to_i < 120
# TRANSLATORS: a widget label for repository priority
# (the short version for small screens)
_("&Priority")
else
# TRANSLATORS: a widget label for repository priority
# (the longer version for larger screens).
# The priority meaning is a bit misleading
# therefore display an extra hint for the users.
#
# NOTE: Still keep the label as short as possible, it's used for
# terminals wider than the usual 80x25 (width >= 120) but there still
# might not be enough space for a too long label, do not use more than
# about 50 characters.
_("&Priority (higher number = lower priority)")
end

@keeppackages_label = _("Keep Downloaded Packages")

Expand Down

0 comments on commit 4c2f9c5

Please sign in to comment.