File: original.rb

package info (click to toggle)
ruby-fast-gettext 3.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 668 kB
  • sloc: ruby: 3,200; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 380 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'rubygems'
initial = methods.count + Module.constants.count

# GetText
gem 'gettext', '>=2.0.0'
require 'gettext'
GetText.locale = 'de'
GetText.bindtextdomain('test', path: 'spec/locale')
include GetText # rubocop:disable Style/MixinUsage
raise unless _('car') == 'Auto'

puts "GetText"
puts methods.count + Module.constants.count - initial