File: original.rb

package info (click to toggle)
ruby-fast-gettext 4.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 676 kB
  • sloc: ruby: 3,209; makefile: 4
file content (24 lines) | stat: -rw-r--r-- 564 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true

require_relative 'base'

raise "Do not use bundler" if defined?(Bundler)

begin
  gem 'gettext', '>=2.0.0'
rescue LoadError => e
  abort "Install the gettext gem -- #{e}"
end

require 'gettext'
include GetText # rubocop:disable Style/MixinUsage

self.locale = 'de'

puts "GetText #{GetText::VERSION}:"
bindtextdomain('test', path: locale_folder('test'))
results_test { _('car') == 'Auto' }

# i cannot add the large file, since its an internal applications mo file
bindtextdomain('large', path: locale_folder('large'))
results_large