decidim-system 0.27.6 → 0.27.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32dd8e4f06f7bfa17ab71d8d6201e5fd84750e5018b40756219c7c120a932915
4
- data.tar.gz: 45e0c1691d342cc76724e35e31ffd2a7e2f1873eac2815b2ca33466b4f4c5276
3
+ metadata.gz: cc7526284978d0669281440da393f61c6c57ea23413f1856b54a5ab7e3261e81
4
+ data.tar.gz: 2a043759ee7798e02bb0eb6acf0e682fe1aaa01aaf22d48541b66b37771d9c97
5
5
  SHA512:
6
- metadata.gz: 26ead00fef6fc58eaa4ce3ccf077979d27b65428c83c6ec539b0ea79c5cff26a8b06f9df80c4619eb8b947b70df75065cbb47f565ae83e41294124cedddf0549
7
- data.tar.gz: 14fc50bb561dbdb5a152c667a8a6402459f8d4b2a1f877a8a27caaa3973259450953879e3e31b2f219692515cd623bdc6bec4aae7160bc79d26a2f4936d956df
6
+ metadata.gz: 749b2cd1a8cb7b5eace5379920de59020ade2c5ae13b14f4aa0224124e284edb2f94dfc36ac847394a71f98dd872cb739b123166011a0f08fe37e92a67d67059
7
+ data.tar.gz: 3199148ee8172a315c01e6e7916e8b720dacb0242f02af79f8b6274f12ad139ba9508e48dd10bc0abecb515e685abb78c7600b15aad782baed96f5f24f598496
@@ -2,6 +2,9 @@
2
2
 
3
3
  module Decidim
4
4
  module System
5
+ class InvitationFailedError < ActiveRecord::RecordInvalid
6
+ end
7
+
5
8
  # A command with all the business logic when creating a new organization in
6
9
  # the system. It creates the organization and invites the admin to the
7
10
  # system.
@@ -24,7 +27,6 @@ module Decidim
24
27
 
25
28
  @organization = nil
26
29
  invite_form = nil
27
- invitation_failed = false
28
30
 
29
31
  transaction do
30
32
  @organization = create_organization
@@ -32,13 +34,14 @@ module Decidim
32
34
  PopulateHelp.call(@organization)
33
35
  CreateDefaultContentBlocks.call(@organization)
34
36
  invite_form = invite_user_form(@organization)
35
- invitation_failed = invite_form.invalid?
37
+ raise InvitationFailedError if invite_form.invalid?
36
38
  end
37
- return broadcast(:invalid) if invitation_failed
38
39
 
39
40
  Decidim::InviteUser.call(invite_form) if @organization && invite_form
40
41
 
41
42
  broadcast(:ok)
43
+ rescue InvitationFailedError
44
+ broadcast(:invalid_invitation)
42
45
  rescue ActiveRecord::RecordInvalid, ActiveRecord::RecordNotUnique
43
46
  broadcast(:invalid)
44
47
  end
@@ -22,6 +22,11 @@ module Decidim
22
22
  redirect_to organizations_path
23
23
  end
24
24
 
25
+ on(:invalid_invitation) do
26
+ flash.now[:alert] = t("organizations.create.error_invitation", scope: "decidim.system")
27
+ render :new
28
+ end
29
+
25
30
  on(:invalid) do
26
31
  flash.now[:alert] = t("organizations.create.error", scope: "decidim.system")
27
32
  render :new
@@ -46,6 +46,7 @@ module Decidim
46
46
 
47
47
  validates :name, :host, :users_registration_mode, presence: true
48
48
  validate :validate_organization_uniqueness
49
+ validate :validate_secret_key_base_for_encryption
49
50
  validates :users_registration_mode, inclusion: { in: Decidim::Organization.users_registration_modes }
50
51
 
51
52
  def map_model(model)
@@ -75,7 +76,9 @@ module Decidim
75
76
  def encrypted_smtp_settings
76
77
  smtp_settings["from"] = set_from
77
78
 
78
- smtp_settings.merge(encrypted_password: Decidim::AttributeEncryptor.encrypt(password))
79
+ encrypted = smtp_settings.merge(encrypted_password: Decidim::AttributeEncryptor.encrypt(password))
80
+ # if all are empty, nil is returned so it does not break ENV vars configuration
81
+ encrypted.values.all?(&:blank?) ? nil : encrypted
79
82
  end
80
83
 
81
84
  def set_from
@@ -85,9 +88,11 @@ module Decidim
85
88
  end
86
89
 
87
90
  def encrypted_omniauth_settings
88
- omniauth_settings.transform_values do |v|
91
+ encrypted = omniauth_settings.transform_values do |v|
89
92
  Decidim::OmniauthProvider.value_defined?(v) ? Decidim::AttributeEncryptor.encrypt(v) : v
90
93
  end
94
+ # if all are empty, nil is returned so it does not break ENV vars configuration
95
+ encrypted.values.all?(&:blank?) ? nil : encrypted
91
96
  end
92
97
 
93
98
  private
@@ -96,6 +101,14 @@ module Decidim
96
101
  errors.add(:name, :taken) if Decidim::Organization.where(name: name).where.not(id: id).exists?
97
102
  errors.add(:host, :taken) if Decidim::Organization.where(host: host).where.not(id: id).exists?
98
103
  end
104
+
105
+ # We need a valid secret key base for encrypting the SMTP password with it
106
+ # It is also necessary for other things in Rails (like Cookies encryption)
107
+ def validate_secret_key_base_for_encryption
108
+ return if Rails.application.secrets.secret_key_base&.length == 128
109
+
110
+ errors.add(:password, I18n.t("activemodel.errors.models.organization.attributes.password.secret_key"))
111
+ end
99
112
  end
100
113
  end
101
114
  end
@@ -169,8 +169,6 @@ ar:
169
169
  smtp_settings:
170
170
  fieldsets:
171
171
  sender: المُرسِل
172
- instructions:
173
- from_label: 'مرسل البريد الإلكتروني سيكون هو: "اسم منظمتك <your-organization@example.org>". اتركه فارغاً لاستخدام "عنوان البريد الإلكتروني" كتسمية'
174
172
  placeholder:
175
173
  from_email: your-organization@example.org
176
174
  from_label: اسم منظمتك
@@ -32,6 +32,10 @@ bg:
32
32
  attributes:
33
33
  redirect_uri:
34
34
  must_be_ssl: URI адресът за пренасочване трябва да бъде SSL URI
35
+ organization:
36
+ attributes:
37
+ password:
38
+ secret_key: Трябва да дефинирате променливата на средата SECRET_KEY_BASE, за да можете да запазите това поле
35
39
  decidim:
36
40
  system:
37
41
  actions:
@@ -139,6 +143,7 @@ bg:
139
143
  show: Показване на разширените настройки
140
144
  create:
141
145
  error: Възникна проблем при създаването на нова организация.
146
+ error_invitation: Възникна проблем при създаването на нова организация. Прегледайте администраторското име на вашата организация.
142
147
  success: Организацията беше създадена успешно.
143
148
  edit:
144
149
  secondary_hosts_hint: Въведете всяка от тях на нов ред
@@ -182,11 +187,17 @@ bg:
182
187
  app_secret: Тайна на приложението
183
188
  google_oauth2:
184
189
  client_id: ID на клиента
190
+ client_secret: Тайна на клиента
191
+ icon: Икона
192
+ icon_path: Път до иконата
193
+ twitter:
194
+ api_key: API ключ
195
+ api_secret: Тайна на API
185
196
  smtp_settings:
186
197
  fieldsets:
187
198
  sender: Подател
188
199
  instructions:
189
- from_label: 'Подателят на имейла ще бъде: „името-на-организацията-ви <your-organization@example.org>“. Оставете празно, за да използвате „имейл адресът“ като етикет'
200
+ from_label: 'Изпращачът на имейл ще бъде: „име-на-вашата-организация <your-organization@example.org>. Оставете празно, за да използвате същото име като дефинираното за организацията.'
190
201
  placeholder:
191
202
  from_email: your-organization@example.org
192
203
  from_label: your-organization-name
@@ -32,6 +32,10 @@ ca:
32
32
  attributes:
33
33
  redirect_uri:
34
34
  must_be_ssl: L'URI de redirecció ha de ser una URI SSL
35
+ organization:
36
+ attributes:
37
+ password:
38
+ secret_key: Cal que defineixis la variable d'entorn SECRET_KEY_BASE per a poder guardar aquest camp
35
39
  decidim:
36
40
  system:
37
41
  actions:
@@ -139,6 +143,7 @@ ca:
139
143
  show: Mostra la configuració avançada
140
144
  create:
141
145
  error: S'ha produït un error en crear una nova organització.
146
+ error_invitation: Hi ha hagut un problema en crear una nova organització. Revisa el nom de l'administradora de l'organització.
142
147
  success: L'organització s'ha creat correctament.
143
148
  edit:
144
149
  secondary_hosts_hint: Introdueix cada un d'ells en una nova línia
@@ -192,7 +197,7 @@ ca:
192
197
  fieldsets:
193
198
  sender: Remitent
194
199
  instructions:
195
- from_label: 'El remitent de correu electrònic serà: "la-teva-organitzacio <your-organization@example.org>". Deixa-ho en blanc per a usar l''adreça de correu com a etiqueta'
200
+ from_label: 'El remitent de correu electrònic serà: "nom-de-la-teva-organitzacio <your-organization@example.org>". Deixa-ho en blanc per a fer servir el mateix nom que el que ja està definit al nom de l''organització.'
196
201
  placeholder:
197
202
  from_email: la-teva-organitzacio@example.org
198
203
  from_label: el-nom-de-la-vostra-organitzacio
@@ -192,7 +192,7 @@ cs:
192
192
  fieldsets:
193
193
  sender: Odesilatel
194
194
  instructions:
195
- from_label: 'Odesílatel e-mailu bude: "Název vaší organizace <your-organization@example.org>". Ponechte prázdné pro použití ''E-mailová adresa'' jako popisku'
195
+ from_label: 'Odesílatel e-mailu bude: "Název vaší organizace <your-organization@example.org>". Ponechte prázdné pro použití ''E-mailové adresy'' jako popisku.'
196
196
  placeholder:
197
197
  from_email: vaše-organizace@example.org
198
198
  from_label: jméno vaší organizace
@@ -32,6 +32,10 @@ de:
32
32
  attributes:
33
33
  redirect_uri:
34
34
  must_be_ssl: Der Umleitungs-URI muss ein SSL-URI sein
35
+ organization:
36
+ attributes:
37
+ password:
38
+ secret_key: Sie müssen die SECRET_KEY_BASE Umgebungsvariable definieren, um dieses Feld speichern zu können
35
39
  decidim:
36
40
  system:
37
41
  actions:
@@ -139,6 +143,7 @@ de:
139
143
  show: Zeige erweiterte Einstellungen
140
144
  create:
141
145
  error: Beim Erstellen einer neuen Organisation ist ein Fehler aufgetreten.
146
+ error_invitation: Es gab ein Problem beim Erstellen einer neuen Organisation. Überprüfen Sie den Administratornamen Ihrer Organisation.
142
147
  success: Organisation erfolgreich erstellt
143
148
  edit:
144
149
  secondary_hosts_hint: Geben Sie jede von ihnen in einer neuen Zeile ein
@@ -192,7 +197,7 @@ de:
192
197
  fieldsets:
193
198
  sender: Absender
194
199
  instructions:
195
- from_label: 'E-Mail-Absender lautet: "Dein-Organisationsname <your-organization@example.org>". Leer lassen um ''from_email'' als Absender zu verwenden'
200
+ from_label: 'E-Mail-Absender lautet: "Ihre-Organisation <ihre-organisation@example.org>". Leer lassen, um die E-Mail-Adresse als Absender zu verwenden.'
196
201
  placeholder:
197
202
  from_email: deine-organisation@example.org
198
203
  from_label: name-ihrer-organisation
@@ -171,8 +171,6 @@ el:
171
171
  smtp_settings:
172
172
  fieldsets:
173
173
  sender: Αποστολέας
174
- instructions:
175
- from_label: 'Ο αποστολέας ηλεκτρονικού ταχυδρομείου θα είναι: "όνομα-οργάνωσής <your-organization@example.org>". Αφήστε κενό για να χρησιμοποιήσετε την ''Διεύθυνση email'' ως ετικέτα'
176
174
  placeholder:
177
175
  from_email: your-organization@example.org
178
176
  from_label: το-όνομα-του-οργανισμού-σας
@@ -32,6 +32,10 @@ en:
32
32
  attributes:
33
33
  redirect_uri:
34
34
  must_be_ssl: The redirect URI must be a SSL URI
35
+ organization:
36
+ attributes:
37
+ password:
38
+ secret_key: You need to define the SECRET_KEY_BASE environment variable to be able to save this field
35
39
  decidim:
36
40
  system:
37
41
  actions:
@@ -139,6 +143,7 @@ en:
139
143
  show: Show advanced settings
140
144
  create:
141
145
  error: There was a problem creating a new organization.
146
+ error_invitation: There was a problem creating a new organization. Review your organization admin name.
142
147
  success: Organization successfully created.
143
148
  edit:
144
149
  secondary_hosts_hint: Enter each one of them in a new line
@@ -192,7 +197,7 @@ en:
192
197
  fieldsets:
193
198
  sender: Sender
194
199
  instructions:
195
- from_label: 'Email sender will be: "your-organization-name <your-organization@example.org>". Leave blank to use the ''Email address'' as label'
200
+ from_label: 'Email sender will be: "your-organization-name <your-organization@example.org>". Leave blank to use the same name as the defined for the organization.'
196
201
  placeholder:
197
202
  from_email: your-organization@example.org
198
203
  from_label: your-organization-name
@@ -32,6 +32,10 @@ es-MX:
32
32
  attributes:
33
33
  redirect_uri:
34
34
  must_be_ssl: La URI de redirección debe ser una URI SSL
35
+ organization:
36
+ attributes:
37
+ password:
38
+ secret_key: Necesitas definir la variable de entorno SECRETA_KEY_BASE para poder guardar este campo
35
39
  decidim:
36
40
  system:
37
41
  actions:
@@ -139,6 +143,7 @@ es-MX:
139
143
  show: Mostrar configuración avanzada
140
144
  create:
141
145
  error: Se ha producido un error al crear una nueva organización.
146
+ error_invitation: Hubo un problema al crear una nueva organización. Revisa el nombre de la administradora de la organización.
142
147
  success: Organización creada correctamente.
143
148
  edit:
144
149
  secondary_hosts_hint: Introduce cada uno de ellos en una nueva línea
@@ -192,7 +197,7 @@ es-MX:
192
197
  fieldsets:
193
198
  sender: Remitente
194
199
  instructions:
195
- from_label: 'El remitente de correo electrónico será: "su-nombre de organización <your-organization@example.org>". Déjalo en blanco para usar el campo ''Dirección de correo electrónico'' como etiqueta'
200
+ from_label: 'El remitente de correo electrónico será: "nombre-de-tu-organizacion <your-organization@example.org>". Déjalo en blanco para usar el mismo nombre que el ya definido en el nombre de la organización.'
196
201
  placeholder:
197
202
  from_email: tu-organizacion@example.org
198
203
  from_label: el-nombre-de-tu-organizacion
@@ -32,6 +32,10 @@ es-PY:
32
32
  attributes:
33
33
  redirect_uri:
34
34
  must_be_ssl: La URI de redirección debe ser una URI SSL
35
+ organization:
36
+ attributes:
37
+ password:
38
+ secret_key: Necesitas definir la variable de entorno SECRETA_KEY_BASE para poder guardar este campo
35
39
  decidim:
36
40
  system:
37
41
  actions:
@@ -139,6 +143,7 @@ es-PY:
139
143
  show: Mostrar configuración avanzada
140
144
  create:
141
145
  error: Se ha producido un error al crear una nueva organización.
146
+ error_invitation: Hubo un problema al crear una nueva organización. Revisa el nombre de la administradora de la organización.
142
147
  success: Organización creada correctamente.
143
148
  edit:
144
149
  secondary_hosts_hint: Introduce cada uno de ellos en una nueva línea
@@ -192,7 +197,7 @@ es-PY:
192
197
  fieldsets:
193
198
  sender: Remitente
194
199
  instructions:
195
- from_label: 'El remitente de correo electrónico será: "su-nombre de organización <your-organization@example.org>". Déjalo en blanco para usar el campo ''Dirección de correo electrónico'' como etiqueta'
200
+ from_label: 'El remitente de correo electrónico será: "nombre-de-tu-organizacion <your-organization@example.org>". Déjalo en blanco para usar el mismo nombre que el ya definido en el nombre de la organización.'
196
201
  placeholder:
197
202
  from_email: tu-organizacion@example.org
198
203
  from_label: el-nombre-de-tu-organizacion
@@ -32,6 +32,10 @@ es:
32
32
  attributes:
33
33
  redirect_uri:
34
34
  must_be_ssl: La URI de redirección debe ser una URI SSL
35
+ organization:
36
+ attributes:
37
+ password:
38
+ secret_key: Necesitas definir la variable de entorno SECRETA_KEY_BASE para poder guardar este campo
35
39
  decidim:
36
40
  system:
37
41
  actions:
@@ -139,6 +143,7 @@ es:
139
143
  show: Mostrar configuración avanzada
140
144
  create:
141
145
  error: Se ha producido un error al crear una nueva organización.
146
+ error_invitation: Hubo un problema al crear una nueva organización. Revisa el nombre de la administradora de la organización.
142
147
  success: Organización creada correctamente.
143
148
  edit:
144
149
  secondary_hosts_hint: Introduce cada uno de ellos en una nueva línea
@@ -192,7 +197,7 @@ es:
192
197
  fieldsets:
193
198
  sender: Remitente
194
199
  instructions:
195
- from_label: 'El remitente de correo electrónico será: "su-nombre de organización <your-organization@example.org>". Déjalo en blanco para usar el campo ''Dirección de correo electrónico'' como etiqueta'
200
+ from_label: 'El remitente de correo electrónico será: "nombre-de-tu-organizacion <your-organization@example.org>". Déjalo en blanco para usar el mismo nombre que el ya definido en el nombre de la organización.'
196
201
  placeholder:
197
202
  from_email: tu-organizacion@example.org
198
203
  from_label: el-nombre-de-tu-organizacion
@@ -32,6 +32,10 @@ eu:
32
32
  attributes:
33
33
  redirect_uri:
34
34
  must_be_ssl: Berbideratzeko URIa URI SSL izan behar da
35
+ organization:
36
+ attributes:
37
+ password:
38
+ secret_key: SECRET_KEY_BASE ingurunearen aldagaia definitu behar duzu eremu hau gorde ahal izateko
35
39
  decidim:
36
40
  system:
37
41
  actions:
@@ -139,6 +143,7 @@ eu:
139
143
  show: Erakutsi aukera aurreratua
140
144
  create:
141
145
  error: Errorea izan da antolatzaile berri bat sortzean.
146
+ error_invitation: Arazo bat sortu da erakunde berri bat sortzean. Berrikusi erakundearen administratzailearen izena.
142
147
  success: Antolatzailea zuzen sortu da.
143
148
  edit:
144
149
  secondary_hosts_hint: Sartu haietako bakoitza lerro berri batean
@@ -193,7 +198,7 @@ eu:
193
198
  fieldsets:
194
199
  sender: Bidaltzailea
195
200
  instructions:
196
- from_label: 'Posta elektronikoaren bidaltzailea honako hau izango da: "Erakundearen izena < your-organization@example.org>". Utzi hutsik ''Helbide elektronikoa'' eremua etiketa gisa erabiltzeko'
201
+ from_label: 'Posta elektronikoaren bidaltzailea hau izango da: "your-organization-name <your-organization@example.org>". Utzi hutsik erakunderako zehaztutako izen bera erabiltzeko.'
197
202
  placeholder:
198
203
  from_email: zure-erakundea@example.org
199
204
  from_label: erakundearen izena
@@ -32,6 +32,10 @@ fi-pl:
32
32
  attributes:
33
33
  redirect_uri:
34
34
  must_be_ssl: Uudelleenohjaus osoite (URI) on oltava SSL-muotoinen osoite (URI)
35
+ organization:
36
+ attributes:
37
+ password:
38
+ secret_key: Sinun täytyy määritellä SECRET_KEY_BASE ympäristömuuttuja, jotta voit tallentaa tämän kentän.
35
39
  decidim:
36
40
  system:
37
41
  actions:
@@ -139,6 +143,7 @@ fi-pl:
139
143
  show: Näytä lisäasetukset
140
144
  create:
141
145
  error: Uuden organisaation luonnissa tapahtui virhe.
146
+ error_invitation: Uuden organisaation luominen epäonnistui. Tarkasta organisaation hallintakäyttäjän nimi.
142
147
  success: Organisaatio luotu onnistuneesti.
143
148
  edit:
144
149
  secondary_hosts_hint: Syötä jokainen niistä omalle rivilleen
@@ -192,7 +197,7 @@ fi-pl:
192
197
  fieldsets:
193
198
  sender: Lähettäjä
194
199
  instructions:
195
- from_label: 'Sähköpostin lähettäjä on: "organisaatiosi-nimi <your-organization@example.org>". Jätä tyhjäksi käyttääksesi "Sähköpostiosoite" -kentän arvoa lähettäjän nimenä'
200
+ from_label: 'Sähköpostin lähettäjä on: "organisaation-nimi <organisaation-sahkoposti@example.org>". Jätä tyhjäksi käyttääksesi "Sähköpostiosoite" -kentän arvoa lähettäjän nimenä.'
196
201
  placeholder:
197
202
  from_email: sinun-organisaatiosi@example.org
198
203
  from_label: organisaatiosi-nimi
@@ -32,6 +32,10 @@ fi:
32
32
  attributes:
33
33
  redirect_uri:
34
34
  must_be_ssl: Uudelleenohjaus osoite (URI) on oltava SSL-muotoinen osoite (URI)
35
+ organization:
36
+ attributes:
37
+ password:
38
+ secret_key: Sinun täytyy määritellä SECRET_KEY_BASE ympäristömuuttuja, jotta voit tallentaa tämän kentän.
35
39
  decidim:
36
40
  system:
37
41
  actions:
@@ -139,6 +143,7 @@ fi:
139
143
  show: Näytä lisäasetukset
140
144
  create:
141
145
  error: Uuden organisaation luonti epäonnistui.
146
+ error_invitation: Uuden organisaation luominen epäonnistui. Tarkasta organisaation hallintakäyttäjän nimi.
142
147
  success: Organisaation luonti onnistui.
143
148
  edit:
144
149
  secondary_hosts_hint: Syötä jokainen niistä omalle rivilleen
@@ -192,7 +197,7 @@ fi:
192
197
  fieldsets:
193
198
  sender: Lähettäjä
194
199
  instructions:
195
- from_label: 'Sähköpostin lähettäjä on: "organisaatiosi-nimi <your-organization@example.org>". Jätä tyhjäksi käyttääksesi "Sähköpostiosoite" -kentän arvoa lähettäjän nimenä'
200
+ from_label: 'Sähköpostin lähettäjä on: "organisaation-nimi <organisaation-sahkoposti@example.org>". Jätä tyhjäksi käyttääksesi "Sähköpostiosoite" -kentän arvoa lähettäjän nimenä.'
196
201
  placeholder:
197
202
  from_email: sinun-organisaatiosi@example.org
198
203
  from_label: organisaatiosi-nimi
@@ -32,6 +32,10 @@ fr-CA:
32
32
  attributes:
33
33
  redirect_uri:
34
34
  must_be_ssl: L'URI de redirection doit être une URI SSL
35
+ organization:
36
+ attributes:
37
+ password:
38
+ secret_key: Vous devez définir la variable d'environnement SECRET_KEY_BASE pour pouvoir enregistrer ce champ
35
39
  decidim:
36
40
  system:
37
41
  actions:
@@ -139,6 +143,7 @@ fr-CA:
139
143
  show: Afficher les paramètres avancés
140
144
  create:
141
145
  error: Une erreur s'est produite lors de la création d'une nouvelle organisation.
146
+ error_invitation: Il y a eu un problème lors de la création d'une nouvelle organisation. Vérifiez le nom de l'administrateur de votre organisation.
142
147
  success: Organisation créée avec succès.
143
148
  edit:
144
149
  secondary_hosts_hint: Entrez chacun d'eux dans une nouvelle ligne
@@ -192,7 +197,7 @@ fr-CA:
192
197
  fieldsets:
193
198
  sender: Expéditeur
194
199
  instructions:
195
- from_label: 'L''expéditeur du mail sera "nom-de-votre-organisation <your-organization@example.org>". Laissez le champ vide pour utiliser la valeur de ''from_email'' comme label'
200
+ from_label: 'L''expéditeur de l''e-mail sera : "nom-de-votre-organisation <votre-organisation@example.org>". Laissez vide pour utiliser le même nom que celui défini pour l''organisation.'
196
201
  placeholder:
197
202
  from_email: votre-organisation@exemple.org
198
203
  from_label: nom-de-votre-organisation
@@ -32,6 +32,10 @@ fr:
32
32
  attributes:
33
33
  redirect_uri:
34
34
  must_be_ssl: L'URI de redirection doit être une URI SSL
35
+ organization:
36
+ attributes:
37
+ password:
38
+ secret_key: Vous devez définir la variable d'environnement SECRET_KEY_BASE pour pouvoir enregistrer ce champ
35
39
  decidim:
36
40
  system:
37
41
  actions:
@@ -139,6 +143,7 @@ fr:
139
143
  show: Afficher les paramètres avancés
140
144
  create:
141
145
  error: Une erreur s'est produite lors de la création d'une nouvelle organisation.
146
+ error_invitation: Il y a eu un problème lors de la création d'une nouvelle organisation. Vérifiez le nom de l'administrateur de votre organisation.
142
147
  success: Organisation créée avec succès.
143
148
  edit:
144
149
  secondary_hosts_hint: Entrez chacun d'eux dans une nouvelle ligne
@@ -192,7 +197,7 @@ fr:
192
197
  fieldsets:
193
198
  sender: Expéditeur
194
199
  instructions:
195
- from_label: 'L''expéditeur du mail sera "nom-de-votre-organisation <your-organization@example.org>". Laissez le champ vide pour utiliser la valeur de ''from_email'' comme label'
200
+ from_label: 'L''expéditeur de l''e-mail sera : "nom-de-votre-organisation <votre-organisation@example.org>". Laissez vide pour utiliser le même nom que celui défini pour l''organisation.'
196
201
  placeholder:
197
202
  from_email: votre-organisation@exemple.org
198
203
  from_label: nom-de-votre-organisation
@@ -169,8 +169,6 @@ gl:
169
169
  smtp_settings:
170
170
  fieldsets:
171
171
  sender: Remitente
172
- instructions:
173
- from_label: 'O remitente do correo será: "o-nome-da-tua-organizacion <your-organization@example.org>". Deixar baleiro para empregar ''Correo electrónico'' como etiqueta'
174
172
  placeholder:
175
173
  from_email: a-tua-organizacion@exemplo.org
176
174
  from_label: o-nome-da-tua-organizacion
@@ -122,9 +122,6 @@ hu:
122
122
  twitter:
123
123
  api_key: API-kulcs
124
124
  api_secret: API Titkos
125
- smtp_settings:
126
- instructions:
127
- from_label: 'Az e-mail feladója a következő lesz: "szervezeti-neve<aszervezete@pelda.org>". Hagyja üresen a(z) ''from_email'' címke használatához'
128
125
  update:
129
126
  error: Hiba történt a szervezet frissítése során.
130
127
  success: Szervezet sikeresen frissítve.
@@ -123,6 +123,7 @@ it:
123
123
  show: Mostra impostazioni avanzate
124
124
  create:
125
125
  error: C'è stato un errore durante la creazione di una nuova organizzazione.
126
+ error_invitation: Si è verificato un problema durante la creazione di una nuova organizzazione. Controlla il nome dell'amministratore dell'organizzazione.
126
127
  success: OK, è stata aggiunta la nuova organizzazione.
127
128
  edit:
128
129
  secondary_hosts_hint: Inserisci ciascun elemento in una nuova linea
@@ -169,8 +170,6 @@ it:
169
170
  smtp_settings:
170
171
  fieldsets:
171
172
  sender: Mittente
172
- instructions:
173
- from_label: 'Il mittente email sarà: "nome-della-tua-organizzazione <your-organization@example.org>". Lascia vuoto per usare ''Indirizzo email'' come etichetta'
174
173
  placeholder:
175
174
  from_email: your-organization@example.org
176
175
  from_label: nome-della-tua-organizzazione
@@ -32,6 +32,10 @@ ja:
32
32
  attributes:
33
33
  redirect_uri:
34
34
  must_be_ssl: リダイレクト URI は SSL が有効な URI でなければなりません
35
+ organization:
36
+ attributes:
37
+ password:
38
+ secret_key: このフィールドを保存するには、環境変数 SECRET_KEY_BASE を定義する必要があります
35
39
  decidim:
36
40
  system:
37
41
  actions:
@@ -139,6 +143,7 @@ ja:
139
143
  show: 詳細設定を表示
140
144
  create:
141
145
  error: 新しい組織を作成する際に問題が発生しました。
146
+ error_invitation: 新しい組織を作成する際に問題が発生しました。組織の管理者名を確認してください。
142
147
  success: 組織が正常に作成されました。
143
148
  edit:
144
149
  secondary_hosts_hint: 新しい行にそれぞれ入力してください
@@ -192,7 +197,7 @@ ja:
192
197
  fieldsets:
193
198
  sender: 送信者
194
199
  instructions:
195
- from_label: 'メール送信者は "your-organization-name <your-organization@example.org>"になります。メールアドレスをラベルとして使用する場合は空白のままにしてください。'
200
+ from_label: 'メール送信者は "your-organization-name <your-organization@example.org>" になります。空白の場合、組織に定義された名前と同じ名前を使用します。'
196
201
  placeholder:
197
202
  from_email: your-organization@example.org
198
203
  from_label: 組織名
@@ -171,8 +171,6 @@ lt:
171
171
  smtp_settings:
172
172
  fieldsets:
173
173
  sender: Siuntėjas
174
- instructions:
175
- from_label: 'El. pašto siuntėjas bus: "jūsų-organizacijos-pavadinimas <your-organization@example.org>". Palikite tuščią, jei norite naudoti „El. pašto adresas“ kaip etiketę'
176
174
  placeholder:
177
175
  from_email: jūsų-organizacija@example.org
178
176
  from_label: jūsų-organizacijos-pavadinimas
@@ -108,8 +108,6 @@ nl:
108
108
  smtp_settings:
109
109
  fieldsets:
110
110
  sender: Afzender
111
- instructions:
112
- from_label: 'E-mail afzender zal zijn: "jouw-organisatie naam <your-organization@example.org>". Laat leeg om ''E-mailadres'' te gebruiken als label'
113
111
  placeholder:
114
112
  from_label: jouw-organisatienaam
115
113
  update:
@@ -169,8 +169,6 @@
169
169
  smtp_settings:
170
170
  fieldsets:
171
171
  sender: Avsender
172
- instructions:
173
- from_label: 'E-postavsender vil være: "Ditt organisasjons navn <your-organization@example.org>". La stå tomt for å bruke ''E-postadresse'' som merkelapp'
174
172
  placeholder:
175
173
  from_email: din-organisasjon@eksempel.org
176
174
  from_label: navn på organisasjonen
@@ -32,6 +32,10 @@ pl:
32
32
  attributes:
33
33
  redirect_uri:
34
34
  must_be_ssl: URI przekierowania musi być URI SSL
35
+ organization:
36
+ attributes:
37
+ password:
38
+ secret_key: Musisz zdefiniować zmienną środowiskową SECRET_KEY_BASE, aby móc zapisać to pole
35
39
  decidim:
36
40
  system:
37
41
  actions:
@@ -56,14 +60,33 @@ pl:
56
60
  create: Utwórz
57
61
  title: Nowy administrator
58
62
  show:
63
+ destroy: Zniszcz
59
64
  edit: Edytuj
60
65
  update:
61
66
  error: Podczas aktualizowania tego administratora wystąpił błąd.
62
67
  success: Administrator został zaktualizowany
68
+ dashboard:
69
+ show:
70
+ current_organizations: Bieżące organizacje
63
71
  default_pages:
64
72
  placeholders:
65
73
  content: Proszę dodać istotne treści do strony statycznej %{page} w panelu administratora.
66
74
  title: Domyślny tytuł dla %{page}
75
+ devise:
76
+ passwords:
77
+ edit:
78
+ change_your_password: Zmień swoje hasło
79
+ minimum_characters: "(Minimum %{minimum} znaków)"
80
+ new:
81
+ forgot_your_password: Zapomniałeś hasła
82
+ send_me_reset_password_instructions: Wyślij mi instrukcje resetowania hasła
83
+ shared:
84
+ links:
85
+ did_not_receive_confirmation_instructions?: Nie otrzymałeś(aś) instrukcji potwierdzenia?
86
+ did_not_receive_unlock_instructions?: Nie dotarła instrukcja odblokowania?
87
+ forgot_your_password?: Nie pamiętasz hasła?
88
+ log_in: Zaloguj się
89
+ sign_up: Zarejestruj się
67
90
  menu:
68
91
  admins: Administratorzy
69
92
  dashboard: Panel
@@ -115,11 +138,16 @@ pl:
115
138
  error: Wystąpił błąd podczas aktualizowania tej aplikacji.
116
139
  success: Aplikacja została zaktualizowana.
117
140
  organizations:
141
+ advanced_settings:
142
+ hide: Ukryj ustawienia zaawansowane
143
+ show: Pokaż ustawienia zaawansowane
118
144
  create:
119
145
  error: Podczas tworzenia nowej organizacji wystąpił błąd.
146
+ error_invitation: Wystąpił problem podczas tworzenia nowej organizacji. Przejrzyj nazwę administratora organizacji.
120
147
  success: Organizacja została utworzona.
121
148
  edit:
122
149
  secondary_hosts_hint: Wpisz każdy z nich w nowej linii
150
+ title: Edytuj organizację
123
151
  file_upload_settings:
124
152
  content_types:
125
153
  admin_hint: Te typy plików są dozwolone dla przesyłania w sekcji administracyjnej. Administratorzy powinni być świadomi zagrożeń związanych z przesyłaniem niektórych formatów dokumentów, więc możesz oczekiwać, że będą ostrożni przy przesyłaniu plików.
@@ -141,6 +169,11 @@ pl:
141
169
  index:
142
170
  title: Organizacje
143
171
  new:
172
+ default: Domyślne?
173
+ enabled: Włączone
174
+ locale: Ustawienie regionalne
175
+ reference_prefix_hint: Prefiks referencyjny jest używany do jednoznacznej identyfikacji zasobów we wszystkich organizacjach.
176
+ secondary_hosts_hint: Wprowadź każdy z nich w nowej linii.
144
177
  title: Nowa organizacja
145
178
  omniauth_settings:
146
179
  decidim:
@@ -164,7 +197,7 @@ pl:
164
197
  fieldsets:
165
198
  sender: Nadawca
166
199
  instructions:
167
- from_label: 'Nadawcą wiadomości e-mail będzie: "twoja-nazwa-organizacji <twoja-organizacja@przyklad.org>". Pozostaw puste, aby użyć "Adres e-mail" jako etykiety'
200
+ from_label: 'Nadawcą wiadomości e-mail będzie: "twoja-nazwa-organizacji <twoja-organizacja@przyklad.org>". Pozostaw puste, aby użyć tego samego, co zostało zdefiniowane dla organizacji.'
168
201
  placeholder:
169
202
  from_email: twoja-organizacja@przyklad.org
170
203
  from_label: twoja-nazwa-organizacji
@@ -181,3 +214,9 @@ pl:
181
214
  our_getting_started_guide: nasz przewodnik
182
215
  titles:
183
216
  dashboard: Panel
217
+ decidim: Decidim
218
+ layouts:
219
+ decidim:
220
+ system:
221
+ login_items:
222
+ logout: Wyloguj się
@@ -190,8 +190,6 @@ pt-BR:
190
190
  smtp_settings:
191
191
  fieldsets:
192
192
  sender: Remetente
193
- instructions:
194
- from_label: 'Remetente do e-mail será: "seu-nome da organização <your-organization@example.org>". Deixe em branco para usar o ''Endereço de e-mail'' como rótulo'
195
193
  placeholder:
196
194
  from_email: sua-organização@exemplo.org
197
195
  from_label: nome-da-organizacao
@@ -168,8 +168,6 @@ pt:
168
168
  smtp_settings:
169
169
  fieldsets:
170
170
  sender: Remetente
171
- instructions:
172
- from_label: 'O remetente do email será “nome-sua-organizacao <your-organization@example.org>”. Deixe em branco para usar ‘Endereço de e-mail’ como rótulo'
173
171
  placeholder:
174
172
  from_email: sua-organizacao@exemplo.org
175
173
  from_label: nome-da-sua-organização
@@ -177,8 +177,6 @@ ro:
177
177
  smtp_settings:
178
178
  fieldsets:
179
179
  sender: Expeditor
180
- instructions:
181
- from_label: 'Expeditorul de e-mail va fi: "organizația-nume <your-organization@example.org>". Lăsați necompletat pentru a utiliza ''Adresa de e-mail'' ca etichetă'
182
180
  placeholder:
183
181
  from_email: organizație@exemplu.org
184
182
  from_label: numele tău de organizatorie
@@ -158,8 +158,6 @@ sv:
158
158
  smtp_settings:
159
159
  fieldsets:
160
160
  sender: Avsändare
161
- instructions:
162
- from_label: 'E-postavsändare är: "your-organization-name <your-organization@your-provider.org>". Om du lämnar tomt kommer e-postadressen användas'
163
161
  placeholder:
164
162
  from_email: your-organization@example.org
165
163
  from_label: din-organisation-namn
@@ -117,6 +117,7 @@ tr:
117
117
  organizations:
118
118
  create:
119
119
  error: Yeni bir organizasyon oluştururken bir sorun oluştu.
120
+ error_invitation: Yeni bir kuruluş oluşturulurken bir sorun oluştu. Kuruluşunuzun yönetici adını gözden geçirin.
120
121
  success: Kuruluş başarıyla oluşturuldu.
121
122
  edit:
122
123
  secondary_hosts_hint: Her birini yeni bir satıra girin
@@ -164,7 +165,7 @@ tr:
164
165
  fieldsets:
165
166
  sender: Gönderen
166
167
  instructions:
167
- from_label: 'E-posta göndereni: "your-organization-name <your-organization@example.org>" olacaktır. ''E-posta adresini'' etiket olarak kullanmak için boş bırakın'
168
+ from_label: 'E-posta göndereni "kuruluşunuzun-adı <kuruluşunuz@example.org>". Kuruluş için tanımlananla aynı adı kullanmak için boş bırakın.'
168
169
  placeholder:
169
170
  from_email: your-organization@example.org
170
171
  from_label: your-organization-name
@@ -171,8 +171,6 @@ zh-TW:
171
171
  smtp_settings:
172
172
  fieldsets:
173
173
  sender: 寄件者
174
- instructions:
175
- from_label: '郵件發送者將會是:"您的組織名稱 <your-organization@example.org>"。若要使用「電子郵件地址」作為標籤,請留空'
176
174
  placeholder:
177
175
  from_email: your-organization@example.org
178
176
  from_label: 你的組織名稱
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-system version.
5
5
  module System
6
6
  def self.version
7
- "0.27.6"
7
+ "0.27.7"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-system
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.6
4
+ version: 0.27.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
8
8
  - Marc Riera Casals
9
9
  - Oriol Gual Oliva
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-04-30 00:00:00.000000000 Z
13
+ date: 2024-07-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: active_link_to
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.27.6
35
+ version: 0.27.7
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.27.6
42
+ version: 0.27.7
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: devise
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -94,14 +94,14 @@ dependencies:
94
94
  requirements:
95
95
  - - '='
96
96
  - !ruby/object:Gem::Version
97
- version: 0.27.6
97
+ version: 0.27.7
98
98
  type: :development
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - '='
103
103
  - !ruby/object:Gem::Version
104
- version: 0.27.6
104
+ version: 0.27.7
105
105
  description: System administration to create new organization in an installation.
106
106
  email:
107
107
  - josepjaume@gmail.com
@@ -138,7 +138,6 @@ files:
138
138
  - app/helpers/decidim/system/application_helper.rb
139
139
  - app/helpers/decidim/system/menu_helper.rb
140
140
  - app/jobs/decidim/system/application_job.rb
141
- - app/mailers/decidim/system/application_mailer.rb
142
141
  - app/models/decidim/system/admin.rb
143
142
  - app/models/decidim/system/application_record.rb
144
143
  - app/packs/entrypoints/decidim_system.js
@@ -284,7 +283,7 @@ homepage: https://github.com/decidim/decidim
284
283
  licenses:
285
284
  - AGPL-3.0
286
285
  metadata: {}
287
- post_install_message:
286
+ post_install_message:
288
287
  rdoc_options: []
289
288
  require_paths:
290
289
  - lib
@@ -299,8 +298,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
298
  - !ruby/object:Gem::Version
300
299
  version: '0'
301
300
  requirements: []
302
- rubygems_version: 3.2.22
303
- signing_key:
301
+ rubygems_version: 3.5.14
302
+ signing_key:
304
303
  specification_version: 4
305
304
  summary: Decidim system administration
306
305
  test_files: []
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module System
5
- # Custom application mailer, scoped to the system mailer.
6
- #
7
- class ApplicationMailer < ActionMailer::Base
8
- default from: Decidim.config.mailer_sender
9
- layout "mailer"
10
- end
11
- end
12
- end