aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/texpdf.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-08-09 20:25:13 -0400
committerRalph Amissah <ralph@amissah.com>2011-08-09 20:25:13 -0400
commit637e3e53e41104ccb92a0753a0abbf0929c3b933 (patch)
tree80d9069da748d6563ac6d2851ae40b85f3ef34b7 /lib/sisu/v3/texpdf.rb
parentdebian/changelog (3.0.14-1) (diff)
parentv3: epub, constants, experiment with presentation (diff)
Merge commit 'sisu-3.0.15' into debian/sid
Diffstat (limited to 'lib/sisu/v3/texpdf.rb')
-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}