refinerycms-news 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +4 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +23 -10
  5. data/Gemfile +23 -54
  6. data/Rakefile +2 -0
  7. data/app/controllers/refinery/news/items_controller.rb +8 -11
  8. data/app/helpers/refinery/news/items_helper.rb +14 -17
  9. data/app/models/refinery/news/item.rb +9 -4
  10. data/app/views/refinery/news/admin/items/_form.html.erb +9 -16
  11. data/app/views/refinery/news/admin/items/_item.html.erb +6 -3
  12. data/app/views/refinery/news/admin/items/edit.html.erb +1 -1
  13. data/app/views/refinery/news/admin/items/index.html.erb +1 -1
  14. data/app/views/refinery/news/admin/items/new.html.erb +1 -1
  15. data/app/views/refinery/news/items/archive.html.erb +6 -6
  16. data/app/views/refinery/news/items/index.html.erb +3 -3
  17. data/app/views/refinery/news/items/show.html.erb +3 -3
  18. data/app/views/refinery/news/items/widgets/_news_archive.html.erb +1 -5
  19. data/app/views/refinery/news/shared/_body_content_right.html.erb +1 -1
  20. data/config/locales/bg.yml +18 -18
  21. data/config/locales/cs.yml +19 -19
  22. data/config/locales/da.yml +47 -0
  23. data/config/locales/de.yml +18 -18
  24. data/config/locales/en.yml +3 -2
  25. data/config/locales/es-MX.yml +18 -18
  26. data/config/locales/es.yml +19 -19
  27. data/config/locales/fr.yml +31 -19
  28. data/config/locales/it.yml +18 -18
  29. data/config/locales/ja.yml +48 -0
  30. data/config/locales/lv.yml +20 -18
  31. data/config/locales/nb.yml +18 -18
  32. data/config/locales/nl.yml +30 -18
  33. data/config/locales/pl.yml +29 -18
  34. data/config/locales/ru.yml +18 -18
  35. data/config/locales/sk.yml +31 -19
  36. data/config/locales/sl.yml +0 -2
  37. data/config/locales/zh-CN.yml +18 -18
  38. data/config/locales/zh-TW.yml +29 -29
  39. data/config/routes.rb +2 -2
  40. data/readme.md +51 -2
  41. data/refinerycms-news.gemspec +4 -5
  42. data/spec/controllers/refinery/news/items_controller_spec.rb +67 -0
  43. data/spec/{requests → features}/manage_news_items_spec.rb +6 -6
  44. data/spec/{requests → features}/news_archive.rb +0 -0
  45. data/spec/{requests → features}/visit_news_items_spec.rb +5 -7
  46. data/spec/helpers/refinery/news/items_helper_spec.rb +34 -0
  47. data/spec/models/refinery/news/item_spec.rb +38 -14
  48. data/spec/spec_helper.rb +20 -46
  49. metadata +26 -30
  50. data/Guardfile +0 -20
  51. data/app/views/refinery/news/admin/items/_locale_picker.html.erb +0 -11
  52. data/config/locales/jp.yml +0 -36
@@ -6,26 +6,26 @@ bg:
6
6
  description: Осигурява опростена секция за новини
7
7
  news:
8
8
  admin:
9
- item:
10
- view_live_html: "Преглед на тази новина <br/><em>(ще се отвори се в нов прозорец)</em>"
11
- edit: "Редакция на тази новина"
12
- delete: "Премахване на тази новина завинаги"
9
+ items:
10
+ item:
11
+ view_live_html: "Преглед на тази новина <br/><em>(ще се отвори се в нов прозорец)</em>"
12
+ edit: "Редакция на тази новина"
13
+ delete: "Премахване на тази новина завинаги"
14
+ published: Публикувано на
15
+ index:
16
+ create: "Добавяне на новина"
17
+ item: Новини
18
+ no_items_yet: 'Все още няма новини. Натиснете "Добавяне на новина", за да въведете новина.'
19
+ items:
20
+ show:
21
+ back_to_index: "Обратно към всички новини"
13
22
  published: Публикувано на
23
+ recent_posts:
24
+ recent_posts: Последни публикации
14
25
  index:
15
- actions: Действия
16
- create: "Добавяне на новина"
17
- item: Новини
18
- no_items: "За съжаление нищо не бе намерено."
19
- no_items_yet: 'Все още няма новини. Натиснете "Добавяне на новина", за да въведете новина.'
20
- show:
21
- back_to_index: "Обратно към всички новини"
22
- published: Публикувано на
23
- recent_posts:
24
- recent_posts: Последни публикации
25
- index:
26
- published: Публикувано на
27
- read_more: Цялата новина
28
- no_items_yet: Все още няма публикувани новини.
26
+ published: Публикувано на
27
+ read_more: Цялата новина
28
+ no_items_yet: Все още няма публикувани новини.
29
29
  activerecord:
30
30
  attributes:
31
31
  'refinery/news/item':
@@ -6,26 +6,26 @@ cs:
6
6
  description: Poskytuje jednoduchou správu novinek
7
7
  news:
8
8
  admin:
9
- item:
10
- view_live_html: "Zobrazit novinku v novém okně"
11
- edit: "Editovať novinku"
12
- delete: "Smazat novinku"
13
- published: Zveřejněna
9
+ items:
10
+ item:
11
+ view_live_html: "Zobrazit novinku v novém okně"
12
+ edit: "Editovať novinku"
13
+ delete: "Smazat novinku"
14
+ published: Zveřejněna
15
+ index:
16
+ create: "Přidat novinku"
17
+ item: Novinka
18
+ no_items_yet: 'Momentálně nejsou žádné novinky. Klikni na "Přidat novinku" pro vytvoření první.'
19
+ items:
20
+ show:
21
+ back_to_index: "Návrat na seznam novinek"
22
+ published: Zveřejněné
23
+ recent_posts:
24
+ recent_posts: Poslední příspěvky
14
25
  index:
15
- actions: Možnosti
16
- create: "Přidat novinku"
17
- item: Novinka
18
- no_items: "Litujeme, žádné výsledky nenalezeny."
19
- no_items_yet: 'Momentálně nejsou žádné novinky. Klikni na "Přidat novinku" pro vytvoření první.'
20
- show:
21
- back_to_index: "Návrat na seznam novinek"
22
- published: Zveřejněné
23
- recent_posts:
24
- recent_posts: Poslední příspěvky
25
- index:
26
- published: Zveřejněné
27
- read_more: Číst dále
28
- no_items_yet: Neexistují žádné záznamy novinek.
26
+ published: Zveřejněné
27
+ read_more: Číst dále
28
+ no_items_yet: Neexistují žádné záznamy novinek.
29
29
  activerecord:
30
30
  attributes:
31
31
  'refinery/news/item':
@@ -0,0 +1,47 @@
1
+ da:
2
+ refinery:
3
+ plugins:
4
+ refinerycms_news:
5
+ title: Nyheder
6
+ description: Giver en simpel nyhedssektion
7
+ news:
8
+ admin:
9
+ items:
10
+ item:
11
+ view_live_html: "Vis nyheden live <br /><em>(åbner i et nyt vindue)</em>"
12
+ edit: "Redigér nyheden"
13
+ delete: "Slet nyheden permanent"
14
+ published: Offentliggjort
15
+ index:
16
+ create: "Tilføj nyhed"
17
+ item: Nyheder
18
+ no_items_yet: 'Der er ingen nyheder endnu. Klik "Tilføj nyhed" for at oprette den første.'
19
+ shared:
20
+ items:
21
+ created_at: 'Oprettet %{when}'
22
+ archives: Arkiver
23
+ items:
24
+ show:
25
+ back_to_index: "Tilbage til nyheder"
26
+ published: Offentliggjort
27
+ source: Kilde
28
+ recent_posts:
29
+ recent_posts: "Seneste indlæg"
30
+ index:
31
+ published: Offentliggjort
32
+ read_more: "Læs mere"
33
+ no_items_yet: "Der er ingen nyheder endnu."
34
+ source: Kilde
35
+ archive:
36
+ news_item_archive_for: 'Arkiv for %{date}'
37
+ no_news_articles_posted: 'Der er ingen nyhedsartikler oprettet for %{date}.'
38
+ activerecord:
39
+ attributes:
40
+ 'refinery/news/item':
41
+ title: Titel
42
+ body: Krop
43
+ publish_date: Offentliggørelsesdato
44
+ expiration_date: Udløbsdato
45
+ source: Kilde
46
+ models:
47
+ 'refinery/news/item': Nyhed
@@ -6,26 +6,26 @@ de:
6
6
  description: Bietet einen einfachen Newsbereich an
7
7
  news:
8
8
  admin:
9
- item:
10
- view_live_html: "Diesen News-Eintrag live anschauen <br/><em>(Öffnet sich in eine neuen Fenster)</em>"
11
- edit: "Diesen News-Eintrag editieren"
12
- delete: "Diesen News-Eintrag endgültig löschen"
9
+ items:
10
+ item:
11
+ view_live_html: "Diesen News-Eintrag live anschauen <br/><em>(Öffnet sich in eine neuen Fenster)</em>"
12
+ edit: "Diesen News-Eintrag editieren"
13
+ delete: "Diesen News-Eintrag endgültig löschen"
14
+ published: Veröffentlicht
15
+ index:
16
+ create: "News-Eintrag hinzufügen"
17
+ item: News
18
+ no_items_yet: 'Es sind keine News-Einträge vorhanden. Klick auf "News-Eintrag hinzufügen" um den ersten Eintrag zu machen.'
19
+ items:
20
+ show:
21
+ back_to_index: "Zurück zur Übersicht"
13
22
  published: Veröffentlicht
23
+ recent_posts:
24
+ recent_posts: Aktuelle Einträge
14
25
  index:
15
- actions: Actions
16
- create: "News-Eintrag hinzufügen"
17
- item: News
18
- no_items: "Entschuldigung, es wurde nichts gefunden."
19
- no_items_yet: 'Es sind keine News-Einträge vorhanden. Klick auf "News-Eintrag hinzufügen" um den ersten Eintrag zu machen.'
20
- show:
21
- back_to_index: "Zurück zur Übersicht"
22
- published: Veröffentlicht
23
- recent_posts:
24
- recent_posts: Aktuelle Einträge
25
- index:
26
- published: Veröffentlicht
27
- read_more: Weiterlesen
28
- no_items_yet: Zur Zeit gibt es keine News.
26
+ published: Veröffentlicht
27
+ read_more: Weiterlesen
28
+ no_items_yet: Zur Zeit gibt es keine News.
29
29
  activerecord:
30
30
  attributes:
31
31
  'refinery/news/item':
@@ -17,7 +17,8 @@ en:
17
17
  item: News
18
18
  no_items_yet: 'There are no news items yet. Click "Add News Item" to add your first news item.'
19
19
  shared:
20
- items:
20
+ items:
21
+ read_more: Read more
21
22
  created_at: 'Created at %{when}'
22
23
  archives: Archives
23
24
  items:
@@ -34,7 +35,7 @@ en:
34
35
  source: Source
35
36
  archive:
36
37
  news_item_archive_for: 'Archive for %{date}'
37
- no_news_articles_posted: 'There are no news articles posted for %{date}. Stay tuned.'
38
+ no_news_item_articles_posted: 'There are no news articles posted for %{date}. Stay tuned.'
38
39
  activerecord:
39
40
  attributes:
40
41
  'refinery/news/item':
@@ -5,25 +5,25 @@ es-MX:
5
5
  title: Noticias
6
6
  news:
7
7
  admin:
8
- item:
9
- view_live: "View this news item live <br/><em>(opens in a new window)</em>"
10
- edit: "Modificar esta noticia"
11
- delete: "Eliminar esta noticia"
8
+ items:
9
+ item:
10
+ view_live: "View this news item live <br/><em>(opens in a new window)</em>"
11
+ edit: "Modificar esta noticia"
12
+ delete: "Eliminar esta noticia"
13
+ index:
14
+ create: "Crear una noticia"
15
+ item: Noticias
16
+ no_items_yet: 'Aun no hay noticias. Haga click en "Crear una noticia" para agregar la primera noticia.'
17
+ items:
18
+ show:
19
+ back_to_index: "Regresar a noticias"
20
+ published: Publicada
21
+ no_items: "Lo sentimos, aun no ha publicado noticias."
22
+ recent_posts:
23
+ recent_posts: Publicaciones recientes
12
24
  index:
13
- actions: Acciones
14
- create: "Crear una noticia"
15
- item: Noticias
16
- no_items: "Lo sentimos no hay resultados."
17
- no_items_yet: 'Aun no hay noticias. Haga click en "Crear una noticia" para agregar la primera noticia.'
18
- show:
19
- back_to_index: "Regresar a noticias"
20
- published: Publicada
21
- no_items: "Lo sentimos, aun no ha publicado noticias."
22
- recent_posts:
23
- recent_posts: Publicaciones recientes
24
- index:
25
- published: Publicada
26
- read_more: Leer mas
25
+ published: Publicada
26
+ read_more: Leer mas
27
27
  activerecord:
28
28
  attributes:
29
29
  'refinery/news/item':
@@ -6,26 +6,26 @@ es:
6
6
  description: Proporciona una seccion de noticias similar a un blog
7
7
  news:
8
8
  admin:
9
- item:
10
- view_live_html: "Ver este elemento en tu web <br/><em>(abre una nueva ventana)</em>"
11
- edit: "Editar esta noticia"
12
- delete: "Borrar completament esta noticia"
9
+ items:
10
+ item:
11
+ view_live_html: "Ver este elemento en tu web <br/><em>(abre una nueva ventana)</em>"
12
+ edit: "Editar esta noticia"
13
+ delete: "Borrar completamente esta noticia"
14
+ published: Publicada
15
+ index:
16
+ create: "Crear noticia"
17
+ item: Noticia
18
+ no_items_yet: 'Aún no hay noticias. Haz click en "Crear noticia" para añadir la primera.'
19
+ items:
20
+ show:
21
+ back_to_index: "Volver al listado de noticias"
13
22
  published: Publicada
23
+ recent_posts:
24
+ recent_posts: Artículos recientes
14
25
  index:
15
- actions: Acciones
16
- create: "Crear noticia"
17
- item: Noticia
18
- no_items: "Lo sentimos, no se ha encontrado ningún resultado"
19
- no_items_yet: 'Aún no hay noticias. Haz click en "Crear noticia" para añadir la primera.'
20
- show:
21
- back_to_index: "Volver al listado de noticias"
22
- published: Publicada
23
- recent_posts:
24
- recent_posts: Posts recientes
25
- index:
26
- published: Publicada
27
- read_more: Leer mas
28
- no_items_yet: Aún no hay ninguna noticia.
26
+ published: Publicada
27
+ read_more: Leer más
28
+ no_items_yet: Aún no hay ninguna noticia.
29
29
  activerecord:
30
30
  attributes:
31
31
  'refinery/news/item':
@@ -33,6 +33,6 @@ es:
33
33
  body: Contenido
34
34
  content: Contenido
35
35
  publish_date: Fecha de publicación
36
- expiration_date: Expiration date
36
+ expiration_date: Fecha de expiración
37
37
  models:
38
38
  'refinery/news/item': Noticia
@@ -6,31 +6,43 @@ fr:
6
6
  description: 'Fournit une rubrique "Actualités"'
7
7
  news:
8
8
  admin:
9
- item:
10
- view_live_html: "Visualiser cette nouvelle <br/><em>(ouvre une nouvelle fenêtre)</em>"
11
- edit: "Modifier cette actualité"
12
- delete: "Détruire cette actualité à tout jamais"
13
- published: Publiée
9
+ items:
10
+ item:
11
+ view_live_html: "Visualiser cette nouvelle <br/><em>(ouvre une nouvelle fenêtre)</em>"
12
+ edit: "Modifier cette actualité"
13
+ delete: "Détruire cette actualité à tout jamais"
14
+ published: Publiée
15
+ index:
16
+ create: "Créer une actualité"
17
+ item: Actualité
18
+ no_items_yet: 'Aucune actualité. Cliquer sur "Créer une actualité" pour créer votre première actualité.'
19
+ shared:
20
+ items:
21
+ read_more: Lire la suite
22
+ created_at: 'Créée le %{when}'
23
+ archives: Archives
24
+ items:
25
+ show:
26
+ back_to_index: "Retour à la liste des actualités"
27
+ published: Publiée le
28
+ source: Source
29
+ recent_posts:
30
+ recent_posts: Dernières actualités
14
31
  index:
15
- actions: Actions
16
- create: "Créer une actualité"
17
- item: Actualité
18
- no_items: "Désolé, aucun résultat."
19
- no_items_yet: 'Aucune actualité. Cliquer sur "Créer une actualité" pour créer votre première actualité.'
20
- show:
21
- back_to_index: "Retour à la liste des actualités"
22
- published: Publiée le
23
- recent_posts:
24
- recent_posts: Dernières actualités
25
- index:
26
- published: Publiée le
27
- read_more: Plus
28
- no_items_yet: Aucune actualité pour le moment.
32
+ published: Publiée le
33
+ read_more: Plus
34
+ no_items_yet: Aucune actualité pour le moment.
35
+ source: Source
36
+ archive:
37
+ news_item_archive_for: 'À archiver le %{date}'
38
+ no_news_item_articles_posted: "Aucune actualité en date du %{date}. Restez à l'écoute !"
29
39
  activerecord:
30
40
  attributes:
31
41
  'refinery/news/item':
32
42
  title: Titre
33
43
  body: Texte
34
44
  publish_date: Date de publication
45
+ expiration_date: Date d'expiration
46
+ source: Source
35
47
  models:
36
48
  'refinery/news/item': Nouvelle
@@ -6,26 +6,26 @@ it:
6
6
  description: Fornisce una sezione notizie in stile blog
7
7
  news:
8
8
  admin:
9
- item:
10
- view_live_html: "Visualzza questa notizia live <br/><em>(si apre in una nuova finestra)</em>"
11
- edit: "Modifica questa notizia"
12
- delete: "Rimuovi questa notizia per sempre"
9
+ items:
10
+ item:
11
+ view_live_html: "Visualzza questa notizia live <br/><em>(si apre in una nuova finestra)</em>"
12
+ edit: "Modifica questa notizia"
13
+ delete: "Rimuovi questa notizia per sempre"
14
+ published: Pubblicata
15
+ index:
16
+ create: "Crea Notizia"
17
+ item: Notizia
18
+ no_items_yet: 'Non ci sono ancora notizie. Fare clic su "Crea Notizia" per aggiungere la prima notizia.'
19
+ items:
20
+ show:
21
+ back_to_index: "Torna a tutte le notizie"
13
22
  published: Pubblicata
23
+ recent_posts:
24
+ recent_posts: Messaggi Recenti
14
25
  index:
15
- actions: Azioni
16
- create: "Crea Notizia"
17
- item: Notizia
18
- no_items: "Spiacente, nessun risultato trovato."
19
- no_items_yet: 'Non ci sono ancora notizie. Fare clic su "Crea Notizia" per aggiungere la prima notizie.'
20
- show:
21
- back_to_index: "Torna a tutte le notizie"
22
- published: Pubblicata
23
- recent_posts:
24
- recent_posts: Messaggi Recenti
25
- index:
26
- published: Pubblicata
27
- read_more: Per saperne di più
28
- no_items_yet: Non ci sono ancora notizie.
26
+ published: Pubblicata
27
+ read_more: Per saperne di più
28
+ no_items_yet: Non ci sono ancora notizie.
29
29
  activerecord:
30
30
  attributes:
31
31
  'refinery/news/item':
@@ -0,0 +1,48 @@
1
+ ja:
2
+ refinery:
3
+ plugins:
4
+ refinerycms_news:
5
+ title: 'ニュース'
6
+ description: '簡単なニュースを投稿出来るプラグイン'
7
+ news:
8
+ admin:
9
+ items:
10
+ item:
11
+ view_live_html: 'このニュースを見る<br/><em>(新規ウインドウで開かれます)</em>'
12
+ edit: 'このニュースを編集'
13
+ delete: 'このニュースを削除'
14
+ published: '公開日時'
15
+ index:
16
+ create: '新規ニュースを追加'
17
+ item: 'ニュース'
18
+ no_items_yet: 'まだニュースが何もありません。「新規ニュースを追加」をクリックしてニュースを追加して下さい。'
19
+ shared:
20
+ items:
21
+ read_more: '続きを読む'
22
+ created_at: '作成日時:%{when}'
23
+ archives: 記録
24
+ items:
25
+ show:
26
+ back_to_index: 'ニュース一覧に戻る'
27
+ published: '公開日時'
28
+ source: '参照元'
29
+ recent_posts:
30
+ recent_posts: '最近のニュース'
31
+ index:
32
+ published: '公開日時'
33
+ read_more: '続きを読む'
34
+ no_items_yet: 'まだニュースが何もありません。'
35
+ source: '参照元'
36
+ archive:
37
+ news_item_archive_for: '記録日時 %{date}'
38
+ no_news_item_articles_posted: '%{date}からニュースが追加されていません。'
39
+ activerecord:
40
+ attributes:
41
+ 'refinery/news/item':
42
+ title: '題名'
43
+ body: '本文'
44
+ publish_date: '公開日時'
45
+ expiration_date: '公開終了日時'
46
+ source: '参照元'
47
+ models:
48
+ 'refinery/news/item': 'ニュース'