Skip to content

Commit

Permalink
Fix call to slice to make it compatible with previous versions
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed May 8, 2020
1 parent d88aa79 commit 2ad6b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/AutoinstClone.rb
Expand Up @@ -102,7 +102,7 @@ def createClonableList
clonable = resource_map["X-SuSE-YaST-AutoInstClonable"] == "true"
next unless clonable

desktop_file = resource_map.fetch("X-SuSE-DocTeamID", "")[4..]
desktop_file = resource_map.fetch("X-SuSE-DocTeamID", "").slice(4..-1)
translation_key = "Name(#{desktop_file}.desktop): #{resource_map["Name"]}"
name = Builtins.dpgettext("desktop_translations", "/usr/share/locale/", translation_key)
name = resource_map.fetch("Name", "") if name == translation_key
Expand Down

0 comments on commit 2ad6b90

Please sign in to comment.