From 7c0a73469817e5882e376b0a435311599493123d Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 9 Aug 2011 00:01:53 -0400 Subject: v3: texpdf, possibility to translate "Contents" for table of contents --- data/doc/sisu/CHANGELOG_v3 | 2 ++ lib/sisu/v3/texpdf.rb | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/data/doc/sisu/CHANGELOG_v3 b/data/doc/sisu/CHANGELOG_v3 index fc04744d..46ac2f6d 100644 --- a/data/doc/sisu/CHANGELOG_v3 +++ b/data/doc/sisu/CHANGELOG_v3 @@ -29,6 +29,8 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_3.0.15.orig.tar.gz * prog_text_translation, add contents, remove some repetition + * texpdf, possibility to translate "Contents" for table of contents + * objects.txt, removed, cleaning %% 3.0.14.orig.tar.gz (2011-07-26:30/2) 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] =<