Skip to content

Commit

Permalink
Declare textdomain to fix untranslated texts
Browse files Browse the repository at this point in the history
found by y2tool y2makepot
  • Loading branch information
mvidner committed Aug 3, 2016
1 parent 90589cc commit 085f0e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/registration/ui/regservice_selection_dialog.rb
Expand Up @@ -58,6 +58,7 @@ def self.run(services:, heading: nil, description: nil)
# @param description [String] Text to be shown as description. A default text
# will be used if it's not specified.
def initialize(services: [], heading: nil, description: nil)
textdomain "registration"
super(
services: [scc_service] + services,
heading: heading || _("Local Registration Servers"),
Expand Down
2 changes: 2 additions & 0 deletions test/base_system_registration_dialog_test.rb
Expand Up @@ -26,6 +26,8 @@
let(:mode) { "installation" }

before do
textdomain "registration"

allow(Registration::SwMgmt).to receive(:find_base_product).and_return(base_product)
allow(Yast::Mode).to receive(:mode).and_return(mode)
allow(Registration::Registration).to receive(:is_registered?).and_return(registered?)
Expand Down
2 changes: 2 additions & 0 deletions test/regservice_selection_dialog.rb
Expand Up @@ -76,6 +76,8 @@
end

it "sets default heading and description" do
textdomain "registration"

expect(Yast::UI).to receive(:UserInput).and_return(:cancel)
expect(dialog).to receive(:Heading)
.with(_("Local Registration Servers"))
Expand Down

0 comments on commit 085f0e8

Please sign in to comment.