Sha256: adc7c29a10eafe07b84378b43deaf61559d32e7edfcfbd05b44dcacff165a807

Contents?: true

Size: 282 Bytes

Versions: 20

Compression:

Stored size: 282 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

20 entries across 20 versions & 1 rubygems

Version Path
puppet-8.3.0 lib/puppet/gettext/stubs.rb
puppet-8.3.0-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.3.0-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.3.0-universal-darwin lib/puppet/gettext/stubs.rb
puppet-8.3.1 lib/puppet/gettext/stubs.rb
puppet-8.3.1-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.3.1-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.3.1-universal-darwin lib/puppet/gettext/stubs.rb
puppet-8.2.0 lib/puppet/gettext/stubs.rb
puppet-8.2.0-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.2.0-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.2.0-universal-darwin lib/puppet/gettext/stubs.rb
puppet-8.1.0 lib/puppet/gettext/stubs.rb
puppet-8.1.0-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.1.0-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.1.0-universal-darwin lib/puppet/gettext/stubs.rb
puppet-8.0.1 lib/puppet/gettext/stubs.rb
puppet-8.0.1-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.0.1-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-8.0.1-universal-darwin lib/puppet/gettext/stubs.rb