lib/babelyoda.rb in babelyoda-2.1.7 vs lib/babelyoda.rb in babelyoda-2.1.8
- old
+ new
@@ -152,11 +152,11 @@
end
end
end
desc "Pushes resources to the translators. Use LANGS to specify languages to push. Defaults to '#{spec.development_language}'."
- task :push => [:drop_orphan_keysets, :drop_orphan_keys] do
+ task :push_keys do
langs = [ spec.development_language ]
if ENV['LANGS']
if ENV['LANGS'] == '*'
langs = spec.all_languages
else
@@ -184,9 +184,13 @@
spec.engine.replace(remote_keyset, lang)
end
$logger.debug "New keys: #{result[:new]} Updated keys: #{result[:updated]}"
end
end
+ end
+
+ desc "Pushes resources to the translators, then drops orphan keys and keysets on the remote. Use LANGS to specify languages to push. Defaults to '#{spec.development_language}'."
+ task :push => [:push_keys, :drop_orphan_keysets, :drop_orphan_keys] do
end
desc "Fetches remote strings and merges them down into local .string files"
task :fetch_strings do
spec.scm.transaction("[Babelyoda] Merge in remote translations") do