diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v3/texpdf.rb | 6 |
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} |