Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +01:00
FIX: explicitly lookup for translation overrides in wizard theme
Dieser Commit ist enthalten in:
Ursprung
cf50a7deb3
Commit
e79458f6ce
2 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
|
@ -8,6 +8,7 @@ class CustomWizard::WizardController < ::ApplicationController
|
|||
helper_method :wizard_page_title
|
||||
helper_method :wizard_theme_ids
|
||||
helper_method :wizard_theme_lookup
|
||||
helper_method :wizard_theme_translations_lookup
|
||||
|
||||
def wizard
|
||||
CustomWizard::Wizard.create(params[:wizard_id].underscore, current_user)
|
||||
|
@ -25,6 +26,10 @@ class CustomWizard::WizardController < ::ApplicationController
|
|||
Theme.lookup_field(wizard_theme_ids, mobile_view? ? :mobile : :desktop, name)
|
||||
end
|
||||
|
||||
def wizard_theme_translations_lookup
|
||||
Theme.lookup_field(wizard_theme_ids, :translations, I18n.locale)
|
||||
end
|
||||
|
||||
def index
|
||||
respond_to do |format|
|
||||
format.json do
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<%= csrf_meta_tags %>
|
||||
|
||||
<%- unless customization_disabled? %>
|
||||
<%= theme_translations_lookup %>
|
||||
<%= wizard_theme_translations_lookup %>
|
||||
<%= raw wizard_theme_lookup("head_tag") %>
|
||||
<%- end %>
|
||||
|
||||
|
|
Laden …
In neuem Issue referenzieren