Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/locales/server.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ en:
unsupported_serializers: "'%{serializers}' are not supported serializers for '%{class}'"
unsupported_type: "%{type} is not a supported custom field type"
name_invalid: "'%{name}' is not a valid custom field name"
name_too_short: "'%{name}' is too short for a custom field name (min length is #{min_length})"
name_too_short: "'%{name}' is too short for a custom field name (min length is %{min_length})"
name_already_taken: "'%{name}' is already taken as a custom field name"
save_default: "Failed to save custom field '%{name}'"
subscription_type: "%{type} custom fields require a subscription"
Expand Down
87 changes: 52 additions & 35 deletions config/locales/server.it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,68 @@ it:
admin:
wizard:
submission:
no_user: "deleted (user_id: %{user_id})"
no_user: "eliminato (user_id: %{user_id})"

wizard:
custom_title: "Wizard"

custom_field:
error:
required_attribute: "'%{attr}' is a required attribute"
unsupported_class: "'%{class}' is not a supported class"
unsupported_serializers: "'%{serializers}' are not supported serializers for '%{class}'"
unsupported_type: "%{type} is not a supported custom field type"
name_invalid: "'%{name}' is not a valid custom field name"
name_too_short: "'%{name}' is too short for a custom field name (min length is #{min_length})"
name_already_taken: "'%{name}' is already taken as a custom field name"
save_default: "Failed to save custom field '%{name}'"
required_attribute: "'%{attr}' è un attributo obbligatorio"
unsupported_class: "'%{class}' non è una classe supportata"
unsupported_serializers: "'%{serializers}' non sono serializer supportati per '%{class}'"
unsupported_type: "%{type} non è un tipo di campo personalizzato supportato"
name_invalid: "'%{name}' non è un nome valido per un campo personalizzato"
name_too_short: "'%{name}' è troppo corto come nome di un campo personalizzato (lunghezza minima: %{min_length})"
name_already_taken: "'%{name}' è già usato come nome di un campo personalizzato"
save_default: "Impossibile salvare il campo personalizzato '%{name}'"
subscription_type: "I campi personalizzati di tipo %{type} richiedono un abbonamento"

field:
too_short: "%{label} must be at least %{min} characters"
too_long: "%{label} must not be more than %{max} characters"
required: "%{label} is required."
not_url: "%{label} must be a valid url"
invalid_file: "%{label} must be a %{types}"
invalid_date: "Invalid date"
invalid_time: "Invalid time"
none: "We couldn't find a wizard at that address."
no_skip: "Wizard can't be skipped"
too_short: "%{label} deve contenere almeno %{min} caratteri"
too_long: "%{label} non deve superare i %{max} caratteri"
required: "%{label} è obbligatorio."
not_url: "%{label} deve essere un URL valido"
answer_incorrect: "%{label} non è corretto. Riprova."
invalid_file: "%{label} deve essere un file di tipo %{types}"
invalid_option: "%{label} contiene un'opzione non disponibile"
invalid_date: "Data non valida"
invalid_time: "Orario non valido"

none: "Non abbiamo trovato nessun wizard a questo indirizzo."
no_skip: "Questo wizard non può essere saltato"
export:
error:
select_one: "Please select at least one valid wizard"
invalid_wizards: "No valid wizards selected"
select_one: "Seleziona almeno un wizard valido"
invalid_wizards: "Nessun wizard valido selezionato"

import:
error:
no_file: "No file selected"
file_large: "File too large"
invalid_json: "File is not a valid json file"
no_file: "Nessun file selezionato"
file_large: "File troppo grande"
invalid_json: "Il file non è un file JSON valido"

destroy:
error:
no_template: No template found
default: Error destroying wizard
no_template: Nessun template trovato
default: Errore durante l'eliminazione del wizard

validation:
required: "%{property} is required"
conflict: "Wizard with id '%{wizard_id}' already exists"
after_signup: "You can only have one 'after signup' wizard at a time. %{wizard_id} has 'after signup' enabled."
after_signup_after_time: "You can't use 'after time' and 'after signup' on the same wizard."
after_time: "After time setting is invalid."
liquid_syntax_error: "Liquid syntax error in %{attribute}: %{message}"
required: "%{property} è obbligatorio"
conflict: "Esiste già un wizard con id '%{wizard_id}'"
after_signup: "Può esserci un solo wizard 'Registrazione' alla volta. %{wizard_id} ha già 'Registrazione' attivo."
after_signup_after_time: "Non puoi usare 'Ora' e 'Registrazione' nello stesso wizard."
after_time: "L'impostazione 'Ora' non è valida."
after_time_group: "Il gruppo indicato in 'Ora' non esiste: %{group_name}"
liquid_syntax_error: "Errore di sintassi Liquid in %{attribute}: %{message}"
subscription: "L'uso di %{type} %{property} non è incluso nel tuo abbonamento"
not_permitted_for_guests: "%{object_id} non è consentito quando gli ospiti possono accedere al wizard"
error_messages:
wizard_replacing_composer: "Categoria non consentita per la creazione di argomenti."

site_settings:
custom_wizard_enabled: "Enable custom wizards."
wizard_redirect_exclude_paths: "Routes excluded from wizard redirects."
wizard_recognised_image_upload_formats: "File types which will result in upload displaying an image preview"
wizard_apis_enabled: "Enable API features (experimental)."
custom_wizard_enabled: "Abilita i wizard personalizzati."
wizard_redirect_exclude_paths: "Percorsi esclusi dai reindirizzamenti dei wizard."
wizard_recognised_image_upload_formats: "Tipi di file per cui il caricamento mostra l'anteprima dell'immagine"
wizard_apis_enabled: "Abilita le funzioni API (sperimentale)."
wizard_critical_notices_on_dashboard: "Mostra nella dashboard di amministrazione gli avvisi critici sul plugin Custom Wizard."
2 changes: 1 addition & 1 deletion plugin.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true
# name: discourse-custom-wizard
# about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more.
# version: 2.18.17
# version: 2.18.18
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Marcos Gutierrez
# url: https://github.com/paviliondev/discourse-custom-wizard
# contact_emails: development@pavilion.tech
Expand Down
6 changes: 5 additions & 1 deletion spec/components/custom_wizard/custom_field_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@
expect(custom_field.save).to eq(false)
expect(custom_field.valid?).to eq(false)
expect(custom_field.errors.full_messages.first).to eq(
I18n.t("wizard.custom_field.error.name_too_short", name: "cf"),
I18n.t(
"wizard.custom_field.error.name_too_short",
name: "cf",
min_length: CustomWizard::CustomField::NAME_MIN_LENGTH,
),
)
expect(
PluginStoreRow.where(
Expand Down
Loading