sugar 0.0.26 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/sugar/actionview.rb +3 -3
- data/sugar.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.27
|
data/lib/sugar/actionview.rb
CHANGED
@@ -15,9 +15,9 @@ module Sugar
|
|
15
15
|
when 'index'
|
16
16
|
controller_name.camelize
|
17
17
|
when 'new', 'create'
|
18
|
-
"#{t('new', :default => 'New')} #{controller_name.classify.constantize.human_name}"
|
18
|
+
"#{t('krasivotokak.sugar.new', :default => 'New')} #{controller_name.classify.constantize.human_name}"
|
19
19
|
when 'edit', 'update'
|
20
|
-
"#{t('edit', :default => 'Editing')} #{controller_name.classify.constantize.human_name}"
|
20
|
+
"#{t('krasivotokak.sugar.edit', :default => 'Editing')} #{controller_name.classify.constantize.human_name}"
|
21
21
|
else
|
22
22
|
t("#{controller_name}.#{view_name}.title")
|
23
23
|
end
|
@@ -41,7 +41,7 @@ module Sugar
|
|
41
41
|
# Put submit with proper text
|
42
42
|
def submit(form, title = nil)
|
43
43
|
title ||= t("#{controller.controller_name}.#{view_name}.submit",
|
44
|
-
:default => form.object.new_record? ? "#{t('create', :default => 'Add')} #{form.object.class.human_name}" : "#{t('update', :default => 'Save')} #{form.object.class.human_name}")
|
44
|
+
:default => form.object.new_record? ? "#{t('krasivotokak.sugar.create', :default => 'Add')} #{form.object.class.human_name}" : "#{t('krasivotokak.sugar.update', :default => 'Save')} #{form.object.class.human_name}")
|
45
45
|
form.submit(title)
|
46
46
|
end
|
47
47
|
|
data/sugar.gemspec
CHANGED