diff --git a/lib/review/htmlbuilder.rb b/lib/review/htmlbuilder.rb
index f4cb88689..a5386088b 100644
--- a/lib/review/htmlbuilder.rb
+++ b/lib/review/htmlbuilder.rb
@@ -945,9 +945,9 @@ def inline_bib(id)
def inline_hd_chap(chap, id)
n = chap.headline_index.number(id)
if chap.number and @book.config["secnolevel"] >= n.split('.').size
- str = "「#{n} #{compile_inline(chap.headline(id).caption)}」"
+ str = I18n.t("chapter_quote", "#{n} #{compile_inline(chap.headline(id).caption)}")
else
- str = "「#{compile_inline(chap.headline(id).caption)}」"
+ str = I18n.t("chapter_quote", compile_inline(chap.headline(id).caption))
end
if @book.config["chapterlink"]
anchor = "h"+n.gsub(/\./, "-")
diff --git a/lib/review/idgxmlbuilder.rb b/lib/review/idgxmlbuilder.rb
index 16e981705..97974c3f5 100644
--- a/lib/review/idgxmlbuilder.rb
+++ b/lib/review/idgxmlbuilder.rb
@@ -1174,10 +1174,10 @@ def inline_hd_chap(chap, id)
if chap.number
n = chap.headline_index.number(id)
if @book.config["secnolevel"] >= n.split('.').size
- return "「#{n} #{compile_inline(chap.headline(id).caption)}」"
+ return I18n.t("chapter_quote", "#{n} #{compile_inline(chap.headline(id).caption)}")
end
end
- "「#{compile_inline(chap.headline(id).caption)}」"
+ I18n.t("chapter_quote", compile_inline(chap.headline(id).caption))
end
def inline_recipe(id)
diff --git a/lib/review/latexbuilder.rb b/lib/review/latexbuilder.rb
index 318198692..925406eab 100644
--- a/lib/review/latexbuilder.rb
+++ b/lib/review/latexbuilder.rb
@@ -756,9 +756,9 @@ def inline_bib(id)
def inline_hd_chap(chap, id)
n = chap.headline_index.number(id)
if chap.number and @book.config["secnolevel"] >= n.split('.').size
- str = "「#{chap.headline_index.number(id)} #{compile_inline(chap.headline(id).caption)}」"
+ str = I18n.t("chapter_quote", "#{chap.headline_index.number(id)} #{compile_inline(chap.headline(id).caption)}")
else
- str = "「#{compile_inline(chap.headline(id).caption)}」"
+ str = I18n.t("chapter_quote", compile_inline(chap.headline(id).caption))
end
if @book.config["chapterlink"]
anchor = n.gsub(/\./, "-")