Skip to content

Commit

Permalink
remove unused argument
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jun 15, 2014
1 parent b635c33 commit ffecb5e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugin/00default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def nyear_link( date, title )
d = date.strftime( '%d' )
years = @years.find_all {|year, months| months.include? m}
if years.length >= 2 then
%Q|#{title} <span class="nyear">[<a href="#{h @conf.index}#{anchor m + d}" title="#{h(nyear_diary_title)}">#{nyear_diary_label date, years}</a>]</span>|
%Q|#{title} <span class="nyear">[<a href="#{h @conf.index}#{anchor m + d}" title="#{h(nyear_diary_title)}">#{nyear_diary_label}</a>]</span>|
else
title
end
Expand Down
4 changes: 2 additions & 2 deletions plugin/en/00default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def title_tag
r << '(Preferences Changed)'
when 'nyear'
years = @diaries.keys.map {|ymd| ymd.sub(/^\d{4}/, "")}
r << "(#{years[0].sub( /^(\d\d)/, '\1-')}[#{nyear_diary_label @date, years}])" if @date
r << "(#{years[0].sub( /^(\d\d)/, '\1-')}[#{nyear_diary_label}])" if @date
end
r << '</title>'
end
Expand Down Expand Up @@ -89,7 +89,7 @@ def submit_label
end
def preview_label; 'Preview'; end

def nyear_diary_label(date, years); "my old days"; end
def nyear_diary_label; "my old days"; end
def nyear_diary_title; "same days in past"; end


Expand Down
4 changes: 2 additions & 2 deletions plugin/ja/00default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def title_tag
r << '(設定完了)'
when 'nyear'
years = @diaries.keys.map {|ymd| ymd.sub(/^\d{4}/, "")}
r << "(#{h @cgi.params['date'][0].sub( /^(\d\d)/, '\1-')}[#{nyear_diary_label @date, years}])" if @date
r << "(#{h @cgi.params['date'][0].sub( /^(\d\d)/, '\1-')}[#{nyear_diary_label}])" if @date
end
r << '</title>'
end
Expand Down Expand Up @@ -124,7 +124,7 @@ def submit_label
end
def preview_label; 'プレビュー'; end

def nyear_diary_label(date, years); "長年日記"; end
def nyear_diary_label; "長年日記"; end
def nyear_diary_title; "長年日記"; end

#
Expand Down

0 comments on commit ffecb5e

Please sign in to comment.