From: Keith Fahlgren Date: Sun, 12 Apr 2009 23:31:56 +0000 (+0000) Subject: Correctly set dc:language in OPF metadata when i18nizing. Closes Bug #2755150 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8836c921c4bb09ed09d31fb0819350d1a46b6573;p=docbook-dsssl Correctly set dc:language in OPF metadata when i18nizing. Closes Bug #2755150 --- diff --git a/xsl/epub/bin/spec/epub_regressions_spec.rb b/xsl/epub/bin/spec/epub_regressions_spec.rb index 516aeab6e..aa98497c3 100755 --- a/xsl/epub/bin/spec/epub_regressions_spec.rb +++ b/xsl/epub/bin/spec/epub_regressions_spec.rb @@ -128,6 +128,12 @@ describe DocBook::Epub do opf_lns.to_s.should_not =~ /opf:manifest/ end + it "should use the @lang of the document being converted for the OPF metadata" do + opf_lns = opf_lines('de.xml', @filedir) + opf_lns.to_s.should =~ /language[^>]*>de true) end diff --git a/xsl/epub/bin/spec/files/de.xml b/xsl/epub/bin/spec/files/de.xml new file mode 100644 index 000000000..52705af7d --- /dev/null +++ b/xsl/epub/bin/spec/files/de.xml @@ -0,0 +1,34 @@ + + + +
+ + Test file + + 2009-04-12 + + + Michael + Wiedmann + + + Person + unique-doc-id + + + 2009 + Michael Wiedmann + + + + some abstract + + + +
+ Title + foo foo +
+ +
diff --git a/xsl/epub/docbook.xsl b/xsl/epub/docbook.xsl index 3a895b2f5..54664c844 100644 --- a/xsl/epub/docbook.xsl +++ b/xsl/epub/docbook.xsl @@ -321,7 +321,9 @@ - + + +