camaleon_cms 2.5.3.1 → 2.6.0

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

Potentially problematic release.


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

Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/app/apps/plugins/front_cache/front_cache_helper.rb +1 -1
  3. data/app/assets/images/camaleon_cms/language/md.png +0 -0
  4. data/app/models/camaleon_cms/ability.rb +94 -92
  5. data/app/models/camaleon_cms/category.rb +45 -44
  6. data/app/models/camaleon_cms/custom_field.rb +26 -25
  7. data/app/models/camaleon_cms/custom_field_group.rb +115 -114
  8. data/app/models/camaleon_cms/custom_fields_relationship.rb +21 -19
  9. data/app/models/camaleon_cms/media.rb +48 -44
  10. data/app/models/camaleon_cms/meta.rb +5 -3
  11. data/app/models/camaleon_cms/nav_menu.rb +27 -24
  12. data/app/models/camaleon_cms/nav_menu_item.rb +58 -54
  13. data/app/models/camaleon_cms/plugin.rb +62 -60
  14. data/app/models/camaleon_cms/post.rb +205 -227
  15. data/app/models/camaleon_cms/post_comment.rb +44 -42
  16. data/app/models/camaleon_cms/post_default.rb +65 -62
  17. data/app/models/camaleon_cms/post_relationship.rb +1 -2
  18. data/app/models/camaleon_cms/post_tag.rb +9 -6
  19. data/app/models/camaleon_cms/post_type.rb +170 -163
  20. data/app/models/camaleon_cms/site.rb +211 -203
  21. data/app/models/camaleon_cms/term_relationship.rb +16 -14
  22. data/app/models/camaleon_cms/term_taxonomy.rb +49 -54
  23. data/app/models/camaleon_cms/theme.rb +24 -23
  24. data/app/models/camaleon_cms/user.rb +18 -13
  25. data/app/models/camaleon_cms/user_role.rb +130 -128
  26. data/app/models/camaleon_cms/widget/assigned.rb +25 -21
  27. data/app/models/camaleon_cms/widget/main.rb +40 -36
  28. data/app/models/camaleon_cms/widget/sidebar.rb +20 -16
  29. data/app/validators/camaleon_cms/post_uniq_validator.rb +28 -0
  30. data/app/validators/camaleon_cms/uniq_validator.rb +9 -0
  31. data/config/locales/camaleon_cms/admin/ar.yml +1 -0
  32. data/config/locales/camaleon_cms/admin/de.yml +1 -0
  33. data/config/locales/camaleon_cms/admin/en.yml +82 -21
  34. data/config/locales/camaleon_cms/admin/fr.yml +1 -0
  35. data/config/locales/camaleon_cms/admin/it.yml +1 -0
  36. data/config/locales/camaleon_cms/admin/js/de.yml +51 -0
  37. data/config/locales/camaleon_cms/admin/js/en.yml +51 -0
  38. data/config/locales/camaleon_cms/admin/js/es.yml +53 -0
  39. data/config/locales/camaleon_cms/admin/js/it.yml +44 -0
  40. data/config/locales/camaleon_cms/admin/js/nl.yml +42 -0
  41. data/config/locales/camaleon_cms/admin/js/pt-BR.yml +44 -0
  42. data/config/locales/camaleon_cms/admin/js/ru.yml +51 -0
  43. data/config/locales/camaleon_cms/admin/js/uk.yml +51 -0
  44. data/config/locales/camaleon_cms/admin/js/zh-CN.yml +51 -0
  45. data/config/locales/camaleon_cms/admin/nl.yml +1 -0
  46. data/config/locales/camaleon_cms/admin/ru.yml +1 -0
  47. data/config/locales/camaleon_cms/admin/uk.yml +2 -1
  48. data/config/locales/camaleon_cms/admin/zh-CH.yml +1 -0
  49. data/config/locales/camaleon_cms/common.md +3 -0
  50. data/config/locales/camaleon_cms/common/ar.yml +66 -0
  51. data/config/locales/camaleon_cms/common/de.yml +66 -0
  52. data/config/locales/camaleon_cms/common/en.yml +63 -0
  53. data/config/locales/camaleon_cms/common/es.yml +66 -0
  54. data/config/locales/camaleon_cms/common/fr.yml +66 -0
  55. data/config/locales/camaleon_cms/common/it.yml +63 -0
  56. data/config/locales/camaleon_cms/common/md.yml +60 -0
  57. data/config/locales/camaleon_cms/common/nl.yml +64 -0
  58. data/config/locales/camaleon_cms/common/pt-BR.yml +65 -0
  59. data/config/locales/camaleon_cms/common/pt.yml +65 -0
  60. data/config/locales/camaleon_cms/common/ru.yml +66 -0
  61. data/config/locales/camaleon_cms/common/uk.yml +64 -0
  62. data/config/locales/camaleon_cms/common/zh-CN.yml +66 -0
  63. data/config/locales/camaleon_cms/languages/ar.yml +16 -0
  64. data/config/locales/camaleon_cms/languages/de.yml +16 -0
  65. data/config/locales/camaleon_cms/languages/en.yml +16 -0
  66. data/config/locales/camaleon_cms/languages/es.yml +16 -0
  67. data/config/locales/camaleon_cms/languages/it.yml +16 -0
  68. data/config/locales/camaleon_cms/languages/md.yml +15 -0
  69. data/config/locales/camaleon_cms/languages/nl.yml +16 -0
  70. data/config/locales/camaleon_cms/languages/pt-BR.yml +16 -0
  71. data/config/locales/camaleon_cms/languages/pt.yml +16 -0
  72. data/config/locales/camaleon_cms/languages/ru.yml +16 -0
  73. data/config/locales/camaleon_cms/languages/uk.yml +16 -0
  74. data/config/locales/camaleon_cms/languages/zh-CN.yml +16 -0
  75. data/config/locales/camaleon_cms/routes/de.yml +8 -0
  76. data/config/locales/camaleon_cms/routes/es.yml +8 -0
  77. data/config/locales/camaleon_cms/routes/fr.yml +8 -0
  78. data/config/locales/camaleon_cms/routes/it.yml +8 -0
  79. data/config/locales/camaleon_cms/routes/md.yml +8 -0
  80. data/config/locales/camaleon_cms/routes/pt-BR.yml +8 -0
  81. data/config/locales/camaleon_cms/routes/pt.yml +8 -0
  82. data/config/locales/camaleon_cms/routes/ru.yml +8 -0
  83. data/config/locales/camaleon_cms/routes/uk.yml +8 -0
  84. data/config/locales/camaleon_cms/routes/zh-CN.yml +8 -0
  85. data/config/locales/md.yml +207 -0
  86. data/lib/camaleon_cms/version.rb +1 -1
  87. data/spec/dummy/config/application.rb +14 -2
  88. metadata +102 -109
  89. data/config/locales/camaleon_cms/admin/js.yml +0 -435
  90. data/config/locales/camaleon_cms/common.yml +0 -786
  91. data/config/locales/camaleon_cms/languages.yml +0 -167
  92. data/config/locales/camaleon_cms/routes.yml +0 -71
  93. data/spec/dummy/db/development.sqlite3 +0 -0
  94. data/spec/dummy/db/test.sqlite3 +0 -0
  95. data/spec/dummy/log/development.log +0 -254
  96. data/spec/dummy/log/test.log +0 -46384
  97. data/spec/dummy/public/media/1/rails_tmp.png +0 -0
  98. data/spec/dummy/public/media/1/rails_tmp_1.png +0 -0
  99. data/spec/dummy/public/media/1/rails_tmp_2.png +0 -0
  100. data/spec/dummy/public/media/1/rails_tmp_3.png +0 -0
  101. data/spec/dummy/public/media/1/sample/rails_tmp.png +0 -0
  102. data/spec/dummy/public/media/1/sample/thumb/rails_tmp-png.png +0 -0
  103. data/spec/dummy/public/media/1/slide33.jpg +0 -0
  104. data/spec/dummy/public/media/1/thumb/rails_tmp-png.png +0 -0
  105. data/spec/dummy/public/media/1/thumb/rails_tmp-png_20x.png +0 -0
  106. data/spec/dummy/public/media/1/thumb/rails_tmp-png_300x300.png +0 -0
  107. data/spec/dummy/public/media/1/thumb/rails_tmp-png_505x350.png +0 -0
  108. data/spec/dummy/public/media/1/thumb/rails_tmp_1-png.png +0 -0
  109. data/spec/dummy/public/media/1/thumb/rails_tmp_2-png.png +0 -0
  110. data/spec/dummy/public/media/1/thumb/rails_tmp_3-png.png +0 -0
  111. data/spec/dummy/public/media/1/thumb/slide33-jpg.jpg +0 -0
  112. data/spec/dummy/tmp/capybara/screenshot_2019-09-04-09-19-13.472.html +0 -457
  113. data/spec/dummy/tmp/capybara/screenshot_2019-09-04-09-19-13.472.png +0 -0
  114. data/spec/dummy/tmp/capybara/screenshot_2019-09-04-09-19-28.693.html +0 -428
  115. data/spec/dummy/tmp/capybara/screenshot_2019-09-04-09-19-28.693.png +0 -0
  116. data/spec/dummy/tmp/capybara/screenshot_2019-09-04-09-22-45.502.html +0 -337
  117. data/spec/dummy/tmp/capybara/screenshot_2019-09-04-09-22-45.502.png +0 -0
  118. data/spec/support/fixtures/rails_tmp.png +0 -0
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ es:
3
+ languages:
4
+ ar: "Árabe"
5
+ es: "Español"
6
+ en: "Inglés"
7
+ fr: "Francés"
8
+ zh-CN: "Chino"
9
+ de: "Alemán"
10
+ md: Moldavo
11
+ pt: "Portugues (Portugal)"
12
+ pt-BR: "Portugues (Brasil)"
13
+ it: "Italiano"
14
+ uk: "Ucraniano"
15
+ ru: "Russian"
16
+ nl: "Holandés"
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ it:
3
+ languages:
4
+ ar: "Arabo"
5
+ es: "Spagnolo"
6
+ en: "Inglese"
7
+ fr: "Francese"
8
+ zh-CN: "Cinese"
9
+ de: "Tedesco"
10
+ md: Moldavo
11
+ pt: "Portoghese (Portogallo)"
12
+ pt-BR: "Portoghese (Brasile)"
13
+ it: "Italiano"
14
+ uk: "Ucraina"
15
+ ru: "Russian"
16
+ nl: "Olandese"
@@ -0,0 +1,15 @@
1
+ md:
2
+ languages:
3
+ ar: Arabic
4
+ es: Spaniola
5
+ en: Engleza
6
+ fr: Franceza
7
+ zh-CN: Chineza
8
+ de: Germana
9
+ md: Moldoveneasca
10
+ pt: Portugeza (Portugalia)
11
+ pt-BR: Portugeza (Brazilia)
12
+ it: Italiana
13
+ uk: Ukrainiana
14
+ ru: Rusa
15
+ nl: Olandeza
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ nl:
3
+ languages:
4
+ ar: "Arabisch"
5
+ es: "Spaans"
6
+ en: "Engels"
7
+ fr: "Frans"
8
+ zh-CN: "Chinees"
9
+ de: "Duits"
10
+ md: Moldavisch
11
+ pt: "Portugees (Portugal)"
12
+ pt-BR: "Portugees (Brazilië)"
13
+ it: "Italiaans"
14
+ uk: "Oekraïense"
15
+ ru: "Russisch"
16
+ nl: "Nederlands"
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ pt-BR:
3
+ languages:
4
+ ar: "Árabe"
5
+ es: "Espanhol"
6
+ en: "Inglês"
7
+ fr: "Francês"
8
+ zh-CN: "Chinês"
9
+ de: "Alemão"
10
+ md: Moldavo
11
+ pt: "Português (Portugal)"
12
+ pt-BR: "Português (Brasil)"
13
+ it: "Italiano"
14
+ uk: "Ucraniano"
15
+ ru: "Russo"
16
+ nl: "Holandês"
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ pt:
3
+ languages:
4
+ ar: "Árabe"
5
+ es: "Espanhol"
6
+ en: "Inglês"
7
+ fr: "Francês"
8
+ zh-CN: "Chinês"
9
+ de: "Alemão"
10
+ md: Moldavo
11
+ pt: "Português (Portugal)"
12
+ pt-BR: "Português (Brasil)"
13
+ it: "Italiano"
14
+ uk: "Ucraniano"
15
+ ru: "Russo"
16
+ nl: "Holandês"
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ ru:
3
+ languages:
4
+ ar: "арабский"
5
+ es: "Испанский"
6
+ en: "Английский"
7
+ fr: "Французский"
8
+ zh-CN: "Китайский"
9
+ de: "Немецкий"
10
+ md: Молдавский
11
+ pt: "Португальский (Португалия)"
12
+ pt-BR: "Португальский (Бразилия)"
13
+ it: "Итальянский"
14
+ uk: "Украинский"
15
+ ru: "Русский"
16
+ nl: "Голландский"
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ uk:
3
+ languages:
4
+ ar: "арабська"
5
+ es: "Іспанська"
6
+ en: "Англійська"
7
+ fr: "Французька"
8
+ zh-CN: "Китайська"
9
+ de: "Німецька"
10
+ md: Молдавський
11
+ pt: "Португальська (Португалія)"
12
+ pt-BR: "Португальська (Бразилія)"
13
+ it: "Італійська"
14
+ uk: "Українська"
15
+ ru: "Російська"
16
+ nl: "Голландська"
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ zh-CN:
3
+ languages:
4
+ ar: "阿拉伯语"
5
+ es: "西班牙语"
6
+ en: "英语"
7
+ fr: "法语"
8
+ zh-CN: "中文"
9
+ de: "德语"
10
+ md: "摩尔达维亚人"
11
+ pt: "葡萄牙"
12
+ pt-BR: "巴西"
13
+ it: "意大利语"
14
+ uk: "乌克兰语"
15
+ ru: "俄语"
16
+ nl: "荷兰语"
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ de:
3
+ routes:
4
+ group: Gruppe
5
+ category: Kategorie
6
+ tag: Tag
7
+ search: Suche
8
+ profile: Profil
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ es:
3
+ routes:
4
+ group: grupo
5
+ category: categoria
6
+ tag: etiqueta
7
+ search: buscar
8
+ profile: perfil
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ fr:
3
+ routes:
4
+ group: groupe
5
+ category: categorie
6
+ tag: balise
7
+ search: recherche
8
+ profile: profil
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ it:
3
+ routes:
4
+ group: gruppo
5
+ category: categoria
6
+ tag: etichetta
7
+ search: ricerca
8
+ profile: profilo
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ md:
3
+ routes:
4
+ group: grupul
5
+ category: categoria
6
+ tag: marcaj
7
+ search: căutare
8
+ profile: profil
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ pt-BR:
3
+ routes:
4
+ group: grupo
5
+ category: categoria
6
+ tag: tag
7
+ search: buscar
8
+ profile: perfil
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ pt:
3
+ routes:
4
+ group: grupo
5
+ category: categoria
6
+ tag: etiqueta
7
+ search: buscar
8
+ profile: perfil
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ ru:
3
+ routes:
4
+ group: группа
5
+ category: категория
6
+ tag: тег
7
+ search: поиск
8
+ profile: профиль
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ uk:
3
+ routes:
4
+ group: група
5
+ category: категорія
6
+ tag: тег
7
+ search: пошук
8
+ profile: профіль
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ zh-CN:
3
+ routes:
4
+ group: 群组
5
+ category: 分类
6
+ tag: 标签
7
+ search: 搜索
8
+ profile: 资料
@@ -0,0 +1,207 @@
1
+ md:
2
+ date:
3
+ abbr_day_names:
4
+ - Dum
5
+ - Lun
6
+ - Mar
7
+ - Mie
8
+ - Joi
9
+ - Vin
10
+ - Sâm
11
+ abbr_month_names:
12
+ -
13
+ - Ian
14
+ - Feb
15
+ - Mar
16
+ - Apr
17
+ - Mai
18
+ - Iun
19
+ - Iul
20
+ - Aug
21
+ - Sep
22
+ - Oct
23
+ - Noi
24
+ - Dec
25
+ day_names:
26
+ - Duminică
27
+ - Luni
28
+ - Marţi
29
+ - Miercuri
30
+ - Joi
31
+ - Vineri
32
+ - Sâmbătă
33
+ formats:
34
+ default: "%d-%m-%Y"
35
+ long: "%B %d, %Y"
36
+ short: "%b %d"
37
+ month_names:
38
+ -
39
+ - Ianuarie
40
+ - Februarie
41
+ - Martie
42
+ - Aprilie
43
+ - Mai
44
+ - Iunie
45
+ - Iulie
46
+ - August
47
+ - Septembrie
48
+ - Octombrie
49
+ - Noiembrie
50
+ - Decembrie
51
+ order:
52
+ - :day
53
+ - :month
54
+ - :year
55
+ datetime:
56
+ distance_in_words:
57
+ about_x_hours:
58
+ one: aproximativ 1 oră
59
+ other: aproximativ %{count} ore
60
+ about_x_months:
61
+ one: aproximativ 1 lună
62
+ other: aproximativ %{count} luni
63
+ about_x_years:
64
+ one: aproximativ 1 an
65
+ other: aproximativ %{count} ani
66
+ almost_x_years:
67
+ one: aproape 1 an
68
+ other: aproape %{count} ani
69
+ half_a_minute: jumătate de minută
70
+ less_than_x_minutes:
71
+ one: mai puţin de o minută
72
+ other: mai puţin de %{count} minute
73
+ less_than_x_seconds:
74
+ one: mai puţin de 1 secundă
75
+ other: mai puţin de %{count} secunde
76
+ over_x_years:
77
+ one: mai mult de 1 an
78
+ other: mai mult de %{count} ani
79
+ x_days:
80
+ one: 1 zi
81
+ other: "%{count} zile"
82
+ x_minutes:
83
+ one: 1 minută
84
+ other: "%{count} minutes"
85
+ x_months:
86
+ one: 1 lună
87
+ other: "%{count} months"
88
+ x_seconds:
89
+ one: 1 secundă
90
+ other: "%{count} seconds"
91
+ prompts:
92
+ day: Ziua
93
+ hour: Ora
94
+ minute: Minuta
95
+ month: Luna
96
+ second: Secunde
97
+ year: Anul
98
+ errors:
99
+ format: "%{attribute} %{message}"
100
+ messages:
101
+ accepted: trebuie acceptat
102
+ blank: nu poate fi pustiu
103
+ present: trebuie să fie necompletat
104
+ confirmation: nu se potrivește %{attribute}
105
+ empty: nu poate fi deşert
106
+ equal_to: trebuie să fie egal cu %{count}
107
+ even: trebuie să fie par
108
+ exclusion: este rezervat
109
+ greater_than: trebuie să fie mai mare decât %{count}
110
+ greater_than_or_equal_to: trebuie să fie mai mare sau egal cu %{count}
111
+ inclusion: nu este inclus în listă
112
+ invalid: nu este valid
113
+ less_than: trebuie să fie mai mic decât %{count}
114
+ less_than_or_equal_to: trebuie să fie mai mic sau egal cu %{count}
115
+ not_a_number: nu este un număr
116
+ not_an_integer: trebuie să fie un număr întreg
117
+ odd: trebuie să fie impar
118
+ record_invalid: 'Validarea a eşuat: %{errors}'
119
+ restrict_dependent_destroy:
120
+ one: Înregistrarea nu poate fi ștearsă deoarece există una %{record} dependentă
121
+ many: Înregistrarea nu poate fi ștearsă deoarece există %{record} dependente
122
+ taken: a fost deja luat
123
+ too_long:
124
+ one: este prea lung (maximum 1 caracter)
125
+ other: este prea lung (maximum este %{count} caractere)
126
+ too_short:
127
+ one: este prea scurt (minimum 1 caracter)
128
+ other: este prea scurt (minimum este %{count} caractere)
129
+ wrong_length:
130
+ one: are lungime greșită (ar trebui să fie 1 caracter)
131
+ other: este lungimea greșită (ar trebui să fie %{count} caractere)
132
+ other_than: trebuie să fie altul decât %{count}
133
+ template:
134
+ body: 'Au apărut probleme cu următoarele câmpuri:'
135
+ header:
136
+ one: 1 eroare a intervenit la salvarea acestui %{model}
137
+ other: "%{count} errori au intervenit la păstrarea acestui %{model}"
138
+ helpers:
139
+ select:
140
+ prompt: Alegeți, vă rog
141
+ submit:
142
+ create: Creare %{model}
143
+ submit: Păstrare %{model}
144
+ update: Actualizare %{model}
145
+ number:
146
+ currency:
147
+ format:
148
+ delimiter: ","
149
+ format: "%n %u"
150
+ precision: 2
151
+ separator: ","
152
+ significant: false
153
+ strip_insignificant_zeros: false
154
+ unit: "MDL"
155
+ format:
156
+ delimiter: ","
157
+ precision: 3
158
+ separator: "."
159
+ significant: false
160
+ strip_insignificant_zeros: false
161
+ human:
162
+ decimal_units:
163
+ format: "%n %u"
164
+ units:
165
+ billion: Miliard
166
+ million: Milion
167
+ quadrillion: Cvadrilion
168
+ thousand: Mie
169
+ trillion: Trilion
170
+ unit: ''
171
+ format:
172
+ delimiter: ''
173
+ precision: 3
174
+ significant: true
175
+ strip_insignificant_zeros: true
176
+ storage_units:
177
+ format: "%n %u"
178
+ units:
179
+ byte:
180
+ one: Byte
181
+ other: Byte-uri
182
+ gb: GB
183
+ kb: KB
184
+ mb: MB
185
+ tb: TB
186
+ percentage:
187
+ format:
188
+ delimiter: ''
189
+ format: "%n%"
190
+ precision:
191
+ format:
192
+ delimiter: ''
193
+ support:
194
+ array:
195
+ last_word_connector: ", și "
196
+ two_words_connector: " și "
197
+ words_connector: ", "
198
+ recaptcha:
199
+ errors:
200
+ incorrect-captcha-sol: 'Vai! reCAPTCHA rezolvat greșit!'
201
+ time:
202
+ am: dimineața
203
+ formats:
204
+ default: "%a, %d %b %Y %H:%M:%S %z"
205
+ long: "%B %d, %Y %H:%M"
206
+ short: "%d %b %H:%M"
207
+ pm: seara