lib/babelyoda.rb in babelyoda-2.1.10 vs lib/babelyoda.rb in babelyoda-2.1.11
- old
+ new
@@ -207,12 +207,22 @@
end
end
end
end
- desc "Incrementally localizes XIB files"
- task :localize_xibs do
+ desc "Marks current development language XIBs as source for further localization."
+ task :update_xib_hashes do
+ spec.scm.transaction("[Babelyoda] Update XIB SHA1 version refs") do
+ $logger.info "Update XIB SHA1 version refs..."
+ spec.xib_files.each do |filename|
+ spec.scm.store_version!(filename)
+ end
+ end
+ end
+
+ task "NB! Incrementally localizes XIB files (but doesn't update XIB SHA1 version refs)"
+ task :localize_xibs_wo_updating_xib_hashes do
spec.scm.transaction("[Babelyoda] Localize XIB files") do
$logger.info "Translating XIB files..."
spec.xib_files.each do |filename|
xib = Babelyoda::Xib.new(filename, spec.development_language)
if xib.localizable?
@@ -222,18 +232,16 @@
end
else
$logger.warn "#{filename} has no localizable resources. No localization needed."
end
end
- end
-
- spec.scm.transaction("[Babelyoda] Update XIB SHA1 version refs") do
- spec.xib_files.each do |filename|
- spec.scm.store_version!(filename)
- end
- end
+ end
end
+
+ desc "Incrementally localizes XIB files"
+ task :localize_xibs => [:localize_xibs_wo_updating_xib_hashes, :update_xib_hashes] do
+ end
desc "Pull remote translations"
task :pull => [:fetch_strings, :localize_xibs] do
end
@@ -271,10 +279,10 @@
all_found = false
end
end
exit 1 unless all_found
end
-
+
namespace :remote do
desc "List remote keysets"
task :list do
ap spec.engine.list