Skip to content

Commit

Permalink
_() should always return a frozen string
Browse files Browse the repository at this point in the history
related to bsc#1125006
  • Loading branch information
lslezak committed Mar 1, 2019
1 parent 4652448 commit 3f2d2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ruby/yast/i18n.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _(str)
key_exist?(str)
end
end
found ? Translation._(str) : str
found ? Translation._(str) : str.freeze
end

# No translation, only marks the text to be found by gettext when creating POT file,
Expand Down

0 comments on commit 3f2d2ff

Please sign in to comment.