From b77ccb1b4586b491bbe55195769f464bb51acc2d Mon Sep 17 00:00:00 2001 From: Kenshi Muto Date: Wed, 27 Sep 2017 21:32:38 +0900 Subject: [PATCH] fix typo of format name --- lib/review/htmlbuilder.rb | 2 +- lib/review/latexbuilder.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/review/htmlbuilder.rb b/lib/review/htmlbuilder.rb index 9954d11ae..2a07cba08 100644 --- a/lib/review/htmlbuilder.rb +++ b/lib/review/htmlbuilder.rb @@ -950,7 +950,7 @@ def inline_list(id) if get_chap(chapter) "#{I18n.t('list')}#{I18n.t('format_number', [get_chap(chapter), chapter.list(id).number])}" else - "#{I18n.t('list')}#{I18n.t('format_number_without_header', [chapter.list(id).number])}" + "#{I18n.t('list')}#{I18n.t('format_number_without_chapter', [chapter.list(id).number])}" end if @book.config['chapterlink'] %Q(#{str}) diff --git a/lib/review/latexbuilder.rb b/lib/review/latexbuilder.rb index cbc7b91f2..138aca551 100644 --- a/lib/review/latexbuilder.rb +++ b/lib/review/latexbuilder.rb @@ -713,7 +713,7 @@ def inline_title(id) def inline_list(id) chapter, id = extract_chapter_id(id) if get_chap(chapter).nil? - macro('reviewlistref', I18n.t('format_number_without_header', [chapter.list(id).number])) + macro('reviewlistref', I18n.t('format_number_without_chapter', [chapter.list(id).number])) else macro('reviewlistref', I18n.t('format_number', [get_chap(chapter), chapter.list(id).number])) end @@ -722,7 +722,7 @@ def inline_list(id) def inline_table(id) chapter, id = extract_chapter_id(id) if get_chap(chapter).nil? - macro('reviewtableref', I18n.t('format_number_without_header', [chapter.table(id).number]), table_label(id, chapter)) + macro('reviewtableref', I18n.t('format_number_without_chapter', [chapter.table(id).number]), table_label(id, chapter)) else macro('reviewtableref', I18n.t('format_number', [get_chap(chapter), chapter.table(id).number]), table_label(id, chapter)) end @@ -731,7 +731,7 @@ def inline_table(id) def inline_img(id) chapter, id = extract_chapter_id(id) if get_chap(chapter).nil? - macro('reviewimageref', I18n.t('format_number_without_header', [chapter.image(id).number]), image_label(id, chapter)) + macro('reviewimageref', I18n.t('format_number_without_chapter', [chapter.image(id).number]), image_label(id, chapter)) else macro('reviewimageref', I18n.t('format_number', [get_chap(chapter), chapter.image(id).number]), image_label(id, chapter)) end