Sha256: a347db0f5f6601a29311c1bd72a97d799728e4bf06d503dfaea3618432546c0b

Contents?: true

Size: 283 Bytes

Versions: 32

Compression:

Stored size: 283 Bytes

Contents

# frozen_string_literal: true

# These stub the translation methods normally brought in
# by FastGettext. Used when Gettext could not be properly
# initialized.
def _(msg)
  msg
end

def n_(*args, &block)
  plural = args[2] == 1 ? args[0] : args[1]
  block ? block.call : plural
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
puppet-8.10.0 lib/puppet/gettext/stubs.rb
puppet-8.10.0-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.10.0-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.10.0-universal-darwin lib/puppet/gettext/stubs.rb
puppet-8.9.0 lib/puppet/gettext/stubs.rb
puppet-8.9.0-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.9.0-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.9.0-universal-darwin lib/puppet/gettext/stubs.rb
puppet-8.8.1 lib/puppet/gettext/stubs.rb
puppet-8.8.1-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.8.1-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.8.1-universal-darwin lib/puppet/gettext/stubs.rb
puppet-8.7.0 lib/puppet/gettext/stubs.rb
puppet-8.7.0-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.7.0-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.7.0-universal-darwin lib/puppet/gettext/stubs.rb
puppet-8.6.0 lib/puppet/gettext/stubs.rb
puppet-8.6.0-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.6.0-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.6.0-universal-darwin lib/puppet/gettext/stubs.rb