diff options
author | Robin Houston <robin@lenny.robin> | 2011-06-09 12:54:05 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-06-09 12:54:05 +0100 |
commit | 4d077dc48fb0589dbf401a131d524b23ab0d2258 (patch) | |
tree | 680b12febc448827ee937039d38e97020b4c5df9 /vendor/gems/gettext-2.1.0/lib/gettext/utils.rb | |
parent | cb67f4d0ef9feae96a90ea5bba63c939268b1224 (diff) |
Bundle the locale and gettext gems
Diffstat (limited to 'vendor/gems/gettext-2.1.0/lib/gettext/utils.rb')
-rw-r--r-- | vendor/gems/gettext-2.1.0/lib/gettext/utils.rb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/vendor/gems/gettext-2.1.0/lib/gettext/utils.rb b/vendor/gems/gettext-2.1.0/lib/gettext/utils.rb new file mode 100644 index 000000000..e4f1be4e8 --- /dev/null +++ b/vendor/gems/gettext-2.1.0/lib/gettext/utils.rb @@ -0,0 +1,37 @@ +=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 |