Sha256: 967b446765885a5fd2133aec2ab3243f359f50b8217b17ff2c6d4b6c38761e82

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

=begin
  utils.rb - Utility functions

  Copyright (C) 2005,2006 Masao Mutoh

  You may redistribute it and/or modify it under the same
  license terms as Ruby.
=end

require 'gettext/tools'

warn "'gettext/utils.rb' is deprecated. Use gettext/tools.rb."

module GetText

  alias :create_mofiles_org :create_mofiles
  alias :update_pofiles_org :update_pofiles

  module_function :create_mofiles_org, :update_pofiles_org

  # Deprecated. Use gettext/tools instead.
  module_function
  def create_mofiles(verbose = false,
                     podir = "./po", targetdir = "./data/locale",
                     targetpath_rule = "%s/LC_MESSAGES")
    warn "'gettext/utils.rb' is deprecated. Use gettext/tools.rb."
    create_mofiles_org(:verbose => verbose,
                        :po_root => podir,
                        :mo_root => targetdir,
                        :mo_root_rule => targetpath_rule)
  end

  # Deprecated. Use gettext/tools instead.
  def update_pofiles(textdomain, files, app_version, po_root = "po", refpot = "tmp.pot")
    warn "'gettext/utils.rb' is deprecated. Use gettext/tools.rb."
    options = {:po_root => po_root}
    update_pofiles_org(textdomain, files, app_version, options)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grosser-gettext-2.0.0 lib/gettext/utils.rb