Skip to content

Commit

Permalink
Fix domain name for each tools and po parser
Browse files Browse the repository at this point in the history
rgettext ->
gettext

refs mutoh#12

Reported by mtasaka. Thanks!!!
  • Loading branch information
Haruka Yoshihara committed Oct 12, 2012
1 parent 1d504c9 commit 6fc0fe5
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/gettext/tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
require 'fileutils'

module GetText
bindtextdomain "rgettext"
bindtextdomain "gettext"

BOM_UTF8 = [0xef, 0xbb, 0xbf].pack("c3")

Expand Down
2 changes: 1 addition & 1 deletion lib/gettext/tools/msgfmt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def run(*arguments)

include GetText

bindtextdomain("rgettext")
bindtextdomain("gettext")

def initialize
@input_file = nil
Expand Down
2 changes: 1 addition & 1 deletion lib/gettext/tools/msginit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def run(*arguments)

include GetText

bindtextdomain("rgettext")
bindtextdomain("gettext")

def initialize #:nodoc:
@input_file = nil
Expand Down
2 changes: 1 addition & 1 deletion lib/gettext/tools/msgmerge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def run(*arguments)

include GetText

bindtextdomain("rgettext")
bindtextdomain("gettext")

# constant values
VERSION = GetText::VERSION
Expand Down
2 changes: 1 addition & 1 deletion lib/gettext/tools/parser/glade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module GladeParser
extend GetText
extend self

bindtextdomain("rgettext")
bindtextdomain("gettext")

TARGET1 = /<property.*translatable="yes">(.*)/
TARGET2 = /(.*)<\/property>/
Expand Down
2 changes: 1 addition & 1 deletion lib/gettext/tools/poparser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PoParser < Racc::Parser
module_eval(<<'...end poparser.ry/module_eval...', 'poparser.ry', 119)
if GetText.respond_to?(:bindtextdomain)
include GetText
GetText.bindtextdomain("rgettext")
GetText.bindtextdomain("gettext")
else
def _(message_id)
message_id
Expand Down
2 changes: 1 addition & 1 deletion lib/gettext/tools/xgettext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def add_parser(parser)

include GetText

bindtextdomain("rgettext")
bindtextdomain("gettext")

# @api private
@@default_parsers = []
Expand Down
2 changes: 1 addition & 1 deletion src/poparser.ry
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ end
---- inner
if GetText.respond_to?(:bindtextdomain)
include GetText
GetText.bindtextdomain("rgettext")
GetText.bindtextdomain("gettext")
else
def _(message_id)
message_id
Expand Down

0 comments on commit 6fc0fe5

Please sign in to comment.