typus 1.0.0.pre8 → 1.0.0.pre9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. data/CHANGELOG +4 -6
  2. data/Gemfile +16 -13
  3. data/Gemfile.lock +26 -2
  4. data/Rakefile +2 -3
  5. data/app/controllers/admin/base_controller.rb +3 -5
  6. data/app/controllers/admin/resources_controller.rb +24 -26
  7. data/app/helpers/admin/base_helper.rb +14 -22
  8. data/app/helpers/admin/dashboard_helper.rb +2 -5
  9. data/app/helpers/admin/filters_helper.rb +6 -8
  10. data/app/helpers/admin/form_helper.rb +3 -9
  11. data/app/helpers/admin/preview_helper.rb +4 -6
  12. data/app/helpers/admin/relationships_helper.rb +9 -11
  13. data/app/helpers/admin/resources_helper.rb +6 -24
  14. data/app/helpers/admin/search_helper.rb +1 -1
  15. data/app/helpers/admin/sidebar_helper.rb +12 -15
  16. data/app/helpers/admin/table_helper.rb +13 -13
  17. data/app/views/admin/dashboard/show.html.erb +1 -1
  18. data/app/views/admin/helpers/_apps.html.erb +4 -3
  19. data/app/views/admin/helpers/_header.html.erb +2 -2
  20. data/app/views/admin/helpers/dashboard/_applications.html.erb +3 -3
  21. data/app/views/admin/helpers/dashboard/_resources.html.erb +17 -13
  22. data/app/views/admin/helpers/filters/_filters.html.erb +9 -27
  23. data/app/views/admin/helpers/resources/_pagination.html.erb +8 -9
  24. data/app/views/admin/helpers/search/_search.html.erb +1 -1
  25. data/app/views/admin/mailer/reset_password_link.text.erb +3 -0
  26. data/app/views/admin/resources/_form.html.erb +4 -4
  27. data/app/views/admin/resources/edit.html.erb +2 -3
  28. data/app/views/admin/resources/index.html.erb +15 -13
  29. data/app/views/admin/resources/new.html.erb +2 -2
  30. data/app/views/admin/resources/show.html.erb +1 -2
  31. data/app/views/admin/templates/_boolean.html.erb +1 -1
  32. data/app/views/admin/templates/_has_many.html.erb +2 -4
  33. data/app/views/admin/templates/_has_n.html.erb +1 -1
  34. data/app/views/admin/templates/_selector.html.erb +0 -1
  35. data/app/views/admin/templates/_string.html.erb +1 -1
  36. data/app/views/layouts/admin/session.html.erb +1 -1
  37. data/config/available_locales/ca.yml +3 -5
  38. data/config/available_locales/de.yml +2 -4
  39. data/config/available_locales/es.yml +2 -4
  40. data/config/available_locales/fr.yml +40 -39
  41. data/config/available_locales/fr_models.yml +2 -2
  42. data/config/available_locales/hu.yml +3 -5
  43. data/config/available_locales/it.yml +0 -4
  44. data/config/available_locales/language.yml.template +2 -4
  45. data/config/available_locales/pt-BR.yml +2 -4
  46. data/config/available_locales/ru.yml +2 -4
  47. data/config/routes.rb +1 -0
  48. data/lib/generators/templates/config/initializers/typus.rb +5 -5
  49. data/lib/generators/templates/config/initializers/typus_authentication.rb +5 -5
  50. data/lib/generators/templates/config/initializers/typus_resources.rb +7 -7
  51. data/lib/generators/templates/config/typus/README +11 -13
  52. data/lib/generators/templates/controller.rb +0 -2
  53. data/lib/generators/templates/functional_test.rb +4 -15
  54. data/lib/generators/typus/migration_generator.rb +0 -1
  55. data/lib/support/active_record.rb +18 -9
  56. data/lib/support/fake_user.rb +42 -0
  57. data/lib/support/object.rb +1 -0
  58. data/lib/support/string.rb +0 -32
  59. data/lib/tasks/typus.rake +0 -8
  60. data/lib/typus.rb +34 -18
  61. data/lib/typus/authentication/base.rb +26 -0
  62. data/lib/typus/authentication/http_basic.rb +22 -0
  63. data/lib/typus/authentication/none.rb +19 -0
  64. data/lib/typus/authentication/session.rb +190 -0
  65. data/lib/typus/format.rb +12 -19
  66. data/lib/typus/orm/active_record.rb +13 -51
  67. data/lib/typus/resources.rb +0 -9
  68. data/lib/typus/version.rb +1 -1
  69. data/test/factories.rb +43 -0
  70. data/test/fixtures/rails_app/app/controllers/application_controller.rb +0 -1
  71. data/test/fixtures/rails_app/app/models/page.rb +0 -4
  72. data/test/fixtures/rails_app/config/application.rb +6 -3
  73. data/test/fixtures/rails_app/config/database.yml +12 -20
  74. data/test/fixtures/rails_app/config/typus/application.yml +4 -8
  75. data/test/fixtures/rails_app/db/test.sqlite3 +0 -0
  76. data/test/fixtures/rails_app/log/test.log +227115 -0
  77. data/test/fixtures/rails_app/tmp/export-posts-20101012213057.csv +2 -0
  78. data/test/fixtures/rails_app/tmp/export-posts-20101012213132.csv +2 -0
  79. data/test/fixtures/rails_app/tmp/export-posts-20101012213234.csv +2 -0
  80. data/test/fixtures/rails_app/tmp/export-posts-20101012213506.csv +2 -0
  81. data/test/fixtures/rails_app/tmp/export-posts-20101012215057.csv +2 -0
  82. data/test/fixtures/rails_app/tmp/export-posts-20101012215217.csv +2 -0
  83. data/test/fixtures/rails_app/tmp/export-posts-20101012215415.csv +2 -0
  84. data/test/fixtures/rails_app/tmp/export-posts-20101012215443.csv +2 -0
  85. data/test/fixtures/rails_app/tmp/export-posts-20101012215509.csv +2 -0
  86. data/test/fixtures/rails_app/tmp/export-posts-20101012215528.csv +2 -0
  87. data/test/fixtures/rails_app/tmp/export-posts-20101012215551.csv +2 -0
  88. data/test/fixtures/rails_app/tmp/export-posts-20101012215615.csv +2 -0
  89. data/test/fixtures/rails_app/tmp/export-posts-20101012215640.csv +2 -0
  90. data/test/fixtures/rails_app/tmp/export-posts-20101012215714.csv +2 -0
  91. data/test/fixtures/rails_app/tmp/export-posts-20101012215744.csv +2 -0
  92. data/test/fixtures/rails_app/tmp/export-posts-20101012215814.csv +2 -0
  93. data/test/fixtures/rails_app/tmp/export-posts-20101012215836.csv +2 -0
  94. data/test/fixtures/rails_app/tmp/export-posts-20101012215906.csv +2 -0
  95. data/test/fixtures/rails_app/tmp/export-posts-20101012220659.csv +2 -0
  96. data/test/fixtures/rails_app/tmp/export-posts-20101012221043.csv +2 -0
  97. data/test/fixtures/rails_app/tmp/export-posts-20101012221258.csv +2 -0
  98. data/test/fixtures/rails_app/tmp/export-posts-20101012222558.csv +2 -0
  99. data/test/fixtures/rails_app/tmp/export-posts-20101012222752.csv +2 -0
  100. data/test/fixtures/rails_app/tmp/export-posts-20101012222848.csv +2 -0
  101. data/test/fixtures/rails_app/tmp/export-posts-20101012223433.csv +2 -0
  102. data/test/fixtures/rails_app/tmp/export-posts-20101012223535.csv +2 -0
  103. data/test/fixtures/rails_app/tmp/export-posts-20101012224003.csv +2 -0
  104. data/test/fixtures/rails_app/tmp/export-posts-20101012224052.csv +2 -0
  105. data/test/fixtures/rails_app/tmp/export-posts-20101012224109.csv +2 -0
  106. data/test/fixtures/rails_app/tmp/export-posts-20101012224139.csv +2 -0
  107. data/test/fixtures/rails_app/tmp/export-posts-20101012224205.csv +2 -0
  108. data/test/fixtures/rails_app/tmp/export-posts-20101012224243.csv +2 -0
  109. data/test/fixtures/rails_app/tmp/export-posts-20101012225119.csv +2 -0
  110. data/test/fixtures/rails_app/tmp/export-posts-20101013063215.csv +2 -0
  111. data/test/fixtures/rails_app/tmp/export-posts-20101013063300.csv +2 -0
  112. data/test/fixtures/rails_app/tmp/export-posts-20101013063352.csv +2 -0
  113. data/test/fixtures/rails_app/tmp/export-posts-20101013063427.csv +2 -0
  114. data/test/fixtures/rails_app/tmp/export-posts-20101013063448.csv +2 -0
  115. data/test/fixtures/rails_app/tmp/export-posts-20101013063530.csv +2 -0
  116. data/test/fixtures/rails_app/tmp/export-posts-20101013063559.csv +2 -0
  117. data/test/fixtures/rails_app/tmp/export-posts-20101013063646.csv +2 -0
  118. data/test/fixtures/rails_app/tmp/export-posts-20101013063737.csv +2 -0
  119. data/test/fixtures/rails_app/tmp/export-posts-20101013063822.csv +2 -0
  120. data/test/fixtures/rails_app/tmp/export-posts-20101013063837.csv +2 -0
  121. data/test/fixtures/rails_app/tmp/export-posts-20101013063919.csv +2 -0
  122. data/test/fixtures/rails_app/tmp/export-posts-20101013063939.csv +2 -0
  123. data/test/fixtures/rails_app/tmp/export-posts-20101013063952.csv +2 -0
  124. data/test/fixtures/rails_app/tmp/export-posts-20101013064220.csv +2 -0
  125. data/test/fixtures/rails_app/tmp/export-posts-20101013064253.csv +2 -0
  126. data/test/fixtures/rails_app/tmp/export-posts-20101013064318.csv +2 -0
  127. data/test/fixtures/rails_app/tmp/export-posts-20101013064404.csv +2 -0
  128. data/test/fixtures/rails_app/tmp/export-posts-20101013064452.csv +2 -0
  129. data/test/fixtures/rails_app/tmp/export-posts-20101013064536.csv +2 -0
  130. data/test/fixtures/rails_app/tmp/export-posts-20101013064652.csv +2 -0
  131. data/test/fixtures/rails_app/tmp/export-posts-20101013064845.csv +2 -0
  132. data/test/fixtures/rails_app/tmp/export-posts-20101013065023.csv +2 -0
  133. data/test/fixtures/rails_app/tmp/export-posts-20101013065137.csv +2 -0
  134. data/test/fixtures/rails_app/tmp/export-posts-20101013065713.csv +2 -0
  135. data/test/fixtures/rails_app/tmp/export-posts-20101013065954.csv +2 -0
  136. data/test/fixtures/rails_app/tmp/export-posts-20101013070057.csv +2 -0
  137. data/test/fixtures/rails_app/tmp/export-posts-20101013070116.csv +2 -0
  138. data/test/fixtures/rails_app/tmp/export-posts-20101013070156.csv +2 -0
  139. data/test/fixtures/rails_app/tmp/export-posts-20101013070349.csv +2 -0
  140. data/test/fixtures/rails_app/tmp/export-posts-20101013070429.csv +2 -0
  141. data/test/fixtures/rails_app/tmp/export-posts-20101013070448.csv +2 -0
  142. data/test/fixtures/rails_app/tmp/export-posts-20101013070514.csv +2 -0
  143. data/test/fixtures/rails_app/tmp/export-posts-20101013070709.csv +2 -0
  144. data/test/fixtures/rails_app/tmp/export-posts-20101013070745.csv +2 -0
  145. data/test/fixtures/rails_app/tmp/export-posts-20101013070809.csv +2 -0
  146. data/test/fixtures/rails_app/tmp/export-posts-20101013070905.csv +2 -0
  147. data/test/fixtures/rails_app/tmp/export-posts-20101013070955.csv +2 -0
  148. data/test/fixtures/rails_app/tmp/export-posts-20101013071116.csv +2 -0
  149. data/test/fixtures/rails_app/tmp/export-posts-20101013071209.csv +2 -0
  150. data/test/fixtures/rails_app/tmp/export-posts-20101013071335.csv +2 -0
  151. data/test/fixtures/rails_app/tmp/export-posts-20101013071632.csv +2 -0
  152. data/test/fixtures/rails_app/tmp/export-posts-20101013071643.csv +2 -0
  153. data/test/fixtures/rails_app/tmp/export-posts-20101013071735.csv +2 -0
  154. data/test/fixtures/rails_app/tmp/export-posts-20101013071749.csv +2 -0
  155. data/test/fixtures/rails_app/tmp/export-posts-20101013072030.csv +2 -0
  156. data/test/fixtures/rails_app/tmp/export-posts-20101013072050.csv +2 -0
  157. data/test/fixtures/rails_app/tmp/export-posts-20101013072108.csv +2 -0
  158. data/test/fixtures/rails_app/tmp/export-posts-20101013072713.csv +2 -0
  159. data/test/fixtures/rails_app/tmp/export-posts-20101013072751.csv +2 -0
  160. data/test/fixtures/rails_app/tmp/export-posts-20101013072912.csv +2 -0
  161. data/test/fixtures/rails_app/tmp/export-posts-20101013074546.csv +2 -0
  162. data/test/fixtures/rails_app/tmp/export-posts-20101018180512.csv +2 -0
  163. data/test/fixtures/rails_app/tmp/export-posts-20101018183359.csv +2 -0
  164. data/test/fixtures/rails_app/tmp/export-posts-20101018183608.csv +2 -0
  165. data/test/fixtures/rails_app/tmp/export-posts-20101018183759.csv +2 -0
  166. data/test/functional/admin/account_controller_test.rb +1 -1
  167. data/test/functional/admin/{resources_controller_assets_relationships.rb → assets_controller_test.rb} +12 -16
  168. data/test/functional/admin/categories_controller_test.rb +62 -0
  169. data/test/functional/admin/{resources_controller_comments_toggle_test.rb → comments_controller_test.rb} +0 -0
  170. data/test/functional/admin/dashboard_controller_test.rb +34 -2
  171. data/test/functional/admin/posts_controller_test.rb +548 -0
  172. data/test/functional/admin/session_controller_test.rb +2 -2
  173. data/test/functional/admin/{resources_controller_tableless_resource_test.rb → status_controller_test.rb} +0 -0
  174. data/test/functional/admin/{resources_controller_typus_users_test.rb → typus_users_controller_test.rb} +2 -2
  175. data/test/helpers/admin/base_helper_test.rb +35 -37
  176. data/test/helpers/admin/dashboard_helper_test.rb +4 -8
  177. data/test/helpers/admin/form_helper_test.rb +9 -34
  178. data/test/helpers/admin/resources_helper_test.rb +28 -16
  179. data/test/helpers/admin/sidebar_helper_test.rb +14 -27
  180. data/test/helpers/admin/table_helper_test.rb +24 -68
  181. data/test/integration/login_test.rb +13 -0
  182. data/test/integration_test_helper.rb +21 -0
  183. data/test/lib/support/active_record_test.rb +72 -21
  184. data/test/lib/support/array_test.rb +2 -6
  185. data/test/lib/support/string_test.rb +21 -30
  186. data/test/lib/typus/active_record_test.rb +162 -100
  187. data/test/lib/typus/resource_test.rb +2 -3
  188. data/test/lib/typus_test.rb +25 -22
  189. data/test/test_helper.rb +4 -17
  190. data/test/unit/admin/mailer_test.rb +2 -2
  191. data/test/unit/typus_user_roles_test.rb +23 -23
  192. data/test/unit/typus_user_test.rb +30 -24
  193. data/typus.gemspec +0 -1
  194. metadata +111 -60
  195. data/app/models/admin/fake_user.rb +0 -46
  196. data/lib/generators/templates/model.yml +0 -10
  197. data/lib/typus/authentication.rb +0 -241
  198. data/lib/vendor/paginator.rb +0 -143
  199. data/test/factories/assets.rb +0 -5
  200. data/test/factories/categories.rb +0 -3
  201. data/test/factories/comments.rb +0 -6
  202. data/test/factories/pages.rb +0 -5
  203. data/test/factories/pictures.rb +0 -7
  204. data/test/factories/posts.rb +0 -6
  205. data/test/factories/typus_users.rb +0 -8
  206. data/test/fixtures/rails_app/README +0 -244
  207. data/test/fixtures/rails_app/app/helpers/application_helper.rb +0 -2
  208. data/test/fixtures/rails_app/app/views/layouts/application.html.erb +0 -14
  209. data/test/fixtures/rails_app/config/environments/development.rb +0 -19
  210. data/test/fixtures/rails_app/config/environments/production.rb +0 -42
  211. data/test/fixtures/rails_app/config/initializers/acts_as_list.rb +0 -258
  212. data/test/fixtures/rails_app/config/initializers/acts_as_tree.rb +0 -98
  213. data/test/fixtures/rails_app/config/initializers/backtrace_silencers.rb +0 -7
  214. data/test/fixtures/rails_app/config/initializers/inflections.rb +0 -10
  215. data/test/fixtures/rails_app/config/initializers/mime_types.rb +0 -5
  216. data/test/fixtures/rails_app/config/locales/en.yml +0 -5
  217. data/test/fixtures/rails_app/db/seeds.rb +0 -7
  218. data/test/fixtures/rails_app/public/404.html +0 -26
  219. data/test/fixtures/rails_app/public/422.html +0 -26
  220. data/test/fixtures/rails_app/public/500.html +0 -26
  221. data/test/fixtures/rails_app/public/favicon.ico +0 -0
  222. data/test/fixtures/rails_app/public/images/rails.png +0 -0
  223. data/test/fixtures/rails_app/public/index.html +0 -279
  224. data/test/fixtures/rails_app/public/javascripts/application.js +0 -2
  225. data/test/fixtures/rails_app/public/javascripts/controls.js +0 -965
  226. data/test/fixtures/rails_app/public/javascripts/dragdrop.js +0 -974
  227. data/test/fixtures/rails_app/public/javascripts/effects.js +0 -1123
  228. data/test/fixtures/rails_app/public/javascripts/prototype.js +0 -4874
  229. data/test/fixtures/rails_app/public/javascripts/rails.js +0 -118
  230. data/test/fixtures/rails_app/public/robots.txt +0 -5
  231. data/test/fixtures/rails_app/script/rails +0 -9
  232. data/test/functional/admin/dashboard_controller_http_basic_test.rb +0 -24
  233. data/test/functional/admin/dashboard_controller_none_test.rb +0 -18
  234. data/test/functional/admin/resources_controller_categories_before_test.rb +0 -10
  235. data/test/functional/admin/resources_controller_categories_lists_test.rb +0 -44
  236. data/test/functional/admin/resources_controller_categories_views_test.rb +0 -10
  237. data/test/functional/admin/resources_controller_posts_before_test.rb +0 -10
  238. data/test/functional/admin/resources_controller_posts_crud_custom_test.rb +0 -27
  239. data/test/functional/admin/resources_controller_posts_crud_test.rb +0 -44
  240. data/test/functional/admin/resources_controller_posts_formats_test.rb +0 -39
  241. data/test/functional/admin/resources_controller_posts_forms_test.rb +0 -58
  242. data/test/functional/admin/resources_controller_posts_permissions_test.rb +0 -100
  243. data/test/functional/admin/resources_controller_posts_relationships_test.rb +0 -91
  244. data/test/functional/admin/resources_controller_posts_roles.rb +0 -52
  245. data/test/functional/admin/resources_controller_posts_views_test.rb +0 -143
  246. data/test/lib/vendor/paginator_test.rb +0 -141
  247. data/typus-1.0.0.pre7.gem +0 -0
@@ -7,12 +7,11 @@
7
7
 
8
8
  <h2>
9
9
  <%= page_title %>
10
- <small></small>
11
10
  </h2>
12
11
 
13
12
  <%= display_link_to_previous %>
14
13
  <%= display_flash_message %>
15
- <%= typus_block %>
14
+ <%= typus_render :partial => 'edit' %>
16
15
 
17
16
  <%
18
17
  options = { :action => "update",
@@ -23,6 +22,6 @@
23
22
  button = _t("Save %{resource}", :resource => @resource.model_name.human)
24
23
  %>
25
24
 
26
- <%= render form_partial, :options => options, :button => button %>
25
+ <%= typus_render :partial => 'form', :options => options, :button => button %>
27
26
 
28
27
  <%= raw typus_relationships %>
@@ -11,7 +11,7 @@
11
11
  </h2>
12
12
 
13
13
  <%= display_flash_message %>
14
- <%= typus_block %>
14
+ <%= typus_render :partial => 'index' %>
15
15
 
16
16
  <% if (build_filters || search) && !@resource.count.zero? %>
17
17
  <div class="filters">
@@ -20,18 +20,20 @@
20
20
  </div>
21
21
  <% end %>
22
22
 
23
- <% unless @items.count.zero? -%>
23
+ <% if @resource.count.zero? %>
24
+ <p>
25
+ <%= _t("There are no %{records}.", :records => @resource.model_name.human.pluralize.downcase) %>
26
+ <%= link_to _t("Create one now."), { :action => "new" } if current_user.can?('create', @resource) %>
27
+ </p>
28
+ <% end %>
29
+
30
+ <% if @items.any? -%>
24
31
  <%= raw build_list(@resource, @fields, @items) %>
25
32
  <%= pagination %>
26
- <% else %>
27
- <% if @resource.count.zero? %>
28
- <p>
29
- <%= _t("There are no %{records}.", :records => @resource.model_name.human.pluralize.downcase) %>
30
- <%= link_to _t("Create one now."), { :action => "new" } if @current_user.can?('create', @resource) %>
31
- </p>
32
- <% else %>
33
- <div class="flash notice">
34
- <%= _t("There are no %{records} under this filter.", :records => @resource.model_name.human.pluralize.downcase) %>
35
- </div>
36
- <% end %>
33
+ <% end %>
34
+
35
+ <% if @items.empty? && !@resource.count.zero? %>
36
+ <div class="flash notice">
37
+ <%= _t("There are no %{records} under this filter.", :records => @resource.model_name.human.pluralize.downcase) %>
38
+ </div>
37
39
  <% end %>
@@ -10,7 +10,7 @@
10
10
  </h2>
11
11
 
12
12
  <%= display_link_to_previous %>
13
- <%= typus_block %>
13
+ <%= typus_render :partial => 'new' %>
14
14
 
15
15
  <%
16
16
  options = { :action => 'create',
@@ -21,4 +21,4 @@
21
21
  button = _t("Create %{resource}", :resource => @resource.model_name.human)
22
22
  %>
23
23
 
24
- <%= render form_partial, :options => options, :button => button %>
24
+ <%= typus_render :partial => 'form', :options => options, :button => button %>
@@ -7,11 +7,10 @@
7
7
 
8
8
  <h2>
9
9
  <%= page_title %>
10
- <small></small>
11
10
  </h2>
12
11
 
13
12
  <%= display_flash_message %>
14
- <%= typus_block %>
13
+ <%= typus_render :partial => 'show' %>
15
14
 
16
15
  <dl>
17
16
  <%- @fields.each do |field| -%>
@@ -1,4 +1,4 @@
1
1
  <li>
2
- <%= form.label attribute, label_text, :class => "inline_label" %>
3
2
  <%= form.check_box attribute, options %>
3
+ <%= form.label attribute, label_text, :class => "inline_label" %>
4
4
  </li>
@@ -12,13 +12,11 @@
12
12
 
13
13
  <%= form %>
14
14
 
15
- <% unless @items.count.zero? -%>
15
+ <% if @items.any? -%>
16
16
  <%= table %>
17
17
  <%= pagination(:anchor => model_to_relate.to_resource) %>
18
18
  <% else %>
19
- <div id="flash" class="notice">
20
- <p><%= _t("There are no %{records}.", :records => model_to_relate.model_name.human.pluralize.downcase) %></p>
21
- </div>
19
+ <p><%= _t("There are no %{records}.", :records => model_to_relate.model_name.human.pluralize.downcase) %></p>
22
20
  <% end %>
23
21
 
24
22
  </div>
@@ -7,7 +7,7 @@
7
7
 
8
8
  <%= form %>
9
9
 
10
- <% unless @items.count.zero? -%>
10
+ <% if @items.any? -%>
11
11
  <%= table %>
12
12
  <%= pagination(:anchor => model_to_relate.to_resource) %>
13
13
  <% else %>
@@ -1,6 +1,5 @@
1
1
  <%
2
2
  values = @resource::const_get(attribute.upcase)
3
- values = values.invert if values.kind_of?(Hash)
4
3
  %>
5
4
 
6
5
  <li>
@@ -17,6 +17,6 @@
17
17
  %>
18
18
 
19
19
  <li>
20
- <%= form.label attribute, label_text %>
20
+ <%= form.label attribute, raw(label_text) %>
21
21
  <%= form.text_field attribute, options %>
22
22
  </li>
@@ -9,7 +9,7 @@
9
9
  Ruby on Rails easy-to-use interface to allow trusted users
10
10
  edit structured content. (Admin scaffold generator)
11
11
 
12
- Get the code at http://github.com/fesplugas/typus
12
+ Documentation available at http://core.typuscms.com/
13
13
 
14
14
  -->
15
15
 
@@ -14,8 +14,6 @@ ca:
14
14
  "Are you sure you want to sign out and end your session?": "Estàs segur que vols sortir i tancar la sessió?"
15
15
  "As you're not the admin or the owner of this record you cannot edit it": "Com que no ets l'administrador o el propietari d'aquest registre no el pots editar."
16
16
 
17
- "Back to list": "Tornar al llistat"
18
-
19
17
  "Cancel and go back":
20
18
  "Change password": "Canviar contrasenya"
21
19
  "Change %{attribute}?": "Canviar %{attribute}?"
@@ -26,7 +24,6 @@ ca:
26
24
 
27
25
  "Dashboard": "Panell de control"
28
26
  "Do you want to cancel it?": "Vols cancel·lar-lo?"
29
- "Documentation": "Documentació"
30
27
  "Down": "Baixar"
31
28
 
32
29
  "Edit": "Editar"
@@ -48,7 +45,7 @@ ca:
48
45
  "Last few days": "Últims dies"
49
46
  "Last 30 days": "Últims 30 dies"
50
47
  "Last 7 days": "Últims 7 dies"
51
- "License": "Llicència"
48
+ "List": "Llista"
52
49
  "Logged as": "Identificat com"
53
50
  "Login": "Login"
54
51
 
@@ -98,13 +95,14 @@ ca:
98
95
  "You're adding a new %{resource_from} to %{resource_to}": "Estàs afegint un nou %{resource_from} a %{resource_to}."
99
96
  "You're not allowed to remove Typus Users": "No pots esborrar usuaris de typus."
100
97
  "You're not allowed to toggle status": "No pots canviar el teu estat."
101
- "You can update your password at": "Pots actualitzar la teva contrasenya a "
98
+ "You can update your password at": "Pots actualitzar la teva contrasenya a"
102
99
  "You can't change your role": "No pots canviar-te tu mateix el rol."
103
100
  "You can't remove yourself": "No et pots eliminar a tu mateix."
104
101
  "You can't toggle your status": "No pots canviar-te l'estat."
105
102
  "You're updating a %{resource_from}": "Estàs actualitzant un %{resource_from}."
106
103
  "You're updating a %{resource_from} for %{resource_to}": "Estàs actualitzant un %{resource_from} de %{resource_to}."
107
104
 
105
+ "View all %{attribute}":
108
106
  "View site": "Veure la web"
109
107
 
110
108
  "%{attachment} can't be removed": "%{attachment} no es pot esborrar."
@@ -14,8 +14,6 @@ de:
14
14
  "Are you sure you want to sign out and end your session?": "Wollen Sie sich abmelden und die Sitzung beenden?"
15
15
  "As you're not the admin or the owner of this record you cannot edit it": "Nur der Administrator oder der Eigent7uuml;er des Datensates kann ihn bearbeiten"
16
16
 
17
- "Back to list": "Zur&uuml;ck zur Liste"
18
-
19
17
  "Cancel and go back":
20
18
  "Change password": "Passwort &auml;ndern"
21
19
  "Change %{attribute}?": "%{attribute}&auml;ndern?"
@@ -26,7 +24,6 @@ de:
26
24
 
27
25
  "Dashboard": "Dashboard"
28
26
  "Do you want to cancel it?": "Wollen Sie abbrechen?"
29
- "Documentation": "Dokumentation"
30
27
  "Down": "Runter"
31
28
 
32
29
  "Edit": "Bearbeiten"
@@ -48,7 +45,7 @@ de:
48
45
  "Last few days": "Letzten Tage"
49
46
  "Last 30 days": "Letzten 30 Tage"
50
47
  "Last 7 days": "Letzten 7 Tage"
51
- "License": "Lizenz"
48
+ "List":
52
49
  "Logged as": "Aufgezeichnet als"
53
50
  "Login": "Anmeldem"
54
51
 
@@ -94,6 +91,7 @@ de:
94
91
  "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Verkn&uuml;pfung zwischen %{unrelate_model} und %{unrelate_model_from}entfernen?"
95
92
  "Up": "Hoch"
96
93
 
94
+ "View all %{attribute}":
97
95
  "View site": "Site anzeigen"
98
96
 
99
97
  "You're adding a new %{resource_from}": "Sie erstellen eine neue %{resource_from}"
@@ -14,8 +14,6 @@ es:
14
14
  "Are you sure you want to sign out and end your session?": "¿Estás seguro que quieres salir y cerrar la sessión?"
15
15
  "As you're not the admin or the owner of this record you cannot edit it": "Como no eres el admin o el propietario de este registro no puedes editarlo."
16
16
 
17
- "Back to list": "Volver al listado"
18
-
19
17
  "Cancel and go back":
20
18
  "Change password": "Cambiar contraseña"
21
19
  "Change %{attribute}?": "Cambiar %{attribute}?"
@@ -26,7 +24,6 @@ es:
26
24
 
27
25
  "Dashboard": "Panel de control"
28
26
  "Do you want to cancel it?": "¿Quieres cancelarlo?"
29
- "Documentation": "Documentación"
30
27
  "Down": "Bajar"
31
28
 
32
29
  "Edit": "Editar"
@@ -48,7 +45,7 @@ es:
48
45
  "Last few days": "Últimos dias"
49
46
  "Last 30 days": "Últimos 30 dias"
50
47
  "Last 7 days": "Últimos 7 dias"
51
- "License": "Licencia"
48
+ "List": "Lista"
52
49
  "Logged as": "Autenticado como"
53
50
  "Login": "Login"
54
51
 
@@ -105,6 +102,7 @@ es:
105
102
  "You're updating a %{resource_from}": "Estás actualizando un %{resource_from}."
106
103
  "You're updating a %{resource_from} for %{resource_to}": "Estás actualizando un %{resource_from} de %{resource_to}."
107
104
 
105
+ "View all %{attribute}":
108
106
  "View site": "Ver web"
109
107
 
110
108
  "%{attachment} can't be removed": "%{attachment} no puede ser borrado."
@@ -1,32 +1,30 @@
1
1
  # French translations for Typus
2
2
  # by Ned Baldessin <http://github.com/nedbaldessin>
3
+ # and Jonathan Meiss <http://github.com/jmeiss>
3
4
 
4
5
  fr:
5
6
 
6
7
  "A valid token is required": "Un token valide est nécessaire"
7
- "Actions":
8
- "Active":
8
+ "Actions": "Actions"
9
+ "Active": "Actif"
9
10
  "Add": "Ajouter"
10
11
  "Add %{resource}": "Ajouter %{resource}"
11
12
  "Add new": "Ajouter nouveau"
12
- "Are you sure?":
13
- "Are you sure you want to leave this page?": "Êtes-vous certain de vouloir quitter cette page?"
14
- "Are you sure you want to sign out and end your session?":
15
- "As you're not the admin or the owner of this record you cannot edit it": "Vous n'êtes pas le propriétaire de cette entrée, ou un administrateur, par conséquent vous ne pouvez pas le modifier"
13
+ "Are you sure?": "Êtes-vous sûre ?"
14
+ "Are you sure you want to leave this page?": "Êtes-vous sûre de vouloir quitter cette page ?"
15
+ "Are you sure you want to sign out and end your session?": "Etes-vous sûre de vouloir vous déconnecter et mettre fin à votre session ?"
16
+ "As you're not the admin or the owner of this record you cannot edit it": "Vous n'êtes pas le propriétaire de cette entrée, ou un administrateur, par conséquent vous ne pouvez pas la modifier"
16
17
 
17
- "Back to list": "Retour liste"
18
-
19
- "Cancel and go back":
18
+ "Cancel and go back": "Annuler et retourner en arrière"
20
19
  "Change password": "Modifier le mot de passe"
21
- "Change %{attribute}?": "Changer %{attribute}?"
20
+ "Change %{attribute}?": "Changer %{attribute} ?"
22
21
  "Checked if active": "Coché si actif"
23
22
  "Click OK to continue, or click Cancel to stay on this page": "Cliquez sur Ok pour continuer, ou Annuler pour rester sur cette page."
24
23
  "Create %{resource}": "Créer %{resource}"
25
- "Create one now":
24
+ "Create one now": "Ajouter une entrée"
26
25
 
27
26
  "Dashboard": "Tableau de bord"
28
- "Do you want to cancel it?": "Voulez-vous annuler?"
29
- "Documentation":
27
+ "Do you want to cancel it?": "Voulez-vous annuler ?"
30
28
  "Down": "Descendre"
31
29
 
32
30
  "Edit": "Éditer"
@@ -34,7 +32,7 @@ fr:
34
32
  "Enter your email below to create the first user": "Entrez votre adresse email pour créer le premier utilisateur"
35
33
  "Error! Typus User or role doesn't exist": "Une erreur est survenue. L'utilisateur ou le rôle sont inconnus."
36
34
 
37
- "False":
35
+ "False": "Faux"
38
36
  "Filter": "Filtrer"
39
37
  "Filter by %{attribute}": "Filtrer par %{attribute}"
40
38
 
@@ -43,12 +41,12 @@ fr:
43
41
  "I remember my password": "Je me souviens du mot de passe"
44
42
  "If you didn't request a password update, you can ignore this message": "Si vous n'avez pas demandé à mettre à jour votre mot de passe, vous pouvez ignorer ce message"
45
43
  "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Si vous avez effectué des modifications sans cliquer sur le bouton Enregistrer ou Mettre à jour, ces modifications seront perdues."
46
- "Inactive":
44
+ "Inactive": "Inactif"
47
45
 
48
- "Last few days":
49
- "Last 30 days":
50
- "Last 7 days":
51
- "License":
46
+ "Last few days": "Ces derniers jours"
47
+ "Last 30 days": "30 derniers jours"
48
+ "Last 7 days": "7 derniers jours"
49
+ "List": "Liste"
52
50
  "Logged as": "Identifié comme"
53
51
  "Login": "Identification"
54
52
 
@@ -57,43 +55,44 @@ fr:
57
55
 
58
56
  "Options": "Options"
59
57
 
60
- "Password recovery link sent to your email":
58
+ "Password recovery link sent to your email": "Le lien pour retrouver votre mot de passe vous a été envoyé par email"
61
59
  "Previous": "Précédent"
62
60
 
63
61
  "Record moved %{to}": "Entrées réordonnées"
64
- "Recover password":
62
+ "Recover password": "Retrouver mon mot de passe"
65
63
  "Remove": "Supprimer"
66
64
  "Remove %{attribute}": "Supprimer %{attribute}"
67
- "Remove %{resource}?": "Supprimer %{resource}?"
65
+ "Remove %{resource}?": "Supprimer %{resource} ?"
68
66
  "Remove filter": "Supprimer le filtre"
69
- "Remove search":
67
+ "Remove search": "Supprimer la recherche"
70
68
  "Reset password": "Renouveler le mot de passe"
71
69
  "Resources": "Ressources"
72
70
 
73
- "Save %{resource}":
71
+ "Save %{resource}": "Sauvegarder %{resource}"
74
72
  "Search": "Recherche"
75
73
  "Search by": "Rechercher par"
76
- "Send us feedback":
74
+ "Send us feedback": "Nous envoyer votre avis"
77
75
  "Setup": "Configurer"
78
76
  "Show": "Voir"
79
- "Show %{resource}":
77
+ "Show %{resource}": "Voir %{resource}"
80
78
  "Sign in": "Entrer"
81
79
  "Sign out": "Déconnexion"
82
80
  "Sign up": "Ouvrir un compte"
83
- "Submit a bug report":
81
+ "Submit a bug report": "Soumettre un bug"
84
82
  "System Users Administration": "Modifier les utilisateurs de l'admin"
85
83
 
86
84
  "That doesn't seem like a valid email address": "L'adresse email ne semble pas valide"
87
- "The email and/or password you entered is invalid":
85
+ "The email and/or password you entered is invalid": "L'email ou le mot de passe que vous avez saisi n'est pas valide"
88
86
  "There are no %{records}": "Il n'y aucun(e) %{records}."
89
87
  "There are no %{records} under this filter": "Il n'y a aucun(e) %{records} avec ce filtre."
90
- "Today":
88
+ "Today": "Ajourd'hui"
91
89
  "Toggle is disabled": "Le basculement est désactivé"
92
- "True":
90
+ "True": "Vrai"
93
91
 
94
- "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Dissocier %{unrelate_model} de %{unrelate_model_from}?"
92
+ "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Dissocier %{unrelate_model} de %{unrelate_model_from} ?"
95
93
  "Up": "Monter"
96
94
 
95
+ "View all %{attribute}": "Voir tou(s/tes) %{attribute}"
97
96
  "View site": "Voir le site"
98
97
 
99
98
  "You can update your password at": "Vous pouvez modifier votre mot de passe ici"
@@ -107,18 +106,20 @@ fr:
107
106
  "You're updating a %{resource_from}": "Vous mettez-à-jour un(e) %{resource_from}."
108
107
  "You're updating a %{resource_from} for %{resource_to}": "Vous mettez-à-jour un(e) %{resource_from} pour un(e) %{resource_to}."
109
108
 
110
- "%{attachment} removed":
111
- "%{attachment} can't be removed":
109
+ "%{attachment} can't be removed": "%{attachment} ne peut pas être supprimé"
110
+ "%{attachment} removed": "%{attachment} supprimé"
111
+ "%{current_user_role} can't delete this item": "%{current_user_role} ne peut supprimer cette entrée"
112
+ "%{current_user_role} can't display items": "Un utilisateur de rôle %{current_user_role} ne peut pas afficher ces éléments."
113
+ "%{current_user_role} can't perform action (%{action})": "%{current_user_role} ne peut effectuer l'action (%{action})"
114
+ "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} ne peut effectuer l'action. (%{action})"
112
115
  "%{model} successfully created": "%{model} correctement créé(e)."
113
116
  "%{model} successfully removed": "%{model} correctement supprimé(e)."
114
117
  "%{model} successfully updated": "%{model} correctement mis(e)-à-jour."
115
118
  "%{model} %{attribute} changed": "%{model} %{attribute} modifié."
119
+ "%{model_a} cannot be related to %{model_b}": "%{model_a} ne peut pas être lié à %{model_b}"
120
+ "%{model_a} cannot be unrelated from %{model_b}": "%{model_a} ne peut pas être disjoint de %{model_b}"
116
121
  "%{model_a} related to %{model_b}": "%{model_a} associé à %{model_b}."
117
122
  "%{model_a} successfully assigned to %{model_b}": "%{model_a} associé à %{model_b}."
118
123
  "%{model_a} unrelated from %{model_b}": "%{model_a} dissocié de %{model_b}."
119
- "%{current_user_role} can't display items": "Un utilisateur de rôle %{current_user_role} ne peut pas afficher ces éléments."
120
- "%{model_a} cannot be related to %{model_b}":
121
- "%{model_a} cannot be unrelated from %{model_b}":
122
- "%{current_user_role} can't delete this item": "%{current_user_role} ne peut supprimer cette entrée"
123
- "%{current_user_role} can't perform action. (%{action})": "%{current_user_role} ne peut effectuer l'action (%{action})"
124
- "%{current_user_role} can't perform action (%{action})": "%{current_user_role} ne peut effectuer l'action (%{action})"
124
+
125
+
@@ -4,10 +4,10 @@ fr:
4
4
  typus_user: "Utilisateur admin"
5
5
  attributes:
6
6
  typus_user:
7
- email:
7
+ email: "Email"
8
8
  first_name: "Prénom"
9
9
  last_name: "Nom de famille"
10
10
  password: "Mot de passe"
11
11
  password_confirmation: "Confirmation du mot de passe"
12
12
  status: "État"
13
- role:
13
+ role: "Rôle"
@@ -14,8 +14,6 @@ hu:
14
14
  "Are you sure you want to sign out and end your session?": "Biztosan ki akarsz lépni?"
15
15
  "As you're not the admin or the owner of this record you cannot edit it": "Ezt a bejegyzést csak a tuljadonosa és az adminok szerkeszthetik."
16
16
 
17
- "Back to list": "Vissza a listához"
18
-
19
17
  "Cancel and go back":
20
18
  "Change %{attribute}?": "Megváltoztatod ezt: %{attribute}?"
21
19
  "Change password": "Jelszó megváltoztatása"
@@ -26,7 +24,6 @@ hu:
26
24
 
27
25
  "Dashboard": "Admin nyitólap"
28
26
  "Do you want to cancel it?": "Szeretnéd visszavonni?"
29
- "Documentation": "Dokumentáció"
30
27
  "Down": "Le"
31
28
 
32
29
  "Edit": "Szerkesztés"
@@ -48,8 +45,8 @@ hu:
48
45
  "Last few days": "Utóbbi néhány nap"
49
46
  "Last 30 days": "Az elmúlt 30 nap"
50
47
  "Last 7 days": "Az elmúlt 7 nap"
51
- "License": "Licensz"
52
- "Logged as": "Bejelentkezve "
48
+ "List":
49
+ "Logged as": "Bejelentkezve"
53
50
  "Login": "Belépés"
54
51
 
55
52
  "New": "Új"
@@ -94,6 +91,7 @@ hu:
94
91
  "Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Unrelate %{unrelate_model} from %{unrelate_model_from}?"
95
92
  "Up": "Fel"
96
93
 
94
+ "View all %{attribute}":
97
95
  "View site": "A weboldal megtekintése"
98
96
 
99
97
  "You're adding a new %{resource_from}": "%{resource_from} hozzáadása"