File: simple.rb

package info (click to toggle)
ruby-gettext 3.3.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 6,424 kB
  • sloc: ruby: 9,643; makefile: 8
file content (16 lines) | stat: -rw-r--r-- 219 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- coding: utf-8 -*-

require 'gettext'

class Simple
  include GetText
  bindtextdomain("test1", :path => "locale")

  def test
    _("language")
  end

  def test_formatted_string
    _("one is %d.") % 1
  end
end