refinerycms-core 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -63,40 +63,35 @@ $.fn.applyMinimumHeightFromChildren = function() {
|
|
63
63
|
}
|
64
64
|
|
65
65
|
init_modal_dialogs = function(){
|
66
|
-
$(
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
, height: height
|
92
|
-
, open: onOpenDialog
|
93
|
-
, close: onCloseDialog
|
94
|
-
, open: function(event, ui) {
|
95
|
-
iframe.attr('src', iframe_src);
|
96
|
-
}
|
97
|
-
});
|
66
|
+
$('a[href*="dialog=true"]').not('#dialog_container a').each(function(i, anchor) {
|
67
|
+
$(anchor).data({
|
68
|
+
'dialog-width': parseInt($($(anchor).attr('href').match("width=([0-9]*)")).last().get(0), 10)||928
|
69
|
+
, 'dialog-height': parseInt($($(anchor).attr('href').match("height=([0-9]*)")).last().get(0), 10)||473
|
70
|
+
, 'dialog-title': ($(anchor).attr('title') || $(anchor).attr('name') || $(anchor).html() || null)
|
71
|
+
}).attr('href', $(anchor).attr('href').replace(/(&(amp;)?|\?)(dialog=true|(width|height)=\d+)/g, '')
|
72
|
+
.replace(/(\/[^&\?]*)&(amp;)?/, '$1?'))
|
73
|
+
.click(function(e){
|
74
|
+
$anchor = $(this);
|
75
|
+
iframe_src = (iframe_src = $anchor.attr('href'))
|
76
|
+
+ (iframe_src.indexOf('?') > -1 ? '&' : '?')
|
77
|
+
+ 'app_dialog=true&dialog=true';
|
78
|
+
|
79
|
+
iframe = $("<iframe id='dialog_iframe' frameborder='0' marginheight='0' marginwidth='0' border='0'></iframe>");
|
80
|
+
if(!$.browser.msie) { iframe.corner('8px'); }
|
81
|
+
iframe.dialog({
|
82
|
+
title: $anchor.data('dialog-title')
|
83
|
+
, modal: true
|
84
|
+
, resizable: false
|
85
|
+
, autoOpen: true
|
86
|
+
, width: $anchor.data('dialog-width')
|
87
|
+
, height: $anchor.data('dialog-height')
|
88
|
+
, open: onOpenDialog
|
89
|
+
, close: onCloseDialog
|
90
|
+
});
|
98
91
|
|
99
|
-
|
92
|
+
iframe.attr('src', iframe_src);
|
93
|
+
e.preventDefault();
|
94
|
+
});
|
100
95
|
});
|
101
96
|
};
|
102
97
|
|
@@ -1,36 +1,34 @@
|
|
1
|
+
<%# encoding: utf-8 %>
|
1
2
|
init_modal_dialogs = function(){
|
2
|
-
$(
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
,
|
29
|
-
|
3
|
+
$('a[href*="dialog=true"]').not('#dialog_container a').each(function(i, anchor) {
|
4
|
+
$(anchor).data({
|
5
|
+
'dialog-width': parseInt($($(anchor).attr('href').match("width=([0-9]*)")).last().get(0), 10)||928
|
6
|
+
, 'dialog-height': parseInt($($(anchor).attr('href').match("height=([0-9]*)")).last().get(0), 10)||473
|
7
|
+
, 'dialog-title': ($(anchor).attr('title') || $(anchor).attr('name') || $(anchor).html() || null)
|
8
|
+
}).attr('href', $(anchor).attr('href').replace(/(&(amp;)?|\?)(dialog=true|(width|height)=\d+)/g, '')
|
9
|
+
.replace(/(\/[^&\?]*)&(amp;)?/, '$1?'))
|
10
|
+
.click(function(e){
|
11
|
+
$anchor = $(this);
|
12
|
+
iframe_src = (iframe_src = $anchor.attr('href'))
|
13
|
+
+ (iframe_src.indexOf('?') > -1 ? '&' : '?')
|
14
|
+
+ 'app_dialog=true&dialog=true';
|
15
|
+
|
16
|
+
iframe = $("<iframe id='dialog_iframe' frameborder='0' marginheight='0' marginwidth='0' border='0'></iframe>");
|
17
|
+
if(!$.browser.msie) { iframe.corner('8px'); }
|
18
|
+
iframe.dialog({
|
19
|
+
title: $anchor.data('dialog-title')
|
20
|
+
, modal: true
|
21
|
+
, resizable: false
|
22
|
+
, autoOpen: true
|
23
|
+
, width: $anchor.data('dialog-width')
|
24
|
+
, height: $anchor.data('dialog-height')
|
25
|
+
, open: onOpenDialog
|
26
|
+
, close: onCloseDialog
|
27
|
+
});
|
28
|
+
|
29
|
+
iframe.attr('src', iframe_src);
|
30
|
+
e.preventDefault();
|
30
31
|
});
|
31
|
-
|
32
|
-
iframe.attr('src', iframe_src);
|
33
|
-
e.preventDefault();
|
34
32
|
});
|
35
33
|
};
|
36
34
|
|
@@ -1,47 +1,57 @@
|
|
1
1
|
WYMeditor.STRINGS['nl'] = {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
2
|
+
Strong: 'Sterk benadrukken',
|
3
|
+
Bold: 'Vet',
|
4
|
+
Emphasis: 'Benadrukken',
|
5
|
+
Superscript: 'Bovenschrift',
|
6
|
+
Subscript: 'Onderschrift',
|
7
|
+
Ordered_List: 'Geordende lijst',
|
8
|
+
Unordered_List: 'Ongeordende lijst',
|
9
|
+
Indent: 'Inspringen',
|
10
|
+
Outdent: 'Terugspringen',
|
11
|
+
Undo: 'Ongedaan maken',
|
12
|
+
Redo: 'Opnieuw uitvoeren',
|
13
|
+
Link: 'Linken',
|
14
|
+
Unlink: 'Ontlinken',
|
15
|
+
Image: 'Afbeelding',
|
16
|
+
Table: 'Tabel',
|
17
|
+
HTML: 'HTML',
|
18
|
+
Paragraph: 'Paragraaf',
|
19
|
+
Heading_1: 'Kop 1',
|
20
|
+
Heading_2: 'Kop 2',
|
21
|
+
Heading_3: 'Kop 3',
|
22
|
+
Heading_4: 'Kop 4',
|
23
|
+
Heading_5: 'Kop 5',
|
24
|
+
Heading_6: 'Kop 6',
|
25
|
+
Preformatted: 'Voorgeformatteerd',
|
26
|
+
Blockquote: 'Citaat',
|
27
|
+
Table_Header: 'Tabel-kop',
|
28
|
+
URL: 'URL',
|
29
|
+
Title: 'Titel',
|
30
|
+
Alternative_Text: 'Alternatieve tekst',
|
31
|
+
Caption: 'Bijschrift',
|
32
|
+
Summary: 'Overzicht',
|
33
|
+
Number_Of_Rows: 'Aantal rijen',
|
34
|
+
Number_Of_Cols: 'Aantal kolommen',
|
35
|
+
Insert: 'Invoegen',
|
36
|
+
Submit: 'Versturen',
|
37
|
+
Cancel: 'Annuleren',
|
38
|
+
Choose: 'Kiezen',
|
39
|
+
Preview: 'Voorbeeld bekijken',
|
40
|
+
Paste_From_Word: 'Plakken uit Word',
|
41
|
+
Tools: 'Hulpmiddelen',
|
42
|
+
Containers: 'Teksttypes',
|
43
|
+
Classes: 'Klassen',
|
44
|
+
Status: 'Status',
|
45
|
+
Source_Code: 'Broncode',
|
46
|
+
Text_Align: 'Tekst uitlijnen',
|
47
|
+
Image_Align: 'Afbeelding uitlijnen',
|
48
|
+
Font_Size: 'Lettertype grootte',
|
49
|
+
Left: 'Links',
|
50
|
+
Right: 'Rechts',
|
51
|
+
Center: 'Midden',
|
52
|
+
Justify: 'Uitgevuld',
|
53
|
+
Small: 'Klein',
|
54
|
+
Normal: 'Normaal',
|
55
|
+
Large: 'Groot',
|
56
|
+
Apply_Style: 'Stijl'
|
47
57
|
};
|
@@ -40,6 +40,17 @@ WYMeditor.STRINGS['pl'] = {
|
|
40
40
|
Containers: 'Format',
|
41
41
|
Classes: 'Styl',
|
42
42
|
Status: 'Status',
|
43
|
-
Source_Code: 'Kod źródłowy'
|
43
|
+
Source_Code: 'Kod źródłowy',
|
44
|
+
Apply_Style: 'Określ styl',
|
45
|
+
Text_Align: "Wyrównanie tekstu",
|
46
|
+
Left: "Do lewej",
|
47
|
+
Right: "Do prawej",
|
48
|
+
Center: "Do środka",
|
49
|
+
Justify: "Wyjustuj",
|
50
|
+
Image_Align: "Wyrównanie obrazka",
|
51
|
+
Font_Size: "Rozmiar teksru",
|
52
|
+
Small: "Mały",
|
53
|
+
Normal: "Normalny",
|
54
|
+
Large: "Duży"
|
44
55
|
};
|
45
56
|
|
@@ -4,7 +4,7 @@ module Refinery
|
|
4
4
|
def update_plugin_positions
|
5
5
|
params[:menu].each_with_index do |plugin_name, index|
|
6
6
|
if (plugin = current_refinery_user.plugins.find_by_name(plugin_name))
|
7
|
-
plugin.
|
7
|
+
plugin.update_attributes :position => index
|
8
8
|
end
|
9
9
|
end
|
10
10
|
render :nothing => true
|
@@ -1,26 +1,42 @@
|
|
1
1
|
module ::Refinery
|
2
2
|
module Admin
|
3
3
|
class DialogsController < ::Refinery::AdminController
|
4
|
+
TYPES = %w[image link]
|
5
|
+
|
6
|
+
before_filter :find_dialog_type, :find_iframe_src, :only => [:show]
|
7
|
+
|
4
8
|
def index
|
5
9
|
redirect_to refinery.admin_root_path
|
6
10
|
end
|
7
11
|
|
8
12
|
def show
|
9
|
-
|
13
|
+
render :layout => false
|
14
|
+
end
|
15
|
+
|
16
|
+
def from_dialog?
|
17
|
+
true
|
18
|
+
end
|
19
|
+
|
20
|
+
protected
|
21
|
+
def find_dialog_type
|
22
|
+
error_404 if TYPES.exclude? params[:id].downcase
|
10
23
|
|
11
|
-
|
24
|
+
@dialog_type = params[:id].downcase
|
25
|
+
end
|
12
26
|
|
13
|
-
|
14
|
-
|
27
|
+
def find_iframe_src
|
28
|
+
if @dialog_type == 'image'
|
29
|
+
@iframe_src = refinery.insert_admin_images_path(
|
30
|
+
url_params.merge(:modal => true)
|
31
|
+
)
|
15
32
|
elsif @dialog_type == 'link'
|
16
|
-
refinery.link_to_admin_pages_dialogs_path
|
33
|
+
@iframe_src = refinery.link_to_admin_pages_dialogs_path url_params
|
17
34
|
end
|
18
|
-
|
19
|
-
render :layout => false
|
20
35
|
end
|
21
36
|
|
22
|
-
def
|
23
|
-
|
37
|
+
def url_params
|
38
|
+
params.reject {|key, value| /(action)|(controller)/ === key}.
|
39
|
+
merge :id => nil
|
24
40
|
end
|
25
41
|
|
26
42
|
end
|
@@ -64,7 +64,9 @@
|
|
64
64
|
:title => delete_title,
|
65
65
|
:id => delete_button_id,
|
66
66
|
:method => :delete,
|
67
|
-
:
|
67
|
+
:data => {
|
68
|
+
:confirm => delete_confirmation
|
69
|
+
},
|
68
70
|
:class => "button confirm-delete") unless hide_delete %>
|
69
71
|
<%= local_assigns[:after_delete_button] -%>
|
70
72
|
</div>
|
@@ -31,8 +31,8 @@ module Refinery
|
|
31
31
|
@database = options[:database]
|
32
32
|
|
33
33
|
template "rails/database.yml", "#{dummy_path}/config/database.yml", :force => true
|
34
|
-
template "rails/boot.rb", "#{dummy_path}/config/boot.rb", :force => true
|
35
|
-
template "rails/application.rb", "#{dummy_path}/config/application.rb", :force => true
|
34
|
+
template "rails/boot.rb.erb", "#{dummy_path}/config/boot.rb", :force => true
|
35
|
+
template "rails/application.rb.erb", "#{dummy_path}/config/application.rb", :force => true
|
36
36
|
template "rails/routes.rb", "#{dummy_path}/config/routes.rb", :force => true
|
37
37
|
template "rails/Rakefile", "#{dummy_path}/Rakefile", :force => true
|
38
38
|
end
|
File without changes
|
File without changes
|
@@ -7,7 +7,11 @@ module Refinery
|
|
7
7
|
|
8
8
|
include Refinery::ExtensionGeneration
|
9
9
|
|
10
|
-
class_option :skip_frontend,
|
10
|
+
class_option :skip_frontend,
|
11
|
+
:desc => 'Generate extension without frontend',
|
12
|
+
:type => :boolean,
|
13
|
+
:default => false,
|
14
|
+
:required => false
|
11
15
|
|
12
16
|
def skip_frontend?
|
13
17
|
options[:skip_frontend]
|
File without changes
|
File without changes
|
@@ -3,7 +3,8 @@ 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
|
6
|
+
<% end %>
|
7
|
+
attr_accessible <%= names_for_attr_accessible.map { |n| ":#{n}" }.join(', ') %>, :position
|
7
8
|
<% if localized? -%>
|
8
9
|
|
9
10
|
translates <%= localized_attributes.map{|a| ":#{a.name}"}.join(', ') %>
|
@@ -12,9 +13,7 @@ module Refinery
|
|
12
13
|
attr_accessible :locale
|
13
14
|
end
|
14
15
|
<% end -%>
|
15
|
-
<% if
|
16
|
-
|
17
|
-
attr_accessible <%= attributes.map { |attr| ":#{attr.name}" }.join(', ') %>, :position
|
16
|
+
<% if string_attributes.any? -%>
|
18
17
|
|
19
18
|
acts_as_indexed :fields => <%= string_attributes.map{|s| s.name.to_sym}.inspect %>
|
20
19
|
|
@@ -26,14 +25,13 @@ module Refinery
|
|
26
25
|
"Override def title in vendor/extensions/<%= namespacing.underscore %>/app/models/refinery/<%= namespacing.underscore %>/<%= singular_name %>.rb"
|
27
26
|
end
|
28
27
|
<% end -%>
|
29
|
-
<%
|
28
|
+
<% image_attributes.each do |a| -%>
|
30
29
|
|
31
|
-
belongs_to :<%= a.name
|
30
|
+
belongs_to :<%= a.name -%>, :class_name => '::Refinery::Image'
|
32
31
|
<% end -%>
|
33
|
-
<%
|
34
|
-
|
35
|
-
belongs_to :<%= a.name.gsub("_id", "") %>, :class_name => '::Refinery::Resource'
|
32
|
+
<% resource_attributes.each do |a| -%>
|
36
33
|
|
34
|
+
belongs_to :<%= a.name %>, :class_name => '::Refinery::Resource'
|
37
35
|
<% end -%>
|
38
36
|
end
|
39
37
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
sk:
|
2
|
+
refinery:
|
3
|
+
plugins:
|
4
|
+
<%= plural_name %>:
|
5
|
+
title: <%= plural_name.titleize %>
|
6
|
+
<%= namespacing.underscore %>:
|
7
|
+
admin:
|
8
|
+
<%= plural_name %>:
|
9
|
+
actions:
|
10
|
+
create_new: Pridať <%= singular_name.titleize %>
|
11
|
+
reorder: Preusporiadať <%= singular_name.titleize.pluralize %>
|
12
|
+
reorder_done: Koniec radenia <%= singular_name.titleize.pluralize %>
|
13
|
+
records:
|
14
|
+
title: <%= plural_name.titleize %>
|
15
|
+
sorry_no_results: Ľutujeme, ale neboli nájdené žiadne výsledky.
|
16
|
+
no_items_yet: Nie sú vytvorené žiadne <%= singular_name.titleize.pluralize %>. Kliknite na "Pridať <%= singular_name.titleize %>" pre pridanie prvého <%= singular_name.titleize.downcase %>.
|
17
|
+
<%= singular_name %>:
|
18
|
+
view_live_html: Zobraziť náhľad <%= singular_name.titleize.downcase %><br/><em>(otvorí sa v novom okne)</em>
|
19
|
+
edit: Upraviť <%= singular_name.titleize.downcase %>
|
20
|
+
delete: Zmazať <%= singular_name.titleize.downcase %>
|
21
|
+
<%= plural_name %>:
|
22
|
+
show:
|
23
|
+
other: Daľšie <%= singular_name.titleize.pluralize %>
|
24
|
+
activerecord:
|
25
|
+
attributes:
|
26
|
+
'refinery/<%= namespacing.underscore %>/<%= singular_name %>':<% attributes.each do |a| %>
|
27
|
+
<%= a.name %>: <%= a.name.titleize -%>
|
28
|
+
<% end -%>
|