ox.el (org-export-dictionary): Add "References"
* ox.el (org-export-dictionary): Add "References". * contrib/lisp/ox-bibtex.el (org-bibtex-process-bib-files): Translate "References" according to the export language. Thanks to Julian Gehring for suggesting this.
This commit is contained in:
parent
b8ba8cbe36
commit
860912c6d0
|
@ -212,7 +212,8 @@ Return new parse tree."
|
|||
(with-temp-buffer
|
||||
(cond
|
||||
((org-export-derived-backend-p backend 'html)
|
||||
(insert "<div id=\"bibliography\">\n<h2>References</h2>\n")
|
||||
(insert (format "<div id=\"bibliography\">\n<h2>%s</h2>\n"
|
||||
(org-export-translates "References" :bibtex info)))
|
||||
(insert-file-contents (concat file ".html"))
|
||||
(insert "\n</div>"))
|
||||
((org-export-derived-backend-p backend 'ascii)
|
||||
|
@ -222,7 +223,9 @@ Return new parse tree."
|
|||
"-o"
|
||||
(concat file ".txt")))
|
||||
(error "Executing pandoc failed"))
|
||||
(insert "References\n==========\n\n")
|
||||
(insert (format
|
||||
"%s\n==========\n\n"
|
||||
(org-export-translates "References" :bibtex info)))
|
||||
(insert-file-contents (concat file ".txt"))
|
||||
(goto-char (point-min))
|
||||
(while (re-search-forward
|
||||
|
|
|
@ -5485,6 +5485,8 @@ them."
|
|||
("ru" :html "Распечатка %d.:"
|
||||
:utf-8 "Распечатка %d.:")
|
||||
("zh-CN" :html "代码%d " :utf-8 "代码%d "))
|
||||
("References"
|
||||
("fr" :default "Références"))
|
||||
("See section %s"
|
||||
("da" :default "jævnfør afsnit %s")
|
||||
("de" :default "siehe Abschnitt %s")
|
||||
|
|
Loading…
Reference in New Issue