refinerycms-resources 1.0.11 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/app/controllers/refinery/admin/resources_controller.rb +87 -0
  2. data/app/models/refinery/resource.rb +49 -0
  3. data/app/views/refinery/admin/resources/_actions.html.erb +8 -0
  4. data/app/views/{admin → refinery/admin}/resources/_existing_resource.html.erb +7 -13
  5. data/app/views/{admin → refinery/admin}/resources/_form.html.erb +14 -18
  6. data/app/views/refinery/admin/resources/_records.html.erb +16 -0
  7. data/app/views/refinery/admin/resources/_resource.html.erb +20 -0
  8. data/app/views/{admin → refinery/admin}/resources/_resources.html.erb +2 -2
  9. data/app/views/refinery/admin/resources/edit.html.erb +1 -0
  10. data/app/views/refinery/admin/resources/index.html.erb +6 -0
  11. data/app/views/{admin → refinery/admin}/resources/insert.html.erb +10 -13
  12. data/app/views/refinery/admin/resources/new.html.erb +1 -0
  13. data/config/locales/bg.yml +30 -29
  14. data/config/locales/cs.yml +32 -30
  15. data/config/locales/da.yml +30 -29
  16. data/config/locales/de.yml +30 -29
  17. data/config/locales/el.yml +30 -29
  18. data/config/locales/en.yml +30 -29
  19. data/config/locales/es.yml +31 -30
  20. data/config/locales/fi.yml +30 -29
  21. data/config/locales/fr.yml +30 -29
  22. data/config/locales/it.yml +41 -39
  23. data/config/locales/ja.yml +36 -0
  24. data/config/locales/ko.yml +36 -0
  25. data/config/locales/lt.yml +30 -29
  26. data/config/locales/lv.yml +30 -29
  27. data/config/locales/nb.yml +30 -29
  28. data/config/locales/nl.yml +29 -28
  29. data/config/locales/pl.yml +31 -30
  30. data/config/locales/pt-BR.yml +30 -29
  31. data/config/locales/rs.yml +30 -30
  32. data/config/locales/ru.yml +30 -29
  33. data/config/locales/sk.yml +30 -29
  34. data/config/locales/sl.yml +29 -28
  35. data/config/locales/sv.yml +30 -29
  36. data/config/locales/vi.yml +30 -29
  37. data/config/locales/zh-CN.yml +30 -29
  38. data/config/locales/zh-TW.yml +30 -29
  39. data/config/routes.rb +4 -8
  40. data/db/migrate/20100913234709_create_refinerycms_resources_schema.rb +8 -16
  41. data/lib/generators/refinery/resources/resources_generator.rb +10 -0
  42. data/lib/generators/refinery/resources/templates/config/initializers/refinery/resources.rb.erb +26 -0
  43. data/lib/refinery/resources/configuration.rb +43 -0
  44. data/lib/refinery/resources/dragonfly.rb +52 -0
  45. data/lib/refinery/resources/engine.rb +38 -0
  46. data/lib/refinery/resources/validators/file_size_validator.rb +19 -0
  47. data/lib/refinery/resources/validators.rb +7 -0
  48. data/lib/refinery/resources.rb +25 -0
  49. data/lib/refinerycms-resources.rb +1 -75
  50. data/refinerycms-resources.gemspec +14 -83
  51. data/spec/factories/resource.rb +5 -0
  52. data/{features/uploads → spec/fixtures}/refinery_is_awesome.txt +0 -0
  53. data/spec/fixtures/refinery_is_awesome2.txt +1 -0
  54. data/spec/lib/generators/refinery/resources/resources_generator_spec.rb +29 -0
  55. data/spec/models/refinery/resource_spec.rb +118 -0
  56. data/spec/requests/refinery/admin/resources_spec.rb +148 -0
  57. metadata +111 -101
  58. data/app/controllers/admin/resources_controller.rb +0 -87
  59. data/app/models/resource.rb +0 -54
  60. data/app/views/admin/resources/_actions.html.erb +0 -11
  61. data/app/views/admin/resources/_records.html.erb +0 -16
  62. data/app/views/admin/resources/_resource.html.erb +0 -17
  63. data/app/views/admin/resources/edit.html.erb +0 -1
  64. data/app/views/admin/resources/index.html.erb +0 -6
  65. data/app/views/admin/resources/new.html.erb +0 -1
  66. data/config/locales/jp.yml +0 -35
  67. data/config/locales/lolcat.yml +0 -35
  68. data/features/manage_files.feature +0 -43
  69. data/features/step_definitions/file_steps.rb +0 -21
  70. data/features/support/paths.rb +0 -17
  71. data/features/uploads/beach.jpeg +0 -0
  72. data/lib/gemspec.rb +0 -38
  73. data/lib/generators/refinerycms_resources_generator.rb +0 -8
  74. data/spec/models/resource_spec.rb +0 -78
  75. data/spec/uploads/refinery_is_awesome.txt +0 -1
@@ -1,35 +1,36 @@
1
1
  nb:
2
- plugins:
3
- refinery_files:
4
- title: Filer
5
- description: Last opp og link til filer
6
- admin:
7
- resources:
8
- delete: Fjern denne filen permanent
9
- edit: Rediger denne filen
10
- form:
11
- download_current: Last ned gjeldende fil
12
- or: eller
13
- replace: " erstatt den med denne..."
14
- maximum_file_size: Største tillatte filstørrelse er %{megabytes} MB.
15
- resource:
16
- download: Last ned denne filen (%{size})
17
- actions:
18
- upload_new: Last opp en ny fil
19
- records:
20
- no_files_yet: Det er ingen filer her enda. Klikk på "Last opp en ny fil" for å legge til din første fil.
21
- insert:
22
- existing: Eksisterende fil
23
- new: Ny fil
24
- no_files: Det er ingen filer.
25
- existing_resource:
26
- link_to_file: Link til denne filen
27
- button_text: Legg inn
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Filer
6
+ description: Last opp og link til filer
7
+ admin:
8
+ resources:
9
+ delete: Fjern denne filen permanent
10
+ edit: Rediger denne filen
11
+ form:
12
+ download_current: Last ned gjeldende fil
13
+ or: eller
14
+ replace: " erstatt den med denne..."
15
+ maximum_file_size: Største tillatte filstørrelse er %{bytes}.
16
+ resource:
17
+ download: Last ned denne filen (%{size})
18
+ actions:
19
+ upload_new: Last opp en ny fil
20
+ records:
21
+ no_files_yet: Det er ingen filer her enda. Klikk på "Last opp en ny fil" for å legge til din første fil.
22
+ insert:
23
+ existing: Eksisterende fil
24
+ new: Ny fil
25
+ no_files: Det er ingen filer.
26
+ existing_resource:
27
+ link_to_file: Link til denne filen
28
+ button_text: Legg inn
28
29
  activerecord:
29
30
  models:
30
- resource: fil
31
+ refinery/resource: fil
31
32
  errors:
32
33
  models:
33
- resource:
34
+ refinery/resource:
34
35
  blank: Du må angi en fil som skal lastes opp
35
- too_long: Filstørrelsen må være mindre enn %{count}
36
+ too_big: Filstørrelsen må være mindre enn %{size} MB
@@ -1,34 +1,35 @@
1
1
  nl:
2
- plugins:
3
- refinery_files:
4
- title: Bestanden
5
- admin:
6
- resources:
7
- delete: Verwijder dit bestand voorgoed
8
- edit: Bewerk dit bestand
9
- form:
10
- download_current: Download het huidige bestand
11
- or: of
12
- replace: ", vervang het door dit..."
13
- maximum_file_size: "The maximum file size is %{megabytes} megabytes."
14
- resource:
15
- download: Download dit bestand (%{size})
16
- actions:
17
- upload_new: Upload een nieuw bestand.
18
- records:
19
- no_files_yet: Er zijn nog geen bestanden. Klik op "Upload een nieuw bestand" om uw eerste bestand toe te voegen.
20
- insert:
21
- existing: Bestaand bestand
22
- new: Nieuw bestand
23
- no_files: Er zijn geen bestanden
24
- existing_resource:
25
- link_to_file: Link naar dit bestand
26
- button_text: Invoegen
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Bestanden
6
+ admin:
7
+ resources:
8
+ delete: Verwijder dit bestand voorgoed
9
+ edit: Bewerk dit bestand
10
+ form:
11
+ download_current: Download het huidige bestand
12
+ or: of
13
+ replace: ", vervang het door dit..."
14
+ maximum_file_size: "The maximum file size is %{bytes}."
15
+ resource:
16
+ download: Download dit bestand (%{size})
17
+ actions:
18
+ upload_new: Upload een nieuw bestand.
19
+ records:
20
+ no_files_yet: Er zijn nog geen bestanden. Klik op "Upload een nieuw bestand" om uw eerste bestand toe te voegen.
21
+ insert:
22
+ existing: Bestaand bestand
23
+ new: Nieuw bestand
24
+ no_files: Er zijn geen bestanden
25
+ existing_resource:
26
+ link_to_file: Link naar dit bestand
27
+ button_text: Invoegen
27
28
  activerecord:
28
29
  models:
29
- resource: bestand
30
+ refinery/resource: bestand
30
31
  errors:
31
32
  models:
32
- resource:
33
+ refinery/resource:
33
34
  blank: U moet een bestand kiezen dat u wilt uploaden.
34
- too_long: Bestanden mogen niet groter dan %{count} zijn.
35
+ too_big: Bestanden mogen niet groter dan %{size} bytes zijn.
@@ -1,36 +1,37 @@
1
1
  pl:
2
- plugins:
3
- refinery_files:
4
- title: Pliki
5
- description: Wgrywaj i linkuj do plików
6
- article: masculine
7
- admin:
8
- resources:
9
- delete: Na zawsze usuń ten plik
10
- edit: Zmień ten plik
11
- form:
12
- download_current: Pobierz obecny plik
13
- or: or
14
- replace: " zastąp go tym..."
15
- maximum_file_size: Maksymalny rozmiaj plik to %{megabytes} megabajtów.
16
- resource:
17
- download: Pobierz ten plik (%{size})
18
- actions:
19
- upload_new: Wgraj nowe pliki
20
- records:
21
- no_files_yet: Nie ma jeszcze żadnych plików. Kliknij "Wgraj nowe pliki" aby dodać pierwszy.
22
- insert:
23
- existing: Istniejący plik
24
- new: Nowy plik
25
- no_files: Nie ma żadnych plików
26
- existing_resource:
27
- link_to_file: Linkuj do tego pliku
28
- button_text: Wstaw
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Pliki
6
+ description: Wgrywaj i linkuj do plików
7
+ article: masculine
8
+ admin:
9
+ resources:
10
+ delete: Na zawsze usuń ten plik
11
+ edit: Zmień ten plik
12
+ form:
13
+ download_current: Pobierz obecny plik
14
+ or: or
15
+ replace: " zastąp go tym..."
16
+ maximum_file_size: Maksymalny rozmiaj plik to %{bytes}.
17
+ resource:
18
+ download: Pobierz ten plik (%{size})
19
+ actions:
20
+ upload_new: Wgraj nowe pliki
21
+ records:
22
+ no_files_yet: Nie ma jeszcze żadnych plików. Kliknij "Wgraj nowe pliki" aby dodać pierwszy.
23
+ insert:
24
+ existing: Istniejący plik
25
+ new: Nowy plik
26
+ no_files: Nie ma żadnych plików
27
+ existing_resource:
28
+ link_to_file: Linkuj do tego pliku
29
+ button_text: Wstaw
29
30
  activerecord:
30
31
  models:
31
- resource: plik
32
+ refinery/resource: plik
32
33
  errors:
33
34
  models:
34
- resource:
35
+ refinery/resource:
35
36
  blank: Musisz określić plik do wgrania
36
- too_long: Plik powinien być mniejszy niż %{count}
37
+ too_big: Plik powinien być mniejszy niż %{size} megabajtów
@@ -1,35 +1,36 @@
1
1
  pt-BR:
2
- plugins:
3
- refinery_files:
4
- title: Arquivos
5
- description: Gerenciar arquivos
6
- admin:
7
- resources:
8
- delete: Remover este arquivo para sempre
9
- edit: Editar este arquivo
10
- form:
11
- download_current: Baixar arquivo atual
12
- or: or
13
- replace: " substituir por este..."
14
- maximum_file_size: "O tamanho máximo permitido é de %{megabytes} megabytes."
15
- resource:
16
- download: Baixar este arquivo (%{size})
17
- actions:
18
- upload_new: Enviar Novo Arquivo
19
- records:
20
- no_files_yet: Ainda não existem arquivos. Clique em "Enviar Novo Arquivo" para adicionar seu primeiro arquivo.
21
- insert:
22
- existing: O Arquivo já existe.
23
- new: Novo Arquivo
24
- no_files: TNão há arquivos.
25
- existing_resource:
26
- link_to_file: Link para este Arquivo
27
- button_text: Inserir
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Arquivos
6
+ description: Gerenciar arquivos
7
+ admin:
8
+ resources:
9
+ delete: Remover este arquivo para sempre
10
+ edit: Editar este arquivo
11
+ form:
12
+ download_current: Baixar arquivo atual
13
+ or: or
14
+ replace: " substituir por este..."
15
+ maximum_file_size: "O tamanho máximo permitido é de %{bytes}."
16
+ resource:
17
+ download: Baixar este arquivo (%{size})
18
+ actions:
19
+ upload_new: Enviar Novo Arquivo
20
+ records:
21
+ no_files_yet: Ainda não existem arquivos. Clique em "Enviar Novo Arquivo" para adicionar seu primeiro arquivo.
22
+ insert:
23
+ existing: O Arquivo já existe.
24
+ new: Novo Arquivo
25
+ no_files: TNão há arquivos.
26
+ existing_resource:
27
+ link_to_file: Link para este Arquivo
28
+ button_text: Inserir
28
29
  activerecord:
29
30
  models:
30
- resource: Arquivo
31
+ refinery/resource: Arquivo
31
32
  errors:
32
33
  models:
33
- resource:
34
+ refinery/resource:
34
35
  blank: Você deve escolher um arquivo para enviar
35
- too_long: "Arquivos devem ser menores que %{count} em tamanho"
36
+ too_big: "Arquivos devem ser menores que %{size} bytes em tamanho"
@@ -1,36 +1,36 @@
1
1
  rs:
2
- plugins:
3
- refinery_files:
4
- title: Fajlovi
5
- description: Upload-uj i linkuj fajlove
6
- admin:
7
- resources:
8
- delete: Ukloni ovaj fajl zauvek
9
- edit: Izmeni fajl
10
- form:
11
- download_current: Download-uj fajl
12
- or: ili
13
- replace: " zameni sa ovim..."
14
- maximum_file_size: Maksimalna veličina fajla je %{megabytes} megabajta.
15
- resource:
16
- download: Download-uj fajl (%{size})
17
- actions:
18
- upload_new: Upload-uj novi fajl
19
- records:
20
- no_files_yet: Ne postoje fajlovi. Klikni "Upload-uj novi fajl" da dodaš.
21
- insert:
22
- existing: Postojeći fajl
23
- new: Novi fajl
24
- no_files: Ne postoje fajlovi.
25
- existing_resource:
26
- link_to_file: Linkuj na ovaj fajl
27
- button_text: Unesi
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Fajlovi
6
+ description: Upload-uj i linkuj fajlove
7
+ admin:
8
+ resources:
9
+ delete: Ukloni ovaj fajl zauvek
10
+ edit: Izmeni fajl
11
+ form:
12
+ download_current: Download-uj fajl
13
+ or: ili
14
+ replace: " zameni sa ovim..."
15
+ maximum_file_size: Maksimalna veličina fajla je %{bytes}.
16
+ resource:
17
+ download: Download-uj fajl (%{size})
18
+ actions:
19
+ upload_new: Upload-uj novi fajl
20
+ records:
21
+ no_files_yet: Ne postoje fajlovi. Klikni "Upload-uj novi fajl" da dodaš.
22
+ insert:
23
+ existing: Postojeći fajl
24
+ new: Novi fajl
25
+ no_files: Ne postoje fajlovi.
26
+ existing_resource:
27
+ link_to_file: Linkuj na ovaj fajl
28
+ button_text: Unesi
28
29
  activerecord:
29
30
  models:
30
- resource: fajl
31
+ refinery/resource: fajl
31
32
  errors:
32
33
  models:
33
- resource:
34
+ refinery/resource:
34
35
  blank: Moraš izabrati fajl za upload
35
- too_long: Fajl bi trebalo da je manji od %{count}
36
-
36
+ too_big: Fajl bi trebalo da je manji od %{size} megabajta
@@ -1,35 +1,36 @@
1
1
  ru:
2
- plugins:
3
- refinery_files:
4
- title: Файлы
5
- article: masculine
6
- admin:
7
- resources:
8
- delete: Удалить этот файл навсегда
9
- edit: Редактировать этот файл
10
- form:
11
- download_current: Скачать текущий файл
12
- or: или
13
- replace: " заменить его этим"
14
- maximum_file_size: "Максимальный размер файла — %{megabytes} МБ."
15
- resource:
16
- download: "Скачать файл (%{size})"
17
- actions:
18
- upload_new: Загрузить новый файл
19
- records:
20
- no_files_yet: "Здесь пока нет файлов. Нажмите «Загрузить новые файлы», чтобы добавить первый файл."
21
- insert:
22
- existing: Существующий файл
23
- new: Новый файл
24
- no_files: Файлов нет.
25
- existing_resource:
26
- link_to_file: Поставить ссылку на этот файл
27
- button_text: Вставить
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Файлы
6
+ article: masculine
7
+ admin:
8
+ resources:
9
+ delete: Удалить этот файл навсегда
10
+ edit: Редактировать этот файл
11
+ form:
12
+ download_current: Скачать текущий файл
13
+ or: или
14
+ replace: " заменить его этим"
15
+ maximum_file_size: "Максимальный размер файла — %{bytes}."
16
+ resource:
17
+ download: "Скачать файл (%{size})"
18
+ actions:
19
+ upload_new: Загрузить новый файл
20
+ records:
21
+ no_files_yet: "Здесь пока нет файлов. Нажмите «Загрузить новые файлы», чтобы добавить первый файл."
22
+ insert:
23
+ existing: Существующий файл
24
+ new: Новый файл
25
+ no_files: Файлов нет.
26
+ existing_resource:
27
+ link_to_file: Поставить ссылку на этот файл
28
+ button_text: Вставить
28
29
  activerecord:
29
30
  models:
30
- resource: файл
31
+ refinery/resource: файл
31
32
  errors:
32
33
  models:
33
- resource:
34
+ refinery/resource:
34
35
  blank: Вы должны выбрать файл для загрузки
35
- too_long: "Файлы должны быть по размеру меньше чем %{count}"
36
+ too_big: "Файлы должны быть по размеру меньше чем %{size} МБ"
@@ -1,35 +1,36 @@
1
1
  sk:
2
- plugins:
3
- refinery_files:
4
- title: Súbory
5
- description: Správa súborov
6
- admin:
7
- resources:
8
- delete: Zmazať súbor
9
- edit: Upraviť súbor
10
- form:
11
- download_current: Stiahnuť vybraný súbor
12
- or: alebo
13
- replace: " nahradiť tímto..."
14
- maximum_file_size: Maximálna veľkosť súboru je %{megabytes} MB.
15
- resource:
16
- download: Stiahnuť súbor (%{size})
17
- actions:
18
- upload_new: Nahrať nový súbor
19
- records:
20
- no_files_yet: Zatiaľ neboli nahraté žiadne súbory.
21
- insert:
22
- existing: Existujúci súbor
23
- new: Nový súbor
24
- no_files: Nie sú tu žiadne súbory.
25
- existing_resource:
26
- link_to_file: Odkaz na tento súbor.
27
- button_text: Vložiť
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Súbory
6
+ description: Správa súborov
7
+ admin:
8
+ resources:
9
+ delete: Zmazať súbor
10
+ edit: Upraviť súbor
11
+ form:
12
+ download_current: Stiahnuť vybraný súbor
13
+ or: alebo
14
+ replace: " nahradiť tímto..."
15
+ maximum_file_size: Maximálna veľkosť súboru je %{bytes}.
16
+ resource:
17
+ download: Stiahnuť súbor (%{size})
18
+ actions:
19
+ upload_new: Nahrať nový súbor
20
+ records:
21
+ no_files_yet: Zatiaľ neboli nahraté žiadne súbory.
22
+ insert:
23
+ existing: Existujúci súbor
24
+ new: Nový súbor
25
+ no_files: Nie sú tu žiadne súbory.
26
+ existing_resource:
27
+ link_to_file: Odkaz na tento súbor.
28
+ button_text: Vložiť
28
29
  activerecord:
29
30
  models:
30
- resource: súbor
31
+ refinery/resource: súbor
31
32
  errors:
32
33
  models:
33
- resource:
34
+ refinery/resource:
34
35
  blank: Musíte vybrať súbor pre nahranie.
35
- too_long: Maximálna veľkosť súboru je %{count}.
36
+ too_big: Maximálna veľkosť súboru je %{size} MB.
@@ -1,34 +1,35 @@
1
1
  sl:
2
- plugins:
3
- refinery_files:
4
- title: Datoteke
5
- admin:
6
- resources:
7
- delete: Odstrani datoteko
8
- edit: Uredi datoteko
9
- form:
10
- download_current: Prenesi tretnutno datoteko
11
- or: ali
12
- replace: " jo zamenjaj s tole..."
13
- maximum_file_size: "Največja dovoljena velikost datoteke je %{megabytes} megabajtov."
14
- resource:
15
- download: Prenesi datoteko (%{size})
16
- actions:
17
- upload_new: Prenesi Novo Datoteko
18
- records:
19
- no_files_yet: Trenutno še ni nobene datoteke. Za prenos prve datoteke kliknite "Prenesi Novo Datoteko".
20
- insert:
21
- existing: Obstoječo Datoteko
22
- new: Novo Datoteko
23
- no_files: Trenutno še ni datotek.
24
- existing_resource:
25
- link_to_file: Povezava do te datoteke
26
- button_text: Vstavi
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Datoteke
6
+ admin:
7
+ resources:
8
+ delete: Odstrani datoteko
9
+ edit: Uredi datoteko
10
+ form:
11
+ download_current: Prenesi tretnutno datoteko
12
+ or: ali
13
+ replace: " jo zamenjaj s tole..."
14
+ maximum_file_size: "Največja dovoljena velikost datoteke je %{bytes}."
15
+ resource:
16
+ download: Prenesi datoteko (%{size})
17
+ actions:
18
+ upload_new: Prenesi Novo Datoteko
19
+ records:
20
+ no_files_yet: Trenutno še ni nobene datoteke. Za prenos prve datoteke kliknite "Prenesi Novo Datoteko".
21
+ insert:
22
+ existing: Obstoječo Datoteko
23
+ new: Novo Datoteko
24
+ no_files: Trenutno še ni datotek.
25
+ existing_resource:
26
+ link_to_file: Povezava do te datoteke
27
+ button_text: Vstavi
27
28
  activerecord:
28
29
  models:
29
- resource: datoteka
30
+ refinery/resource: datoteka
30
31
  errors:
31
32
  models:
32
- resource:
33
+ refinery/resource:
33
34
  blank: Izbrati morate datoteko za prenos
34
- too_long: Velikost datoteke mora biti manjša od %{count}
35
+ too_big: Velikost datoteke mora biti manjša od %{size} megabajtov
@@ -1,35 +1,36 @@
1
1
  sv:
2
- plugins:
3
- refinery_files:
4
- title: Filer
5
- description: Ladda upp och länka till filer
6
- admin:
7
- resources:
8
- delete: Ta bort den här filen för alltid
9
- edit: Redigera den här filen
10
- form:
11
- download_current: Ladda ner den här filen
12
- or: eller
13
- replace: " ersätt med den här..."
14
- maximum_file_size: Maximal storlek är %{megabytes} megabytes.
15
- resource:
16
- download: Ladda ner den här filen (%{size})
17
- actions:
18
- upload_new: Ladda upp en fil
19
- records:
20
- no_files_yet: Det finns inga filer ännu. Klicka på "Ladda upp en fil" för att ladda upp din första fil.
21
- insert:
22
- existing: Redan existerande fil
23
- new: Ny fil
24
- no_files: Det finns inga filer.
25
- existing_resource:
26
- link_to_file: Länk till den här filen
27
- button_text: Lägg till
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Filer
6
+ description: Ladda upp och länka till filer
7
+ admin:
8
+ resources:
9
+ delete: Ta bort den här filen för alltid
10
+ edit: Redigera den här filen
11
+ form:
12
+ download_current: Ladda ner den här filen
13
+ or: eller
14
+ replace: " ersätt med den här..."
15
+ maximum_file_size: Maximal storlek är %{bytes}.
16
+ resource:
17
+ download: Ladda ner den här filen (%{size})
18
+ actions:
19
+ upload_new: Ladda upp en fil
20
+ records:
21
+ no_files_yet: Det finns inga filer ännu. Klicka på "Ladda upp en fil" för att ladda upp din första fil.
22
+ insert:
23
+ existing: Redan existerande fil
24
+ new: Ny fil
25
+ no_files: Det finns inga filer.
26
+ existing_resource:
27
+ link_to_file: Länk till den här filen
28
+ button_text: Lägg till
28
29
  activerecord:
29
30
  models:
30
- resource: fil
31
+ refinery/resource: fil
31
32
  errors:
32
33
  models:
33
- resource:
34
+ refinery/resource:
34
35
  blank: Du måste ange en fil att ladda upp
35
- too_long: Filen måste vara mindre än %{count} stor
36
+ too_big: Filen måste vara mindre än %{size} bytes stor