0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00

Fix custom labels and descriptions

Dieser Commit ist enthalten in:
Angus McLeod 2018-05-20 11:57:48 +10:00
Ursprung 39b323c5d1
Commit b4e8572fd7

Datei anzeigen

@ -142,12 +142,12 @@ end
attributes :dropdown_none, :image attributes :dropdown_none, :image
def label def label
return object.label if object.label return object.label if object.label.present?
I18n.t("#{object.key || i18n_key}.label", default: '') I18n.t("#{object.key || i18n_key}.label", default: '')
end end
def description def description
return object.description if object.description return object.description if object.description.present?
I18n.t("#{object.key || i18n_key}.description", default: '', base_url: Discourse.base_url) I18n.t("#{object.key || i18n_key}.description", default: '', base_url: Discourse.base_url)
end end