2 utils.rb - Utility functions
4 Copyright (C) 2005,2006 Masao Mutoh
6 You may redistribute it and/or modify it under the same
7 license terms as Ruby or LGPL.
10 require 'gettext/tools'
12 warn "'gettext/utils.rb' is deprecated. Use gettext/tools.rb."
16 alias :create_mofiles_org :create_mofiles #:nodoc:
17 alias :update_pofiles_org :update_pofiles #:nodoc:
20 # Deprecated. Use gettext/tools instead.
21 def create_mofiles(verbose = false,
22 podir = "./po", targetdir = "./data/locale",
23 targetpath_rule = "%s/LC_MESSAGES") # :nodoc:
24 warn "'gettext/utils.rb' is deprecated. Use gettext/tools.rb."
25 create_mofiles_org(:verbose => verbose,
27 :mo_root => targetdir,
28 :mo_root_rule => targetpath_rule)
31 # Deprecated. Use gettext/tools instead.
32 def update_pofiles(textdomain, files, app_version, po_root = "po", refpot = "tmp.pot") # :nodoc:
33 warn "'gettext/utils.rb' is deprecated. Use gettext/tools.rb."
34 options = {:po_root => po_root}
35 update_pofiles_org(textdomain, files, app_version, options)