aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-08-09 00:01:53 -0400
committerRalph Amissah <ralph@amissah.com>2011-08-09 00:01:53 -0400
commit7c0a73469817e5882e376b0a435311599493123d (patch)
tree0629363615e8303aef04c1d107f7024de24982ac /lib
parentv3: prog_text_translation, add contents, remove some repetition (diff)
v3: texpdf, possibility to translate "Contents" for table of contents
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v3/texpdf.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sisu/v3/texpdf.rb b/lib/sisu/v3/texpdf.rb
index 9e223920..30775a3a 100644
--- a/lib/sisu/v3/texpdf.rb
+++ b/lib/sisu/v3/texpdf.rb
@@ -65,6 +65,7 @@ module SiSU_TeX
require_relative 'texpdf_format' # texpdf_format.rb
include SiSU_TeX_Pdf
require_relative 'shared_metadata' # shared_metadata.rb
+ require_relative 'prog_text_translation' # prog_text_translation.rb
@tex_file=@@tex_footnote_array=@@tex_col_w=[]
@@tabular="{tabular}"
@@column_instruct=@@squigle_close=@@tex_line_mode=@@tex_word_mode=@@line_mode=''
@@ -287,6 +288,9 @@ module SiSU_TeX
@dp=@@dp ||=SiSU_Env::Info_env.new.digest.pattern
@brace_url=SiSU_Viz::Skin.new.url_decoration
vz=SiSU_Env::Get_init.instance.skin
+ l=SiSU_Env::Standardise_language.new(@md.opt.lng).language
+ @language=l[:n]
+ @translate=SiSU_Translate::Source.new(@md,@language)
@skin_no_ocn=if defined? vz.ocn_display_off \
and vz.ocn_display_off==true
true
@@ -636,6 +640,7 @@ WOK
x[:l] =<<WOK
#{@tex_ml.newpage('landscape')}
\\pagestyle{fancy}
+\\renewcommand{\\contentsname}{#{@translate.contents}}
\\tableofcontents
#{@tex_ml.newpage('landscape')}
\\pagenumbering{arabic}
@@ -645,6 +650,7 @@ WOK
x[:p] =<<WOK
#{@tex_ml.newpage('portrait')}
\\pagestyle{fancy}
+\\renewcommand{\\contentsname}{#{@translate.contents}}
\\tableofcontents
#{@tex_ml.newpage('portrait')}
\\pagenumbering{arabic}