diff --git a/ChangeLog b/ChangeLog index 40669e0e91..dfa9d62a24 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Apr 9 14:42:29 2005 Kouhei Sutou + + * sample/rss/tdiary_plugin/rss-recent.rb: supported configuration + via Web browser. + Fri Apr 8 20:17:48 2005 Nobuyoshi Nakada * ext/extmk.rb (extmake): hdrdir needs to be defined also in diff --git a/sample/rss/tdiary_plugin/en/rss-recent.rb b/sample/rss/tdiary_plugin/en/rss-recent.rb new file mode 100644 index 0000000000..860773cca8 --- /dev/null +++ b/sample/rss/tdiary_plugin/en/rss-recent.rb @@ -0,0 +1,22 @@ +# -*- indent-tabs-mode: t -*- + +def label_rss_recent_title + 'External RSS display' +end + +def label_rss_recent_use_image_link_title + 'Image treatment' +end + +def label_rss_recent_use_image_link_description + "Select whether you use image as link instead of text or not " + + "if the RSS has Web site's image information." +end + +def label_rss_recent_not_use_image_link + "don't use image as link" +end + +def label_rss_recent_use_image_link + "use image as link" +end diff --git a/sample/rss/tdiary_plugin/ja/rss-recent.rb b/sample/rss/tdiary_plugin/ja/rss-recent.rb new file mode 100644 index 0000000000..2c1bbe0237 --- /dev/null +++ b/sample/rss/tdiary_plugin/ja/rss-recent.rb @@ -0,0 +1,22 @@ +# -*- indent-tabs-mode: t -*- + +def label_rss_recent_title + '外部RSSの表示' +end + +def label_rss_recent_use_image_link_title + '画像の扱い' +end + +def label_rss_recent_use_image_link_description + 'もしRSSにWebサイトの画像情報が含まれていたら,' + + 'Webサイトへのリンクにテキストではなくその画像を用います.' +end + +def label_rss_recent_not_use_image_link + 'リンクに画像を用いない' +end + +def label_rss_recent_use_image_link + 'リンクに画像を用いる' +end diff --git a/sample/rss/tdiary_plugin/rss-recent.rb b/sample/rss/tdiary_plugin/rss-recent.rb index 261ca872b7..f574135e31 100644 --- a/sample/rss/tdiary_plugin/rss-recent.rb +++ b/sample/rss/tdiary_plugin/rss-recent.rb @@ -263,3 +263,27 @@ def rss_recent_pubDate_to_dc_date(target) end end end + +add_conf_proc('rss-recent', label_rss_recent_title) do + item = 'rss-recent.use-image-link' + if @mode == 'saveconf' + @conf[item] = (@cgi.params[item][0] == 't') + end + + <<-HTML +
+

#{label_rss_recent_use_image_link_title}

+

#{label_rss_recent_use_image_link_description}

+

+ +

+
+ HTML +end