[yast-commit] <web-client> backgroud_patches_bnc550934 : delete translations which are not translated sufficiently (bnc#557169)
ref: refs/heads/backgroud_patches_bnc550934 commit 6b30c9f816b2596533dfc335775a7e3683d9e52e Author: Stefan Schubert <schubi@suse.de> Date: Mon Nov 23 09:30:31 2009 +0100 delete translations which are not translated sufficiently (bnc#557169) --- Rakefile | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/Rakefile b/Rakefile index 2a4665c..21f8667 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +require 'fileutils' + env = ENV.map { |key,val| ENV[key] ? %(#{key}="#{ENV[key]}") : nil }.reject {|x| x.nil?}.join(' ') plugins = Dir.glob('plugins/*')#.reject{|x| ['users'].include?(File.basename(x))} @@ -31,6 +33,12 @@ task :default => :test limit_eval = translated/(un_translated+translated) if limit_eval < limit/100 puts "Language #{key} should be deleted cause it has only #{(limit_eval*100).to_i} percent translation reached." + Dir.glob("**/#{key}/").each {|po_dir| + unless po_dir.include? "lang_helper" #do not delete translations for language selections +# puts "deleting #{po_dir}" +# remove_dir(po_dir, true) #force=true + end + } end } end -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
Stefan Schubert