diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-07-26 18:38:57 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-07-26 18:39:00 -0400 |
commit | de4b7d3ebae90c136fe1d571e78f9d20cafc2c25 (patch) | |
tree | baeb21fd79ee407149bf20aa1681e28a54aa42af /lib | |
parent | html, links to output formats, remove icons (diff) |
git sisu directory structure, lang dir beneath txt
* git sisu directory structure becomes more complicated
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v2/git.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/sisu/v2/git.rb b/lib/sisu/v2/git.rb index 2d7629fd..b910c723 100644 --- a/lib/sisu/v2/git.rb +++ b/lib/sisu/v2/git.rb @@ -65,9 +65,17 @@ module SiSU_Git def initialize(opt) @opt=opt @env=SiSU_Env::Info_env.new + l=SiSU_Env::Standardise_language.new.file_to_language(@opt.fns) @git_path={} - @git_path[:fnb]=@env.path.processing_path_git + '/' + @opt.fnb - @git_path[:src]=@git_path[:fnb] + '/' + Gt[:txt] + if @env.i18n.multilingual + m=/((.+?)(?:\~\w{2,3})?)\.((?:-|ssm\.)?sst)$/ #watch added match for sss + fnn,fnb,fnt=@opt.fns[m,1],@opt.fns[m,2],@opt.fns[m,3] + else m=/(.+?)\.((?:-|ssm\.)?sst)$/ + fnb=@fnn=@opt.fns[m,1] + fnt=@opt.fns[m,2] + end + @git_path[:fnb]=@env.path.processing_path_git + '/' + fnb # + @opt.fnb + @git_path[:src]=@git_path[:fnb] + '/' + Gt[:txt] + '/' + l[:c] @git_path[:image]=@git_path[:fnb] + '/' + Gt[:image] @git_path[:conf]=@git_path[:fnb] + '/' + Gt[:conf] @md=SiSU_Param::Parameters.new(@opt).get |