OSDN Git Service

e4f1be4e8d56f0f1cafd7e617f0ca86b8bb6d663
[redminele/redminele.git] / ruby / lib / ruby / gems / 1.8 / gems / gettext-2.1.0 / lib / gettext / utils.rb
1 =begin
2   utils.rb - Utility functions
3
4   Copyright (C) 2005,2006 Masao Mutoh
5
6   You may redistribute it and/or modify it under the same
7   license terms as Ruby or LGPL.
8 =end
9
10 require 'gettext/tools'
11
12 warn "'gettext/utils.rb' is deprecated. Use gettext/tools.rb."
13
14 module GetText
15
16   alias :create_mofiles_org :create_mofiles #:nodoc:
17   alias :update_pofiles_org :update_pofiles #:nodoc:
18
19
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,
26                         :po_root => podir,
27                         :mo_root => targetdir,
28                         :mo_root_rule => targetpath_rule)
29   end
30
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)
36   end
37 end