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
  el:
2
- plugins:
3
- refinery_files:
4
- title: Αρχεία
5
- description: Ανεβάστε και συνδέστε αρχεία
6
- admin:
7
- resources:
8
- delete: Διαγραφή αρχείου
9
- edit: Επεξεργασία αρχείου
10
- form:
11
- download_current: Μεταφόρτωση τρέχοντος αρχείου
12
- or: ή
13
- replace: " αντικατάσταση με νέο..."
14
- maximum_file_size: Το μέγιστο μέγεθος του αρχείου είναι %{megabytes} 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
+ description: Ανεβάστε και συνδέστε αρχεία
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} bytes σε μέγεθος
@@ -1,35 +1,36 @@
1
1
  en:
2
- plugins:
3
- refinery_files:
4
- title: Files
5
- description: Upload and link to files
6
- admin:
7
- resources:
8
- delete: Remove this file forever
9
- edit: Edit this file
10
- form:
11
- download_current: Download current file
12
- or: or
13
- replace: " replace it with this one..."
14
- maximum_file_size: The maximum file size is %{megabytes} megabytes.
15
- resource:
16
- download: Download this file (%{size})
17
- actions:
18
- upload_new: Upload new file
19
- records:
20
- no_files_yet: There are no files yet. Click "Upload new file" to add your first file.
21
- insert:
22
- existing: Existing File
23
- new: New File
24
- no_files: There are no files.
25
- existing_resource:
26
- link_to_file: Link to this file
27
- button_text: Insert
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Files
6
+ description: Upload and link to files
7
+ admin:
8
+ resources:
9
+ delete: Remove this file forever
10
+ edit: Edit this file
11
+ form:
12
+ download_current: Download current file
13
+ or: or
14
+ replace: " replace it with this one..."
15
+ maximum_file_size: The maximum file size is %{bytes}.
16
+ resource:
17
+ download: Download this file (%{size})
18
+ actions:
19
+ upload_new: Upload new file
20
+ records:
21
+ no_files_yet: There are no files yet. Click "Upload new file" to add your first file.
22
+ insert:
23
+ existing: Existing File
24
+ new: New File
25
+ no_files: There are no files.
26
+ existing_resource:
27
+ link_to_file: Link to this file
28
+ button_text: Insert
28
29
  activerecord:
29
30
  models:
30
- resource: file
31
+ refinery/resource: file
31
32
  errors:
32
33
  models:
33
- resource:
34
+ refinery/resource:
34
35
  blank: You must specify file for upload
35
- too_long: File should be smaller than %{count} in size
36
+ too_big: File should be smaller than %{size} bytes in size
@@ -1,36 +1,37 @@
1
1
  es:
2
- plugins:
3
- refinery_files:
4
- title: Archivos
5
- description: Subir y enlazar archivos
6
- article: masculino
7
- admin:
8
- resources:
9
- delete: Borrar este archivo para siempre
10
- edit: Editar este archivo
11
- form:
12
- download_current: Descargar archivo actual
13
- or: o
14
- replace: " reemplazarlo por este otro..."
15
- maximum_file_size: El peso máximo para el archivo es de %{megabytes} megabytes.
16
- resource:
17
- download: Descargar este archivo (%{size})
18
- actions:
19
- upload_new: Subir nuevo archivo
20
- records:
21
- no_files_yet: Aún no hay archivos. Pulsa "Subir nuevo archivo" para añadir tu primer archivo.
22
- insert:
23
- existing: Archivo existente
24
- new: Nuevo archivo
25
- no_files: No hay archivos.
26
- existing_resource:
27
- link_to_file: Enlazar este archivo
28
- button_text: Insertar
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Archivos
6
+ description: Subir y enlazar archivos
7
+ article: masculino
8
+ admin:
9
+ resources:
10
+ delete: Borrar este archivo para siempre
11
+ edit: Editar este archivo
12
+ form:
13
+ download_current: Descargar archivo actual
14
+ or: o
15
+ replace: " reemplazarlo por este otro..."
16
+ maximum_file_size: El peso máximo para el archivo es de %{bytes}.
17
+ resource:
18
+ download: Descargar este archivo (%{size})
19
+ actions:
20
+ upload_new: Subir nuevo archivo
21
+ records:
22
+ no_files_yet: Aún no hay archivos. Pulsa "Subir nuevo archivo" para añadir tu primer archivo.
23
+ insert:
24
+ existing: Archivo existente
25
+ new: Nuevo archivo
26
+ no_files: No hay archivos.
27
+ existing_resource:
28
+ link_to_file: Enlazar este archivo
29
+ button_text: Insertar
29
30
  activerecord:
30
31
  models:
31
- resource: archivo
32
+ refinery/resource: archivo
32
33
  errors:
33
34
  models:
34
- resource:
35
+ refinery/resource:
35
36
  blank: Selecciona qué archivo quieres subir
36
- too_long: El archivo debe pesar menos de %{count}
37
+ too_big: El archivo debe pesar menos de %{size} bytes
@@ -1,35 +1,36 @@
1
1
  fi:
2
- plugins:
3
- refinery_files:
4
- title: Tiedostot
5
- description: Lisää tiedostoja
6
- admin:
7
- resources:
8
- delete: Poista tämä tiedosto ikuisesti
9
- edit: Muokkaa tätä tiedostoa
10
- form:
11
- download_current: Lataa nykyinen tiedosto
12
- or: tai
13
- replace: " vaihda se tähän tiedostoon..."
14
- maximum_file_size: Suurin mahdollinen tiedostokoko on %{megabytes} megatavua.
15
- resource:
16
- download: Lataa tämä tiedosto (%{size})
17
- actions:
18
- upload_new: Lisää uusi tiedosto
19
- records:
20
- no_files_yet: Tiedostoja ei ole vielä lisätty. Paina "Lisää uusi tiedosto-" painiketta lisätäksesi ensimmäisen tiedoston.
21
- insert:
22
- existing: Olemassaoleva tiedosto
23
- new: Uusi tiedosto
24
- no_files: Tiedostoja ei ole.
25
- existing_resource:
26
- link_to_file: Linkki tähän tiedostoon
27
- button_text: Lisää
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Tiedostot
6
+ description: Lisää tiedostoja
7
+ admin:
8
+ resources:
9
+ delete: Poista tämä tiedosto ikuisesti
10
+ edit: Muokkaa tätä tiedostoa
11
+ form:
12
+ download_current: Lataa nykyinen tiedosto
13
+ or: tai
14
+ replace: " vaihda se tähän tiedostoon..."
15
+ maximum_file_size: Suurin mahdollinen tiedostokoko on %{bytes}.
16
+ resource:
17
+ download: Lataa tämä tiedosto (%{size})
18
+ actions:
19
+ upload_new: Lisää uusi tiedosto
20
+ records:
21
+ no_files_yet: Tiedostoja ei ole vielä lisätty. Paina "Lisää uusi tiedosto-" painiketta lisätäksesi ensimmäisen tiedoston.
22
+ insert:
23
+ existing: Olemassaoleva tiedosto
24
+ new: Uusi tiedosto
25
+ no_files: Tiedostoja ei ole.
26
+ existing_resource:
27
+ link_to_file: Linkki tähän tiedostoon
28
+ button_text: Lisää
28
29
  activerecord:
29
30
  models:
30
- resource: tiedosto
31
+ refinery/resource: tiedosto
31
32
  errors:
32
33
  models:
33
- resource:
34
+ refinery/resource:
34
35
  blank: Sinun pitää lähettää tiedosto
35
- too_long: Tiedoston tulee olla pienempi kuin %{count} kooltaan
36
+ too_big: Tiedoston tulee olla pienempi kuin %{count} megatavua kooltaan
@@ -1,35 +1,36 @@
1
1
  fr:
2
- plugins:
3
- refinery_files:
4
- title: Fichiers
5
- description: Gestion des fichiers
6
- admin:
7
- resources:
8
- delete: Supprimer définitivement ce fichier
9
- edit: Modifier ce fichier
10
- form:
11
- download_current: Télécharger ce fichier
12
- or: ou
13
- replace: " le remplacer par celui-ci..."
14
- maximum_file_size: "La taille du fichier ne doit pas excéder %{megabytes} megaoctets."
15
- resource:
16
- download: Télécharger ce fichier (%{size})
17
- actions:
18
- upload_new: Ajouter un nouveau fichier
19
- records:
20
- no_files_yet: Il n'y a actuellement aucun fichier. Cliquez sur 'Ajouter un nouveau fichier' afin d'en ajouter un.
21
- insert:
22
- existing: Fichier existant
23
- new: Nouveau fichier
24
- no_files: Il n'y a aucun fichier.
25
- existing_resource:
26
- link_to_file: Lien vers ce fichier
27
- button_text: Insertion
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Fichiers
6
+ description: Gestion des fichiers
7
+ admin:
8
+ resources:
9
+ delete: Supprimer définitivement ce fichier
10
+ edit: Modifier ce fichier
11
+ form:
12
+ download_current: Télécharger ce fichier
13
+ or: ou
14
+ replace: " le remplacer par celui-ci..."
15
+ maximum_file_size: "La taille du fichier ne doit pas excéder %{bytes}."
16
+ resource:
17
+ download: Télécharger ce fichier (%{size})
18
+ actions:
19
+ upload_new: Ajouter un nouveau fichier
20
+ records:
21
+ no_files_yet: Il n'y a actuellement aucun fichier. Cliquez sur 'Ajouter un nouveau fichier' afin d'en ajouter un.
22
+ insert:
23
+ existing: Fichier existant
24
+ new: Nouveau fichier
25
+ no_files: Il n'y a aucun fichier.
26
+ existing_resource:
27
+ link_to_file: Lien vers ce fichier
28
+ button_text: Insertion
28
29
  activerecord:
29
30
  models:
30
- resource: fichier
31
+ refinery/resource: fichier
31
32
  errors:
32
33
  models:
33
- resource:
34
+ refinery/resource:
34
35
  blank: Vous devez spécifier un fichier à télécharger
35
- too_long: Le poids maximal des fichiers est de %{count}
36
+ too_big: Le poids maximal des fichiers est de %{size} megaoctets
@@ -1,44 +1,46 @@
1
1
  it:
2
- plugins:
3
- refinery_files:
4
- title: Risorse
5
- admin:
6
- resources:
7
- delete: Elimina il file corrente
8
- edit: Modifica il file corrente
9
- form:
10
- file_to_upload: File da caricare
11
- download_current: Scarica il file corrente
12
- or: o
13
- replace: ", sostituirlo con questo..."
14
- maximum_file_size: "La dimensione massima consentita è %{megabytes} megabytes."
15
- resource:
16
- download: Scarica il file corrente (%{size})
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Risorse
6
+ admin:
7
+ resources:
8
+ delete: Elimina il file corrente
17
9
  edit: Modifica il file corrente
18
- delete:
19
- message: Sei sicuro di voler eliminare '%{title}'?
20
- title: Elimina il file corrente
21
- actions:
22
- upload_new: Carica un nuovo file
23
- records:
24
- no_files_yet: Nessun file presente. Fai clic su "Carica un nuovo file" per aggiungere un file.
25
- insert:
26
- existing: File esistente
27
- new: Nuovo file
28
- no_files: Non ci sono files.
29
- existing_file: File esistente
30
- link_to_resource: 'Link a questa risorsa'
31
- previous: Precedente
32
- next: Successivo
33
- submit_insert: Carica
34
- or: o
35
- cancel: Annulla
36
- existing_resource:
37
- link_to_file: Collegamento a questo file
38
- button_text: Inserisci
10
+ form:
11
+ file_to_upload: File da caricare
12
+ download_current: Scarica il file corrente
13
+ or: o
14
+ replace: ", sostituirlo con questo..."
15
+ maximum_file_size: "La dimensione massima consentita è %{bytes}."
16
+ resource:
17
+ download: Scarica il file corrente (%{size})
18
+ edit: Modifica il file corrente
19
+ delete:
20
+ message: Sei sicuro di voler eliminare '%{title}'?
21
+ title: Elimina il file corrente
22
+ actions:
23
+ upload_new: Carica un nuovo file
24
+ records:
25
+ no_files_yet: Nessun file presente. Fai clic su "Carica un nuovo file" per aggiungere un file.
26
+ insert:
27
+ existing: File esistente
28
+ new: Nuovo file
29
+ no_files: Non ci sono files.
30
+ existing_file: File esistente
31
+ link_to_resource: 'Link a questa risorsa'
32
+ previous: Precedente
33
+ next: Successivo
34
+ submit_insert: Carica
35
+ or: o
36
+ cancel: Annulla
37
+ existing_resource:
38
+ link_to_file: Collegamento a questo file
39
+ button_text: Inserisci
39
40
  activerecord:
40
41
  errors:
41
42
  models:
42
- resource:
43
- blank: Devi selezionare un file da caricare
44
- too_long: Le dimensioni del file devono essere inferiori a %{count}
43
+ refinery:
44
+ resource:
45
+ blank: Devi selezionare un file da caricare
46
+ too_big: Le dimensioni del file devono essere inferiori a %{size} bytes
@@ -0,0 +1,36 @@
1
+ ja:
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: ファイル
6
+ description: ファイルのアップロードと管理
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: 挿入
29
+ activerecord:
30
+ models:
31
+ refinery/resource: ファイル
32
+ errors:
33
+ models:
34
+ refinery/resource:
35
+ blank: アップロードするファイルを指定して下さい。
36
+ too_big: "ファイルは最大で%{size}MBまでです。"
@@ -0,0 +1,36 @@
1
+ ko:
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: 파일
6
+ description: 새 파일을 업로드하거나 업로드된 파일을 링크합니다.
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: 삽입
29
+ activerecord:
30
+ models:
31
+ refinery/resource: 파일
32
+ errors:
33
+ models:
34
+ refinery/resource:
35
+ blank: 업로드할 파일을 선택해주세요.
36
+ too_big: 파일의 크기는 %{size}MB 이하여야 합니다.
@@ -1,35 +1,36 @@
1
1
  lt:
2
- plugins:
3
- refinery_files:
4
- title: Failai
5
- description: Įkelti ir sukurti nuorodą į failus
6
- admin:
7
- resources:
8
- delete: Pašalinti failą visam laikui
9
- edit: Redaguoti failą
10
- form:
11
- download_current: Parsisiųsti failą
12
- or: arba
13
- replace: " pakeisti jį šiuo..."
14
- maximum_file_size: Maksimalus failo dydis yra %{megabytes} megabaitų.
15
- resource:
16
- download: Parsisiųsti failą (%{size})
17
- actions:
18
- upload_new: Įkelti naują failą
19
- records:
20
- no_files_yet: Dar nėra failų. Paspauskite "Įkelti naują failą" norėdami pridėti pirmąjį failą.
21
- insert:
22
- existing: Egzistuojantis failas
23
- new: Naujas failas
24
- no_files: Nėra failų.
25
- existing_resource:
26
- link_to_file: Nuoroda į šį failą
27
- button_text: Įterpti
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Failai
6
+ description: Įkelti ir sukurti nuorodą į failus
7
+ admin:
8
+ resources:
9
+ delete: Pašalinti failą visam laikui
10
+ edit: Redaguoti failą
11
+ form:
12
+ download_current: Parsisiųsti failą
13
+ or: arba
14
+ replace: " pakeisti šiuo..."
15
+ maximum_file_size: Maksimalus failo dydis yra %{bytes}.
16
+ resource:
17
+ download: Parsisiųsti failą (%{size})
18
+ actions:
19
+ upload_new: Įkelti naują failą
20
+ records:
21
+ no_files_yet: Dar nėra failų. Paspauskite "Įkelti naują failą" norėdami pridėti pirmąjį failą.
22
+ insert:
23
+ existing: Egzistuojantis failas
24
+ new: Naujas failas
25
+ no_files: Nėra failų.
26
+ existing_resource:
27
+ link_to_file: Nuoroda į šį failą
28
+ button_text: Įterpti
28
29
  activerecord:
29
30
  models:
30
- resource: failas
31
+ refinery/resource: failas
31
32
  errors:
32
33
  models:
33
- resource:
34
+ refinery/resource:
34
35
  blank: Nurodykite failą įkėlimui
35
- too_long: Failas turėtų būti mažesnio dydžio nei %{count}
36
+ too_big: Failas turėtų būti mažesnio dydžio nei %{size} megabaitų
@@ -1,35 +1,36 @@
1
1
  lv:
2
- plugins:
3
- refinery_files:
4
- title: Faili
5
- description: Failu augšupielāde un sasaiste
6
- admin:
7
- resources:
8
- delete: Dzēst šo failu
9
- edit: Labot šo failu
10
- form:
11
- download_current: Lejupielādēt pašreizējo failu
12
- or: vai
13
- replace: " aizstāt to ar šo..."
14
- maximum_file_size: Maksimāli pieļaujamais faila izmērs ir %{megabytes} megabaiti.
15
- resource:
16
- download: Lejupielādēt šo failu (%{size})
17
- actions:
18
- upload_new: Augšupielādēt failu
19
- records:
20
- no_files_yet: Vēl nav neviena faila. Spied "Augšupielādēt failu", lai ielādētu failu.
21
- insert:
22
- existing: Esošs Fails
23
- new: Jauns Fails
24
- no_files: Nav neviena faila.
25
- existing_resource:
26
- link_to_file: Saite uz šo failu
27
- button_text: Ievietot
2
+ refinery:
3
+ plugins:
4
+ refinery_files:
5
+ title: Faili
6
+ description: Failu augšupielāde un sasaiste
7
+ admin:
8
+ resources:
9
+ delete: Dzēst šo failu
10
+ edit: Labot šo failu
11
+ form:
12
+ download_current: Lejupielādēt pašreizējo failu
13
+ or: vai
14
+ replace: " aizstāt to ar šo..."
15
+ maximum_file_size: Maksimāli pieļaujamais faila izmērs ir %{bytes}.
16
+ resource:
17
+ download: Lejupielādēt šo failu (%{size})
18
+ actions:
19
+ upload_new: Augšupielādēt failu
20
+ records:
21
+ no_files_yet: Vēl nav neviena faila. Spied "Augšupielādēt failu", lai ielādētu failu.
22
+ insert:
23
+ existing: Esošs Fails
24
+ new: Jauns Fails
25
+ no_files: Nav neviena faila.
26
+ existing_resource:
27
+ link_to_file: Saite uz šo failu
28
+ button_text: Ievietot
28
29
  activerecord:
29
30
  models:
30
- resource: fails
31
+ refinery/resource: fails
31
32
  errors:
32
33
  models:
33
- resource:
34
+ refinery/resource:
34
35
  blank: Jānorāda fails pirms augšupielādes
35
- too_long: Faila izmēram jābūt mazākam par %{count}
36
+ too_big: Faila izmēram jābūt mazākam par %{size} megabaitiem