Skip to content

Commit

Permalink
Merge pull request #152 from yast/up_rubocop
Browse files Browse the repository at this point in the history
Up rubocop
  • Loading branch information
jreidinger authored Dec 22, 2023
2 parents 4a9d3be + af0a4b8 commit 679e9ba
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# use the shared YaST defaults
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop-0.71.0_yast_style.yml
/usr/share/YaST2/data/devtools/data/rubocop-1.24.1_yast_style.yml

# We need to be sure that everything works fine before enabling it
Style/FrozenStringLiteralComment:
Expand Down
2 changes: 2 additions & 0 deletions src/lib/y2firstboot/clients/hostname.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def run

def initialize
textdomain "firstboot"

super
end

def run
Expand Down
1 change: 1 addition & 0 deletions src/lib/y2firstboot/clients/licenses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Licenses < Yast::Client
def initialize
textdomain "firstboot"

super
@args = GetInstArgs.argmap
end

Expand Down
2 changes: 1 addition & 1 deletion src/lib/y2firstboot/clients/wsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def install_patterns

# TRANSLATORS: Error message, %s is a pattern name
Yast::Report.Error(_("Cannot select pattern\n\"%s\" to install.\n" \
"Some software might be missing.") % pattern)
"Some software might be missing.") % pattern)
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions src/lib/y2firstboot/clients/wsl_product_selection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def run

if result == :next
save(product: dialog.product,
wsl_gui_pattern: dialog.wsl_gui_pattern,
wsl_systemd_pattern: dialog.wsl_systemd_pattern)
wsl_gui_pattern: dialog.wsl_gui_pattern,
wsl_systemd_pattern: dialog.wsl_systemd_pattern)
end

result
Expand Down
14 changes: 7 additions & 7 deletions src/lib/y2firstboot/dialogs/wsl_product_selection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def dialog_content
VSpacing(2),
# TRANSLATORS:
Left(Label(_("The WSL GUI pattern provides some needed packages for\n" \
"a better experience with graphical applications in WSL."))),
"a better experience with graphical applications in WSL."))),
VSpacing(1),
# TRANSLATORS: check box label
Left(CheckBox(Id(:wsl_gui_pattern),
Expand All @@ -101,7 +101,7 @@ def dialog_content
VSpacing(2),
# TRANSLATORS:
Left(Label(_("The WSL systemd pattern provides wsl.conf adjustment\n" \
"and init symlink for systemd enablement in WSL."))),
"and init symlink for systemd enablement in WSL."))),
VSpacing(1),
# TRANSLATORS: check box label
Left(CheckBox(Id(:wsl_systemd_pattern),
Expand All @@ -118,13 +118,13 @@ def help_text
"Some products might require registration.</p>") +
# TRANSLATORS: help text (2/3)
_("<p>For smoother experience with graphical programs in WSL " \
"the WSL GUI pattern provides recommended config, tools and libraries. " \
"In that case the system needs to be registered as well.</p>") +
"the WSL GUI pattern provides recommended config, tools and libraries. " \
"In that case the system needs to be registered as well.</p>") +
# TRANSLATORS: help text (3/3)
_("<p>For enablement of systemd in WSL the WSL systemd pattern provides wsl.conf " \
"and /sbin/init adjustments. " \
"In that case the system needs to be registered as well. " \
"Relaunch is required to use systemd.</p>")
"and /sbin/init adjustments. " \
"In that case the system needs to be registered as well. " \
"Relaunch is required to use systemd.</p>")
end

private
Expand Down

0 comments on commit 679e9ba

Please sign in to comment.