Skip to content

Commit

Permalink
Merge pull request #830 from kmuto/fix_refheader
Browse files Browse the repository at this point in the history
listref, imgref, tablerefのi18n展開のキー文字列間違い
  • Loading branch information
kmuto authored Sep 27, 2017
2 parents 9ed2966 + b77ccb1 commit 3539484
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/review/htmlbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(<span class="listref"><a href="./#{chapter.id}#{extname}##{id}">#{str}</a></span>)
Expand Down
6 changes: 3 additions & 3 deletions lib/review/latexbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3539484

Please sign in to comment.