Sha256: 448fedf22a410c81108e1dbbcb2540f8b262429460712af6de18e9c507b1009f

Contents?: true

Size: 1.18 KB

Versions: 14

Compression:

Stored size: 1.18 KB

Contents

# encoding: utf-8

=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 or LGPL.
=end

require 'gettext/tools'

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

module GetText

  alias :create_mofiles_org :create_mofiles #:nodoc:
  alias :update_pofiles_org :update_pofiles #:nodoc:


  # Deprecated. Use gettext/tools instead.
  def create_mofiles(verbose = false,
                     podir = "./po", targetdir = "./data/locale",
                     targetpath_rule = "%s/LC_MESSAGES")  # :nodoc:
    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") # :nodoc:
    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

14 entries across 14 versions & 2 rubygems

Version Path
gettext-2.3.9 lib/gettext/utils.rb
gettext-2.3.8 lib/gettext/utils.rb
gettext-2.3.7 lib/gettext/utils.rb
gettext-2.3.6 lib/gettext/utils.rb
gettext-2.3.5 lib/gettext/utils.rb
gettext-2.3.4 lib/gettext/utils.rb
gettext-2.3.3 lib/gettext/utils.rb
gettext-2.3.2 lib/gettext/utils.rb
gettext-2.3.1 lib/gettext/utils.rb
gettext-2.3.0 lib/gettext/utils.rb
gettext-2.2.1 lib/gettext/utils.rb
gettext-2.2.0 lib/gettext/utils.rb
ofm_gettext-2.0.1 lib/gettext/utils.rb
ofm_gettext-2.0.0 lib/gettext/utils.rb