Sha256: 1599df265bb965ac19ceeaa77791ff1db26251e088e9bbd1576379e31f033159

Contents?: true

Size: 252 Bytes

Versions: 46

Compression:

Stored size: 252 Bytes

Contents

# These stub the translation methods noramlly 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

46 entries across 46 versions & 2 rubygems

Version Path
puppet-5.3.7 lib/puppet/gettext/stubs.rb
puppet-5.3.7-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-5.3.7-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-5.3.7-universal-darwin lib/puppet/gettext/stubs.rb
puppet-5.3.6 lib/puppet/gettext/stubs.rb
puppet-5.3.6-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-5.3.6-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-5.3.6-universal-darwin lib/puppet/gettext/stubs.rb
puppet-5.3.5 lib/puppet/gettext/stubs.rb
puppet-5.3.5-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-5.3.5-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-5.3.5-universal-darwin lib/puppet/gettext/stubs.rb
puppet-5.3.4 lib/puppet/gettext/stubs.rb
puppet-5.3.4-x86-mingw32 lib/puppet/gettext/stubs.rb
puppet-5.3.4-x64-mingw32 lib/puppet/gettext/stubs.rb
puppet-5.3.4-universal-darwin lib/puppet/gettext/stubs.rb
bolt-0.16.0 vendored/puppet/lib/puppet/gettext/stubs.rb
bolt-0.15.0 vendored/puppet/lib/puppet/gettext/stubs.rb
bolt-0.14.0 vendored/puppet/lib/puppet/gettext/stubs.rb
bolt-0.13.0 vendored/puppet/lib/puppet/gettext/stubs.rb