publify_core 9.0.0.pre6 → 9.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of publify_core might be problematic. Click here for more details.

Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +44 -0
  3. data/README.md +9 -0
  4. data/app/controllers/admin/base_controller.rb +0 -6
  5. data/app/controllers/admin/content_controller.rb +34 -15
  6. data/app/controllers/admin/dashboard_controller.rb +4 -9
  7. data/app/controllers/admin/feedback_controller.rb +1 -0
  8. data/app/controllers/admin/notes_controller.rb +1 -1
  9. data/app/controllers/admin/pages_controller.rb +3 -7
  10. data/app/controllers/admin/sidebar_controller.rb +1 -0
  11. data/app/controllers/admin/tags_controller.rb +1 -0
  12. data/app/controllers/articles_controller.rb +50 -55
  13. data/app/controllers/comments_controller.rb +2 -3
  14. data/app/controllers/content_controller.rb +8 -17
  15. data/app/controllers/feedback_controller.rb +5 -39
  16. data/app/controllers/notes_controller.rb +1 -3
  17. data/app/controllers/setup_controller.rb +14 -18
  18. data/app/controllers/tags_controller.rb +13 -15
  19. data/app/controllers/theme_controller.rb +7 -5
  20. data/app/controllers/xml_controller.rb +11 -59
  21. data/app/helpers/authors_helper.rb +2 -2
  22. data/app/helpers/base_helper.rb +11 -4
  23. data/app/helpers/xml_helper.rb +2 -2
  24. data/app/jobs/application_job.rb +2 -0
  25. data/app/models/archives_sidebar.rb +8 -11
  26. data/app/models/article.rb +53 -72
  27. data/app/models/article/factory.rb +1 -1
  28. data/app/models/blog.rb +17 -40
  29. data/app/models/comment.rb +4 -3
  30. data/app/models/content.rb +18 -21
  31. data/app/models/content_base.rb +0 -5
  32. data/app/models/feedback.rb +76 -54
  33. data/app/models/meta_sidebar.rb +1 -0
  34. data/app/models/note.rb +7 -0
  35. data/app/models/page.rb +10 -5
  36. data/app/models/ping.rb +0 -113
  37. data/app/models/post_type.rb +1 -0
  38. data/app/models/redirect.rb +1 -1
  39. data/app/models/resource.rb +1 -19
  40. data/app/models/sidebar.rb +1 -1
  41. data/app/models/static_sidebar.rb +1 -0
  42. data/app/models/tag.rb +13 -9
  43. data/app/models/tag_sidebar.rb +4 -4
  44. data/app/models/trackback.rb +1 -8
  45. data/app/models/trigger.rb +1 -15
  46. data/app/models/user.rb +2 -9
  47. data/app/uploaders/resource_uploader.rb +33 -2
  48. data/app/views/accounts/confirm.html.erb +0 -1
  49. data/app/views/admin/content/_article_list.html.erb +1 -1
  50. data/app/views/admin/content/_form.html.erb +3 -7
  51. data/app/views/admin/pages/_form.html.erb +2 -2
  52. data/app/views/admin/seo/_general.html.erb +33 -28
  53. data/app/views/admin/seo/_permalinks.html.erb +2 -2
  54. data/app/views/admin/seo/_titles.html.erb +36 -36
  55. data/app/views/admin/settings/display.html.erb +20 -27
  56. data/app/views/admin/settings/feedback.html.erb +44 -51
  57. data/app/views/admin/settings/index.html.erb +14 -14
  58. data/app/views/admin/settings/write.html.erb +12 -30
  59. data/app/views/admin/tags/_index_and_form.html.erb +1 -1
  60. data/app/views/articles/_archives_article.html.erb +9 -0
  61. data/app/views/articles/_article.html.erb +8 -6
  62. data/app/views/articles/_article_collection.html.erb +1 -1
  63. data/app/views/articles/_article_excerpt.html.erb +10 -8
  64. data/app/views/articles/_article_links.html.erb +4 -2
  65. data/app/views/articles/_comment_list.html.erb +5 -5
  66. data/app/views/articles/_full_article_content.html.erb +4 -2
  67. data/app/views/articles/archives.html.erb +10 -20
  68. data/app/views/articles/feedback_atom_feed.atom.builder +5 -5
  69. data/app/views/articles/feedback_rss_feed.rss.builder +12 -13
  70. data/app/views/articles/index_atom_feed.atom.builder +3 -4
  71. data/app/views/articles/index_rss_feed.rss.builder +9 -10
  72. data/app/views/articles/read.html.erb +5 -31
  73. data/app/views/articles/search.html.erb +1 -1
  74. data/app/views/articles/trackback.xml.builder +1 -1
  75. data/app/views/authors/show.html.erb +11 -21
  76. data/app/views/authors/show_atom_feed.atom.builder +3 -4
  77. data/app/views/authors/show_rss_feed.rss.builder +9 -10
  78. data/app/views/comments/_comment.html.erb +17 -16
  79. data/app/views/feedback/index.atom.builder +7 -0
  80. data/app/views/feedback/index.rss.builder +19 -0
  81. data/app/views/notes/_note.html.erb +16 -15
  82. data/app/views/notes/index.html.erb +1 -1
  83. data/app/views/notification_mailer/_mail_footer.html.erb +0 -2
  84. data/app/views/notification_mailer/_mail_header.html.erb +2 -0
  85. data/app/views/notification_mailer/article.html.erb +4 -3
  86. data/app/views/notification_mailer/comment.html.erb +7 -6
  87. data/app/views/notification_mailer/notif_user.html.erb +3 -8
  88. data/app/views/setup/index.html.erb +4 -0
  89. data/app/views/shared/_atom_header.atom.builder +3 -3
  90. data/app/views/shared/_atom_item_article.atom.builder +26 -19
  91. data/app/views/shared/_atom_item_comment.atom.builder +3 -5
  92. data/app/views/shared/_atom_item_trackback.atom.builder +3 -4
  93. data/app/views/shared/_page_header.html.erb +1 -1
  94. data/app/views/shared/_rss_item_article.rss.builder +10 -15
  95. data/app/views/shared/_rss_item_comment.rss.builder +1 -2
  96. data/app/views/shared/_rss_item_trackback.rss.builder +1 -1
  97. data/app/views/tags/index.html.erb +2 -2
  98. data/app/views/xml/sitemap.googlesitemap.builder +7 -0
  99. data/config/initializers/mime_types.rb +0 -1
  100. data/config/locales/da.yml +8 -37
  101. data/config/locales/de.yml +7 -36
  102. data/config/locales/en.yml +7 -36
  103. data/config/locales/es-MX.yml +8 -37
  104. data/config/locales/fr.yml +7 -36
  105. data/config/locales/he.yml +4 -33
  106. data/config/locales/it.yml +7 -36
  107. data/config/locales/ja.yml +5 -34
  108. data/config/locales/lt.yml +7 -36
  109. data/config/locales/nb-NO.yml +7 -36
  110. data/config/locales/nl.yml +9 -38
  111. data/config/locales/pl.yml +8 -37
  112. data/config/locales/pt-BR.yml +8 -37
  113. data/config/locales/ro.yml +9 -38
  114. data/config/locales/ru.yml +7 -36
  115. data/config/locales/zh-CN.yml +6 -35
  116. data/config/locales/zh-TW.yml +7 -36
  117. data/config/routes.rb +6 -28
  118. data/db/migrate/113_initial_schema.rb +191 -191
  119. data/db/migrate/114_fixes_buggy_articles_and_notes.rb +6 -7
  120. data/db/migrate/115_drops_categories_for_tags.rb +3 -3
  121. data/db/migrate/20150207131657_add_missing_indexes.rb +1 -1
  122. data/db/migrate/20150807134129_simplify_redirect_relations.rb +1 -1
  123. data/db/migrate/20150808052637_add_blog_ids.rb +3 -5
  124. data/db/migrate/20150808191127_add_blog_id_to_redirects.rb +1 -1
  125. data/db/migrate/20150810094754_add_blog_id_to_tags.rb +1 -1
  126. data/db/migrate/20160108111120_add_devise_to_users.rb +3 -3
  127. data/db/migrate/20160108184201_move_last_connection_to_last_sign_in_at.rb +1 -1
  128. data/db/migrate/20160110094906_remove_profiles_rights.rb +1 -1
  129. data/db/migrate/20160605103918_replace_profile_id_with_string.rb +1 -3
  130. data/db/migrate/20160605154632_remove_profiles.rb +2 -2
  131. data/db/migrate/20160701061851_demand_blog_id_on_contents.rb +1 -1
  132. data/db/migrate/20160701062604_add_blog_id_to_resources.rb +1 -1
  133. data/db/migrate/20170528093024_move_resources_to_content.rb +5 -0
  134. data/db/migrate/20170528094923_move_tags_to_content.rb +6 -0
  135. data/db/migrate/20170528201606_remove_separate_published_flag.rb +5 -0
  136. data/db/migrate/20170605071626_remove_extra_state_columns_from_feedback.rb +6 -0
  137. data/db/migrate/20170702105201_remove_published_at_from_feedback.rb +5 -0
  138. data/db/seeds.rb +1 -1
  139. data/lib/publify_core.rb +0 -1
  140. data/lib/publify_core/version.rb +1 -1
  141. data/lib/publify_guid.rb +1 -1
  142. data/lib/publify_time.rb +2 -2
  143. data/lib/sidebar_field.rb +19 -12
  144. data/lib/transforms.rb +1 -0
  145. metadata +102 -66
  146. data/.gitignore +0 -13
  147. data/.rspec +0 -2
  148. data/.rubocop.yml +0 -84
  149. data/.rubocop_todo.yml +0 -148
  150. data/.travis.yml +0 -27
  151. data/Gemfile +0 -17
  152. data/README.rdoc +0 -3
  153. data/Rakefile +0 -35
  154. data/app/assets/stylesheets/publify_core/.keep +0 -0
  155. data/app/controllers/.keep +0 -0
  156. data/app/controllers/admin/migrations_controller.rb +0 -19
  157. data/app/controllers/concerns/.keep +0 -0
  158. data/app/controllers/trackbacks_controller.rb +0 -36
  159. data/app/helpers/.keep +0 -0
  160. data/app/mailers/.keep +0 -0
  161. data/app/models/.keep +0 -0
  162. data/app/models/article/states.rb +0 -179
  163. data/app/models/concerns/.keep +0 -0
  164. data/app/models/feedback/states.rb +0 -256
  165. data/app/services/migrator.rb +0 -25
  166. data/app/views/.keep +0 -0
  167. data/app/views/comments/index.html.erb +0 -1
  168. data/app/views/comments/index_atom_feed.atom.builder +0 -8
  169. data/app/views/comments/index_rss_feed.rss.builder +0 -20
  170. data/app/views/trackbacks/index_atom_feed.atom.builder +0 -7
  171. data/app/views/trackbacks/index_rss_feed.rss.builder +0 -20
  172. data/app/views/trackbacks/trackback.xml.builder +0 -4
  173. data/app/views/xml/feed.googlesitemap.builder +0 -7
  174. data/app/views/xml/rsd.rsd.builder +0 -8
  175. data/lib/stateful.rb +0 -106
  176. data/publify_core.gemspec +0 -54
@@ -7,7 +7,6 @@ ru:
7
7
  admin: admin
8
8
  dont_lose_the_mail_sent: Не потеряйте письмо, высланное на %{email}, или вы больше не сможете зайти
9
9
  login: 'логин: %{user}'
10
- password: 'пароль: %{pass}'
11
10
  proceed_to: Proceed to %{link}
12
11
  success: You have successfully signed up.
13
12
  create_account: Создать учетную запись
@@ -40,11 +39,7 @@ ru:
40
39
  allow_comments_status:
41
40
  one: enabled
42
41
  zero: выключены
43
- allow_pings_status:
44
- one: enabled
45
- zero: выключены
46
- allow_trackbacks: Разрешить trackback’и
47
- allowed_comments_and_trackbacks_html: Комментарии %{allow_comment} и trackback’и %{allow_trackback}
42
+ allowed_comments_html: Comments are %{allow_comment}
48
43
  article_type: Article type
49
44
  cancel: Отменить
50
45
  default: Default
@@ -430,8 +425,6 @@ ru:
430
425
  feed_articles: Article excerpts
431
426
  feed_excerpts_only: Show only article excerpts in feed
432
427
  feed_settings: RSS Feed Settings
433
- feedburner_help: Enter your FeedBurner ID if you wish to use your Google FeedBurner account instead of using the Publify feed URL.
434
- feedburner_id: FeedBurner ID
435
428
  or: или
436
429
  publishing_options: Publishing Options
437
430
  status_main_feed: Display statuses in the main feed
@@ -447,15 +440,12 @@ ru:
447
440
  comments_filter: Comments filter
448
441
  days: days
449
442
  disable_comments_after: Disable comments after
450
- disable_trackbacks_sitewide: Disable trackbacks site-wide
451
443
  enable_comments_by_default: Enable comments by default
452
444
  enable_feedback_moderation: Enable feedback moderation
453
445
  enable_recaptcha: Enable reCaptcha
454
446
  enable_spam_protection: Enable spam protection
455
- enable_trackbacks_by_default: Enable Trackbacks by default
456
- explain_disable_trackbacks: This setting allows you to disable trackbacks for every article in your blog. It won't remove existing trackbacks, but it will prevent any further attempt to add a trackback anywhere on your blog.
457
- explain_feedback_moderation: You can enable site wide feedback moderation. If you do so, no comment or trackback will appear on your blog unless you validate it.
458
- explain_reject_comments: Publify will automatically reject comments and trackbacks which contain over a certain amount of links in them
447
+ explain_feedback_moderation: You can enable site wide feedback moderation. If you do so, no comment will appear on your blog unless you validate it.
448
+ explain_reject_comments: Publify will automatically reject comments which contain over a certain amount of links in them
459
449
  explain_spam_protection: Enabling spam protection will make Publify compare the IP address of posters as well as the contents of their posts against local and remote blacklists. Good defense against spam bots
460
450
  explain_spamfiltering_html: Publify can (optionally) use the <a href='http://akismet.com'>Akismet</a> spam-filtering service. You need to register with Akismet and receive an API key before you can use their service. If you have an Akismet key, enter it here
461
451
  feedback: Комментарии
@@ -468,7 +458,6 @@ ru:
468
458
  set_to_0_to_never_reject_comments: Set to 0 to never reject comments
469
459
  spam: Spam
470
460
  spam_protection: Spam protection
471
- trackbacks: Trackbacks
472
461
  update_settings: Обновить настройки
473
462
  index:
474
463
  allow_users_to_register: Разрешить пользователям регистрироваться
@@ -494,7 +483,6 @@ ru:
494
483
  cancel: Отменить
495
484
  display: Display
496
485
  example: example
497
- explain: После публикации статей Publify может отправлять уведомления на те сайты, на которые вы ссылаетесь. Разумно выключить эту опцию для приватных блогов. Для публичных блогов особых причин выключать ее нет.
498
486
  image_medium_size: Image medium size
499
487
  image_thumbnail_size: Image thumbnail size
500
488
  latitude_longitude: Latitude, Longitude
@@ -502,12 +490,9 @@ ru:
502
490
  or: или
503
491
  publish: Опубликовать
504
492
  publish_on_twitter: Publish on Twitter
505
- send_trackbacks: Отправлять trackback’и
506
- trackbacks: Trackbacks
507
493
  twitter_consumer_key: Twitter consumer key
508
494
  twitter_consumer_secret: Twitter consumer secret
509
495
  update_settings: Обновить настройки
510
- urls_to_ping: URLs to ping automatically
511
496
  write: Публикация
512
497
  your_geoloc: your latitude and longitude
513
498
  shared:
@@ -642,7 +627,8 @@ ru:
642
627
  articles:
643
628
  archives:
644
629
  no_articles_found: No articles found
645
- posted_in: Posted in
630
+ archives_article:
631
+ posted_in: posted in
646
632
  article:
647
633
  posted_by: Posted by
648
634
  article_excerpt:
@@ -679,12 +665,7 @@ ru:
679
665
  edit: Редактировать
680
666
  leave_a_response: Оставить отзыв
681
667
  rss_feed: RSS feed
682
- trackback_uri: Trackback URI
683
668
  trackbacks: Trackbacks
684
- use_the_following_link_to_trackback: Use the following link to trackback from your own site
685
- search:
686
- next_page: Следующая страница
687
- previous_page: Предыдущая страница
688
669
  trackback:
689
670
  from: From
690
671
  authors:
@@ -693,9 +674,6 @@ ru:
693
674
  contact_information: Contact information
694
675
  jabber: 'Jabber:'
695
676
  msn: 'MSN:'
696
- next_page: Следующая страница
697
- posted_in: posted in
698
- previous_page: Предыдущая страница
699
677
  this_author_has_not_published_any_article_yet: Этот автор еще ничего не публиковал
700
678
  twitter: 'Twitter:'
701
679
  web_site: 'Веб-сайт:'
@@ -775,16 +753,10 @@ ru:
775
753
  designed_by: Designed by %{designed_by}
776
754
  powered_by_html: Powered by %{powered_by}
777
755
  notes:
778
- index:
779
- next_page: Следующая страница
780
- previous_page: Предыдущая страница
781
756
  note:
782
757
  view_on_twitter: View on Twitter
783
758
  notice:
784
759
  note_successfully_created: Note was successfully created
785
- pagination:
786
- next_page: Следующая страница
787
- previous_page: Предыдущая страница
788
760
  profile:
789
761
  admin: Publify administrator
790
762
  contributor: Contributor
@@ -795,6 +767,7 @@ ru:
795
767
  title: Hello World!
796
768
  index:
797
769
  blog_name: Название блога
770
+ password: Пароль
798
771
  welcome_to_your_blog_setup: Welcome to your blog setup
799
772
  your_mail: Ваш email
800
773
  page:
@@ -802,9 +775,7 @@ ru:
802
775
  body: This is an example of a Publify page. You can edit this to write information about yourself or your site so readers know who you are. You can create as many pages as this one as you like and manage all of your content inside Publify.
803
776
  tags:
804
777
  index:
805
- next_page: Следующая страница
806
- previous_page: Предыдущая страница
807
- there_is_no_tags: Тегов нет
778
+ there_are_no_tags: Тегов нет
808
779
  time:
809
780
  formats:
810
781
  default: "%m/%d/%Y %H:%M"
@@ -7,7 +7,6 @@ zh-CN:
7
7
  admin: admin
8
8
  dont_lose_the_mail_sent: Don't lose the mail sent at %{email} or you won't be able to login anymore
9
9
  login: 'Login: %{login}'
10
- password: 'Password: %{password}'
11
10
  proceed_to: Proceed to %{link}
12
11
  success: You have successfully signed up.
13
12
  create_account: 创建帐号
@@ -40,11 +39,7 @@ zh-CN:
40
39
  allow_comments_status:
41
40
  one: enabled
42
41
  zero: disabled
43
- allow_pings_status:
44
- one: enabled
45
- zero: disabled
46
- allow_trackbacks: 允许引用
47
- allowed_comments_and_trackbacks_html: Comments are %{allow_comment} and trackbacks are %{allow_trackback}
42
+ allowed_comments_html: Comments are %{allow_comment}
48
43
  article_type: Article type
49
44
  cancel: 取消
50
45
  default: Default
@@ -430,8 +425,6 @@ zh-CN:
430
425
  feed_articles: Article excerpts
431
426
  feed_excerpts_only: Show only article excerpts in feed
432
427
  feed_settings: RSS Feed Settings
433
- feedburner_help: Enter your FeedBurner ID if you wish to use your Google FeedBurner account instead of using the Publify feed URL.
434
- feedburner_id: FeedBurner ID
435
428
  or: or
436
429
  publishing_options: Publishing Options
437
430
  status_main_feed: Display statuses in the main feed
@@ -447,13 +440,10 @@ zh-CN:
447
440
  comments_filter: 篩選评论
448
441
  days: 日期
449
442
  disable_comments_after: 在失效的评论之後
450
- disable_trackbacks_sitewide: Disable trackbacks site-wide
451
443
  enable_comments_by_default: 預設為可以回應
452
444
  enable_feedback_moderation: 適度可以反饋
453
445
  enable_recaptcha: Enable reCaptcha
454
446
  enable_spam_protection: 有效防止垃圾郵件
455
- enable_trackbacks_by_default: 預設為可以引用
456
- explain_disable_trackbacks: 此設定可以讓你博客裡的文章停止引用,這個舉動並不會刪除存在的引用,但是會阻止將來你要試圖增加的引用
457
447
  explain_feedback_moderation: 你可以設定網點範圍有限度的反饋。這麼做將不會有任何评论引用出現在你的博客,除非你使之生效
458
448
  explain_reject_comments: Publify會自動回絕评论和引用,包含某些可靠的連結總數
459
449
  explain_spam_protection: publify會根據張貼者IP的位址內容還有黑名單來有效防止垃圾郵件。好的防禦可以抑制垃圾郵寄
@@ -468,7 +458,6 @@ zh-CN:
468
458
  set_to_0_to_never_reject_comments: 設定0回絕不回絕的评论
469
459
  spam: Spam
470
460
  spam_protection: 防止垃圾郵件
471
- trackbacks: Trackbacks
472
461
  update_settings: Update settings
473
462
  index:
474
463
  allow_users_to_register: Allow users to register
@@ -494,7 +483,6 @@ zh-CN:
494
483
  cancel: 取消
495
484
  display: 顯示
496
485
  example: 舉例
497
- explain: 當公開的文章或引用會洩漏你私人的資訊時,對於不公開的博客publify會終止連結。在公開的博客並無此選項
498
486
  image_medium_size: Image medium size
499
487
  image_thumbnail_size: Image thumbnail size
500
488
  latitude_longitude: 緯度,經度
@@ -502,12 +490,9 @@ zh-CN:
502
490
  or: or
503
491
  publish: 发布
504
492
  publish_on_twitter: Publish on Twitter
505
- send_trackbacks: 引用發送
506
- trackbacks: 引用
507
493
  twitter_consumer_key: Twitter consumer key
508
494
  twitter_consumer_secret: Twitter consumer secret
509
495
  update_settings: Update settings
510
- urls_to_ping: URL自動地Ping
511
496
  write: 寫入
512
497
  your_geoloc: 你的緯度、經度
513
498
  shared:
@@ -612,8 +597,8 @@ zh-CN:
612
597
  notification_settings: Notifications
613
598
  notifications: Send notification messages
614
599
  or: or
615
- password: Password
616
- password_confirmation: Password confirmation
600
+ password: 密码
601
+ password_confirmation: 密码确认
617
602
  profile: Profile
618
603
  profile_settings: Profile Settings
619
604
  save: 保存
@@ -642,6 +627,7 @@ zh-CN:
642
627
  articles:
643
628
  archives:
644
629
  no_articles_found: 没有找到任何文章
630
+ archives_article:
645
631
  posted_in: 发表在
646
632
  article:
647
633
  posted_by: 貼上
@@ -679,12 +665,7 @@ zh-CN:
679
665
  edit: 修改
680
666
  leave_a_response: 離開一個回應
681
667
  rss_feed: 為本篇提供RSS
682
- trackback_uri: Trackback URI
683
668
  trackbacks: Trackbacks
684
- use_the_following_link_to_trackback: 從你所屬的網點用隨後的連結去引用
685
- search:
686
- next_page: Next page
687
- previous_page: Previous page
688
669
  trackback:
689
670
  from: From
690
671
  authors:
@@ -693,9 +674,6 @@ zh-CN:
693
674
  contact_information: Contact information
694
675
  jabber: 'Jabber:'
695
676
  msn: 'MSN:'
696
- next_page: 下一頁
697
- posted_in: 发表在
698
- previous_page: 前一頁
699
677
  this_author_has_not_published_any_article_yet: This author has not published any article yet
700
678
  twitter: 'Twitter:'
701
679
  web_site: 'Web site:'
@@ -775,16 +753,10 @@ zh-CN:
775
753
  designed_by: Designed by %{designed_by}
776
754
  powered_by_html: Powered by %{powered_by}
777
755
  notes:
778
- index:
779
- next_page: Next page
780
- previous_page: Previous page
781
756
  note:
782
757
  view_on_twitter: View on Twitter
783
758
  notice:
784
759
  note_successfully_created: Note was successfully created
785
- pagination:
786
- next_page: Next page
787
- previous_page: Previous page
788
760
  profile:
789
761
  admin: Publify administrator
790
762
  contributor: Contributor
@@ -795,6 +767,7 @@ zh-CN:
795
767
  title: Hello World!
796
768
  index:
797
769
  blog_name: Blog name
770
+ password: 密码
798
771
  welcome_to_your_blog_setup: Welcome to your blog setup
799
772
  your_mail: Your email
800
773
  page:
@@ -802,9 +775,7 @@ zh-CN:
802
775
  body: This is an example of a Publify page. You can edit this to write information about yourself or your site so readers know who you are. You can create as many pages as this one as you like and manage all of your content inside Publify.
803
776
  tags:
804
777
  index:
805
- next_page: Next page
806
- previous_page: Previous page
807
- there_is_no_tags: There is no tag
778
+ there_are_no_tags: There are no tags
808
779
  time:
809
780
  formats:
810
781
  default: "%m/%d/%Y %H:%M"
@@ -7,7 +7,6 @@ zh-TW:
7
7
  admin: admin
8
8
  dont_lose_the_mail_sent: Don't lose the mail sent at %{email} or you won't be able to login anymore
9
9
  login: 'Login: %{login}'
10
- password: 'Password: %{password}'
11
10
  proceed_to: Proceed to %{link}
12
11
  success: You have successfully signed up.
13
12
  create_account: Create an account
@@ -40,11 +39,7 @@ zh-TW:
40
39
  allow_comments_status:
41
40
  one: enabled
42
41
  zero: disabled
43
- allow_pings_status:
44
- one: enabled
45
- zero: disabled
46
- allow_trackbacks: 允許引用
47
- allowed_comments_and_trackbacks_html: Comments are %{allow_comment} and trackbacks are %{allow_trackback}
42
+ allowed_comments_html: Comments are %{allow_comment}
48
43
  article_type: Article type
49
44
  cancel: 取消
50
45
  default: Default
@@ -430,8 +425,6 @@ zh-TW:
430
425
  feed_articles: Article excerpts
431
426
  feed_excerpts_only: Show only article excerpts in feed
432
427
  feed_settings: RSS Feed Settings
433
- feedburner_help: Enter your FeedBurner ID if you wish to use your Google FeedBurner account instead of using the Publify feed URL.
434
- feedburner_id: FeedBurner ID
435
428
  or: or
436
429
  publishing_options: Publishing Options
437
430
  status_main_feed: Display statuses in the main feed
@@ -447,13 +440,10 @@ zh-TW:
447
440
  comments_filter: 篩選評論
448
441
  days: 日期
449
442
  disable_comments_after: 在失效的評論之後
450
- disable_trackbacks_sitewide: Disable trackbacks site-wide
451
443
  enable_comments_by_default: 預設為可以回應
452
444
  enable_feedback_moderation: 適度可以反饋
453
445
  enable_recaptcha: Enable reCaptcha
454
446
  enable_spam_protection: 有效防止垃圾郵件
455
- enable_trackbacks_by_default: 預設為可以引用
456
- explain_disable_trackbacks: 此設定可以讓你部落格裡的文章停止引用,這個舉動並不會刪除存在的引用,但是會阻止將來你要試圖增加的引用
457
447
  explain_feedback_moderation: 你可以設定網點範圍有限度的反饋。這麼做將不會有任何評論引用出現在你的部落格,除非你使之生效
458
448
  explain_reject_comments: Publify會自動回絕評論和引用,包含某些可靠的連結總數
459
449
  explain_spam_protection: publify會根據張貼者IP的位址內容還有黑名單來有效防止垃圾郵件。好的防禦可以抑制垃圾郵寄
@@ -468,7 +458,6 @@ zh-TW:
468
458
  set_to_0_to_never_reject_comments: 設定0回絕不回絕的評論
469
459
  spam: Spam
470
460
  spam_protection: 防止垃圾郵件
471
- trackbacks: Trackbacks
472
461
  update_settings: Update settings
473
462
  index:
474
463
  allow_users_to_register: Allow users to register
@@ -494,7 +483,6 @@ zh-TW:
494
483
  cancel: 取消
495
484
  display: 顯示
496
485
  example: 舉例
497
- explain: 當公開的文章或引用會洩漏你私人的資訊時,對於不公開的部落格publify會終止連結。在公開的部落格並無此選項
498
486
  image_medium_size: Image medium size
499
487
  image_thumbnail_size: Image thumbnail size
500
488
  latitude_longitude: 緯度,經度
@@ -502,12 +490,9 @@ zh-TW:
502
490
  or: or
503
491
  publish: 公開
504
492
  publish_on_twitter: Publish on Twitter
505
- send_trackbacks: 引用發送
506
- trackbacks: 引用
507
493
  twitter_consumer_key: Twitter consumer key
508
494
  twitter_consumer_secret: Twitter consumer secret
509
495
  update_settings: Update settings
510
- urls_to_ping: URL自動地Ping
511
496
  write: 寫入
512
497
  your_geoloc: 你的緯度、經度
513
498
  shared:
@@ -612,8 +597,8 @@ zh-TW:
612
597
  notification_settings: Notifications
613
598
  notifications: Send notification messages
614
599
  or: or
615
- password: Password
616
- password_confirmation: Password confirmation
600
+ password: 密碼
601
+ password_confirmation: 密碼確認
617
602
  profile: Profile
618
603
  profile_settings: Profile Settings
619
604
  save: 存檔
@@ -642,7 +627,8 @@ zh-TW:
642
627
  articles:
643
628
  archives:
644
629
  no_articles_found: 沒有找到任何文章
645
- posted_in: Posted in
630
+ archives_article:
631
+ posted_in: posted in
646
632
  article:
647
633
  posted_by: 貼上
648
634
  article_excerpt:
@@ -679,12 +665,7 @@ zh-TW:
679
665
  edit: 修改
680
666
  leave_a_response: 離開一個回應
681
667
  rss_feed: 為本篇提供RSS
682
- trackback_uri: Trackback URI
683
668
  trackbacks: Trackbacks
684
- use_the_following_link_to_trackback: 從你所屬的網點用隨後的連結去引用
685
- search:
686
- next_page: Next page
687
- previous_page: Previous page
688
669
  trackback:
689
670
  from: From
690
671
  authors:
@@ -693,9 +674,6 @@ zh-TW:
693
674
  contact_information: Contact information
694
675
  jabber: 'Jabber:'
695
676
  msn: 'MSN:'
696
- next_page: 下一頁
697
- posted_in: posted in
698
- previous_page: 前一頁
699
677
  this_author_has_not_published_any_article_yet: This author has not published any article yet
700
678
  twitter: 'Twitter:'
701
679
  web_site: 'Web site:'
@@ -775,16 +753,10 @@ zh-TW:
775
753
  designed_by: Designed by %{designed_by}
776
754
  powered_by_html: Powered by %{powered_by}
777
755
  notes:
778
- index:
779
- next_page: Next page
780
- previous_page: Previous page
781
756
  note:
782
757
  view_on_twitter: View on Twitter
783
758
  notice:
784
759
  note_successfully_created: Note was successfully created
785
- pagination:
786
- next_page: Next page
787
- previous_page: Previous page
788
760
  profile:
789
761
  admin: Publify administrator
790
762
  contributor: Contributor
@@ -795,6 +767,7 @@ zh-TW:
795
767
  title: Hello World!
796
768
  index:
797
769
  blog_name: Blog name
770
+ password: 密碼
798
771
  welcome_to_your_blog_setup: Welcome to your blog setup
799
772
  your_mail: Your email
800
773
  page:
@@ -802,9 +775,7 @@ zh-TW:
802
775
  body: This is an example of a Publify page. You can edit this to write information about yourself or your site so readers know who you are. You can create as many pages as this one as you like and manage all of your content inside Publify.
803
776
  tags:
804
777
  index:
805
- next_page: Next page
806
- previous_page: Previous page
807
- there_is_no_tags: There is no tag
778
+ there_are_no_tags: There are no tags
808
779
  time:
809
780
  formats:
810
781
  default: "%m/%d/%Y %H:%M"
data/config/routes.rb CHANGED
@@ -6,40 +6,18 @@ Rails.application.routes.draw do
6
6
  get ':year', to: 'articles#index', year: /\d{4}/, as: 'articles_by_year', format: false
7
7
  get ':year/page/:page', to: 'articles#index', year: /\d{4}/, as: 'articles_by_year_page', format: false
8
8
 
9
- get 'articles.:format', to: 'articles#index', constraints: {format: 'rss'}, as: 'rss'
10
- get 'articles.:format', to: 'articles#index', constraints: {format: 'atom'}, as: 'atom'
9
+ get 'articles.:format', to: 'articles#index', format: /rss|atom/, as: 'articles_feed'
11
10
 
12
- scope controller: 'xml', path: 'xml' do
13
- get 'articlerss/:id/feed.xml', action: 'articlerss', format: false
14
- get 'commentrss/feed.xml', action: 'commentrss', format: false
15
- get 'trackbackrss/feed.xml', action: 'trackbackrss', format: false
16
- end
17
-
18
- get 'xml/:format', to: 'xml#feed', type: 'feed', constraints: {format: 'rss'}, as: 'xml'
19
- get 'sitemap.xml', to: 'xml#feed', format: 'googlesitemap', type: 'sitemap', as: 'sitemap_xml'
20
-
21
- scope controller: 'xml', path: 'xml', as: 'xml' do
22
- scope action: 'feed' do
23
- get ':format/feed.xml', type: 'feed'
24
- get ':format/:type/:id/feed.xml'
25
- get ':format/:type/feed.xml'
26
- end
27
- end
28
-
29
- get 'xml/rsd', to: 'xml#rsd', format: false
30
- get 'xml/feed', to: 'xml#feed'
11
+ get 'sitemap.xml', to: 'xml#sitemap', format: 'googlesitemap'
31
12
 
32
13
  # CommentsController
33
- resources :comments, as: 'admin_comments', only: [:index, :create] do
14
+ resources :comments, only: [:create] do
34
15
  collection do
35
16
  post :preview
36
17
  end
37
18
  end
38
19
 
39
- resources :trackbacks
40
-
41
- # I thinks it's useless. More investigating
42
- post "trackbacks/:id/:day/:month/:year", to: 'trackbacks#create', format: false
20
+ resources :feedback, only: :index
43
21
 
44
22
  # ArticlesController
45
23
  get '/live_search/', to: 'articles#live_search', as: :live_search_articles, format: false
@@ -56,7 +34,8 @@ Rails.application.routes.draw do
56
34
  get 'articles/tag', to: 'articles#tag', format: false
57
35
 
58
36
  # SetupController
59
- match '/setup', to: 'setup#index', via: [:get, :post], format: false
37
+ get '/setup', to: 'setup#index', format: false
38
+ post '/setup', to: 'setup#create', format: false
60
39
 
61
40
  # TagsController (imitate inflected_resource)
62
41
  resources :tags, only: [:index, :create, :new]
@@ -130,7 +109,6 @@ Rails.application.routes.draw do
130
109
  end
131
110
 
132
111
  resource :seo, controller: 'seo', only: [:show, :update], format: false
133
- resource :migrations, only: [:show, :update]
134
112
 
135
113
  # TODO: This should be a singular resource
136
114
  resource :settings, only: [], format: false do