aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/texpdf_format.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v0/texpdf_format.rb')
-rw-r--r--lib/sisu/v0/texpdf_format.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v0/texpdf_format.rb b/lib/sisu/v0/texpdf_format.rb
index 00249c26..2efec5c4 100644
--- a/lib/sisu/v0/texpdf_format.rb
+++ b/lib/sisu/v0/texpdf_format.rb
@@ -603,8 +603,8 @@ para
@ps=@txt if @txt=~/(?:a4|letter|legal|book|a5|b5)/i
end
def language
- @lang=if @md.dc_language[:code]
- case @md.dc_language[:code]
+ @lang=if @md.language[:code]
+ case @md.language[:code]
when 'en'; 'english'
when 'us'; 'USenglish' # depreciated, see iso-639-2
when 'fr'; 'french'
@@ -639,7 +639,7 @@ para
end
def tex_head_lang #babel 18n
language
- #@md.dc_language[:name]
+ #@md.language[:name]
lang=if @lang =~/^(?:en)$/; @lang
else "#@lang,english"
end