active_scaffold_vho 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (279) hide show
  1. data/.autotest +27 -0
  2. data/.document +5 -0
  3. data/CHANGELOG +179 -0
  4. data/Gemfile +13 -0
  5. data/Gemfile.lock +20 -0
  6. data/MIT-LICENSE +20 -0
  7. data/README +63 -0
  8. data/Rakefile +53 -0
  9. data/frontends/default/images/add.gif +0 -0
  10. data/frontends/default/images/arrow_down.gif +0 -0
  11. data/frontends/default/images/arrow_up.gif +0 -0
  12. data/frontends/default/images/close.gif +0 -0
  13. data/frontends/default/images/config.png +0 -0
  14. data/frontends/default/images/cross.png +0 -0
  15. data/frontends/default/images/gears.png +0 -0
  16. data/frontends/default/images/indicator-small.gif +0 -0
  17. data/frontends/default/images/indicator.gif +0 -0
  18. data/frontends/default/images/magnifier.png +0 -0
  19. data/frontends/default/javascripts/jquery/active_scaffold.js +957 -0
  20. data/frontends/default/javascripts/jquery/jquery.editinplace.js +743 -0
  21. data/frontends/default/javascripts/prototype/active_scaffold.js +957 -0
  22. data/frontends/default/javascripts/prototype/dhtml_history.js +867 -0
  23. data/frontends/default/javascripts/prototype/form_enhancements.js +117 -0
  24. data/frontends/default/javascripts/prototype/rico_corner.js +370 -0
  25. data/frontends/default/stylesheets/stylesheet-ie.css +35 -0
  26. data/frontends/default/stylesheets/stylesheet.css +964 -0
  27. data/frontends/default/views/_action_group.html.erb +20 -0
  28. data/frontends/default/views/_add_existing_form.html.erb +30 -0
  29. data/frontends/default/views/_base_form.html.erb +45 -0
  30. data/frontends/default/views/_create_form.html.erb +8 -0
  31. data/frontends/default/views/_create_form_on_list.html.erb +6 -0
  32. data/frontends/default/views/_field_search.html.erb +32 -0
  33. data/frontends/default/views/_form.html.erb +24 -0
  34. data/frontends/default/views/_form_association.html.erb +14 -0
  35. data/frontends/default/views/_form_association_footer.html.erb +40 -0
  36. data/frontends/default/views/_form_attribute.html.erb +15 -0
  37. data/frontends/default/views/_form_hidden_attribute.html.erb +2 -0
  38. data/frontends/default/views/_form_messages.html.erb +5 -0
  39. data/frontends/default/views/_horizontal_subform.html.erb +19 -0
  40. data/frontends/default/views/_horizontal_subform_header.html.erb +10 -0
  41. data/frontends/default/views/_horizontal_subform_record.html.erb +37 -0
  42. data/frontends/default/views/_human_conditions.html.erb +1 -0
  43. data/frontends/default/views/_list.html.erb +18 -0
  44. data/frontends/default/views/_list_actions.html.erb +15 -0
  45. data/frontends/default/views/_list_calculations.html.erb +16 -0
  46. data/frontends/default/views/_list_column_headings.html.erb +12 -0
  47. data/frontends/default/views/_list_header.html.erb +10 -0
  48. data/frontends/default/views/_list_inline_adapter.html.erb +10 -0
  49. data/frontends/default/views/_list_messages.html.erb +32 -0
  50. data/frontends/default/views/_list_pagination.html.erb +11 -0
  51. data/frontends/default/views/_list_pagination_links.html.erb +9 -0
  52. data/frontends/default/views/_list_record.html.erb +14 -0
  53. data/frontends/default/views/_list_record_columns.html.erb +8 -0
  54. data/frontends/default/views/_list_with_header.html.erb +32 -0
  55. data/frontends/default/views/_messages.html.erb +10 -0
  56. data/frontends/default/views/_render_field.js.rjs +13 -0
  57. data/frontends/default/views/_row.html.erb +12 -0
  58. data/frontends/default/views/_search.html.erb +34 -0
  59. data/frontends/default/views/_search_attribute.html.erb +10 -0
  60. data/frontends/default/views/_show.html.erb +8 -0
  61. data/frontends/default/views/_show_columns.html.erb +15 -0
  62. data/frontends/default/views/_update_actions.html.erb +9 -0
  63. data/frontends/default/views/_update_form.html.erb +6 -0
  64. data/frontends/default/views/_vertical_subform.html.erb +12 -0
  65. data/frontends/default/views/_vertical_subform_record.html.erb +38 -0
  66. data/frontends/default/views/action_confirmation.html.erb +13 -0
  67. data/frontends/default/views/add_existing.js.rjs +17 -0
  68. data/frontends/default/views/add_existing_form.html.erb +5 -0
  69. data/frontends/default/views/create.html.erb +5 -0
  70. data/frontends/default/views/delete.html.erb +13 -0
  71. data/frontends/default/views/destroy.js.rjs +11 -0
  72. data/frontends/default/views/edit_associated.js.rjs +11 -0
  73. data/frontends/default/views/field_search.html.erb +5 -0
  74. data/frontends/default/views/form_messages.js.rjs +1 -0
  75. data/frontends/default/views/list.html.erb +1 -0
  76. data/frontends/default/views/list.js.rjs +1 -0
  77. data/frontends/default/views/on_action_update.js.rjs +8 -0
  78. data/frontends/default/views/on_create.js.rjs +41 -0
  79. data/frontends/default/views/on_update.js.rjs +28 -0
  80. data/frontends/default/views/search.html.erb +5 -0
  81. data/frontends/default/views/show.html.erb +5 -0
  82. data/frontends/default/views/update.html.erb +8 -0
  83. data/frontends/default/views/update_column.js.rjs +13 -0
  84. data/frontends/default/views/update_row.js.rjs +1 -0
  85. data/init.rb +9 -0
  86. data/lib/active_record_permissions.rb +134 -0
  87. data/lib/active_scaffold/actions/common_search.rb +22 -0
  88. data/lib/active_scaffold/actions/core.rb +170 -0
  89. data/lib/active_scaffold/actions/create.rb +145 -0
  90. data/lib/active_scaffold/actions/delete.rb +75 -0
  91. data/lib/active_scaffold/actions/field_search.rb +82 -0
  92. data/lib/active_scaffold/actions/list.rb +184 -0
  93. data/lib/active_scaffold/actions/mark.rb +50 -0
  94. data/lib/active_scaffold/actions/nested.rb +250 -0
  95. data/lib/active_scaffold/actions/search.rb +47 -0
  96. data/lib/active_scaffold/actions/show.rb +61 -0
  97. data/lib/active_scaffold/actions/subform.rb +17 -0
  98. data/lib/active_scaffold/actions/update.rb +141 -0
  99. data/lib/active_scaffold/attribute_params.rb +207 -0
  100. data/lib/active_scaffold/bridges/ancestry/bridge.rb +5 -0
  101. data/lib/active_scaffold/bridges/ancestry/lib/ancestry_bridge.rb +39 -0
  102. data/lib/active_scaffold/bridges/bridge.rb +52 -0
  103. data/lib/active_scaffold/bridges/calendar_date_select/bridge.rb +16 -0
  104. data/lib/active_scaffold/bridges/calendar_date_select/lib/as_cds_bridge.rb +79 -0
  105. data/lib/active_scaffold/bridges/carrierwave/bridge.rb +7 -0
  106. data/lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge.rb +38 -0
  107. data/lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge_helpers.rb +26 -0
  108. data/lib/active_scaffold/bridges/carrierwave/lib/form_ui.rb +35 -0
  109. data/lib/active_scaffold/bridges/carrierwave/lib/list_ui.rb +17 -0
  110. data/lib/active_scaffold/bridges/date_picker/bridge.rb +22 -0
  111. data/lib/active_scaffold/bridges/date_picker/lib/datepicker_bridge.rb +225 -0
  112. data/lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js +22 -0
  113. data/lib/active_scaffold/bridges/file_column/bridge.rb +11 -0
  114. data/lib/active_scaffold/bridges/file_column/lib/as_file_column_bridge.rb +46 -0
  115. data/lib/active_scaffold/bridges/file_column/lib/file_column_helpers.rb +59 -0
  116. data/lib/active_scaffold/bridges/file_column/lib/form_ui.rb +37 -0
  117. data/lib/active_scaffold/bridges/file_column/lib/list_ui.rb +26 -0
  118. data/lib/active_scaffold/bridges/file_column/test/functional/file_column_keep_test.rb +43 -0
  119. data/lib/active_scaffold/bridges/file_column/test/mock_model.rb +9 -0
  120. data/lib/active_scaffold/bridges/file_column/test/test_helper.rb +15 -0
  121. data/lib/active_scaffold/bridges/paperclip/bridge.rb +10 -0
  122. data/lib/active_scaffold/bridges/paperclip/lib/form_ui.rb +27 -0
  123. data/lib/active_scaffold/bridges/paperclip/lib/list_ui.rb +16 -0
  124. data/lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge.rb +38 -0
  125. data/lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge_helpers.rb +26 -0
  126. data/lib/active_scaffold/bridges/semantic_attributes/bridge.rb +5 -0
  127. data/lib/active_scaffold/bridges/semantic_attributes/lib/semantic_attributes_bridge.rb +20 -0
  128. data/lib/active_scaffold/bridges/shared/date_bridge.rb +187 -0
  129. data/lib/active_scaffold/bridges/tiny_mce/bridge.rb +5 -0
  130. data/lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb +45 -0
  131. data/lib/active_scaffold/bridges/validation_reflection/bridge.rb +8 -0
  132. data/lib/active_scaffold/bridges/validation_reflection/lib/validation_reflection_bridge.rb +21 -0
  133. data/lib/active_scaffold/config/base.rb +62 -0
  134. data/lib/active_scaffold/config/core.rb +220 -0
  135. data/lib/active_scaffold/config/create.rb +51 -0
  136. data/lib/active_scaffold/config/delete.rb +34 -0
  137. data/lib/active_scaffold/config/field_search.rb +75 -0
  138. data/lib/active_scaffold/config/form.rb +47 -0
  139. data/lib/active_scaffold/config/list.rb +174 -0
  140. data/lib/active_scaffold/config/mark.rb +22 -0
  141. data/lib/active_scaffold/config/nested.rb +44 -0
  142. data/lib/active_scaffold/config/search.rb +69 -0
  143. data/lib/active_scaffold/config/show.rb +35 -0
  144. data/lib/active_scaffold/config/subform.rb +35 -0
  145. data/lib/active_scaffold/config/update.rb +46 -0
  146. data/lib/active_scaffold/configurable.rb +29 -0
  147. data/lib/active_scaffold/constraints.rb +184 -0
  148. data/lib/active_scaffold/data_structures/action_columns.rb +133 -0
  149. data/lib/active_scaffold/data_structures/action_link.rb +171 -0
  150. data/lib/active_scaffold/data_structures/action_links.rb +175 -0
  151. data/lib/active_scaffold/data_structures/actions.rb +45 -0
  152. data/lib/active_scaffold/data_structures/column.rb +351 -0
  153. data/lib/active_scaffold/data_structures/columns.rb +75 -0
  154. data/lib/active_scaffold/data_structures/error_message.rb +24 -0
  155. data/lib/active_scaffold/data_structures/nested_info.rb +123 -0
  156. data/lib/active_scaffold/data_structures/set.rb +62 -0
  157. data/lib/active_scaffold/data_structures/sorting.rb +168 -0
  158. data/lib/active_scaffold/finder.rb +333 -0
  159. data/lib/active_scaffold/helpers/association_helpers.rb +40 -0
  160. data/lib/active_scaffold/helpers/controller_helpers.rb +82 -0
  161. data/lib/active_scaffold/helpers/country_helpers.rb +352 -0
  162. data/lib/active_scaffold/helpers/form_column_helpers.rb +347 -0
  163. data/lib/active_scaffold/helpers/human_condition_helpers.rb +59 -0
  164. data/lib/active_scaffold/helpers/id_helpers.rb +127 -0
  165. data/lib/active_scaffold/helpers/list_column_helpers.rb +361 -0
  166. data/lib/active_scaffold/helpers/pagination_helpers.rb +55 -0
  167. data/lib/active_scaffold/helpers/search_column_helpers.rb +243 -0
  168. data/lib/active_scaffold/helpers/show_column_helpers.rb +46 -0
  169. data/lib/active_scaffold/helpers/view_helpers.rb +356 -0
  170. data/lib/active_scaffold/locale/de.rb +120 -0
  171. data/lib/active_scaffold/locale/en.rb +119 -0
  172. data/lib/active_scaffold/locale/es.yml +115 -0
  173. data/lib/active_scaffold/locale/fr.rb +116 -0
  174. data/lib/active_scaffold/locale/hu.yml +63 -0
  175. data/lib/active_scaffold/locale/ja.yml +64 -0
  176. data/lib/active_scaffold/locale/ru.yml +119 -0
  177. data/lib/active_scaffold/marked_model.rb +38 -0
  178. data/lib/active_scaffold/version.rb +9 -0
  179. data/lib/active_scaffold.rb +345 -0
  180. data/lib/active_scaffold_assets.rb +45 -0
  181. data/lib/dhtml_confirm.rb +54 -0
  182. data/lib/environment.rb +14 -0
  183. data/lib/extensions/action_controller_rendering.rb +20 -0
  184. data/lib/extensions/action_view_rendering.rb +113 -0
  185. data/lib/extensions/action_view_resolver.rb +7 -0
  186. data/lib/extensions/active_association_reflection.rb +13 -0
  187. data/lib/extensions/active_record_offset.rb +12 -0
  188. data/lib/extensions/array.rb +7 -0
  189. data/lib/extensions/localize.rb +10 -0
  190. data/lib/extensions/name_option_for_datetime.rb +12 -0
  191. data/lib/extensions/nil_id_in_url_params.rb +7 -0
  192. data/lib/extensions/paginator_extensions.rb +26 -0
  193. data/lib/extensions/reverse_associations.rb +62 -0
  194. data/lib/extensions/routing_mapper.rb +34 -0
  195. data/lib/extensions/to_label.rb +8 -0
  196. data/lib/extensions/unsaved_associated.rb +61 -0
  197. data/lib/extensions/unsaved_record.rb +20 -0
  198. data/lib/extensions/usa_state.rb +46 -0
  199. data/lib/generators/active_scaffold/USAGE +29 -0
  200. data/lib/generators/active_scaffold/active_scaffold_generator.rb +20 -0
  201. data/lib/generators/active_scaffold_controller/USAGE +19 -0
  202. data/lib/generators/active_scaffold_controller/active_scaffold_controller_generator.rb +28 -0
  203. data/lib/generators/active_scaffold_controller/templates/controller.rb +4 -0
  204. data/lib/generators/active_scaffold_setup/USAGE +10 -0
  205. data/lib/generators/active_scaffold_setup/active_scaffold_setup_generator.rb +53 -0
  206. data/lib/paginator.rb +136 -0
  207. data/lib/responds_to_parent.rb +70 -0
  208. data/public/blank.html +33 -0
  209. data/shoulda_macros/macros.rb +136 -0
  210. data/test/bridges/bridge_test.rb +47 -0
  211. data/test/config/base_test.rb +15 -0
  212. data/test/config/create_test.rb +55 -0
  213. data/test/config/list_test.rb +74 -0
  214. data/test/config/show_test.rb +43 -0
  215. data/test/config/update_test.rb +17 -0
  216. data/test/const_mocker.rb +36 -0
  217. data/test/data_structures/action_columns_test.rb +113 -0
  218. data/test/data_structures/action_link_test.rb +78 -0
  219. data/test/data_structures/action_links_test.rb +78 -0
  220. data/test/data_structures/actions_test.rb +25 -0
  221. data/test/data_structures/association_column_test.rb +42 -0
  222. data/test/data_structures/column_test.rb +185 -0
  223. data/test/data_structures/columns_test.rb +69 -0
  224. data/test/data_structures/error_message_test.rb +28 -0
  225. data/test/data_structures/set_test.rb +86 -0
  226. data/test/data_structures/sorting_test.rb +126 -0
  227. data/test/data_structures/standard_column_test.rb +24 -0
  228. data/test/data_structures/virtual_column_test.rb +23 -0
  229. data/test/extensions/active_record_test.rb +45 -0
  230. data/test/extensions/array_test.rb +12 -0
  231. data/test/helpers/form_column_helpers_test.rb +31 -0
  232. data/test/helpers/list_column_helpers_test.rb +31 -0
  233. data/test/helpers/pagination_helpers_test.rb +55 -0
  234. data/test/misc/active_record_permissions_test.rb +154 -0
  235. data/test/misc/attribute_params_test.rb +110 -0
  236. data/test/misc/configurable_test.rb +96 -0
  237. data/test/misc/constraints_test.rb +193 -0
  238. data/test/misc/finder_test.rb +93 -0
  239. data/test/misc/lang_test.rb +12 -0
  240. data/test/mock_app/.gitignore +2 -0
  241. data/test/mock_app/app/controllers/application_controller.rb +10 -0
  242. data/test/mock_app/app/helpers/application_helper.rb +3 -0
  243. data/test/mock_app/config/boot.rb +110 -0
  244. data/test/mock_app/config/database.yml +16 -0
  245. data/test/mock_app/config/environment.rb +43 -0
  246. data/test/mock_app/config/environments/development.rb +17 -0
  247. data/test/mock_app/config/environments/production.rb +28 -0
  248. data/test/mock_app/config/environments/test.rb +28 -0
  249. data/test/mock_app/config/initializers/backtrace_silencers.rb +7 -0
  250. data/test/mock_app/config/initializers/inflections.rb +10 -0
  251. data/test/mock_app/config/initializers/mime_types.rb +5 -0
  252. data/test/mock_app/config/initializers/new_rails_defaults.rb +19 -0
  253. data/test/mock_app/config/initializers/session_store.rb +15 -0
  254. data/test/mock_app/config/locales/en.yml +5 -0
  255. data/test/mock_app/config/routes.rb +43 -0
  256. data/test/mock_app/db/test.sqlite3 +1 -0
  257. data/test/mock_app/public/blank.html +33 -0
  258. data/test/mock_app/public/images/active_scaffold/DO_NOT_EDIT +2 -0
  259. data/test/mock_app/public/images/active_scaffold/default/add.gif +0 -0
  260. data/test/mock_app/public/images/active_scaffold/default/arrow_down.gif +0 -0
  261. data/test/mock_app/public/images/active_scaffold/default/arrow_up.gif +0 -0
  262. data/test/mock_app/public/images/active_scaffold/default/close.gif +0 -0
  263. data/test/mock_app/public/images/active_scaffold/default/cross.png +0 -0
  264. data/test/mock_app/public/images/active_scaffold/default/indicator-small.gif +0 -0
  265. data/test/mock_app/public/images/active_scaffold/default/indicator.gif +0 -0
  266. data/test/mock_app/public/images/active_scaffold/default/magnifier.png +0 -0
  267. data/test/mock_app/public/javascripts/active_scaffold/DO_NOT_EDIT +2 -0
  268. data/test/mock_app/public/javascripts/active_scaffold/default/active_scaffold.js +532 -0
  269. data/test/mock_app/public/javascripts/active_scaffold/default/dhtml_history.js +867 -0
  270. data/test/mock_app/public/javascripts/active_scaffold/default/form_enhancements.js +117 -0
  271. data/test/mock_app/public/javascripts/active_scaffold/default/rico_corner.js +370 -0
  272. data/test/mock_app/public/stylesheets/active_scaffold/DO_NOT_EDIT +2 -0
  273. data/test/mock_app/public/stylesheets/active_scaffold/default/stylesheet-ie.css +35 -0
  274. data/test/mock_app/public/stylesheets/active_scaffold/default/stylesheet.css +839 -0
  275. data/test/model_stub.rb +55 -0
  276. data/test/run_all.rb +8 -0
  277. data/test/test_helper.rb +39 -0
  278. data/uninstall.rb +13 -0
  279. metadata +492 -0
@@ -0,0 +1,115 @@
1
+ es:
2
+ active_scaffold:
3
+ add: 'Añadir'
4
+ add_existing: 'Añadir Existente'
5
+ add_existing_model: 'Añadir %{model} Existente'
6
+ are_you_sure_to_delete: '¿Estás seguro de que quieres borrar %{label}?'
7
+ cancel: 'Cancelar'
8
+ click_to_edit: 'Pulsa para editar'
9
+ click_to_reset: 'Pulsa para restaurar'
10
+ close: 'Cerrar'
11
+ config_list: 'Configure'
12
+ config_list_model: 'Configure Columns for %{model}'
13
+ create: 'Crear'
14
+ create_model: 'Crear %{model}'
15
+ create_another: 'Crear Otro %{model}'
16
+ created_model: '%{model} creado'
17
+ create_new: 'Crear Nuevo'
18
+ customize: 'Personalizar'
19
+ delete: 'Borrar'
20
+ deleted_model: '%{model} borrado'
21
+ delimiter: 'Delimitador'
22
+ download: 'Descargar'
23
+ edit: 'Editar'
24
+ export: 'Exportar'
25
+ 'false': 'No'
26
+ filtered: '(Filtrado)'
27
+ found:
28
+ one: 'encontrado'
29
+ other: 'encontrados'
30
+ hide: 'Ocultar'
31
+ live_search: 'Buscar en Vivo'
32
+ loading: 'Cargando…'
33
+ nested_for_model: '%{nested_model} de %{parent_model}'
34
+ nested_of_model: '%{nested_model} of %{parent_model}'
35
+ next: 'Siguiente'
36
+ no_entries: 'Sin entradas'
37
+ no_options: 'sin opciones'
38
+ omit_header: 'Omitir Cabecera'
39
+ options: 'Opciones'
40
+ pdf: 'PDF'
41
+ previous: 'Anterior'
42
+ print: 'Imprimir'
43
+ refresh: 'Recargar'
44
+ remove: 'Eliminar'
45
+ remove_file: 'Eliminar o Reemplazar archivo'
46
+ replace_with_new: 'Reemplazar con Nuevo'
47
+ revisions_for_model: 'Revisiones de %{model}'
48
+ reset: 'Restaurar'
49
+ saving: 'Guardando…'
50
+ search: 'Buscar'
51
+ search_terms: 'Términos a buscar'
52
+ _select_: '- seleccionar -'
53
+ show: 'Ver'
54
+ show_model: 'Ver %{model}'
55
+ _to_ : ' a '
56
+ 'true': 'Sí'
57
+ update: 'Actualizar'
58
+ update_model: 'Actualizar %{model}'
59
+ updated_model: '%{model} actualizado'
60
+ '=': '='
61
+ '>=': '>='
62
+ '<=': '<='
63
+ '>': '>'
64
+ '<': '<'
65
+ '!=': '!='
66
+ between: 'Entre'
67
+ contains: 'Contiene'
68
+ begins_with: 'Empieza con'
69
+ ends_with: 'Termina con'
70
+ today: 'Today'
71
+ yesterday: 'Yesterday'
72
+ tomorrow: 'Tommorrow'
73
+ this_week: 'This Week'
74
+ prev_week: 'Last Week'
75
+ next_week: 'Next Week'
76
+ this_month: 'This Month'
77
+ prev_month: 'Last Month'
78
+ next_month: 'Next Month'
79
+ this_year: 'This Year'
80
+ prev_year: 'Last Year'
81
+ next_year: 'Next Year'
82
+ past: 'Past'
83
+ future: 'Future'
84
+ range: 'Range'
85
+ seconds: 'Seconds'
86
+ minutes: 'Minutes'
87
+ hours: 'Hours'
88
+ days: 'Days'
89
+ weeks: 'Weeks'
90
+ months: 'Months'
91
+ years: 'Years'
92
+ optional_attributes: 'Further Options'
93
+ null: 'Null'
94
+ not_null: 'Not Null'
95
+ date_picker_options:
96
+ weekHeader: 'Sm'
97
+ firstDay: 1
98
+ isRTL: false
99
+ showMonthAfterYear: false
100
+ datetime_picker_options:
101
+ timeText: 'Hora'
102
+ currentText: 'Ahora'
103
+ closeText: 'Cerrar'
104
+ errors:
105
+ template:
106
+ header:
107
+ one: "1 error prohibited this %{model} from being saved."
108
+ other: "%{count} errors prohibited this %{model} from being saved"
109
+ body: "There were problems with the following fields:"
110
+
111
+ # error_messages
112
+ cant_destroy_record: "No se pudo borrar %{record}"
113
+ internal_error: 'Petición fallida (código 500, error interno)'
114
+ version_inconsistency: 'Inconsistencia de versiones - este registro se ha modificado después de que empezó a editarlo.'
115
+ no_authorization_for_action: "No Authorization for action %{action}"
@@ -0,0 +1,116 @@
1
+ {
2
+ :'fr' => {
3
+ :active_scaffold => {
4
+ :add => 'Ajouter',
5
+ :add_existing => 'Ajouter un(e) existant(e)',
6
+ :add_existing_model => 'Ajouter un(e) %{model} existant(e)',
7
+ :are_you_sure_to_delete => 'Êtes vous sûr?',
8
+ :cancel => 'Annuler',
9
+ :click_to_edit => 'Cliquer pour éditer',
10
+ :close => 'Fermer',
11
+ :config_list => 'Configure',
12
+ :config_list_model => 'Configure Columns for %{model}',
13
+ :create => 'Créer',
14
+ :create_model => 'Créer %{model}',
15
+ :create_another => 'Créer un autre',
16
+ :created_model => '%{model} créé',
17
+ :create_new => 'Créer un nouveau',
18
+ :customize => 'Personnaliser',
19
+ :delete => 'Supprimer',
20
+ :deleted_model => 'Suppression de %{model}',
21
+ :delimiter => 'Délimiteur',
22
+ :download => 'Télécharger',
23
+ :edit => 'Éditer',
24
+ :export => 'Exporter',
25
+ :nested_for_model => '%{nested_model} pour %{parent_model}',
26
+ :nested_of_model => '%{nested_model} de %{parent_model}',
27
+ :filtered => '(Filtré)',
28
+ :found => 'Trouvé',
29
+ :hide => 'Cacher',
30
+ :live_search => 'Recherche en temps réel',
31
+ :loading => 'Chargement…',
32
+ :next => 'Suivant',
33
+ :no_entries => "Pas d'entrée",
34
+ :no_options => "pas d'option",
35
+ :omit_header => 'Omettre les en-têtes',
36
+ :options => 'Options',
37
+ :pdf => 'PDF',
38
+ :previous => 'Précédent',
39
+ :print => 'Imprimer',
40
+ :refresh => 'Rafraîchir',
41
+ :remove => 'Supprimer',
42
+ :remove_file => 'Supprimer et remplacer le fichier',
43
+ :replace_with_new => 'Remplacer avec le nouveau',
44
+ :revisions_for_model => 'Révision pour %{model}',
45
+ :reset => 'Annuler',
46
+ :saving => 'Sauvegarder…',
47
+ :search => 'Rechercher',
48
+ :search_terms => 'Recherche de termes',
49
+ :_select_ => '- sélectionner -',
50
+ :show => 'Montrer',
51
+ :show_model => 'Montrer %{model}',
52
+ :_to_ => ' à ',
53
+ :update => 'Mettre à jour',
54
+ :update_model => 'Mettre à jour le(/la) %{model}',
55
+ :updated_model => 'Mis à jour de %{model}',
56
+ :'=' => '=',
57
+ :'>=' => '>=',
58
+ :'<=' => '<=',
59
+ :'>' => '>',
60
+ :'<' => '<',
61
+ :'!=' => '!=',
62
+ :between => 'Entre',
63
+ :today => 'Today',
64
+ :yesterday => 'Yesterday',
65
+ :tomorrow => 'Tommorrow',
66
+ :this_week => 'This Week',
67
+ :prev_week => 'Last Week',
68
+ :next_week => 'Next Week',
69
+ :this_month => 'This Month',
70
+ :prev_month => 'Last Month',
71
+ :next_month => 'Next Month',
72
+ :this_year => 'This Year',
73
+ :prev_year => 'Last Year',
74
+ :next_year => 'Next Year',
75
+ :past => 'Past',
76
+ :future => 'Future',
77
+ :range => 'Range',
78
+ :seconds => 'Seconds',
79
+ :minutes => 'Minutes',
80
+ :hours => 'Hours',
81
+ :days => 'Days',
82
+ :weeks => 'Weeks',
83
+ :months => 'Months',
84
+ :years => 'Years',
85
+ :optional_attributes => 'Further Options',
86
+ :null => 'Null',
87
+ :not_null => 'Not Null',
88
+ :date_picker_options => {
89
+ :weekHeader => 'Sm',
90
+ :firstDay => 1,
91
+ :isRTL => false,
92
+ :showMonthAfterYear => false,
93
+ },
94
+ :datetime_picker_options => {
95
+ :timeText => 'Heure',
96
+ :currentText => 'Maintenant',
97
+ :closeText => 'Fermer'
98
+ },
99
+ :errors => {
100
+ :template => {
101
+ :header => {
102
+ :one => "1 error prohibited this %{model} from being saved.",
103
+ :other => "%{count} errors prohibited this %{model} from being saved"
104
+ },
105
+ :body => "There were problems with the following fields:"
106
+ }
107
+ },
108
+ # error_messages
109
+ :cant_destroy_record => "%{record} can't be destroyed",
110
+ :internal_error => 'Erreur de la requête (code 500, Erreur interne)',
111
+ :version_inconsistency => "Version incomplète - Cet enregistrement a été modifié depuis que vous avez commencé à l'éditer.",
112
+ :record_not_saved => 'Failed to save record cause of an unknown error',
113
+ :no_authorization_for_action => "No Authorization for action %{action}"
114
+ }
115
+ }
116
+ }
@@ -0,0 +1,63 @@
1
+ hu:
2
+ active_scaffold:
3
+ add: 'Hozzáadás'
4
+ add_existing: 'Meglevő hozzáadása'
5
+ add_existing_model: 'Meglevő %{model} hozzáadása'
6
+ are_you_sure_to_delete: 'Biztos vagy benne?'
7
+ cancel: 'Mégse'
8
+ click_to_edit: 'Kattints a szerkesztéshez'
9
+ close: 'Bezárás'
10
+ create: 'Létrehozás'
11
+ create_model: '%{model} létrehozása'
12
+ create_another: 'Mégegy hozzáadása'
13
+ created_model: '%{model} létrehozva'
14
+ create_new: 'Új létrehozása'
15
+ customize: 'Testreszabás'
16
+ delete: 'Törlés'
17
+ deleted_model: '%{model} törölve'
18
+ delimiter: 'Elválasztó'
19
+ download: 'Letöltés'
20
+ edit: 'Szerkesztés'
21
+ export: 'Exportálás'
22
+ nested_for_model: '%{nested_model} / %{parent_model}'
23
+ nested_of_model: '%{nested_model} of %{parent_model}'
24
+ filtered: '(Szűrt)'
25
+ found: 'Találat'
26
+ hide: 'Elrejtés'
27
+ live_search: 'Élő keresés'
28
+ loading: 'Betöltés…'
29
+ next: 'Következő'
30
+ no_entries: 'Nincs elem'
31
+ no_options: 'nincsenek'
32
+ omit_header: 'Fejléc nélkül'
33
+ options: 'Opciók'
34
+ pdf: 'PDF'
35
+ previous: 'Előző'
36
+ print: 'Nyomtatás'
37
+ refresh: 'Frissítés'
38
+ remove: 'Törlés'
39
+ remove_file: 'Fájl törlése, vagy cseréje'
40
+ replace_with_new: 'Csere újjal'
41
+ revisions_for_model: '%{model} revíziói'
42
+ reset: 'Alapállapot'
43
+ saving: 'Mentés…'
44
+ search: 'Keresés'
45
+ search_terms: 'Keresési kifejezések'
46
+ _select_: '- válassz -'
47
+ show: 'Mutatás'
48
+ show_model: '%{model} mutatása'
49
+ _to_ : ' – '
50
+ update: 'Modosítás'
51
+ update_model: '%{model} modosítása'
52
+ updated_model: '%{model} módosítva'
53
+ '=': '='
54
+ '>=': '>='
55
+ '<=': '<='
56
+ '>': '>'
57
+ '<': '<'
58
+ '!=': '!='
59
+ between: 'Között'
60
+
61
+ # error_messages
62
+ internal_error: 'A lekérés sikertelen (code 500, Internal Error)'
63
+ version_inconsistency: 'Verzió ütközés - ezt a rekordot módosították mióta elkezdted szerkeszteni.'
@@ -0,0 +1,64 @@
1
+ ja:
2
+ active_scaffold:
3
+ add: '追加'
4
+ add_existing: '既存のものを追加'
5
+ add_existing_model: '既存の%{model}を追加'
6
+ are_you_sure_to_delete: '本当によいですか?'
7
+ cancel: 'キャンセル'
8
+ click_to_edit: 'クリックして編集'
9
+ close: '閉じる'
10
+ create: '作成'
11
+ create_model: '%{model}を作成'
12
+ create_another: '別のものを作成'
13
+ created_model: '%{model}を作成しました'
14
+ create_new: '新規作成'
15
+ customize: 'カスタマイズ'
16
+ delete: '削除'
17
+ deleted_model: '%{model}を削除しました'
18
+ delimiter: 'Delimiter' # needed?
19
+ download: 'ダウンロード'
20
+ edit: '編集'
21
+ export: 'Export' # needed?
22
+ nested_for_model: '%{parent_model}の%{nested_model}'
23
+ nested_of_model: '%{nested_model} of %{parent_model}'
24
+ filtered: '(フィルタ中)'
25
+ found: '個ありました'
26
+ hide: '隠す'
27
+ live_search: 'その場で検索'
28
+ loading: '読み込み中…'
29
+ next: '次'
30
+ no_entries: '見つかりませんでした'
31
+ no_options: 'オプション無し'
32
+ omit_header: 'Omit Header' # needed?
33
+ options: 'オプション'
34
+ pdf: 'PDF'
35
+ previous: '前'
36
+ print: '印刷'
37
+ refresh: 'Refresh' # needed?
38
+ remove: '削除'
39
+ remove_file: 'ファイルを削除または置換'
40
+ replace_with_new: '新しいもので置換'
41
+ revisions_for_model: 'Revisions for %{model}' # neede?
42
+ reset: 'リセット'
43
+ saving: '保存中…'
44
+ search: '検索'
45
+ search_terms: '検索単語'
46
+ _select_: '- 選択してください -'
47
+ show: '表示'
48
+ show_model: '%{model}を表示'
49
+ _to_ : ' to ' # needed?
50
+ update: '更新'
51
+ update_model: '%{model}を更新'
52
+ updated_model: '%{model}を更新しました'
53
+ '=': '='
54
+ '>=': '>='
55
+ '<=': '<='
56
+ '>': '>'
57
+ '<': '<'
58
+ '!=': '!='
59
+ between: 'Between' # needed?
60
+
61
+ # error_messages
62
+ cant_destroy_record: "%{record}を削除で来ません"
63
+ internal_error: 'リクエストが失敗しました(コード500: 内部エラー)'
64
+ version_inconsistency: 'バージョンが一致しません - あなたが編集している間にこのレコードが変更されました。'
@@ -0,0 +1,119 @@
1
+ ru:
2
+ active_scaffold:
3
+ add: 'Добавить запись'
4
+ add_existing: 'Добавить существующую запись'
5
+ add_existing_model: '%{model}: добавить существующую запись'
6
+ are_you_sure_to_delete: 'Удалить %{label}?'
7
+ cancel: 'Отмена'
8
+ click_to_edit: 'Нажмите для редактирования'
9
+ click_to_reset: 'Нажмите для сброса'
10
+ close: 'Закрыть'
11
+ config_list: 'Настройки списка'
12
+ config_list_model: '%{model}: настройки списка'
13
+ create: 'Создать'
14
+ create_model: '%{model}: создать запись'
15
+ create_another: 'Создать другую запись'
16
+ created_model: '%{model}: запись создана'
17
+ create_new: 'Создать новую запись'
18
+ customize: 'Настроить'
19
+ delete: 'Удалить'
20
+ deleted_model: '%{model}: запись удалена'
21
+ delimiter: 'Разделитель'
22
+ download: 'Загрузить'
23
+ edit: 'Изменить'
24
+ export: 'Экспорт'
25
+ nested_for_model: '%{parent_model} / %{nested_model}'
26
+ nested_of_model: '%{nested_model} @ %{parent_model}'
27
+ false: 'Нет'
28
+ filtered: '(Найденное)'
29
+ found:
30
+ one: 'запись'
31
+ few: 'записи'
32
+ many: 'записей'
33
+ other: 'записи'
34
+ hide: 'Скрыть'
35
+ live_search: 'Поиск'
36
+ loading: 'Загрузка…'
37
+ next: 'Следующее'
38
+ no_entries: 'Нет записей'
39
+ no_options: 'Нет вариантов'
40
+ omit_header: 'Пропустить заголовок'
41
+ options: 'Настройки'
42
+ pdf: 'PDF'
43
+ previous: 'Предыдущее'
44
+ print: 'Печать'
45
+ refresh: 'Обновить'
46
+ remove: 'Удалить'
47
+ remove_file: 'Удалить или заменить файл'
48
+ replace_with_new: 'Заменить новым'
49
+ revisions_for_model: '%{model}: редакции'
50
+ reset: 'Сброс'
51
+ saving: 'Сохранение…'
52
+ search: 'Поиск'
53
+ search_terms: 'Ключевые слова'
54
+ _select_: '- выбрать -'
55
+ show: 'Показать'
56
+ show_model: '%{model}: показать запись'
57
+ _to_ : ' to '
58
+ true: 'Да'
59
+ update: 'Обновить запись'
60
+ update_model: '%{model}: обновить запись'
61
+ updated_model: '%{model}: запись обновлена'
62
+ '=': '='
63
+ '>=': '>='
64
+ '<=': '<='
65
+ '>': '>'
66
+ '<': '<'
67
+ '!=': '!='
68
+ between: 'В интервале'
69
+ contains: 'Содержит'
70
+ begins_with: 'Начинается с'
71
+ ends_with: 'Оканчивается на'
72
+ today: 'Сегодня'
73
+ yesterday: 'Вчера'
74
+ tomorrow: 'Завтра'
75
+ this_week: 'На этой неделе'
76
+ prev_week: 'На прошлой неделе'
77
+ next_week: 'На следующей неделе'
78
+ this_month: 'В этом месяце'
79
+ prev_month: 'В прошлом месяце'
80
+ next_month: 'В следующем месяце'
81
+ this_year: 'В этом году'
82
+ prev_year: 'В прошлом году'
83
+ next_year: 'В следующем году'
84
+ past: 'Прошлое'
85
+ future: 'Будущее'
86
+ range: 'Интервал'
87
+ seconds: 'секунд'
88
+ minutes: 'минут'
89
+ hours: 'часов'
90
+ days: 'дней'
91
+ weeks: 'недель'
92
+ months: 'месяцев'
93
+ years: 'лет'
94
+ optional_attributes: 'Дополнительные настройки'
95
+ null: 'Пусто'
96
+ not_null: 'Не пусто'
97
+ date_picker_options:
98
+ weekHeader: 'Нед.'
99
+ firstDay: 1
100
+ isRTL: false
101
+ showMonthAfterYear: false
102
+ datetime_picker_options:
103
+ timeText: 'Время'
104
+ currentText: 'Сегодня'
105
+ closeText: 'Закрыть'
106
+ errors:
107
+ template:
108
+ header:
109
+ one: '%{model}: сохранение не удалось из-за %{count} ошибки'
110
+ few: '%{model}: сохранение не удалось из-за %{count} ошибок'
111
+ many: '%{model}: сохранение не удалось из-за %{count} ошибок'
112
+ other: '%{model}: сохранение не удалось из-за %{count} ошибки'
113
+ body: 'Проблемы возникли со следующими полями:'
114
+
115
+ # error_messages
116
+ cant_destroy_record: 'Запись %{record} не может быть удалена'
117
+ failed_to_save_record: 'Запись не может быть сохранена из-за неизвестной ошибки'
118
+ internal_error: '500 Внутренняя ошибка сервера'
119
+ version_inconsistency: 'Эта запись была обновлена с того момента, как вы начали ее редактировать'
@@ -0,0 +1,38 @@
1
+ module ActiveScaffold
2
+ module MarkedModel
3
+ # This is a module aimed at making the make session_stored marked_records available to ActiveRecord models
4
+
5
+ def self.included(base)
6
+ base.extend ClassMethods
7
+ base.scope :marked, lambda {{:conditions => {:id => base.marked_records.to_a}}}
8
+ end
9
+
10
+ def marked
11
+ marked_records.include?(self.id)
12
+ end
13
+
14
+ def marked=(value)
15
+ value = [true, 'true', 1, '1', 'T', 't'].include?(value.class == String ? value.downcase : value)
16
+ if value == true
17
+ marked_records << self.id if !marked
18
+ else
19
+ marked_records.delete(self.id)
20
+ end
21
+ end
22
+
23
+ module ClassMethods
24
+ def marked_records
25
+ Thread.current[:marked_records] ||= Set.new
26
+ end
27
+
28
+ def marked_records=(marked)
29
+ Thread.current[:marked_records] = marked
30
+ end
31
+ end
32
+
33
+ # Instance-level access to the marked_records
34
+ def marked_records
35
+ self.class.marked_records
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,9 @@
1
+ module ActiveScaffold
2
+ module Version
3
+ MAJOR = 3
4
+ MINOR = 0
5
+ PATCH = 6
6
+
7
+ STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
+ end
9
+ end