File: hello.rb

package info (click to toggle)
libintl-gettext-ruby 0.11-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 124 kB
  • ctags: 8
  • sloc: ansic: 95; makefile: 49; ruby: 13
file content (6 lines) | stat: -rw-r--r-- 208 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
require 'intl'

    intl = Intl.new( "hello" );
    printf( intl._("Default location for message catalog is %s\n"),
            intl.bindtextdomain("hello", nil ) );
    print( intl._("Hello World"), "\n" );