|
# to allow in-place run
|
|
$: << File.join(File.dirname(__FILE__), ".", "lib")
|
|
|
|
ENV['LC_ALL'] = "C"
|
|
|
|
require 'rake'
|
|
require 'gettext/utils'
|
|
require 'lib/ldap_shadows/config'
|
|
require 'lib/ldap_shadows/info'
|
|
|
|
namespace :i18n do
|
|
desc "Create mo-files for l10n"
|
|
task :makemo do
|
|
GetText.create_mofiles(true, "po", LdapShadows::Config::L10N_DIR)
|
|
end
|
|
|
|
desc "Update pot/po files to match new version."
|
|
task :updatepo do
|
|
GetText.update_pofiles("ldapshadows",
|
|
Dir.glob("lib/**/*.{rb,rhtml}") + Dir.glob("bin/*"),
|
|
LdapShadows::PRODUCT + " " + LdapShadows::VERSION)
|
|
end
|
|
end
|