refinerycms-core 2.0.5 → 2.0.6
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.
- data/app/assets/javascripts/refinery/admin.js.erb +28 -33
- data/app/assets/javascripts/refinery/modal_dialogs.js.erb +29 -31
- data/app/assets/javascripts/refinery/submit_continue.js.coffee.erb +1 -0
- data/app/assets/javascripts/wymeditor/lang/nl.js +55 -45
- data/app/assets/javascripts/wymeditor/lang/pl.js +12 -1
- data/app/controllers/refinery/admin/core_controller.rb +1 -1
- data/app/controllers/refinery/admin/dialogs_controller.rb +25 -9
- data/app/views/refinery/admin/_form_actions.html.erb +3 -1
- data/lib/generators/refinery/dummy/dummy_generator.rb +2 -2
- data/lib/generators/refinery/dummy/templates/rails/{application.rb → application.rb.erb} +0 -0
- data/lib/generators/refinery/dummy/templates/rails/{boot.rb → boot.rb.erb} +0 -0
- data/lib/generators/refinery/engine/engine_generator.rb +5 -1
- data/lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/{plural_name_controller.rb → plural_name_controller.rb.erb} +0 -0
- data/lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/{plural_name_controller.rb → plural_name_controller.rb.erb} +0 -0
- data/lib/generators/refinery/engine/templates/app/models/refinery/namespace/{singular_name.rb → singular_name.rb.erb} +7 -9
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb +1 -1
- data/lib/generators/refinery/engine/templates/config/locales/sk.yml +28 -0
- data/lib/generators/refinery/engine/templates/config/{routes.rb → routes.rb.erb} +0 -0
- data/lib/generators/refinery/engine/templates/db/migrate/{1_create_namespace_plural_name.rb → 1_create_namespace_plural_name.rb.erb} +0 -0
- data/lib/generators/refinery/engine/templates/db/{seeds.rb → seeds.rb.erb} +1 -1
- data/lib/generators/refinery/engine/templates/lib/generators/refinery/{extension_plural_name_generator.rb → extension_plural_name_generator.rb.erb} +0 -0
- data/lib/generators/refinery/engine/templates/lib/refinery/{plural_name.rb → plural_name.rb.erb} +0 -0
- data/lib/generators/refinery/engine/templates/lib/refinery/plural_name/{engine.rb → engine.rb.erb} +0 -0
- data/lib/generators/refinery/engine/templates/lib/{refinerycms-extension_plural_name.rb → refinerycms-extension_plural_name.rb.erb} +0 -0
- data/lib/generators/refinery/engine/templates/spec/models/refinery/namespace/{singular_name_spec.rb → singular_name_spec.rb.erb} +0 -0
- data/lib/generators/refinery/engine/templates/spec/requests/refinery/namespace/admin/{plural_name_spec.rb → plural_name_spec.rb.erb} +6 -6
- data/lib/generators/refinery/engine/templates/spec/spec_helper.rb +0 -2
- data/lib/generators/refinery/engine/templates/spec/support/factories/refinery/{plural_name.rb → plural_name.rb.erb} +0 -0
- data/lib/generators/refinery/form/templates/app/controllers/refinery/namespace/admin/{plural_name_controller.rb → plural_name_controller.rb.erb} +4 -4
- data/lib/generators/refinery/form/templates/app/controllers/refinery/namespace/admin/settings_controller.rb.erb +45 -0
- data/lib/generators/refinery/form/templates/app/controllers/refinery/namespace/{plural_name_controller.rb → plural_name_controller.rb.erb} +0 -0
- data/lib/generators/refinery/form/templates/app/mailers/refinery/namespace/{mailer.rb → mailer.rb.erb} +0 -0
- data/lib/generators/refinery/form/templates/app/models/refinery/namespace/{setting.rb → setting.rb.erb} +0 -0
- data/lib/generators/refinery/form/templates/app/models/refinery/namespace/{singular_name.rb → singular_name.rb.erb} +19 -14
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb +1 -1
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/settings/_confirmation_email_form.html.erb +1 -1
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/settings/_notification_recipients_form.html.erb +1 -1
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/plural_name/new.html.erb +4 -4
- data/lib/generators/refinery/form/templates/config/locales/cs.yml +78 -0
- data/lib/generators/refinery/form/templates/config/locales/sk.yml +78 -0
- data/lib/generators/refinery/form/templates/config/{routes.rb → routes.rb.erb} +2 -2
- data/lib/generators/refinery/form/templates/db/migrate/{1_create_plural_name.rb → 1_create_plural_name.rb.erb} +5 -4
- data/lib/generators/refinery/form/templates/db/{seeds.rb → seeds.rb.erb} +1 -1
- data/lib/generators/refinery/form/templates/lib/generators/refinery/{plural_name_generator.rb → plural_name_generator.rb.erb} +0 -0
- data/lib/generators/refinery/form/templates/lib/refinery/{plural_name.rb → plural_name.rb.erb} +0 -0
- data/lib/generators/refinery/form/templates/lib/refinery/plural_name/{engine.rb → engine.rb.erb} +0 -0
- data/lib/generators/refinery/form/templates/lib/{refinerycms-plural_name.rb → refinerycms-plural_name.rb.erb} +0 -0
- data/lib/refinery/cli.rb +73 -111
- data/lib/refinery/core.rb +8 -4
- data/lib/refinery/crud.rb +9 -5
- data/lib/refinery/extension_generation.rb +250 -214
- data/lib/refinery/version.rb +2 -2
- data/spec/helpers/refinery/custom_assets_helper_spec.rb +2 -2
- data/spec/helpers/refinery/pagination_helper_spec.rb +1 -1
- data/spec/lib/generators/refinery/cms/cms_generator_spec.rb +1 -1
- data/spec/lib/generators/refinery/core/core_generator_spec.rb +1 -1
- data/spec/lib/generators/refinery/engine/engine_generator_spec.rb +9 -4
- data/spec/lib/generators/refinery/engine/engine_generator_with_i18n_spec.rb +1 -1
- data/spec/lib/generators/refinery/engine/engine_generator_without_frontend_spec.rb +1 -1
- data/spec/lib/generators/refinery/form/form_generator_spec.rb +1 -1
- data/spec/lib/refinery/application_controller_spec.rb +8 -0
- data/spec/lib/refinery/core_spec.rb +14 -5
- data/spec/lib/refinery/crud_spec.rb +106 -0
- data/spec/lib/refinery/plugin_spec.rb +1 -1
- data/spec/lib/refinery/plugins_spec.rb +1 -1
- data/spec/requests/refinery/admin/custom_assets_spec.rb +2 -2
- data/spec/requests/refinery/admin/dialogs_spec.rb +3 -2
- data/spec/requests/refinery/search_spec.rb +2 -2
- data/spec/support/database_cleaner.rb +8 -2
- data/spec/support/refinery.rb +1 -2
- metadata +37 -32
- data/lib/generators/refinery/form/templates/app/controllers/refinery/namespace/admin/settings_controller.rb +0 -51
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/generators/refinery/engine/templates/lib/refinery/{plural_name.rb → plural_name.rb.erb}
RENAMED
|
File without changes
|
data/lib/generators/refinery/engine/templates/lib/refinery/plural_name/{engine.rb → engine.rb.erb}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -8,7 +8,7 @@ describe Refinery do
|
|
|
8
8
|
login_refinery_user
|
|
9
9
|
<% if (title = attributes.detect { |a| a.type.to_s == "string" }).present? %>
|
|
10
10
|
describe "<%= plural_name %> list" do
|
|
11
|
-
before
|
|
11
|
+
before do
|
|
12
12
|
FactoryGirl.create(:<%= singular_name %>, :<%= title.name %> => "UniqueTitleOne")
|
|
13
13
|
FactoryGirl.create(:<%= singular_name %>, :<%= title.name %> => "UniqueTitleTwo")
|
|
14
14
|
end
|
|
@@ -21,7 +21,7 @@ describe Refinery do
|
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
describe "create" do
|
|
24
|
-
before
|
|
24
|
+
before do
|
|
25
25
|
visit refinery.<%= namespacing.underscore %>_admin_<%= plural_name %>_path
|
|
26
26
|
|
|
27
27
|
click_link "Add New <%= singular_name.titleize %>"
|
|
@@ -47,7 +47,7 @@ describe Refinery do
|
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
context "duplicate" do
|
|
50
|
-
before
|
|
50
|
+
before { FactoryGirl.create(:<%= singular_name %>, :<%= title.name %> => "UniqueTitle") }
|
|
51
51
|
|
|
52
52
|
it "should fail" do
|
|
53
53
|
visit refinery.<%= namespacing.underscore %>_admin_<%= plural_name %>_path
|
|
@@ -63,7 +63,7 @@ describe Refinery do
|
|
|
63
63
|
end
|
|
64
64
|
<% if localized? %>
|
|
65
65
|
context "with translations" do
|
|
66
|
-
before
|
|
66
|
+
before do
|
|
67
67
|
Refinery::I18n.stub(:frontend_locales).and_return([:en, :cs])
|
|
68
68
|
end
|
|
69
69
|
|
|
@@ -164,7 +164,7 @@ describe Refinery do
|
|
|
164
164
|
end
|
|
165
165
|
|
|
166
166
|
describe "edit" do
|
|
167
|
-
before
|
|
167
|
+
before { FactoryGirl.create(:<%= singular_name %>, :<%= title.name %> => "A <%= title.name %>") }
|
|
168
168
|
|
|
169
169
|
it "should succeed" do
|
|
170
170
|
visit refinery.<%= namespacing.underscore %>_admin_<%= plural_name %>_path
|
|
@@ -182,7 +182,7 @@ describe Refinery do
|
|
|
182
182
|
end
|
|
183
183
|
|
|
184
184
|
describe "destroy" do
|
|
185
|
-
before
|
|
185
|
+
before { FactoryGirl.create(:<%= singular_name %>, :<%= title.name %> => "UniqueTitleOne") }
|
|
186
186
|
|
|
187
187
|
it "should succeed" do
|
|
188
188
|
visit refinery.<%= namespacing.underscore %>_admin_<%= plural_name %>_path
|
|
@@ -7,8 +7,6 @@ def setup_environment
|
|
|
7
7
|
elsif File.dirname(__FILE__) =~ %r{vendor/extensions}
|
|
8
8
|
# Require the path to the refinerycms application this is vendored inside.
|
|
9
9
|
require File.expand_path('../../../../../config/environment', __FILE__)
|
|
10
|
-
else
|
|
11
|
-
raise "Could not find a config/environment.rb file to require. Please specify this in #{File.expand_path(__FILE__)}"
|
|
12
10
|
end
|
|
13
11
|
|
|
14
12
|
require 'rspec/rails'
|
|
File without changes
|
|
@@ -6,7 +6,8 @@ module Refinery
|
|
|
6
6
|
crudify :'refinery/<%= namespacing.underscore %>/<%= singular_name %>', <% if (title = attributes.detect { |a| a.type.to_s == "string" }).present? %>
|
|
7
7
|
:title_attribute => "<%= title.name %>", <% end %>
|
|
8
8
|
:order => "created_at DESC"
|
|
9
|
-
|
|
9
|
+
<% if @includes_spam -%>
|
|
10
|
+
|
|
10
11
|
before_filter :get_spam_count, :only => [:index, :spam]
|
|
11
12
|
|
|
12
13
|
def index
|
|
@@ -35,7 +36,7 @@ module Refinery
|
|
|
35
36
|
def get_spam_count
|
|
36
37
|
@spam_count = <%= class_name %>.count(:conditions => {:spam => true})
|
|
37
38
|
end
|
|
38
|
-
|
|
39
|
+
<% else %>
|
|
39
40
|
def index
|
|
40
41
|
unless searching?
|
|
41
42
|
find_all_<%= plural_name %>
|
|
@@ -46,8 +47,7 @@ module Refinery
|
|
|
46
47
|
@grouped_<%= plural_name %> = group_by_date(@<%= plural_name %>)
|
|
47
48
|
end
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
<% end -%>
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module Refinery
|
|
2
|
+
module <%= class_name.pluralize %>
|
|
3
|
+
module Admin
|
|
4
|
+
class SettingsController < Refinery::AdminController
|
|
5
|
+
|
|
6
|
+
before_filter :check_setting, :only => [:edit, :update]
|
|
7
|
+
after_filter :save_subject_for_confirmation, :save_message_for_confirmation, :only => :update
|
|
8
|
+
|
|
9
|
+
def edit
|
|
10
|
+
@setting = Refinery::Setting.find(params[:id])
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def update
|
|
14
|
+
@setting = Refinery::Setting.find(params[:id])
|
|
15
|
+
|
|
16
|
+
if @setting.update_attributes(params[:setting])
|
|
17
|
+
flash[:notice] = t('refinery.crudify.updated', :what => @setting.name.gsub("<%= singular_name %>_", "").titleize)
|
|
18
|
+
|
|
19
|
+
unless request.xhr? or from_dialog?
|
|
20
|
+
redirect_back_or_default(refinery.<%= namespacing.underscore %>_admin_<%= plural_name %>_path)
|
|
21
|
+
else
|
|
22
|
+
render :text => "<script type='text/javascript'>parent.window.location = '#{refinery.<%= namespacing.underscore %>_admin_<%= plural_name %>_path}';</script>"
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
protected
|
|
28
|
+
def check_setting
|
|
29
|
+
setting = params[:id].gsub("<%= singular_name %>_", "")
|
|
30
|
+
|
|
31
|
+
Refinery::<%= namespacing %>::Setting.send(setting) if Refinery::<%= namespacing %>::Setting.respond_to?(setting)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def save_subject_for_confirmation
|
|
35
|
+
Refinery::<%= namespacing %>::Setting.confirmation_subject = params[:subject] if params.keys.include?('subject')
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def save_message_for_confirmation
|
|
39
|
+
Refinery::<%= namespacing %>::Setting.confirmation_message = params[:message] if params.keys.include?('message')
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,24 +3,29 @@ module Refinery
|
|
|
3
3
|
class <%= class_name %> < Refinery::Core::BaseModel
|
|
4
4
|
<% if table_name == namespacing.underscore.pluralize -%>
|
|
5
5
|
self.table_name = 'refinery_<%= plural_name %>'
|
|
6
|
-
<% end
|
|
7
|
-
|
|
6
|
+
<% end -%>
|
|
7
|
+
|
|
8
|
+
attr_accessible <%= names_for_attr_accessible.map { |a| ":#{a}" }.join(', ') %>, :position
|
|
9
|
+
<% if string_attributes.any? -%>
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
acts_as_indexed :fields => [:<%= text_or_string_fields.join(", :") %>]
|
|
11
|
+
acts_as_indexed :fields => [<%= string_attributes.map { |a| ":#{a.name}" }.join(", ") %>]
|
|
11
12
|
<% end -%>
|
|
12
|
-
<% if (text_fields = attributes.map {|a| a.name if a.type
|
|
13
|
+
<% if (text_fields = attributes.map { |a| a.name if a.type == :text }.compact.uniq).any? && text_fields.detect{ |a| a.to_s == 'message' }.nil? -%>
|
|
14
|
+
|
|
13
15
|
alias_attribute :message, :<%= text_fields.first %>
|
|
14
|
-
<% elsif text_fields.empty?
|
|
16
|
+
<% elsif text_fields.empty? -%>
|
|
17
|
+
|
|
15
18
|
# def message was created automatically because you didn't specify a text field
|
|
16
19
|
# when you ran the refinery:form generator. <3 <3 Refinery CMS.
|
|
17
20
|
def message
|
|
18
21
|
"Override def message in vendor/extensions/<%= namespacing.underscore %>/app/models/refinery/<%= namespacing.underscore %>/<%= singular_name %>.rb"
|
|
19
22
|
end
|
|
20
|
-
<% end
|
|
21
|
-
<% unless (string_fields = attributes.map{ |a| a.name if a.type
|
|
23
|
+
<% end -%>
|
|
24
|
+
<% unless (string_fields = attributes.map { |a| a.name if a.type == :string }.compact.uniq).empty? || string_fields.detect { |f| f.to_s == 'name' } -%>
|
|
25
|
+
|
|
22
26
|
alias_attribute :name, :<%= string_fields.first %>
|
|
23
|
-
<% end
|
|
27
|
+
<% end -%>
|
|
28
|
+
|
|
24
29
|
# Add some validation here if you want to validate the user's input
|
|
25
30
|
<% if string_fields.any? -%>
|
|
26
31
|
# We have validated the first string field for you.
|
|
@@ -32,15 +37,15 @@ module Refinery
|
|
|
32
37
|
"Override def name in vendor/extensions/<%= namespacing.underscore %>/app/models/refinery/<%= namespacing.underscore %>/<%= singular_name %>.rb"
|
|
33
38
|
end
|
|
34
39
|
<% end -%>
|
|
35
|
-
<%
|
|
40
|
+
<% image_attributes.each do |a| -%>
|
|
36
41
|
|
|
37
|
-
belongs_to :<%= a.name
|
|
42
|
+
belongs_to :<%= a.name -%>, :class_name => 'Refinery::Image'
|
|
38
43
|
<% end -%>
|
|
39
|
-
<%
|
|
44
|
+
<% resource_attributes.each do |a| -%>
|
|
40
45
|
|
|
41
|
-
belongs_to :<%= a.name
|
|
46
|
+
belongs_to :<%= a.name %>, :class_name => 'Refinery::Resource'
|
|
42
47
|
<% end -%>
|
|
43
|
-
<% attributes.select{|a| a.type.to_s
|
|
48
|
+
<% attributes.select{ |a| /radio|select/ === a.type.to_s }.uniq.each do |a| %>
|
|
44
49
|
<%= a.name.pluralize.upcase %> = []
|
|
45
50
|
<% end -%>
|
|
46
51
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<li class='clearfix record <%%= cycle("on", "on-hover") %>'>
|
|
2
2
|
<span class='title'>
|
|
3
3
|
<%%= link_to <%= singular_name %>.name, refinery.<%= namespacing.underscore %>_admin_<%= singular_name %>_path(<%= singular_name %>) %> <%%= t('.said') %>
|
|
4
|
-
<span class="preview"><%%= truncate(strip_tags(<%= singular_name %>.message), :length => 60) -%></span>
|
|
4
|
+
<span class="preview"><%%= truncate(strip_tags(sanitize(<%= singular_name %>.message)), :length => 60) -%></span>
|
|
5
5
|
</span>
|
|
6
6
|
<span class='actions'>
|
|
7
7
|
<%%= link_to refinery_icon_tag('delete.png'), refinery.<%= namespacing.underscore %>_admin_<%= singular_name %>_path(<%= singular_name %>),
|
data/lib/generators/refinery/form/templates/app/views/refinery/namespace/plural_name/new.html.erb
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<%%= render '/refinery/admin/error_messages',
|
|
7
7
|
:object => @<%= singular_name %>,
|
|
8
8
|
:include_object_name => true %>
|
|
9
|
-
<% string_fields =
|
|
10
|
-
|
|
9
|
+
<% string_fields = string_attributes.map(&:name) -%>
|
|
10
|
+
<% attributes.each do |attribute| %>
|
|
11
11
|
<div class='field <%= attribute.name %>_field <%= attribute.type %>_field'>
|
|
12
12
|
<%%= f.<%= 'required_' if string_fields.any? && attribute.name == string_fields.first %>label :<%= attribute.name %> %>
|
|
13
13
|
<% case attribute.type
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<% when :text -%>
|
|
17
17
|
<%%= f.text_area :<%= attribute.name %>, :rows => 8 %>
|
|
18
18
|
<% when :radio -%>
|
|
19
|
-
<%%
|
|
19
|
+
<%% Refinery::<%= namespacing %>::<%= class_name %>::<%= attribute.name.pluralize.upcase %>.each do |value, name| %>
|
|
20
20
|
<%%= f.radio_button :<%= attribute.name %>, (name || value), :value => value %>
|
|
21
21
|
<%%= f.label :"<%= attribute.name %>_#{(name || value)}", value.humanize %>
|
|
22
22
|
<%% end %>
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<%%= f.time_select :<%= attribute.name %> %>
|
|
34
34
|
<% end -%>
|
|
35
35
|
</div>
|
|
36
|
-
|
|
36
|
+
<% end %>
|
|
37
37
|
<div class='actions'>
|
|
38
38
|
<%%= f.submit t('.send') %>
|
|
39
39
|
</div>
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
cs:
|
|
2
|
+
refinery:
|
|
3
|
+
plugins:
|
|
4
|
+
<%= plural_name %>:
|
|
5
|
+
title: <%= plural_name.titleize %>
|
|
6
|
+
description: Poskytuje kontaktní formulář a zaznamenáva <%= plural_name.humanize.downcase %>
|
|
7
|
+
<%= namespacing.underscore %>:
|
|
8
|
+
<%= plural_name %>:
|
|
9
|
+
new:
|
|
10
|
+
send: Odeslat zprávu
|
|
11
|
+
privacy_policy: Chráníme vaše soukromí
|
|
12
|
+
admin:
|
|
13
|
+
<%= plural_name %>:
|
|
14
|
+
delete: Trvale odstranit <%= singular_name.humanize.downcase %>
|
|
15
|
+
<%= singular_name %>:
|
|
16
|
+
read_<%= singular_name %>: Přečíst <%= singular_name.humanize.downcase %>
|
|
17
|
+
said: řekl
|
|
18
|
+
mark_as_spam: Označit jako spam
|
|
19
|
+
mark_as_ham: Označit jako přečtené
|
|
20
|
+
submenu:
|
|
21
|
+
inbox: Inbox
|
|
22
|
+
spam: Spam
|
|
23
|
+
update_notified: Upravit seznam notifikovaných
|
|
24
|
+
edit_confirmation_email: Upravit potvrzovací e-mail
|
|
25
|
+
index:
|
|
26
|
+
no_<%= plural_name %>: Zatím jste neobdrželi žádné <%= plural_name.humanize.downcase %>.
|
|
27
|
+
spam:
|
|
28
|
+
no_spam: Hurá! Nemáte žádný spam.
|
|
29
|
+
show:
|
|
30
|
+
details: Podrobnosti
|
|
31
|
+
age: Věk
|
|
32
|
+
actions: Akce
|
|
33
|
+
back_to_all_<%= plural_name %>: Zpět na všechny <%= plural_name.humanize.downcase %>
|
|
34
|
+
spam: Spam
|
|
35
|
+
spam_yes: 'ano'
|
|
36
|
+
<%= singular_name %>: <%= class_name.underscore.titleize %>
|
|
37
|
+
to: Komu
|
|
38
|
+
from: Od
|
|
39
|
+
click_to_email: Klikněte pro odeslání této adresy e-mailem
|
|
40
|
+
phone: Telefon
|
|
41
|
+
date: Datum
|
|
42
|
+
message: Zpráva
|
|
43
|
+
settings:
|
|
44
|
+
notification_recipients_form:
|
|
45
|
+
settings_value_name: Zaslat upozornění pro
|
|
46
|
+
explanation: Pokaždé, když Vás někdo kontaktuje přes vaše webové stránky, Refinery odešle e-mail s upozorněním na nový <%= singular_name.humanize.downcase %>.
|
|
47
|
+
hint: Když je odeslán nový <%= singular_name.humanize.downcase %>, Refinery pošle upozornení na Váš e-mail.
|
|
48
|
+
example: "Zadejte e-mailové adresy jako: jack@work.com, jill@office.com"
|
|
49
|
+
confirmation_email_form:
|
|
50
|
+
to: Komu
|
|
51
|
+
from: Od
|
|
52
|
+
subject: Předmet
|
|
53
|
+
click_to_edit_subject: Klikněte zde pro editaci předmetu
|
|
54
|
+
explanation: Když Vás někdo kontaktuje přes vaše webové stránky, Refinery odešle e-mail s potvrzením o přijetí odesílateli <%= singular_name.humanize.downcase %>.
|
|
55
|
+
below_edit_email_sent: Níže můžete upravit e-mail, který je odeslán.
|
|
56
|
+
the_customer_making_<%= singular_name %>: Klient delá <%= singular_name.humanize.downcase %>
|
|
57
|
+
message: Zpráva
|
|
58
|
+
note: "Poznámka: umístěte text %name%, pro určení pozice jména klienta v e-maile"
|
|
59
|
+
mailer:
|
|
60
|
+
notification:
|
|
61
|
+
greeting: Hi there
|
|
62
|
+
you_recieved_new_<%= singular_name %>: You just received a new <%= singular_name.humanize.downcase %> on your website.
|
|
63
|
+
<%= singular_name %>_starts: --- <%= singular_name.humanize.downcase %> starts ---
|
|
64
|
+
<%= singular_name %>_ends: --- <%= singular_name.humanize.downcase %> ends ---
|
|
65
|
+
from: Od
|
|
66
|
+
email: E-mail
|
|
67
|
+
phone: Telefon
|
|
68
|
+
message: Zpráva
|
|
69
|
+
closing_line: S pozdravem
|
|
70
|
+
ps_html: P.S. Všechny vaše <%= plural_name.humanize.downcase %> jsou uloženy pod záložkou "<%= plural_name.titleize %>" v Refinery, pokud by jste je chtěli zobrazit pozdeji.
|
|
71
|
+
activerecord:
|
|
72
|
+
models:
|
|
73
|
+
<%= singular_name %>: <%= class_name.underscore.titleize %>
|
|
74
|
+
attributes:
|
|
75
|
+
<%= singular_name %>:
|
|
76
|
+
<% attributes.each do |a| -%>
|
|
77
|
+
<%= a.name %>: <%= a.name.humanize %>
|
|
78
|
+
<% end -%>
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
sk:
|
|
2
|
+
refinery:
|
|
3
|
+
plugins:
|
|
4
|
+
<%= plural_name %>:
|
|
5
|
+
title: <%= plural_name.titleize %>
|
|
6
|
+
description: Poskytuje kontaktný formulár a zaznamenáva <%= plural_name.humanize.downcase %>
|
|
7
|
+
<%= namespacing.underscore %>:
|
|
8
|
+
<%= plural_name %>:
|
|
9
|
+
new:
|
|
10
|
+
send: Odoslať správu
|
|
11
|
+
privacy_policy: Chránime vaše súkromie
|
|
12
|
+
admin:
|
|
13
|
+
<%= plural_name %>:
|
|
14
|
+
delete: Trvalo odstrániť <%= singular_name.humanize.downcase %>
|
|
15
|
+
<%= singular_name %>:
|
|
16
|
+
read_<%= singular_name %>: Prečítať <%= singular_name.humanize.downcase %>
|
|
17
|
+
said: povedal
|
|
18
|
+
mark_as_spam: Označiť ako spam
|
|
19
|
+
mark_as_ham: Označiť ako prečítané
|
|
20
|
+
submenu:
|
|
21
|
+
inbox: Inbox
|
|
22
|
+
spam: Spam
|
|
23
|
+
update_notified: Upraviť zoznam notifikovaných
|
|
24
|
+
edit_confirmation_email: Upraviť potvrdzovací e-mail
|
|
25
|
+
index:
|
|
26
|
+
no_<%= plural_name %>: Zatiaľ ste neobdržali žiadne <%= plural_name.humanize.downcase %>.
|
|
27
|
+
spam:
|
|
28
|
+
no_spam: Hurá! Nemáte žiaden spam.
|
|
29
|
+
show:
|
|
30
|
+
details: Podrobnosti
|
|
31
|
+
age: Vek
|
|
32
|
+
actions: Akcie
|
|
33
|
+
back_to_all_<%= plural_name %>: Späť na všetky <%= plural_name.humanize.downcase %>
|
|
34
|
+
spam: Spam
|
|
35
|
+
spam_yes: 'áno'
|
|
36
|
+
<%= singular_name %>: <%= class_name.underscore.titleize %>
|
|
37
|
+
to: Komu
|
|
38
|
+
from: Od
|
|
39
|
+
click_to_email: Kliknite pre odoslanie tejto adresy e-mailom
|
|
40
|
+
phone: Telefón
|
|
41
|
+
date: Dátum
|
|
42
|
+
message: Správa
|
|
43
|
+
settings:
|
|
44
|
+
notification_recipients_form:
|
|
45
|
+
settings_value_name: Poslať upozornenie pre
|
|
46
|
+
explanation: Zakaždým, keď Vás niekto kontaktuje cez vaše webové stránky, Refinery odošle e-mail s upozornením na nový <%= singular_name.humanize.downcase %>.
|
|
47
|
+
hint: Keď je odoslaný nový <%= singular_name.humanize.downcase %>, Refinery odošle upozornenie na Váš e-mail.
|
|
48
|
+
example: "Zadajte e-mailovú adresu(y) ako: jack@work.com, jill@office.com"
|
|
49
|
+
confirmation_email_form:
|
|
50
|
+
to: Komu
|
|
51
|
+
from: Od
|
|
52
|
+
subject: Predmet
|
|
53
|
+
click_to_edit_subject: Kliknite tu ak chcete upraviť predmet
|
|
54
|
+
explanation: Zakaždým, keď Vás niekto kontaktuje cez vaše webové stránky, Refinery odošle e-mail s potvrdením o prijatí odosielateľovi <%= singular_name.humanize.downcase %>.
|
|
55
|
+
below_edit_email_sent: Nižšie môžete upraviť e-mail, ktorý je odosielaný.
|
|
56
|
+
the_customer_making_<%= singular_name %>: Klient robiť <%= singular_name.humanize.downcase %>
|
|
57
|
+
message: Správa
|
|
58
|
+
note: "Poznámka: umiestniťe text %name%, pre určenie pozície mena klienta v e-maile"
|
|
59
|
+
mailer:
|
|
60
|
+
notification:
|
|
61
|
+
greeting: Ahoj
|
|
62
|
+
you_recieved_new_<%= singular_name %>: Práve ste obdržali nový <%= singular_name.humanize.downcase %> na vašej webové stránke.
|
|
63
|
+
<%= singular_name %>_starts: --- <%= singular_name.humanize.downcase %> začiatok ---
|
|
64
|
+
<%= singular_name %>_ends: --- <%= singular_name.humanize.downcase %> koniec ---
|
|
65
|
+
from: Od
|
|
66
|
+
email: E-mail
|
|
67
|
+
phone: Telefón
|
|
68
|
+
message: Správa
|
|
69
|
+
closing_line: S pozdravom
|
|
70
|
+
ps_html: P.S. Všetky vaše <%= plural_name.humanize.downcase %> sú uložené v "<%= plural_name.titleize %>" sekcii v Refinery, ak by ste ich chceli zobraziť neskôr.
|
|
71
|
+
activerecord:
|
|
72
|
+
models:
|
|
73
|
+
<%= singular_name %>: <%= class_name.underscore.titleize %>
|
|
74
|
+
attributes:
|
|
75
|
+
<%= singular_name %>:
|
|
76
|
+
<% attributes.each do |a| -%>
|
|
77
|
+
<%= a.name %>: <%= a.name.humanize %>
|
|
78
|
+
<% end -%>
|