refinerycms 0.9.8 → 0.9.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. data/Gemfile +6 -6
  2. data/app/controllers/application_controller.rb +2 -1
  3. data/bin/refinerycms +36 -32
  4. data/changelog.md +471 -0
  5. data/config/environments/production.rb +1 -1
  6. data/db/migrate/20100606135207_change_thumbnail_sizes_for_dragonfly.rb +4 -4
  7. data/db/migrate/20100826232810_move_inquiry_settings_to_refinery_settings.rb +2 -2
  8. data/db/migrate/20100831122919_move_page_to_nested_set.rb +28 -0
  9. data/db/schema.rb +7 -1
  10. data/db/seeds/refinery_settings.rb +2 -4
  11. data/license.md +21 -0
  12. data/readme.md +97 -0
  13. data/todo.md +61 -0
  14. data/vendor/refinerycms/authentication/app/views/admin/users/index.html.erb +5 -13
  15. data/vendor/refinerycms/authentication/app/views/layouts/login.html.erb +1 -1
  16. data/vendor/refinerycms/authentication/config/locales/de.yml +53 -56
  17. data/vendor/refinerycms/authentication/config/locales/en.yml +1 -2
  18. data/vendor/refinerycms/authentication/config/locales/lv.yml +38 -38
  19. data/vendor/refinerycms/authentication/config/locales/pt-BR.yml +21 -48
  20. data/vendor/refinerycms/authentication/features/lost_password.feature +40 -0
  21. data/vendor/refinerycms/authentication/features/manage_users.feature +57 -0
  22. data/vendor/refinerycms/authentication/features/step_definitions/lost_password.rb +8 -0
  23. data/vendor/refinerycms/authentication/features/step_definitions/user_steps.rb +32 -0
  24. data/vendor/refinerycms/authentication/features/support/factories.rb +17 -0
  25. data/vendor/refinerycms/authentication/features/support/paths.rb +24 -0
  26. data/vendor/refinerycms/authentication/lib/authenticated_system.rb +1 -1
  27. data/vendor/refinerycms/authentication/lib/authentication.rb +1 -1
  28. data/vendor/refinerycms/core/app/views/admin/_head.html.erb +4 -4
  29. data/vendor/refinerycms/core/app/views/admin/_menu_tab.html.erb +2 -2
  30. data/vendor/refinerycms/core/app/views/layouts/admin.html.erb +1 -1
  31. data/vendor/refinerycms/core/app/views/layouts/admin_dialog.html.erb +1 -1
  32. data/vendor/refinerycms/core/app/views/shared/_footer.html.erb +1 -1
  33. data/vendor/refinerycms/core/app/views/shared/_google_analytics.html.erb +1 -1
  34. data/vendor/refinerycms/core/app/views/shared/_header.html.erb +1 -1
  35. data/vendor/refinerycms/core/app/views/shared/_menu.html.erb +5 -2
  36. data/vendor/refinerycms/core/app/views/shared/_menu_branch.html.erb +6 -3
  37. data/vendor/refinerycms/core/app/views/shared/_site_bar.html.erb +11 -15
  38. data/vendor/refinerycms/core/app/views/shared/admin/_form_actions.html.erb +1 -0
  39. data/vendor/refinerycms/core/app/views/shared/admin/_image_picker.html.erb +3 -3
  40. data/vendor/refinerycms/core/app/views/shared/admin/_make_sortable.html.erb +2 -1
  41. data/vendor/refinerycms/core/app/views/shared/admin/_resource_picker.html.erb +24 -17
  42. data/vendor/refinerycms/core/app/views/wymiframe.html.erb +1 -1
  43. data/vendor/refinerycms/core/config/locales/de.yml +50 -51
  44. data/vendor/refinerycms/core/config/locales/en.yml +5 -2
  45. data/vendor/refinerycms/core/config/locales/lv.yml +6 -3
  46. data/vendor/refinerycms/core/config/locales/pt-BR.yml +34 -38
  47. data/vendor/refinerycms/core/crud.md +12 -12
  48. data/vendor/refinerycms/core/features/engine_generator.feature +27 -0
  49. data/vendor/refinerycms/core/features/search.feature +56 -0
  50. data/vendor/refinerycms/core/features/site_bar.feature +24 -0
  51. data/vendor/refinerycms/core/features/step_definitions/core_steps.rb +61 -0
  52. data/vendor/refinerycms/core/features/step_definitions/engine_generator_steps.rb +19 -0
  53. data/vendor/refinerycms/core/features/step_definitions/generator_steps.rb +11 -0
  54. data/vendor/refinerycms/core/features/support/paths.rb +14 -0
  55. data/vendor/refinerycms/core/features/uploads/beach.jpeg +0 -0
  56. data/vendor/refinerycms/core/features/uploads/refinery_is_awesome.txt +1 -0
  57. data/vendor/refinerycms/core/lib/core.rb +52 -53
  58. data/vendor/refinerycms/core/lib/generators/refinery_engine/refinery_engine_generator.rb +14 -3
  59. data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/controllers/admin/plural_name_controller.rb +3 -1
  60. data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/models/singular_name.rb +4 -3
  61. data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/admin/plural_name/_form.html.erb +2 -1
  62. data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/admin/plural_name/_singular_name.html.erb +6 -2
  63. data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/plural_name/index.html.erb +3 -1
  64. data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/plural_name/show.html.erb +7 -3
  65. data/vendor/refinerycms/core/lib/refinery/application_controller.rb +85 -75
  66. data/vendor/refinerycms/core/lib/refinery/application_helper.rb +10 -190
  67. data/vendor/refinerycms/core/lib/refinery/crud.rb +283 -0
  68. data/vendor/refinerycms/core/lib/refinery/{form_helpers.rb → helpers/form_helper.rb} +0 -0
  69. data/vendor/refinerycms/core/lib/refinery/helpers/html_truncation_helper.rb +26 -0
  70. data/vendor/refinerycms/core/lib/refinery/helpers/image_helper.rb +37 -0
  71. data/vendor/refinerycms/core/lib/refinery/helpers/menu_helper.rb +38 -0
  72. data/vendor/refinerycms/core/lib/refinery/helpers/meta_helper.rb +67 -0
  73. data/vendor/refinerycms/core/lib/refinery/helpers/script_helper.rb +36 -0
  74. data/vendor/refinerycms/core/lib/refinery/helpers/site_bar_helper.rb +26 -0
  75. data/vendor/refinerycms/core/lib/refinery/helpers/tag_helper.rb +19 -0
  76. data/vendor/refinerycms/core/lib/refinery/helpers/translation_helper.rb +17 -0
  77. data/vendor/refinerycms/core/lib/refinery/plugin.rb +3 -3
  78. data/vendor/refinerycms/core/lib/tasks/refinery.rake +4 -3
  79. data/vendor/refinerycms/core/public/javascripts/refinery/admin.js +93 -101
  80. data/vendor/refinerycms/core/public/javascripts/refinery/core.js +3 -0
  81. data/vendor/refinerycms/core/public/javascripts/refinery/nestedsortables.js +164 -0
  82. data/vendor/refinerycms/core/public/javascripts/refinery/serializelist.js +66 -0
  83. data/vendor/refinerycms/core/public/stylesheets/refinery/refinery.css +11 -73
  84. data/vendor/refinerycms/dashboard/config/locales/de.yml +6 -6
  85. data/vendor/refinerycms/dashboard/config/locales/pt-BR.yml +3 -5
  86. data/vendor/refinerycms/dashboard/features/dashboard.feature +54 -0
  87. data/vendor/refinerycms/dashboard/features/support/paths.rb +14 -0
  88. data/vendor/refinerycms/images/app/controllers/admin/images_controller.rb +6 -6
  89. data/vendor/refinerycms/images/app/helpers/admin/images_helper.rb +1 -1
  90. data/vendor/refinerycms/images/app/views/admin/images/_existing_image.html.erb +15 -13
  91. data/vendor/refinerycms/images/app/views/admin/images/_grid_view.html.erb +1 -1
  92. data/vendor/refinerycms/images/app/views/admin/images/_list_view_image.html.erb +1 -1
  93. data/vendor/refinerycms/images/config/locales/de.yml +21 -25
  94. data/vendor/refinerycms/images/config/locales/pt-BR.yml +13 -23
  95. data/vendor/refinerycms/images/features/manage_images.feature +48 -0
  96. data/vendor/refinerycms/images/features/step_definitions/image_steps.rb +37 -0
  97. data/vendor/refinerycms/images/features/support/paths.rb +17 -0
  98. data/vendor/refinerycms/images/features/uploads/beach.jpeg +0 -0
  99. data/vendor/refinerycms/images/features/uploads/id-rather-be-here.jpg +0 -0
  100. data/vendor/refinerycms/images/features/uploads/refinery_is_awesome.txt +1 -0
  101. data/vendor/refinerycms/images/lib/images.rb +6 -0
  102. data/vendor/refinerycms/images/readme.md +12 -36
  103. data/vendor/refinerycms/pages/app/controllers/admin/pages_controller.rb +4 -42
  104. data/vendor/refinerycms/pages/app/controllers/pages_controller.rb +1 -1
  105. data/vendor/refinerycms/pages/app/models/page.rb +3 -4
  106. data/vendor/refinerycms/pages/app/sweepers/page_sweeper.rb +18 -0
  107. data/vendor/refinerycms/pages/app/views/admin/pages/_form_advanced_options.html.erb +1 -1
  108. data/vendor/refinerycms/pages/app/views/admin/pages/_page.html.erb +6 -5
  109. data/vendor/refinerycms/pages/config/locales/de.yml +66 -36
  110. data/vendor/refinerycms/pages/config/locales/pt-BR.yml +29 -57
  111. data/vendor/refinerycms/pages/features/manage_pages.feature +45 -0
  112. data/vendor/refinerycms/pages/features/step_definitions/page_steps.rb +29 -0
  113. data/vendor/refinerycms/pages/features/support/paths.rb +18 -0
  114. data/vendor/refinerycms/pages/lib/pages.rb +5 -0
  115. data/vendor/refinerycms/pages/spec/models/page_spec.rb +13 -0
  116. data/vendor/refinerycms/refinery.rb +1 -1
  117. data/vendor/refinerycms/resources/app/views/admin/resources/_existing_resource.html.erb +2 -2
  118. data/vendor/refinerycms/resources/config/locales/de.yml +16 -17
  119. data/vendor/refinerycms/resources/config/locales/pt-BR.yml +15 -17
  120. data/vendor/refinerycms/resources/features/manage_files.feature +39 -0
  121. data/vendor/refinerycms/resources/features/step_definitions/file_steps.rb +21 -0
  122. data/vendor/refinerycms/resources/features/support/paths.rb +17 -0
  123. data/vendor/refinerycms/resources/features/uploads/beach.jpeg +0 -0
  124. data/vendor/refinerycms/resources/features/uploads/refinery_is_awesome.txt +1 -0
  125. data/vendor/refinerycms/resources/lib/resources.rb +17 -1
  126. data/vendor/refinerycms/settings/app/models/refinery_setting.rb +82 -64
  127. data/vendor/refinerycms/settings/config/locales/de.yml +36 -16
  128. data/vendor/refinerycms/settings/config/locales/pt-BR.yml +32 -34
  129. data/vendor/refinerycms/settings/features/manage_refinery_settings.feature +5 -0
  130. data/vendor/refinerycms/settings/lib/settings.rb +1 -1
  131. metadata +86 -53
  132. data/vendor/refinerycms/core/lib/crud.rb +0 -265
  133. data/vendor/refinerycms/core/lib/refinery/html_truncation_helper.rb +0 -22
  134. data/vendor/refinerycms/core/public/javascripts/jquery/jquery.nestedsortables.js +0 -186
@@ -1,4 +1,4 @@
1
1
  <li class='tab' id='plugin_<%= menu_tab.name %>' name='plugin[<%= menu_tab.name %>]'>
2
- <%= link_to t('plugins.' + menu_tab.name + '.title', :default => menu_tab.title), menu_tab.url,
3
- :class => (menu_tab.highlighted?(params) ? "active" : nil) -%>
2
+ <%= link_to t("plugins.#{menu_tab.name}.title", :default => menu_tab.title), menu_tab.url,
3
+ :class => ("active" if menu_tab.highlighted?(params)) -%>
4
4
  </li>
@@ -1,6 +1,6 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <%= render :partial => "/admin/head" %>
3
+ <%= render :partial => "/admin/head", :locals => {:login => false} %>
4
4
  <body class='<%= action_name %>'>
5
5
  <%= render :partial => '/shared/site_bar' %>
6
6
  <div id='tooltip_container'></div>
@@ -1,6 +1,6 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <%= render :partial => "/admin/head" %>
3
+ <%= render :partial => "/admin/head", :locals => {:login => false} %>
4
4
  <body id='dialog_container' class='dialog'>
5
5
  <div id='tooltip_container'></div>
6
6
  <div id="flash_container">
@@ -1,5 +1,5 @@
1
1
  <div id='footer_content'>
2
2
  <p>
3
- <%= t('.copyright').html_safe -%> <%= Time.now.year -%> <%= RefinerySetting[:site_name] %>
3
+ <%= t('.copyright').html_safe -%> <%= Time.now.year -%> <%= RefinerySetting.get(:site_name) %>
4
4
  </p>
5
5
  </div>
@@ -1,5 +1,5 @@
1
1
  <% unless refinery_user? or
2
- (page_code = RefinerySetting[:analytics_page_code].to_s.strip) =~ /^(UA-xxxxxx-x)?$/ -%>
2
+ (page_code = RefinerySetting.get(:analytics_page_code).to_s.strip) =~ /^(UA-xxxxxx-x)?$/ -%>
3
3
  <script type="text/javascript">
4
4
  var _gaq = _gaq || [];
5
5
  _gaq.push(['_setAccount', '<%= page_code %>']);
@@ -1,5 +1,5 @@
1
1
  <div id='header_content'>
2
- <h1><%= link_to RefinerySetting[:site_name], root_url(:only_path => true) %></h1>
2
+ <h1><%= link_to RefinerySetting.get(:site_name), root_url(:only_path => true) %></h1>
3
3
  <%= render :partial => "/shared/menu",
4
4
  :locals => {
5
5
  :dom_id => 'menu',
@@ -1,19 +1,22 @@
1
1
  <%
2
2
  dom_id ||= 'menu'
3
3
  css ||= 'menu'
4
+ hide_children = RefinerySetting.find_or_set(:menu_hide_children, false) unless defined?(hide_children)
4
5
  cache_key = [Refinery.base_cache_key]
5
6
  cache_key << RefinerySetting.find_or_set(:refinery_menu_cache_action_suffix, "site_menu")
6
7
  cache_key << request.path
7
8
  cache(cache_key.join('_')) do
8
9
  if (collection ||= @menu_pages).any?
10
+ sibling_count = collection.size - 1
9
11
  -%>
10
12
  <nav id='<%= dom_id %>' class='<%= %W(#{css} clearfix).join(' ') %>'>
11
13
  <ul>
12
14
  <%= render :partial => "/shared/menu_branch",
13
15
  :collection => collection,
14
16
  :locals => {
15
- :hide_children => hide_children ||= RefinerySetting.find_or_set(:menu_hide_children, false),
16
- :sibling_count => collection.size - 1
17
+ :hide_children => hide_children,
18
+ :sibling_count => sibling_count,
19
+ :apply_css => true #if you don't care about class='first' class='last' or class='selected' set apply_css to false for speed.
17
20
  }
18
21
  -%>
19
22
  </ul>
@@ -1,6 +1,9 @@
1
1
  <%
2
- css = (css = css_for_menu_branch(menu_branch, menu_branch_counter, sibling_count||=nil)).any? ? " class='#{css.join(' ')}'" : nil
3
- dom_id = (menu_branch.parent_id.nil? and menu_branch.title.present?) ? " id='item_#{menu_branch_counter}'" : nil
2
+ css = if ((defined?(apply_css) && apply_css) || !defined?(apply_css)) and
3
+ (classes = css_for_menu_branch(menu_branch, menu_branch_counter, sibling_count||=nil)).any?
4
+ " class='#{classes.join(' ')}'"
5
+ end
6
+ dom_id = (" id='item_#{menu_branch_counter}'" if menu_branch.parent_id.nil? and menu_branch.title.present?)
4
7
  -%>
5
8
  <li<%= css -%><%= dom_id -%>>
6
9
  <%= link_to menu_branch.title, menu_branch.url %>
@@ -12,7 +15,7 @@
12
15
  render :partial => "/shared/menu_branch",
13
16
  :collection => children,
14
17
  :locals => {
15
- :hide_children => hide_children,
18
+ :hide_children => false, # hide children can't be true or we wouldn't get here.
16
19
  :sibling_count => children.size - 1
17
20
  } -%>
18
21
  </ul>
@@ -1,4 +1,4 @@
1
- <% if refinery_user? and !login? %>
1
+ <% if refinery_user? %>
2
2
  <% unless admin? # jquery scripts should already be cached when using the site bar as login has happened. %>
3
3
  <% content_for :site_bar_assets do %>
4
4
  <%= stylesheet_link_tag('refinery/site_bar') unless exclude_css ||= false %>
@@ -11,27 +11,23 @@
11
11
  <% end -%>
12
12
  <div id='site_bar'>
13
13
  <div id='site_bar_content' class='clearfix'>
14
- <% unless login? %>
15
- <div id='editor_switch'>
16
- <%= site_bar_switch_link -%>
17
- </div>
18
- <% end %>
14
+ <div id='editor_switch'>
15
+ <%= site_bar_switch_link -%>
16
+ </div>
19
17
  <%= link_to image_tag("#{"http://refinerycms.com/images/" unless local_request?}refinery/logo-site-bar.png",
20
18
  :alt => "Refinery (tm) Content Manager"),
21
19
  'http://refinerycms.com',
22
20
  :target => '_blank',
23
21
  :id => 'site_bar_refinery_cms_logo' %>
24
22
 
25
- <% unless login? %>
26
- <div id='site_bar_branding'>
27
- <span id='site_bar_company_name'>
28
- <%= RefinerySetting.find_or_set(:site_name, 'Company Name') %>
29
- </span>
23
+ <div id='site_bar_branding'>
24
+ <span id='site_bar_company_name'>
25
+ <%= RefinerySetting.find_or_set(:site_name, 'Company Name') %>
26
+ </span>
30
27
 
31
- <%= link_to t('.log_out'), logout_url(:only_path => true),
32
- :id => 'logout' %>
33
- </div>
34
- <% end %>
28
+ <%= link_to t('.log_out'), logout_url(:only_path => true),
29
+ :id => 'logout' %>
30
+ </div>
35
31
  </div>
36
32
  </div>
37
33
  <% end %>
@@ -59,6 +59,7 @@
59
59
  delete_url,
60
60
  :title => delete_title,
61
61
  :id => delete_button_id,
62
+ :'data-method' => :delete,
62
63
  :'data-confirm' => delete_confirmation,
63
64
  :class => "button confirm-delete") unless hide_delete %>
64
65
 
@@ -1,6 +1,6 @@
1
1
  <%
2
2
  description ||= "image"
3
- thumbnail ||= "medium"
3
+ thumbnail ||= "225x255>"
4
4
  toggle_image_display ||= false
5
5
  randomiser = rand(Time.now.yesterday.to_i * Time.now.to_i)
6
6
  current_image_link_href = insert_admin_images_url(:dialog => true,
@@ -15,7 +15,7 @@
15
15
  <div id='current_image_container_<%= randomiser %>'<%= " style='display: none'" if toggle_image_display %> style="margin-top: 10px;">
16
16
  <a id='current_image_link_<%= randomiser %>' href="<%= current_image_link_href %>" style='border: 0px' title='<%= current_image_title %>' name='<%= current_image_title %>' class='dialog'>
17
17
  <% unless image.nil? -%>
18
- <%= image_fu image, :medium,
18
+ <%= image_fu image, thumbnail,
19
19
  :class => "brown_border",
20
20
  :id => "current_picked_image_#{randomiser}" %>
21
21
  <% else -%>
@@ -37,7 +37,7 @@
37
37
  <% content_for :head do -%>
38
38
  <script type='text/javascript'>
39
39
  var image_picker_<%= randomiser %>_options = {
40
- thumbnail: '<%= thumbnail %>'
40
+ thumbnail: '<%= thumbnail.html_safe %>'
41
41
  , image_toggler: '<%= toggle_image_display ? "#current_image_toggler_#{randomiser}" : "null" %>'
42
42
  , description: '<%= description %>'
43
43
  , field: '#current_image_id_<%= randomiser %>'
@@ -1,4 +1,5 @@
1
- <% content_for :head_after_javascript_libraries, javascript_include_tag('jquery/jquery.nestedsortables.js') if (tree ||= false) %>
1
+ <% content_for :head_after_javascript_libraries, javascript_include_tag('refinery/nestedsortables.js') if (tree ||= false) %>
2
+ <% content_for :head_after_javascript_libraries, javascript_include_tag('refinery/serializelist.js') %>
2
3
  <% content_for :head do %>
3
4
  <script type='text/javascript'>
4
5
  $(document).ready(function(){
@@ -1,31 +1,38 @@
1
- <%# TODO: Move description ||= "resource" to top of file %>
2
- <%= f.hidden_field field %>
3
- <div>
4
- <%# TODO translate %>
5
- <%= link_to "<span id='no_resource_selected' class='nothing_selected' #{"style='display: none;'" if resource.present?}>
6
- There is currently no #{description ||= 'resource'} selected, click here to add one.
7
- </span>", insert_admin_resources_url(:dialog => true,
1
+ <%
2
+ insert_text = "<span id='no_resource_selected' class='nothing_selected' #{"style='display: none;'" if resource.present?}>
3
+ #{t('.no_resource_selected')}
4
+ </span>".html_safe
5
+ insert_link = insert_admin_resources_url({
6
+ :dialog => true,
8
7
  :update_resource => 'current_resource',
9
8
  :update_text => 'current_resource_text',
10
9
  :callback => 'resource_changed',
11
- :field => "#{f.object.class.name.underscore.downcase}_#{field}",
10
+ :field => [f.object.class.name.underscore.downcase, field].join('_'),
12
11
  :current_link => "#{resource.url if resource.present?}",
13
- :height => 480),
14
- :name => "Add #{(description ||= 'resource').titleize}",
15
- :id => "current_resource_link"
12
+ :height => 480
13
+ })
14
+ %>
15
+ <%= f.hidden_field field %>
16
+ <div>
17
+ <%= link_to insert_text, insert_link,
18
+ :name => t('.name'),
19
+ :id => "current_resource_link"
16
20
  %>
17
21
  <div id='current_resource_container' <%= "style='display:none'" unless resource.present? %>>
18
- <span id='current_resource_tag'>Current <%= description ||= "resource" %>:</span>
22
+ <span id='current_resource_tag'><%= t('.current') %>:</span>
19
23
  <span id='current_resource_text'>
20
- <%= "#{resource.title} (#{resource.url})" if resource.present? %>
24
+ <%= "#{resource.title} (#{resource.file_name})" if resource.present? %>
21
25
  </span>
22
26
  <br/>
23
- <%= link_to "#{refinery_icon_tag("page_white_put.png")} #{t('.download_current', :what => t('.' + (description ||= "resource")))} (<em>#{t('.opens_in_new_window')}</em>)", "#{resource.url if resource.present?}",
24
- :id => "current_resource",
25
- :target => "_blank" %>
27
+ <%= link_to "#{refinery_icon_tag("page_white_put.png")}
28
+ #{t('.download_current')}
29
+ (<em>#{t('.opens_in_new_window')}</em>)".html_safe,
30
+ "#{resource.url if resource.present?}",
31
+ :id => "current_resource",
32
+ :target => "_blank" %>
26
33
  </div>
27
34
  <br/>
28
- <%= link_to t('.remove_current', :what => t('.'+ (description ||= "resource"))), "",
35
+ <%= link_to t('.remove_current'), "",
29
36
  :id => "remove_resource",
30
37
  :style => "#{"display:none;" unless resource.present?}" %>
31
38
  </div>
@@ -9,7 +9,7 @@
9
9
  <% end %>
10
10
  <title>WYMeditor</title>
11
11
  <%= stylesheet_link_tag "wymeditor/skins/refinery/wymiframe", :media => "all" %>
12
- <%= stylesheet_link_tag "formatting", :theme => RefinerySetting[:theme].present?, :media => "all" %>
12
+ <%= stylesheet_link_tag "formatting", :theme => RefinerySetting.get(:theme).present?, :media => "all" %>
13
13
  <%= stylesheet_link_tag "theme", :media => "all" %>
14
14
  </head>
15
15
  <body class="wym_iframe<%= " #{params[:id]}" if params[:id].present? %>">
@@ -1,68 +1,67 @@
1
1
  de:
2
+ plugins:
3
+ refinery_core:
4
+ title: Refinery
5
+ description: Core Refinery Erweiterung
6
+ refinery_dialogs:
7
+ title: Dialoge
8
+ description: Refinery Dialog Erweiterung
2
9
  welcome:
3
- there_are_no_users: "Es gibt noch keine Benutzer, also richten wir erstmal einen ein."
4
- remember_admin_location: "Den Refinery Admin Bereich finden Sie unter:"
5
- lets_start: "Alles klar, lassen Sie uns Ihre Daten erfassen, damit Sie sich einloggen können..."
6
- continue: "Weiter..."
10
+ there_are_no_users: Es sind noch keine Benutzer vorhanden, darum lassen wir uns Ihren zuerst anlegen.
11
+ remember_admin_location: "Merken Sie sich Ihren Refinery Administrationsbereich:"
12
+ lets_start: Alles klar, lassen wir uns Ihren Benutzer anlegen, damit Sie sich anmelden können...
13
+ continue: Weiter...
7
14
  admin:
8
15
  menu:
9
- reorder_menu: Menü neu anordnen
10
- reorder_menu_done: "Menü Anordnung speichern"
11
- search: Suche
12
- search_submit: Los
13
- search_results_for: "Suchergebnisse für '%{query}'"
14
- search_no_results: "Leider gibt es keine Ergebnisse."
16
+ reorder_menu: Menü umsortieren
17
+ reorder_menu_done: Ich bin mit dem Umsortieren fertig
18
+ dialogs:
19
+ show:
20
+ save: Speichern
21
+ cancel: Abbrechen
15
22
  refinery:
16
- other: "Weitere %{what}"
17
- reorder: "Umordnen %{what}"
18
- reorder_done: "Geschehen umordnen %{what}"
19
23
  crudify:
20
- created: "%{what} wurde erfolgreich erstellt."
21
- updated: "%{what} wurde erfolgreich aktualisiert."
22
- destroyed: "%{what} wurde erfolgreich gelöscht."
23
- layouts:
24
- admin:
25
- view_public_site: Profil öffentlichen Website
26
- welcome_to_refinery: Willkommen bei Refinery
24
+ created: %{what} wurde erfolgreich angelegt.
25
+ updated: %{what} wurde erfolgreich aktualisiert.
26
+ destroyed: %{what} wurde erfolgreich gelöscht.
27
27
  shared:
28
28
  site_bar:
29
- log_out: Ausloggen
29
+ log_out: Abmelden
30
+ switch_to_your_website: Zu Ihrer Webseite wechseln
31
+ switch_to_your_website_editor: Zum Editor Ihrer Webseite wechseln
30
32
  admin:
31
- message:
32
- close: Schließen
33
33
  continue_editing:
34
- save_and_continue_editing: "Speichern & Bearbeitung fortsetzen"
34
+ save_and_continue_editing: Speichern & Bearbeiten fortsetzen
35
35
  form_actions:
36
- or: oder
37
36
  save: Speichern
38
- or_cancel: oder
39
37
  cancel: Abbrechen
40
- or_continue: oder
41
- cancel_lose_changes: "Abbrechen verlieren alle Änderungen, die Sie auf diese %{object_name} gemacht haben"
42
- delete: 'Löschen'
38
+ cancel_lose_changes: Durch Abbrechen gehen all ihre gemachten Änderungen verloren
39
+ delete: Löschen
40
+ previous: Vorherige
41
+ next: Nächste
42
+ close: Schließen
43
43
  image_picker:
44
- none_selected: "Es ist derzeit kein %{what} ausgewählt ist, klicken Sie bitte hier eine Annonce aufgeben"
45
- remove_current: "Entfernen aktuel %{what}"
46
- change: "Klicken Sie hier, um ein Bild auszuwählen"
47
- image: bild
44
+ none_selected: Es ist momentan kein %{what} ausgewählt, bitte klicken Sie hier, um eins hinzuzufügen.
45
+ remove_current: Entferne aktuelles %{what}
46
+ change: Klicken Sie hier, um ein Bild auszuwählen
47
+ show: anzeigen
48
48
  resource_picker:
49
- none_selected: "Derzeit gibt es keine %{what} ausgewählt, klicken Sie bitte hier eine Annonce aufgeben"
50
- current: "Aktuelle %{what}"
51
- download_current: "Download der aktuellen %{what}"
52
- opens_in_new_window: Öffnet in einem neuen Browserfenster
53
- remove_current: "Entfernen Sie aktuelle %{what}"
54
- resource: Datei
49
+ download_current: Aktuelles %{what} herunterladen
50
+ opens_in_new_window: Öffnet in einem neuen Fenster
51
+ remove_current: "Entferne aktuelles %{what}"
52
+ search:
53
+ button_text: Suchen
54
+ results_for: Suchergebnisse für '%{query}'
55
+ no_results: Tut mir leid, Suche brachte keine Ergebnisse
56
+ delete:
57
+ message: Sind Sie sicher, dass Sie '%{title}' löschen möchten?
58
+ error_messages:
59
+ problems_in_following_fields: Es gab Probleme mit den folgenden Feldern
60
+ help: Hilfe
55
61
  message:
56
62
  close: Schließen
57
- site_bar:
58
- switch_to_your_website: Wechseln Sie zu Ihrer Website
59
- switch_to_your_website_editor: Wechseln Sie zu Ihrem Website-Editor
60
- activerecord:
61
- models:
62
- page: seite
63
- user: benutzer
64
- image: bild
65
- inquiry: anfrage
66
- resource: datei
67
- refinery_setting: refinery einstellung
68
- inquiry_setting: anfrage einstellung
63
+ close_this_message: Diese Meldung schließen
64
+ draft_page_message:
65
+ not_live: Diese Seite ist NICHT öffentlich sichtbar.
66
+ footer:
67
+ copyright: Copyright &copy;
@@ -46,9 +46,12 @@ en:
46
46
  change: Click here to pick a image
47
47
  show: Show
48
48
  resource_picker:
49
- download_current: Download current %{what}
49
+ download_current: Download current file
50
50
  opens_in_new_window: Opens in a new window
51
- remove_current: "Remove current %{what}"
51
+ remove_current: "Remove current file"
52
+ no_resource_selected: There is currently no file selected, click here to add one.
53
+ name: Add File
54
+ current: Current File
52
55
  search:
53
56
  button_text: Search
54
57
  results_for: Search results for '%{query}'
@@ -1,6 +1,6 @@
1
1
  lv:
2
2
  welcome:
3
- there_are_no_users: Vēl nav neviena lietotāja, līdz ar to mēs Jums izveidosim pirmo.
3
+ there_are_no_users: Vēl nav neviena lietotāja, līdz ar to mēs Jums palīdzēsim izveidot pirmo.
4
4
  remember_admin_location: "Atcerieties, Jūsu Refinery administrācijas panelis atrodas šeit:"
5
5
  lets_start: Tātad turpināsim, lai Jūs varētu pieslēgties...
6
6
  continue: Turpināt...
@@ -39,9 +39,12 @@ lv:
39
39
  change: Spied šeit, lai izvēlētos bildi
40
40
  show: Rādīt
41
41
  resource_picker:
42
- download_current: Lejuplādēt pašreizējo %{what}
42
+ download_current: Lejuplādēt pašreizējo failu
43
43
  opens_in_new_window: Atvērsies jaunā logā
44
- remove_current: Dzēst pašreizējo %{what}
44
+ remove_current: Dzēst pašreizējo failu
45
+ no_resource_selected: Pašlaik nav izvēlēts neviens fails. Spied šeit, lai pievienotu kādu failu.
46
+ name: Pievienot Failu
47
+ current: Pašreizējais Fails
45
48
  search:
46
49
  button_text: Meklēt
47
50
  results_for: Meklēšanas rezultāti pēc '%{query}'
@@ -1,71 +1,67 @@
1
1
  pt-BR:
2
+ plugins:
3
+ refinery_core:
4
+ title: Refinery
5
+ description: Core refinery plugin
6
+ refinery_dialogs:
7
+ title: Dialogs
8
+ description: Refinery dialogs plugin
2
9
  welcome:
3
10
  there_are_no_users: "Ainda não existem usuários, então primeiro vamos te deixar pronto."
4
- remember_admin_location: "Lembre-se que sua área de admin do Refinery fica em:"
5
- lets_start: "Beleza, vamos te arrumar pra que você possa fazer login..."
11
+ remember_admin_location: "Lembre-se que sua área de admin fica em:"
12
+ lets_start: "Beleza, vamos te cadastrar pra que você possa fazer login..."
6
13
  continue: "Continuar..."
7
14
  admin:
8
15
  menu:
9
- reorder_menu: Reordenar menu
16
+ reorder_menu: Reordenar o menu
10
17
  reorder_menu_done: "Terminei de reordenar o menu"
11
- search: Procurar
12
- search_submit: Ir
13
- search_results_for: "Resultados da busca por '%{query}'"
14
- search_no_results: "Desculpe, nenhum resultado foi encontrado"
18
+ dialogs:
19
+ show:
20
+ save: Salvar
21
+ cancel: Cancelar
15
22
  refinery:
16
- other: "Outras %{what}"
17
- reorder: "%{what} Reordenar"
18
- reorder_done: "Reordenação %{what} feito"
19
23
  crudify:
20
24
  created: "%{what} foi criado com sucesso"
21
25
  updated: "%{what} foi atualizado com sucesso"
22
- destroyed: "%{what} foi destruído com sucesso"
23
- layouts:
24
- admin:
25
- view_public_site: Ver site público
26
- welcome_to_refinery: Bem-vindo ao Refinery
26
+ destroyed: "%{what} foi apagado com sucesso"
27
27
  shared:
28
28
  site_bar:
29
- log_out: Deslogar
29
+ log_out: Sair
30
30
  switch_to_your_website: Mudar para o seu website
31
31
  switch_to_your_website_editor: Mudar para o editor do seu website
32
32
  admin:
33
- message:
34
- close: Fechar
35
33
  continue_editing:
36
- save_and_continue_editing: "Salvar & continuar editando"
34
+ save_and_continue_editing: Salvar E continuar editando
37
35
  form_actions:
38
- or: ou
39
36
  save: Salvar
40
- or_cancel: ou
41
37
  cancel: Cancelar
42
- or_continue: ou
43
- delete: Remover
44
- cancel_lose_changes: "Cancelar irá fazer com que você perca as alterações que tenha feito a este %{object_name}"
38
+ cancel_lose_changes: "Cancelar irá fazer com que você perca as alterações que tenha feito aqui."
39
+ delete: Apagar
45
40
  previous: Anterior
46
41
  next: Próximo
42
+ close: Fechar
47
43
  image_picker:
48
- none_selected: "Atualmente não existe nenhum %{what} selecionado, por favor clique aqui para adicionar um."
44
+ none_selected: "Atualmente não existe nenhuma %{what} selecionado, por favor clique aqui para adicionar um."
49
45
  remove_current: "Remover %{what} atual"
50
46
  change: Clique aqui para selecionar a imagem
51
- image: imagem
52
47
  show: Mostrar
53
48
  resource_picker:
54
- none_selected: "Atualmente não existe nenhum %{what} selecionado, por favor clique aqui para adicionar um."
55
- current: "%{what} atual"
56
49
  download_current: "Fazer download do %{what} atual"
57
50
  opens_in_new_window: Abre em uma nova janela
58
51
  remove_current: "Remover %{what} atual"
59
- resource: recurso
52
+ search:
53
+ button_text: Buscar
54
+ results_for: "Resultados da busca por '%{query}'"
55
+ no_results: "Desculpe, nenhum resultado foi encontrado."
56
+ delete:
57
+ message: Você tem certeza que deseja apagar '%{title}'?
58
+ error_messages:
59
+ problems_in_following_fields: Há problemas com os seguintes campos
60
+ help: ajuda
60
61
  message:
61
62
  close: Fechar
62
63
  close_this_message: Fechar esta mensagem
63
- activerecord:
64
- models:
65
- page: página
66
- user: usuário
67
- image: imagem
68
- inquiry: consulta
69
- resource: recurso
70
- refinery_setting: configuração do refinery
71
- inquiry_setting: configuração da consulta
64
+ draft_page_message:
65
+ not_live: Esta página NÃO esta ativa para o público.
66
+ footer:
67
+ copyright: Copyright &copy;