Changeset 7013

Show
Ignore:
Timestamp:
02/21/08 11:25:26 (5 years ago)
Author:
kakutani
Message:

platform/tdiary/plugin/section_footer.rb: add label resources(ja,en).

Location:
platform/tdiary/plugin
Files:
2 added
1 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/plugin/section_footer.rb

    r3610 r7013  
    5656 
    5757   unless @conf.mobile_agent? then 
    58       # カテゴリタグの追加 
    59       if @category_to_tag_list and not @category_to_tag_list.empty? then 
     58      # ���ƥ��꥿����ɲ�      if @category_to_tag_list and not @category_to_tag_list.empty? then 
    6059         r << "Tags: " 
    6160         @category_to_tag_list.each do |tag, blog| 
     
    6766         end 
    6867      end 
    69        
    70       # 「このエントリを含む del.icio.us(json)」 
    71       r << add_delicious_json(date, index) 
    7268 
    73                 # 「このエントリを含む del.icio.us(画像API)」 
    74                 # r << add_delicious(date, index) 
     69      # �֤��Υ�����ޤ�el.icio.us(json)��      r << add_delicious_json(date, index) 
    7570 
    76       # 「このエントリを含むはてなブックーク」 
    77       r << add_hatenabm(date, index) 
     71                # �֤��Υ�����ޤ�el.icio.us(��API)��               # r << add_delicious(date, index) 
    7872 
    79       # 「このエントリを含む livedoor クリップ」 
    80       r << add_ldclip(date, index) 
    81        
    82       # 「このエントリを含む Buzzurl」 
    83       r << add_buzzurl(date, index) 
     73      # �֤��Υ�����ޤ��Ƥʥ֥å�������      r << add_hatenabm(date, index) 
    8474 
    85       # 「このエントリを含む Yahoo!ブックマーク」 
    86       r << add_yahoobm(date, index) 
    87                  
    88       # Permalinkの追加 
    89       r << add_permalink(date, index) 
     75      # �֤��Υ�����ޤ�ivedoor �����ס�      r << add_ldclip(date, index) 
     76 
     77      # �֤��Υ�����ޤ�uzzurl��      r << add_buzzurl(date, index) 
     78 
     79      # �֤��Υ�����ޤ�ahoo!�֥å��ޡ�����      r << add_yahoobm(date, index) 
     80 
     81      # Permalink��ɲ�      r << add_permalink(date, index) 
    9082   end 
    9183 
     
    10193def add_hatenabm(date, index) 
    10294   r = " | " 
    103    r << %Q|<a href="http://b.hatena.ne.jp/entry/#{permalink(date, index)}"><img src="http://d.hatena.ne.jp/images/b_entry.gif" style="border: none;vertical-align: middle;" title="このエントリを含むはてなブックマーク" alt="このエントリを含むはてなブックマーク" width="16" height="12" /> <img src="http://b.hatena.ne.jp/entry/image/normal/#{permalink(date, index)}" style="border: none;vertical-align: middle;" /></a> <img src="http://r.hatena.ne.jp/images/popup.gif" style="border: none;vertical-align: middle;" onclick="iconImageClickHandler(this, '#{permalink(date, index, false)}', event);" alt="">| 
     95   r << %Q|<a href="http://b.hatena.ne.jp/entry/#{permalink(date, index)}"><img src="http://d.hatena.ne.jp/images/b_entry.gif" style="border: none;vertical-align: middle;" title="#{@section_footer_hatenabm_label}" alt="#{@section_footer_hatenabm_label}" width="16" height="12" /> <img src="http://b.hatena.ne.jp/entry/image/normal/#{permalink(date, index)}" style="border: none;vertical-align: middle;" /></a> <img src="http://r.hatena.ne.jp/images/popup.gif" style="border: none;vertical-align: middle;" onclick="iconImageClickHandler(this, '#{permalink(date, index, false)}', event);" alt="">| 
    10496   return r 
    10597end 
     
    10799def add_ldclip(date, index) 
    108100   r = " | " 
    109    r << %Q|<a href="http://clip.livedoor.com/page/#{permalink(date, index)}"><img src="http://parts.blog.livedoor.jp/img/cmn/clip_16_16_w.gif" width="16" height="16" style="border: none;vertical-align: middle;" alt="このエントリを含む livedoor クリップ" title="このエントリを含む livedoor クリップ"> <img src="http://image.clip.livedoor.com/counter/#{permalink(date, index)}" style="border: none;vertical-align: middle;" /></a>| 
     101   r << %Q|<a href="http://clip.livedoor.com/page/#{permalink(date, index)}"><img src="http://parts.blog.livedoor.jp/img/cmn/clip_16_16_w.gif" width="16" height="16" style="border: none;vertical-align: middle;" alt="#{@section_footer_ldclip_label}" title="#{@section_footer_ldclip_label}"> <img src="http://image.clip.livedoor.com/counter/#{permalink(date, index)}" style="border: none;vertical-align: middle;" /></a>| 
    110102   return r 
    111103end 
     
    113105def add_buzzurl(date, index) 
    114106   r = " | " 
    115    r << %Q|<a href="http://buzzurl.jp/entry/#{permalink(date, index)}"><img src="http://buzzurl.jp/static/image/api/icon/add_icon_mini_10.gif" style="border: none;vertical-align: middle;" title="このエントリを含む Buzzurl" alt="このエントリを含む Buzzurl" width="16" height="12" class="icon" /> <img src="http://buzzurl.jp/api/counter/#{permalink(date, index)}" style="border: none;vertical-align: middle;" /></a>| 
     107   r << %Q|<a href="http://buzzurl.jp/entry/#{permalink(date, index)}"><img src="http://buzzurl.jp/static/image/api/icon/add_icon_mini_10.gif" style="border: none;vertical-align: middle;" title="#{@section_footer_buzzurl_label}" alt="#{@section_footer_buzzurl_label}" width="16" height="12" class="icon" /> <img src="http://buzzurl.jp/api/counter/#{permalink(date, index)}" style="border: none;vertical-align: middle;" /></a>| 
    116108   return r 
    117109end 
     
    121113 
    122114        r = " | " 
    123    r << %Q|<a href="http://del.icio.us/url/#{url_md5}"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="10" height="10" style="border: none;vertical-align: middle;" alt="このエントリを含む del.icio.us" title="このエントリを含む del.icio.us"> <img src="http://del.icio.us/feeds/img/savedcount/#{url_md5}?aggregate" style="border:none;margin:0" /></a>| 
     115   r << %Q|<a href="http://del.icio.us/url/#{url_md5}"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="10" height="10" style="border: none;vertical-align: middle;" alt="#{@section_footer_delicious_label}" title="#{@section_footer_delicious_label}"> <img src="http://del.icio.us/feeds/img/savedcount/#{url_md5}?aggregate" style="border:none;margin:0" /></a>| 
    124116   return r 
    125117end 
     
    127119def add_delicious_json(date, index) 
    128120        require 'json' 
    129     
     121 
    130122        url_md5 = Digest::MD5.hexdigest(permalink(date, index, false)) 
    131123   cache_dir = "#{@cache_path}/delicious/#{date.strftime( "%Y%m" )}/" 
     
    136128 
    137129   r = " | " 
    138    r << %Q|<a href="http://del.icio.us/url/#{url_md5}"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="10" height="10" style="border: none;vertical-align: middle;" alt="このエントリを含む del.icio.us" title="このエントリを含む del.icio.us">| 
     130   r << %Q|<a href="http://del.icio.us/url/#{url_md5}"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="10" height="10" style="border: none;vertical-align: middle;" alt="#{@section_footer_delicious_label}" title="#{@section_footer_delicious_label}">| 
    139131 
    140132   begin 
     
    187179def add_yahoobm(date, index) 
    188180   r = " | " 
    189         r << %Q|<a href="http://bookmarks.yahoo.co.jp/url?url=#{permalink(date, index)}&opener=bm&ei=UTF-8"><img src="http://i.yimg.jp/images/sicons/ybm16.gif" style="border: none;vertical-align: middle;" title="このエントリを含む Yahoo!ブックマーク" alt="このエントリを含む Yahoo!ブックマーク" width="16" height="16" class="icon" /></a>| 
     181        r << %Q|<a href="http://bookmarks.yahoo.co.jp/url?url=#{permalink(date, index)}&opener=bm&ei=UTF-8"><img src="http://i.yimg.jp/images/sicons/ybm16.gif" style="border: none;vertical-align: middle;" title="#{@section_footer_yahoobm_label}" alt="#{@section_footer_yahoobm_label}" width="16" height="16" class="icon" /></a>| 
    190182        return r 
    191183end