refinerycms 0.9.7.1 → 0.9.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -2
- data/bin/refinery +2 -2
- data/changelog.md +13 -0
- data/config.ru +2 -0
- data/db/migrate/20100522020225_rename_permissions_for_resources_plugin_to_files.rb +2 -2
- data/lib/gemspec.rb +3 -6
- data/public/javascripts/refinery/admin.js +8 -0
- data/public/stylesheets/refinery/refinery.css +24 -2
- data/vendor/plugins/authentication/app/models/user.rb +5 -5
- data/vendor/plugins/authentication/app/views/users/forgot.html.erb +3 -3
- data/vendor/plugins/authentication/app/views/users/reset.html.erb +2 -2
- data/vendor/plugins/authentication/config/locales/da.yml +12 -0
- data/vendor/plugins/authentication/config/locales/de.yml +2 -0
- data/vendor/plugins/authentication/config/locales/en.yml +5 -0
- data/vendor/plugins/authentication/config/locales/es.yml +15 -3
- data/vendor/plugins/authentication/config/locales/fr.yml +2 -0
- data/vendor/plugins/authentication/config/locales/it.yml +12 -0
- data/vendor/plugins/authentication/config/locales/nb.yml +12 -0
- data/vendor/plugins/authentication/config/locales/nl.yml +12 -0
- data/vendor/plugins/authentication/config/locales/pt-BR.yml +36 -5
- data/vendor/plugins/authentication/lib/authenticated_system.rb +1 -1
- data/vendor/plugins/dashboard/app/helpers/admin/dashboard_helper.rb +8 -2
- data/vendor/plugins/dashboard/app/views/admin/dashboard/index.html.erb +11 -4
- data/vendor/plugins/dashboard/config/locales/da.yml +4 -2
- data/vendor/plugins/dashboard/config/locales/de.yml +4 -2
- data/vendor/plugins/dashboard/config/locales/en.yml +7 -2
- data/vendor/plugins/dashboard/config/locales/es.yml +8 -2
- data/vendor/plugins/dashboard/config/locales/fr.yml +4 -2
- data/vendor/plugins/dashboard/config/locales/it.yml +4 -2
- data/vendor/plugins/dashboard/config/locales/nb.yml +4 -2
- data/vendor/plugins/dashboard/config/locales/nl.yml +4 -2
- data/vendor/plugins/dashboard/config/locales/pt-BR.yml +10 -3
- data/vendor/plugins/dashboard/config/locales/sl.yml +4 -2
- data/vendor/plugins/i18n/lib/i18n.rb +30 -13
- data/vendor/plugins/i18n/lib/i18n_filter.rb +5 -5
- data/vendor/plugins/images/app/views/admin/images/index.html.erb +1 -1
- data/vendor/plugins/images/config/locales/es.yml +4 -7
- data/vendor/plugins/images/config/locales/pt-BR.yml +1 -1
- data/vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb +5 -0
- data/vendor/plugins/inquiries/config/locales/da.yml +4 -3
- data/vendor/plugins/inquiries/config/locales/de.yml +3 -2
- data/vendor/plugins/inquiries/config/locales/en.yml +1 -0
- data/vendor/plugins/inquiries/config/locales/es.yml +3 -2
- data/vendor/plugins/inquiries/config/locales/fr.yml +3 -2
- data/vendor/plugins/inquiries/config/locales/it.yml +3 -2
- data/vendor/plugins/inquiries/config/locales/nb.yml +3 -3
- data/vendor/plugins/inquiries/config/locales/nl.yml +3 -2
- data/vendor/plugins/inquiries/config/locales/pt-BR.yml +23 -19
- data/vendor/plugins/pages/config/locales/pt-BR.yml +11 -1
- data/vendor/plugins/pages/config/locales/sl.yml +1 -1
- data/vendor/plugins/refinery/app/views/layouts/admin.html.erb +1 -1
- data/vendor/plugins/refinery/app/views/shared/_site_bar.html.erb +1 -2
- data/vendor/plugins/refinery/app/views/shared/admin/_search.html.erb +4 -1
- data/vendor/plugins/refinery/config/locales/da.yml +5 -3
- data/vendor/plugins/refinery/config/locales/de.yml +5 -3
- data/vendor/plugins/refinery/config/locales/en.yml +5 -3
- data/vendor/plugins/refinery/config/locales/es.yml +5 -3
- data/vendor/plugins/refinery/config/locales/fr.yml +2 -3
- data/vendor/plugins/refinery/config/locales/it.yml +5 -3
- data/vendor/plugins/refinery/config/locales/nb.yml +5 -3
- data/vendor/plugins/refinery/config/locales/nl.yml +2 -3
- data/vendor/plugins/refinery/config/locales/pt-BR.yml +8 -2
- data/vendor/plugins/refinery/config/locales/sl.yml +2 -4
- data/vendor/plugins/refinery/lib/generators/refinery/templates/migration.rb +1 -1
- data/vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb +1 -1
- data/vendor/plugins/refinery/lib/refinery.rb +1 -1
- data/vendor/plugins/refinery/lib/refinery/application_controller.rb +3 -3
- data/vendor/plugins/refinery_settings/app/views/admin/refinery_settings/index.html.erb +1 -1
- data/vendor/plugins/refinery_settings/config/locales/sl.yml +0 -1
- data/vendor/plugins/resources/app/views/admin/resources/index.html.erb +1 -1
- data/vendor/plugins/resources/config/locales/da.yml +0 -2
- data/vendor/plugins/resources/config/locales/en.yml +4 -3
- data/vendor/plugins/resources/config/locales/es.yml +0 -2
- data/vendor/plugins/resources/config/locales/fr.yml +0 -2
- data/vendor/plugins/resources/config/locales/it.yml +0 -1
- data/vendor/plugins/resources/config/locales/nb.yml +0 -2
- data/vendor/plugins/resources/config/locales/nl.yml +0 -2
- data/vendor/plugins/resources/config/locales/pt-BR.yml +0 -2
- data/vendor/plugins/resources/config/locales/sl.yml +0 -2
- data/vendor/plugins/translate/tasks/translate.rake +20 -9
- metadata +5 -9
- data/bin/refinery-update-core +0 -126
- data/vendor/plugins/inquiries/app/views/admin/inquiry_settings/_inquiry_setting.html.erb +0 -11
- data/vendor/plugins/inquiries/app/views/admin/inquiry_settings/index.html.erb +0 -21
@@ -6,9 +6,15 @@ module Admin::DashboardHelper
|
|
6
6
|
# work out which action occured
|
7
7
|
action = record.updated_at.eql?(record.created_at) ? "created" : "updated"
|
8
8
|
|
9
|
+
# get article to define gender of model name, some languages require this for proper grammar
|
10
|
+
article = t("plugins.#{record.class.name.pluralize.downcase}.article", :default => 'the')
|
11
|
+
|
9
12
|
# now create a link to the notification's corresponding record.
|
10
|
-
link_to "
|
11
|
-
|
13
|
+
link_to t(".latest_activity_message",
|
14
|
+
:what => record.send(activity.title),
|
15
|
+
:kind => record.class.human_name,
|
16
|
+
:action => t("#{action}.with_article \"#{article}\"")
|
17
|
+
).downcase.capitalize, eval("#{activity.url}(#{activity.nesting("record")}record)")
|
12
18
|
end
|
13
19
|
end
|
14
20
|
|
@@ -35,10 +35,17 @@
|
|
35
35
|
</ul>
|
36
36
|
|
37
37
|
<% if Refinery::I18n.enabled? %>
|
38
|
-
|
39
|
-
<ul>
|
40
|
-
|
41
|
-
|
38
|
+
<% current_locale = ::Refinery::I18n.locales.detect{|key, value| key.to_sym == ::I18n.locale} -%>
|
39
|
+
<ul id='current_locale'>
|
40
|
+
<li>
|
41
|
+
<%= link_to "#{current_locale.last} <span>#{t('.change_language')}</span><span style='display:none;'>#{t('shared.admin.form_actions.cancel')}</span>".html_safe,
|
42
|
+
"#",
|
43
|
+
:style => "background-image: url('/images/refinery/icons/flags/#{current_locale.first}.png');" %>
|
44
|
+
</li>
|
45
|
+
</ul>
|
46
|
+
<ul id='other_locales' style='display: none'>
|
47
|
+
<% Refinery::I18n.locales.reject{|key, value| key.to_sym == ::I18n.locale}.sort_by{|key, value| value}.each do |locale_key, locale_title| %>
|
48
|
+
<li>
|
42
49
|
<%= link_to locale_title,
|
43
50
|
params.dup.tap { |p| p[:set_locale] = locale_key }, # Use the current params, just change the locale
|
44
51
|
:style => "background-image: url('/images/refinery/icons/flags/#{locale_key}.png');" %>
|
@@ -16,7 +16,9 @@ da:
|
|
16
16
|
see: Vis '{{what}}'
|
17
17
|
recent_inquiries:
|
18
18
|
latest_inquiries: Latest inquiries
|
19
|
-
updated:
|
20
|
-
|
19
|
+
updated:
|
20
|
+
'with_article "the"': opdateret
|
21
|
+
created:
|
22
|
+
'with_article "the"': oprettet
|
21
23
|
ago: "{{time}} siden"
|
22
24
|
see: Vis
|
@@ -16,7 +16,9 @@ de:
|
|
16
16
|
see: "'{{what}}' ansehen"
|
17
17
|
recent_inquiries:
|
18
18
|
latest_inquiries: Latest inquiries
|
19
|
-
updated:
|
20
|
-
|
19
|
+
updated:
|
20
|
+
'with_article "the"': aktualisiert
|
21
|
+
created:
|
22
|
+
'with_article "the"': erstellt
|
21
23
|
ago: "vor {{time}}"
|
22
24
|
see: Ansehen
|
@@ -9,14 +9,19 @@ en:
|
|
9
9
|
add_a_new_page: Add a new page
|
10
10
|
update_a_page: Update a page
|
11
11
|
upload_a_image: Upload a image
|
12
|
+
upload_a_file: Upload a file
|
12
13
|
change_language: Change Language
|
13
14
|
see_home_page: See home page
|
14
15
|
recent_activity:
|
15
16
|
latest_activity: Latest activity
|
16
17
|
see: "See '{{what}}'"
|
18
|
+
latest_activity_message: "{{what}} {{kind}} was {{action}}"
|
17
19
|
recent_inquiries:
|
18
20
|
latest_inquiries: Latest inquiries
|
19
|
-
updated:
|
20
|
-
|
21
|
+
updated:
|
22
|
+
'with_article "the"': updated
|
23
|
+
created:
|
24
|
+
'with_article "the"': created
|
25
|
+
|
21
26
|
ago: "{{time}} ago"
|
22
27
|
see: See
|
@@ -16,7 +16,13 @@ es:
|
|
16
16
|
see: Vee '{{what}}'
|
17
17
|
recent_inquiries:
|
18
18
|
latest_inquiries: Latest inquiries
|
19
|
-
updated:
|
20
|
-
|
19
|
+
updated:
|
20
|
+
'with_article "las"': actualizadas
|
21
|
+
'with_article "los"': actualizado
|
22
|
+
'with_article "the"': actualizado
|
23
|
+
created:
|
24
|
+
'with_article "las"': creadas
|
25
|
+
'with_article "los"': creados
|
26
|
+
'with_article "the"': creado
|
21
27
|
ago: "hace {{time}}"
|
22
28
|
see: Ver
|
@@ -16,7 +16,9 @@ fr:
|
|
16
16
|
see: Voir '{{what}}'
|
17
17
|
recent_inquiries:
|
18
18
|
latest_inquiries: Latest inquiries
|
19
|
-
updated:
|
20
|
-
|
19
|
+
updated:
|
20
|
+
'with_article "the"': a été mis à jour
|
21
|
+
created:
|
22
|
+
'with_article "the"': a été créer
|
21
23
|
ago: "Il y a {{time}}"
|
22
24
|
see: Voir
|
@@ -16,7 +16,9 @@ it:
|
|
16
16
|
see: Vedere '{{what}}'
|
17
17
|
recent_inquiries:
|
18
18
|
latest_inquiries: Latest inquiries
|
19
|
-
updated:
|
20
|
-
|
19
|
+
updated:
|
20
|
+
'with_article "the"': aggiornato
|
21
|
+
created:
|
22
|
+
'with_article "the"': creato
|
21
23
|
ago: "{{time}} fa"
|
22
24
|
see: Vedere
|
@@ -16,7 +16,9 @@ nb:
|
|
16
16
|
see: Se '{{what}}'
|
17
17
|
recent_inquiries:
|
18
18
|
latest_inquiries: Latest inquiries
|
19
|
-
updated:
|
20
|
-
|
19
|
+
updated:
|
20
|
+
'with_article "the"': oppdatert
|
21
|
+
created:
|
22
|
+
'with_article "the"': opprettet
|
21
23
|
ago: "{{time}} siden"
|
22
24
|
see: Se
|
@@ -16,7 +16,9 @@ nl:
|
|
16
16
|
see: Bezoek de '{{what}}'
|
17
17
|
recent_inquiries:
|
18
18
|
latest_inquiries: Latest inquiries
|
19
|
-
updated:
|
20
|
-
|
19
|
+
updated:
|
20
|
+
'with_article "the"': bewerkt
|
21
|
+
created:
|
22
|
+
'with_article "the"': aangemaakt
|
21
23
|
ago: "{{time}} geleden"
|
22
24
|
see: Zie
|
@@ -13,10 +13,17 @@ pt-BR:
|
|
13
13
|
change_language: Mudar Língua
|
14
14
|
recent_activity:
|
15
15
|
latest_activity: Atividade Recente
|
16
|
-
see: Ver '{{what}}'
|
16
|
+
see: "Ver '{{what}}'"
|
17
|
+
latest_activity_message: "{{kind}} {{what}} foi {{action}}"
|
17
18
|
recent_inquiries:
|
18
19
|
latest_inquiries: Latest inquiries
|
19
|
-
updated:
|
20
|
-
|
20
|
+
updated:
|
21
|
+
'with_article "as"': atualizada
|
22
|
+
'with_article "os"': atualizado
|
23
|
+
'with_article "the"': atualizado
|
24
|
+
created:
|
25
|
+
'with_article "as"': criada
|
26
|
+
'with_article "os"': criado
|
27
|
+
'with_article "the"': criado
|
21
28
|
ago: "{{time}} atrás"
|
22
29
|
see: Ver
|
@@ -16,7 +16,9 @@ sl:
|
|
16
16
|
see: Poglej '{{what}}'
|
17
17
|
recent_inquiries:
|
18
18
|
latest_inquiries: Latest inquiries
|
19
|
-
updated:
|
20
|
-
|
19
|
+
updated:
|
20
|
+
'with_article "the"': posodobitev
|
21
|
+
created:
|
22
|
+
'with_article "the"': ustvarjena
|
21
23
|
ago: "{{time}} nazaj"
|
22
24
|
see: Poglej
|
@@ -1,14 +1,14 @@
|
|
1
1
|
class Refinery::I18n
|
2
2
|
class << self
|
3
3
|
|
4
|
-
attr_accessor :enabled, :current_locale, :locales, :default_locale
|
4
|
+
attr_accessor :enabled, :current_locale, :locales, :default_locale, :default_frontend_locale
|
5
5
|
|
6
6
|
def enabled?
|
7
7
|
# cache this lookup as it gets very expensive.
|
8
8
|
if defined?(@enabled) && !@enabled.nil?
|
9
9
|
@enabled
|
10
10
|
else
|
11
|
-
@enabled = RefinerySetting.find_or_set(:i18n_translation_enabled,
|
11
|
+
@enabled = RefinerySetting.find_or_set(:i18n_translation_enabled, true, {
|
12
12
|
:callback_proc_as_string => %q{::Refinery::I18n.setup!},
|
13
13
|
:scoping => 'refinery'
|
14
14
|
})
|
@@ -17,9 +17,10 @@ class Refinery::I18n
|
|
17
17
|
|
18
18
|
def current_locale
|
19
19
|
unless enabled?
|
20
|
-
::Refinery::I18n.current_locale =
|
20
|
+
::Refinery::I18n.current_locale = ::Refinery::I18n.default_locale
|
21
21
|
else
|
22
|
-
@current_locale ||= RefinerySetting.find_or_set(:i18n_translation_current_locale,
|
22
|
+
@current_locale ||= RefinerySetting.find_or_set(:i18n_translation_current_locale,
|
23
|
+
::Refinery::I18n.default_locale, {
|
23
24
|
:scoping => 'refinery',
|
24
25
|
:callback_proc_as_string => %q{::Refinery::I18n.setup!}
|
25
26
|
})
|
@@ -36,6 +37,22 @@ class Refinery::I18n
|
|
36
37
|
::I18n.locale = locale.to_sym
|
37
38
|
end
|
38
39
|
|
40
|
+
def default_locale
|
41
|
+
@default_locale ||= RefinerySetting.find_or_set(:i18n_translation_default_locale,
|
42
|
+
:en, {
|
43
|
+
:callback_proc_as_string => %q{::Refinery::I18n.setup!},
|
44
|
+
:scoping => 'refinery'
|
45
|
+
})
|
46
|
+
end
|
47
|
+
|
48
|
+
def default_frontend_locale
|
49
|
+
@default_frontend_locale ||= RefinerySetting.find_or_set(:i18n_translation_default_frontend_locale,
|
50
|
+
:en, {
|
51
|
+
:scoping => 'refinery',
|
52
|
+
:callback_proc_as_string => %q{::Refinery::I18n.setup!}
|
53
|
+
})
|
54
|
+
end
|
55
|
+
|
39
56
|
def locales
|
40
57
|
@locales ||= RefinerySetting.find_or_set(:i18n_translation_locales, {
|
41
58
|
:en => 'English',
|
@@ -64,6 +81,9 @@ class Refinery::I18n
|
|
64
81
|
# Re-initialize variables.
|
65
82
|
@enabled = nil
|
66
83
|
@locales = nil
|
84
|
+
@default_locale = nil
|
85
|
+
@default_frontend_locale = nil
|
86
|
+
@current_locale = nil
|
67
87
|
|
68
88
|
self.load_base_locales!
|
69
89
|
self.load_refinery_locales!
|
@@ -71,9 +91,9 @@ class Refinery::I18n
|
|
71
91
|
self.set_default_locale!
|
72
92
|
|
73
93
|
# Mislav trick to fallback to default for missing translations
|
74
|
-
I18n.exception_handler = lambda do |e, locale, key, options|
|
75
|
-
if I18n::MissingTranslationData === e and locale != I18n.default_locale
|
76
|
-
I18n.translate(key, (options || {}).update(:locale => I18n.default_locale, :raise => true))
|
94
|
+
::I18n.exception_handler = lambda do |e, locale, key, options|
|
95
|
+
if ::I18n::MissingTranslationData === e and locale != ::Refinery::I18n.default_locale
|
96
|
+
::I18n.translate(key, (options || {}).update(:locale => ::Refinery::I18n.default_locale, :raise => true))
|
77
97
|
else
|
78
98
|
raise e
|
79
99
|
end
|
@@ -93,17 +113,14 @@ class Refinery::I18n
|
|
93
113
|
end
|
94
114
|
|
95
115
|
def set_default_locale!
|
96
|
-
I18n.default_locale =
|
97
|
-
:callback_proc_as_string => %q{::Refinery::I18n.setup!},
|
98
|
-
:scoping => 'refinery'
|
99
|
-
})
|
116
|
+
::I18n.default_locale = ::Refinery::I18n.default_locale
|
100
117
|
end
|
101
118
|
|
102
119
|
def load_locales(locale_files)
|
103
120
|
locale_files = locale_files.to_s if locale_files.is_a? Pathname
|
104
121
|
locale_files = Dir[locale_files] if locale_files.is_a? String
|
105
122
|
locale_files.each do |locale_file|
|
106
|
-
I18n.load_path.unshift locale_file
|
123
|
+
::I18n.load_path.unshift locale_file
|
107
124
|
end
|
108
125
|
end
|
109
126
|
|
@@ -111,5 +128,5 @@ class Refinery::I18n
|
|
111
128
|
end
|
112
129
|
|
113
130
|
if RefinerySetting.table_exists?
|
114
|
-
Refinery::I18n.setup!
|
131
|
+
::Refinery::I18n.setup!
|
115
132
|
end
|
@@ -5,7 +5,7 @@ module RoutingFilter
|
|
5
5
|
if ::Refinery::I18n.enabled?
|
6
6
|
locale = nil
|
7
7
|
if path =~ %r{^\/#{::Refinery::I18n.locales.keys.join('|')}\/}
|
8
|
-
if path !~ %r{^/(admin|refinery|wymiframe)}
|
8
|
+
if path !~ %r{^/(sessions?|admin|refinery|wymiframe)}
|
9
9
|
path.sub! %r(^/(([a-zA-Z\-_])*)(?=/|$)) do
|
10
10
|
locale = $1
|
11
11
|
::I18n.locale = locale
|
@@ -13,12 +13,12 @@ module RoutingFilter
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
else
|
16
|
-
::I18n.locale = ::Refinery::I18n.
|
16
|
+
::I18n.locale = ::Refinery::I18n.default_frontend_locale
|
17
17
|
end
|
18
18
|
|
19
19
|
returning yield do |params|
|
20
|
-
unless path =~ %r{^/(admin|refinery|wymiframe)} or ::I18n.locale == ::Refinery::I18n.
|
21
|
-
params[:locale] = (locale.presence || ::Refinery::I18n.
|
20
|
+
unless path =~ %r{^/(admin|refinery|wymiframe)} or ::I18n.locale == ::Refinery::I18n.default_frontend_locale
|
21
|
+
params[:locale] = (locale.presence || ::Refinery::I18n.current_frontend_locale)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
else
|
@@ -32,7 +32,7 @@ module RoutingFilter
|
|
32
32
|
if ::Refinery::I18n.enabled?
|
33
33
|
locale = args.extract_options!.delete(:locale) || ::I18n.locale
|
34
34
|
returning yield do |result|
|
35
|
-
if (locale != ::Refinery::I18n.
|
35
|
+
if (locale != ::Refinery::I18n.default_frontend_locale and result !~ %r{^/(refinery|wymiframe)})
|
36
36
|
result.sub!(%r(^(http.?://[^/]*)?(.*))){ "#{$1}/#{locale}#{$2}" }
|
37
37
|
end
|
38
38
|
result
|
@@ -2,9 +2,9 @@ es:
|
|
2
2
|
plugins:
|
3
3
|
refinery_images:
|
4
4
|
title: Imágenes
|
5
|
-
|
6
5
|
no_file_chosen: Debe elegir un fiechero para cargar.
|
7
|
-
|
6
|
+
file_should_be_smaller_than_max_image_size: Los ficheros deben ser menores de {{max_image_size}} de tamaño
|
7
|
+
file_must_be_these_formats: Su imagen debe ser un archivo JPG, PNG o GIF
|
8
8
|
admin:
|
9
9
|
images:
|
10
10
|
form:
|
@@ -21,19 +21,16 @@ es:
|
|
21
21
|
switch_to: Cambiar a vista de {{view_name}}
|
22
22
|
list: lista
|
23
23
|
grid: mosaico
|
24
|
-
search:
|
25
|
-
results_for: Resultados de la búsqueda '''{{query}}'''
|
26
|
-
no_results_found: No se han encontrado resultados
|
27
24
|
grid_view:
|
28
25
|
click_to_view: "Pulse para ver '{{title}}'<br/><em>Abre una nueva ventana</em>"
|
29
26
|
edit: Editar esta imagen
|
30
27
|
confirm_delete:
|
31
|
-
message: "¿Esta seguro de que desea eliminar la imagen ''{{title}}''?"
|
28
|
+
message: "¿Esta seguro de que desea eliminar la imagen ''{{title}}''?"
|
32
29
|
title: Borrar esta imagen
|
33
30
|
list_view_image:
|
34
31
|
edit_this_image: Editar esta imagen
|
35
32
|
delete:
|
36
|
-
message: "¿Esta seguro de que desea eliminar la imagen ''{{title}}''?"
|
33
|
+
message: "¿Esta seguro de que desea eliminar la imagen ''{{title}}''?"
|
37
34
|
title: Borrar esta imagen
|
38
35
|
insert:
|
39
36
|
existing_image: Imagen existente
|
@@ -6,6 +6,7 @@ pt-BR:
|
|
6
6
|
title: Imagens
|
7
7
|
no_file_chosen: Você deve escolher um arquivo para enviar
|
8
8
|
file_should_be_smaller_than_max_image_size: Arquivos devem possuir menos de {{max_image_size}} de tamanho
|
9
|
+
file_must_be_these_formats: Sua imagem deve ser uma JPG, PNG ou GIF
|
9
10
|
admin:
|
10
11
|
images:
|
11
12
|
form:
|
@@ -16,7 +17,6 @@ pt-BR:
|
|
16
17
|
current_image: Imagem atual
|
17
18
|
maximum_image_size: "The maximum image size is {{megabytes}} megabytes."
|
18
19
|
index:
|
19
|
-
no_results_found: Desculpe, nenhum resultado encontrado.
|
20
20
|
create_new_image: Criar Nova Imagem
|
21
21
|
no_images_yet: Ainda não existem imagens.<br/> Clique em "Criar Nova Imagem" para adicionar sua primeira imagem.
|
22
22
|
view:
|
@@ -2,9 +2,14 @@ class Admin::InquirySettingsController < Admin::BaseController
|
|
2
2
|
|
3
3
|
crudify :inquiry_setting, :title_attribute => "name", :order => 'name ASC', :redirect_to_url => "admin_inquiries_url"
|
4
4
|
|
5
|
+
before_filter :redirect_back_to_inquiries?, :only => [:index]
|
5
6
|
before_filter :set_url_override?, :only => [:edit]
|
6
7
|
|
7
8
|
protected
|
9
|
+
def redirect_back_to_inquiries?
|
10
|
+
redirect_to admin_inquiries_url
|
11
|
+
end
|
12
|
+
|
8
13
|
def set_url_override?
|
9
14
|
@url_override = admin_inquiry_setting_url(@inquiry_setting, :dialog => from_dialog?)
|
10
15
|
end
|
@@ -31,9 +31,7 @@ da:
|
|
31
31
|
closed: "Henvendelsen '{{inquiry}}' er lukket"
|
32
32
|
reopened: "Henvendelsen '{{inquiry}}' er genåbnet"
|
33
33
|
index:
|
34
|
-
|
35
|
-
edit_confirmation_email: Redigér e-mailbekræftelse
|
36
|
-
search_results_for: Søgeresultat for '{{query}}'
|
34
|
+
search_results_for: "Søgeresultat for '{{query}}'"
|
37
35
|
no_inquiries: Du har endnu ikke modtaget nogen henvendelser.
|
38
36
|
show:
|
39
37
|
details: Detaljer
|
@@ -45,6 +43,9 @@ da:
|
|
45
43
|
actions: Handlinger
|
46
44
|
back_to_all_inquiries: Tilbage til alle henvendelser
|
47
45
|
inquiry: Henvendelse
|
46
|
+
submenu:
|
47
|
+
update_notified: Opdatér, hvem der får besked
|
48
|
+
edit_confirmation_email: Redigér e-mailbekræftelse
|
48
49
|
inquiry_settings:
|
49
50
|
update:
|
50
51
|
updated: "'{{setting}}' er opdateret."
|
@@ -31,8 +31,6 @@ de:
|
|
31
31
|
closed: "Kontaktanfrage '{{inquiry}}' ist geschlossen"
|
32
32
|
reopened: "Kontaktanfrage '{{inquiry}}' ist neu geöffnet"
|
33
33
|
index:
|
34
|
-
update_notified: Wer wird benachrichtigt aktualisieren
|
35
|
-
edit_confirmation_email: Bestätigungsmail bearbeiten
|
36
34
|
search_results_for: Suchergebnisse für {{query}}
|
37
35
|
open_inquiries: Offene Anfragen
|
38
36
|
no_inquiries: "Juhuu! Es gibt keine offenen Kontaktanfragen, da Sie bereits alle Anfragen abgearbeitet haben."
|
@@ -48,6 +46,9 @@ de:
|
|
48
46
|
actions: Aktionen
|
49
47
|
back_to_all_inquiries: Zurück zu allen Kontaktanfragen
|
50
48
|
inquiry: Kontaktanfrage
|
49
|
+
submenu:
|
50
|
+
update_notified: Wer wird benachrichtigt aktualisieren
|
51
|
+
edit_confirmation_email: Bestätigungsmail bearbeiten
|
51
52
|
inquiry_settings:
|
52
53
|
update:
|
53
54
|
updated: "'{{setting}}' wurde erfolgreich aktualisiert."
|