diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-05-17 18:11:15 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-05-17 18:11:15 -0400 |
commit | bdd62aba95cba6aa4930e14cee00d2dcc6d43f96 (patch) | |
tree | 8d21a7cdfb403be11afd7cca82af564a4fec7c53 /lib/sisu/v3/po4a.rb | |
parent | v3: options, expand name of source file for selected language directories (diff) |
v3: po4a re-enabled, related fixes (issues persist)sisu_3.0.9
Diffstat (limited to 'lib/sisu/v3/po4a.rb')
-rw-r--r-- | lib/sisu/v3/po4a.rb | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/sisu/v3/po4a.rb b/lib/sisu/v3/po4a.rb index 880bda98..dd2aff7a 100644 --- a/lib/sisu/v3/po4a.rb +++ b/lib/sisu/v3/po4a.rb @@ -69,7 +69,6 @@ module SiSU_po4a class Source @@opt_src,@@opt_trn,@@opt_src_,@@opt_trn_,@@md_src,@@md_trn=nil,nil,nil,nil,nil,nil def initialize(opt,fn=nil) - @opt=opt @opt,@fn=opt,fn #unless @opt.fns =~/(.+?\.(?:-|ssm\.)?sst)$/ # puts "#{@opt.fns} not a processed file type" @@ -77,7 +76,6 @@ module SiSU_po4a r=Px[:lng_lst].join('|') r.gsub!(/\|en\|/,'|') @lang_regx=%r{(?:#{r})} -# @lang_regx=%r{(?:es|fr)} if opt.fns =~/\S+?~#{@lang_regx}\.ss[mti]/ \ and opt.f_pth[:lng]!='en' @@opt_src_=false @@ -178,13 +176,8 @@ module SiSU_po4a end def songsheet ############## BUG @fn changes value -#p __LINE__ -#p @fn fn=@fn pot=pot_markup(@data_src,@data_trn) -#p __LINE__ -#p @fn -#p fn publish(fn,pot) end def extract_endnotes(dob='') #% Used for extraction of endnotes from paragraphs @@ -946,11 +939,11 @@ GSUB unless @md.opt.cmd =~/M/ require_relative 'git' # git.rb git=SiSU_Git::Source.new(@md.opt) - git.create_file_structure_git unless FileTest.directory?(@file.output_path.pot_git) + git.create_file_structure_git unless FileTest.directory?(@file.output_path.pot_git.dir) if @md.opt.f_pth[:lng] =='en' - cp(@file.place_file.pot.dir, @file.output_path.pot_git) + cp(@file.place_file.pot.dir, @file.output_path.pot_git.dir) else # naive, work on --> - cp(@file.place_file.po.dir, @file.output_path.po_git) #unless FileTest.file?(@file.place_file.po_git.dir) + cp(@file.place_file.po.dir, @file.output_path.po_git.dir) #unless FileTest.file?(@file.place_file.po_git.dir) end git.read end |