Project

General

Profile

« Previous | Next » 

Revision 65c73cde

Added by Pierre-Louis Bonicoli over 14 years ago

  • ID 65c73cdedaac30cbc6e4b11cd6271b1541937cc6

Use gettext_rails/tools instead of gettext/utils

View differences:

config/initializers/app_deps.rb
require 'gettext_rails'
require 'exif'
require 'utils'
require 'mycyma'
require 'redcloth'
require "locale"
require "locale_rails"
require "gettext"
require "gettext_activerecord"
require "gettext_rails"
lib/tasks/gettext.rake
require 'mycyma'
namespace :i18n do
desc "Create mo-files for l10n"
desc "Create mo-files for l10n"
task :makemo do
require 'gettext/utils'
GetText.create_mofiles(true, "po", "locale")
require 'gettext_rails/tools'
GetText.create_mofiles
end
desc "Update pot/po files to match new version."
task :updatepo do
require 'gettext/utils'
require 'gettext_rails/tools'
GetText.update_pofiles(MyCyma::Info::app_name,
Dir.glob("{app,lib}/**/*.{rb,rhtml}"),
MyCyma::Info::versioned_name)

Also available in: Unified diff