Sha256: 93768d361f3e1224374f2cc967794a37d894da6d37fc73602a54d7cb126dcffb

Contents?: true

Size: 252 Bytes

Versions: 457

Compression:

Stored size: 252 Bytes

Contents

# 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

457 entries across 457 versions & 2 rubygems

Version Path
puppet-7.34.0 lib/puppet/gettext/stubs.rb
puppet-7.34.0-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-7.34.0-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-7.34.0-universal-darwin lib/puppet/gettext/stubs.rb
puppet-7.33.0 lib/puppet/gettext/stubs.rb
puppet-7.33.0-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-7.33.0-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-7.33.0-universal-darwin lib/puppet/gettext/stubs.rb
puppet-7.32.1 lib/puppet/gettext/stubs.rb
puppet-7.32.1-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-7.32.1-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-7.32.1-universal-darwin lib/puppet/gettext/stubs.rb
puppet-7.31.0 lib/puppet/gettext/stubs.rb
puppet-7.31.0-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-7.31.0-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-7.31.0-universal-darwin lib/puppet/gettext/stubs.rb
puppet-7.30.0 lib/puppet/gettext/stubs.rb
puppet-7.30.0-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-7.30.0-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-7.30.0-universal-darwin lib/puppet/gettext/stubs.rb