decidim-system 0.28.1 → 0.28.2

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: 3a35646cb8914a3d098676b0ed5ca18bc5d77a3112d96e483287a99fae05362c
4
- data.tar.gz: 3e57b2bbefb5309281431d8960af134285e3926cf351add494969511c773e0d2
3
+ metadata.gz: 3435b4de7126f03888006e9946ccbcde701509358addac5f33e7196827c66d43
4
+ data.tar.gz: 20c39ac5f76e3f3a1d8ff98fb852bc7b8f13d57d44e934842e9ef4e4518bc992
5
5
  SHA512:
6
- metadata.gz: 3ffa69136fa5dad543b2ae62b60938ed0f7d50bdb9592c8abc0326d99dd0fec08942a8069c4797ee008601bc4141a8c3fe418edd5d990714c052617ea29a2b0d
7
- data.tar.gz: d04818e42d0651f8b70933a7758122cb13de4ae3b5c267a4fea821d6a037c49c9e438818ac60fc8a95cb539c5ac46c81164d1c4a8d1bd063efdb8bc645c7e8ae
6
+ metadata.gz: 5bbdd7d92a373a850106ec3381afb73b0d048175b99b08b5b5f92df05022f5a865b64dc53980abac52dd5b110482ffa1195fdec37df844e876af35f564d7521f
7
+ data.tar.gz: d27fd16cf43e39d6b7bd900759218e1340f50b9b27626800ecce2aad3171c34489d2dd64b4eb4f58a7c7a70d632cd138b7b083e9bfb67d8a55d6def2fbc2a030
@@ -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
@@ -58,6 +58,7 @@ module Decidim
58
58
 
59
59
  validates :name, :host, :users_registration_mode, presence: true
60
60
  validate :validate_organization_uniqueness
61
+ validate :validate_secret_key_base_for_encryption
61
62
  validates :users_registration_mode, inclusion: { in: Decidim::Organization.users_registration_modes }
62
63
 
63
64
  def map_model(model)
@@ -87,7 +88,10 @@ module Decidim
87
88
  def encrypted_smtp_settings
88
89
  smtp_settings["from"] = set_from
89
90
 
90
- smtp_settings.merge(encrypted_password: Decidim::AttributeEncryptor.encrypt(password))
91
+ encrypted = smtp_settings.merge(encrypted_password: Decidim::AttributeEncryptor.encrypt(password))
92
+
93
+ # if all are empty, nil is returned so it does not break ENV vars configuration
94
+ encrypted.values.all?(&:blank?) ? nil : encrypted
91
95
  end
92
96
 
93
97
  def set_from
@@ -97,9 +101,12 @@ module Decidim
97
101
  end
98
102
 
99
103
  def encrypted_omniauth_settings
100
- omniauth_settings.transform_values do |v|
104
+ encrypted = omniauth_settings.transform_values do |v|
101
105
  Decidim::OmniauthProvider.value_defined?(v) ? Decidim::AttributeEncryptor.encrypt(v) : v
102
106
  end
107
+
108
+ # if all are empty, nil is returned so it does not break ENV vars configuration
109
+ encrypted.values.all?(&:blank?) ? nil : encrypted
103
110
  end
104
111
 
105
112
  private
@@ -108,6 +115,14 @@ module Decidim
108
115
  errors.add(:name, :taken) if Decidim::Organization.where(name:).where.not(id:).exists?
109
116
  errors.add(:host, :taken) if Decidim::Organization.where(host:).where.not(id:).exists?
110
117
  end
118
+
119
+ # We need a valid secret key base for encrypting the SMTP password with it
120
+ # It is also necessary for other things in Rails (like Cookies encryption)
121
+ def validate_secret_key_base_for_encryption
122
+ return if Rails.application.secrets.secret_key_base&.length == 128
123
+
124
+ errors.add(:password, I18n.t("activemodel.errors.models.organization.attributes.password.secret_key"))
125
+ end
111
126
  end
112
127
  end
113
128
  end
@@ -35,7 +35,7 @@
35
35
  </div>
36
36
 
37
37
  <div class="form__wrapper-block flex-col-reverse md:flex-row justify-between">
38
- <% if @organization.users.first&.invitation_pending? %>
38
+ <% if @organization&.users&.first&.invitation_pending? %>
39
39
  <%= link_to t(".resend_invitation"),
40
40
  resend_invitation_organization_path(@organization),
41
41
  method: :post,
@@ -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_html: |
143
148
  <p>
144
149
  Организацията е създадена успешно.
@@ -233,13 +238,20 @@ bg:
233
238
  app_secret: Тайна на приложението
234
239
  google_oauth2:
235
240
  client_id: ID на клиента
241
+ client_secret: Тайна на клиента
242
+ icon: Икона
243
+ icon_path: Път до иконата
244
+ twitter:
245
+ api_key: API ключ
246
+ api_secret: Тайна на API
236
247
  resend_invitation:
248
+ error: Възникна проблем при изпращането на поканата.
237
249
  success: Поканата е изпратена успешно.
238
250
  smtp_settings:
239
251
  fieldsets:
240
252
  sender: Подател
241
253
  instructions:
242
- from_label: 'Подателят на имейла ще бъде: „your-organization-name <your-organization@example.org>“. Оставете празно, за да използвате „имейл адресът“ като етикет.'
254
+ from_label: 'Изпращачът на имейл ще бъде: „име-на-вашата-организация <your-organization@example.org>. Оставете празно, за да използвате същото име като дефинираното за организацията.'
243
255
  placeholder:
244
256
  from_email: your-organization@example.org
245
257
  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_html: |
143
148
  <p>
144
149
  Organitzció creada correctament.
@@ -245,7 +250,7 @@ ca:
245
250
  fieldsets:
246
251
  sender: Remitent
247
252
  instructions:
248
- from_label: 'El remitent de correu electrònic serà: "nom-de-la-teva-organitzacio <your-organization@example.org>". Deixa-ho en blanc per a usar ''l''adreça de correu'' com a etiqueta.'
253
+ 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ó.'
249
254
  placeholder:
250
255
  from_email: la-teva-organitzacio@example.org
251
256
  from_label: el-nom-de-la-vostra-organitzacio
@@ -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_html: |
143
148
  <p>
144
149
  Organisation erfolgreich erstellt.
@@ -238,7 +243,7 @@ de:
238
243
  fieldsets:
239
244
  sender: Absender
240
245
  instructions:
241
- from_label: 'E-Mail-Absender lautet: "Ihr-Organisationsname <your-organization@example.org>". Leer lassen, um die E-Mail-Adresse als Absender zu verwenden.'
246
+ from_label: 'E-Mail-Absender lautet: "Ihre-Organisation <ihre-organisation@example.org>". Leer lassen, um die E-Mail-Adresse als Absender zu verwenden.'
242
247
  placeholder:
243
248
  from_email: deine-organisation@example.org
244
249
  from_label: name-ihrer-organisation
@@ -166,8 +166,6 @@ el:
166
166
  smtp_settings:
167
167
  fieldsets:
168
168
  sender: Αποστολέας
169
- instructions:
170
- from_label: 'Ο αποστολέας ηλεκτρονικού ταχυδρομείου θα είναι: "όνομα-οργάνωσής <your-organization@example.org>". Αφήστε κενό για να χρησιμοποιήσετε την ''Διεύθυνση email'' ως ετικέτα.'
171
169
  placeholder:
172
170
  from_email: your-organization@example.org
173
171
  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_html: |
143
148
  <p>
144
149
  Organization successfully created.
@@ -246,7 +251,7 @@ en:
246
251
  fieldsets:
247
252
  sender: Sender
248
253
  instructions:
249
- from_label: 'Email sender will be: "your-organization-name <your-organization@example.org>". Leave blank to use the ''Email address'' as label.'
254
+ 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.'
250
255
  placeholder:
251
256
  from_email: your-organization@example.org
252
257
  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_html: |
143
148
  <p>
144
149
  Organización creada correctamente.
@@ -246,7 +251,7 @@ es-MX:
246
251
  fieldsets:
247
252
  sender: Remitente
248
253
  instructions:
249
- from_label: 'El remitente de correo electrónico será: "nombre-de-tu-organizacion <your-organization@example.org>". Déjalo en blanco para usar la ''dirección de correo electrónico'' como etiqueta.'
254
+ 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.'
250
255
  placeholder:
251
256
  from_email: tu-organizacion@example.org
252
257
  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_html: |
143
148
  <p>
144
149
  Organización creada correctamente.
@@ -246,7 +251,7 @@ es-PY:
246
251
  fieldsets:
247
252
  sender: Remitente
248
253
  instructions:
249
- from_label: 'El remitente de correo electrónico será: "nombre-de-tu-organizacion <your-organization@example.org>". Déjalo en blanco para usar la ''dirección de correo electrónico'' como etiqueta.'
254
+ 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.'
250
255
  placeholder:
251
256
  from_email: tu-organizacion@example.org
252
257
  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_html: |
143
148
  <p>
144
149
  Organización creada correctamente.
@@ -246,7 +251,7 @@ es:
246
251
  fieldsets:
247
252
  sender: Remitente
248
253
  instructions:
249
- from_label: 'El remitente de correo electrónico será: "nombre-de-tu-organizacion <your-organization@example.org>". Déjalo en blanco para usar la ''dirección de correo electrónico'' como etiqueta.'
254
+ 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.'
250
255
  placeholder:
251
256
  from_email: tu-organizacion@example.org
252
257
  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_html: |
143
148
  <p>
144
149
  Arrakastaz sortutako erakundea.
@@ -247,7 +252,7 @@ eu:
247
252
  fieldsets:
248
253
  sender: Bidaltzailea
249
254
  instructions:
250
- from_label: 'Posta elektronikoaren bidaltzailea honako hau izango da: "Erakundearen izena < your-organization@example.org>". Utzi hutsik ''Helbide elektronikoa'' eremua etiketa gisa erabiltzeko.'
255
+ from_label: 'Posta elektronikoaren bidaltzailea hau izango da: "your-organization-name <your-organization@example.org>". Utzi hutsik erakunderako zehaztutako izen bera erabiltzeko.'
251
256
  placeholder:
252
257
  from_email: zure-erakundea@example.org
253
258
  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_html: |
143
148
  <p>
144
149
  Organisaation luonti onnistui.
@@ -245,7 +250,7 @@ fi-pl:
245
250
  fieldsets:
246
251
  sender: Lähettäjä
247
252
  instructions:
248
- 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ä.'
253
+ 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ä.'
249
254
  placeholder:
250
255
  from_email: sinun-organisaatiosi@example.org
251
256
  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_html: |
143
148
  <p>
144
149
  Organisaation luonti onnistui.
@@ -245,7 +250,7 @@ fi:
245
250
  fieldsets:
246
251
  sender: Lähettäjä
247
252
  instructions:
248
- 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ä.'
253
+ 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ä.'
249
254
  placeholder:
250
255
  from_email: sinun-organisaatiosi@example.org
251
256
  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_html: |
143
148
  <p>
144
149
  Organisation créée avec succès.
@@ -246,7 +251,7 @@ fr-CA:
246
251
  fieldsets:
247
252
  sender: Expéditeur
248
253
  instructions:
249
- from_label: 'L''expéditeur du mail sera "nom-de-votre-organisation <your-organization@exemple.org>". Laissez le champ vide pour utiliser la valeur de ''Adresse email'' comme label.'
254
+ 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.'
250
255
  placeholder:
251
256
  from_email: votre-organisation@exemple.org
252
257
  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_html: |
143
148
  <p>
144
149
  Organisation créée avec succès.
@@ -246,7 +251,7 @@ fr:
246
251
  fieldsets:
247
252
  sender: Expéditeur
248
253
  instructions:
249
- from_label: 'L''expéditeur du mail sera "nom-de-votre-organisation <your-organization@exemple.org>". Laissez le champ vide pour utiliser la valeur de ''Adresse email'' comme label.'
254
+ 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.'
250
255
  placeholder:
251
256
  from_email: votre-organisation@exemple.org
252
257
  from_label: nom-de-votre-organisation
@@ -113,6 +113,7 @@ it:
113
113
  show: Mostra impostazioni avanzate
114
114
  create:
115
115
  error: C'è stato un errore durante la creazione di una nuova organizzazione.
116
+ error_invitation: Si è verificato un problema durante la creazione di una nuova organizzazione. Controlla il nome dell'amministratore dell'organizzazione.
116
117
  edit:
117
118
  secondary_hosts_hint: Inserisci ciascun elemento in una nuova linea
118
119
  file_upload_settings:
@@ -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_html: |
143
148
  <p>
144
149
  組織を作成しました。
@@ -244,7 +249,7 @@ ja:
244
249
  fieldsets:
245
250
  sender: 送信者
246
251
  instructions:
247
- from_label: 'メール送信者は以下のようになります: "あなたの組織名 <your-organization@example.org>". ''メールアドレス'' をラベルとして使用する場合は空白のままにします.'
252
+ from_label: 'メール送信者は "your-organization-name <your-organization@example.org>" になります。空白の場合、組織に定義された名前と同じ名前を使用します。'
248
253
  placeholder:
249
254
  from_email: your-organization@example.org
250
255
  from_label: 組織名
@@ -176,8 +176,6 @@ lt:
176
176
  smtp_settings:
177
177
  fieldsets:
178
178
  sender: Siuntėjas
179
- instructions:
180
- 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 adresą kaip etiketę.'
181
179
  placeholder:
182
180
  from_email: jūsų-organizacija@example.org
183
181
  from_label: jūsų-organizacijos-pavadinimas
@@ -32,17 +32,27 @@ 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:
38
42
  confirm_destroy: Czy na pewno chcesz to usunąć?
39
43
  destroy: Usuń
40
44
  edit: Edytuj
45
+ new_admin: Nowy administrator
46
+ new_oauth_application: Nowa aplikacja OAuth
47
+ new_organization: Nowa organizacja
41
48
  save: Zapisz
42
49
  title: Działania
43
50
  admins:
44
51
  create:
45
52
  error: Podczas tworzenia nowego administratora wystąpił błąd.
53
+ success: Administrator został utworzony.
54
+ destroy:
55
+ success: Administrator został usunięty.
46
56
  edit:
47
57
  title: Edytuj administratora
48
58
  update: Aktualizuj
@@ -53,10 +63,32 @@ pl:
53
63
  title: Nowy administrator
54
64
  update:
55
65
  error: Podczas aktualizowania tego administratora wystąpił błąd.
66
+ success: Administrator został zaktualizowany.
67
+ dashboard:
68
+ show:
69
+ admins: Administratorzy
70
+ current_organizations: Bieżące organizacje
56
71
  default_pages:
57
72
  placeholders:
58
73
  content: Proszę dodać istotne treści do strony statycznej %{page} w panelu administratora.
74
+ summary: Prosimy o dodanie merytorycznej treści na stronie statycznej %{page} w panelu admina.
59
75
  title: Domyślny tytuł dla %{page}
76
+ terms-of-service: Warunki korzystania z usługi
77
+ devise:
78
+ passwords:
79
+ edit:
80
+ change_your_password: Zmień swoje hasło
81
+ minimum_characters: "(Minimum %{minimum} znaków)"
82
+ new:
83
+ forgot_your_password: Zapomniałeś hasła
84
+ send_me_reset_password_instructions: Wyślij mi instrukcje resetowania hasła
85
+ shared:
86
+ links:
87
+ did_not_receive_confirmation_instructions?: Nie otrzymałeś(aś) instrukcji potwierdzenia?
88
+ did_not_receive_unlock_instructions?: Nie dotarła instrukcja odblokowania?
89
+ forgot_your_password?: Nie pamiętasz hasła?
90
+ log_in: Zaloguj się
91
+ sign_up: Zarejestruj się
60
92
  menu:
61
93
  admins: Administratorzy
62
94
  dashboard: Panel
@@ -78,6 +110,7 @@ pl:
78
110
  actions:
79
111
  save_and_invite: Utwórz organizację i zaproś administratora
80
112
  fields:
113
+ content_security_policy: Polityka bezpieczeństwa treści
81
114
  created_at: Utworzono
82
115
  file_upload_settings: Ustawienia przesyłania pliku
83
116
  name: Nazwa
@@ -105,10 +138,66 @@ pl:
105
138
  error: Wystąpił błąd podczas aktualizowania tej aplikacji.
106
139
  success: Aplikacja została zaktualizowana.
107
140
  organizations:
141
+ advanced_settings:
142
+ hide: Ukryj ustawienia zaawansowane
143
+ show: Pokaż ustawienia zaawansowane
108
144
  create:
109
145
  error: Podczas tworzenia nowej organizacji wystąpił błąd.
146
+ error_invitation: Wystąpił problem podczas tworzenia nowej organizacji. Przejrzyj nazwę administratora organizacji.
147
+ success_html: |
148
+ <p>
149
+ Organizacja utworzona pomyślnie.
150
+ </p>
151
+ <ol>
152
+ <li>Być może będziesz musiał(a) zaktualizować swój kod aplikacji, jako że aby zezwolić na żądania do %{host} musisz dodać następujące informacje do konfiguracji środowiska
153
+ (<code>config/environment/production.rb</code>) lub twój <code>config/application.rb</code>:
154
+ <p> config.hosts << "%{host}" </p>
155
+ </li>
156
+ <li>
157
+ Jak to zostanie zrobione, będziesz mieć dostęp do swojej platformy przez <a href="http://%{host}">http://%{host}</a>
158
+ </li>
159
+ <li>
160
+ Wysłaliśmy wiadomość e-mail na <b>%{email}</b>, którą musisz potwierdzić.
161
+ </li>
162
+ </ol>
163
+ csp_settings:
164
+ connect_src: Połącz src
165
+ connect_src_hint: |
166
+ Dyrektywa connect-src ogranicza adresy URL, które mogą być załadowane przy użyciu elementów <script>.
167
+ Platforma doda 'self', ale pozwala Ci dodać więcej. Pozostaw puste, jeśli nie masz pewności.
168
+ default_src: Domyślne src
169
+ default_src_hint: |
170
+ Dyrektywa default-src jest domyślną polityką ładowania treści takich jak JavaScript, obrazy, CSS, czcionki, żądania AJAX, ramki, media HTML5.
171
+ Platforma doda "self" "unsafe-inline", ale pozwala Ci dodać więcej. Pozostaw puste, jeśli nie masz pewności.
172
+ font_src: Czcionka src
173
+ font_src_hint: |
174
+ Dyrektywa font-src ogranicza adresy URL, które można załadować za pomocą @font-face.
175
+ Platforma doda 'self', ale pozwala Ci dodać więcej. Pozostaw puste, jeśli nie masz pewności.
176
+ frame_src: Ramka src
177
+ frame_src_hint: |
178
+ Dyrektywa frame-src ogranicza adresy URL, które mogą być załadowane przy użyciu elementów <frame>, <iframe> i <object>.
179
+ Platforma doda 'self', ale pozwala Ci dodać więcej. Pozostaw puste, jeśli nie masz pewności.
180
+ img_src: Img src
181
+ img_src_hint: |
182
+ Dyrektywa img-src ogranicza adresy URL, które mogą być załadowane przy użyciu elementów <img>, <image>, <picture> i <svg>.
183
+ Platforma doda 'self', ale pozwala Ci dodać więcej. Pozostaw puste, jeśli nie masz pewności.
184
+ media_src: Media src
185
+ media_src_hint: |
186
+ Dyrektywa media-src ogranicza adresy URL, które mogą być ładowane przy użyciu elementów <video>, <audio> i <source>.
187
+ Platforma doda 'self', ale pozwala Ci dodać więcej. Pozostaw puste, jeśli nie masz pewności.
188
+ script_src: Script src
189
+ script_src_hint: |
190
+ Dyrektywa script-src ogranicza adresy URL, które mogą być załadowane przy użyciu elementów <script>.
191
+ Platforma doda "'self' 'unsafe-inline' 'unsafe-eval'", ale pozwala Ci dodać więcej. Zostaw puste, jeśli nie masz pewności.
192
+ style_src: Style src
193
+ style_src_hint: |
194
+ Dyrektywa style-src ogranicza adresy URL, które mogą być załadowane przy użyciu elementów <style>.
195
+ Platforma doda "self" "unsafe-inline", ale pozwala ci dodać więcej. Pozostaw puste, jeśli nie masz pewności.
110
196
  edit:
197
+ confirm_resend_invitation: Czy na pewno wysłać ponownie zaproszenie?
198
+ resend_invitation: Wyślij ponownie zaproszenie
111
199
  secondary_hosts_hint: Wpisz każdy z nich w nowej linii
200
+ title: Edytuj organizację
112
201
  file_upload_settings:
113
202
  content_types:
114
203
  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.
@@ -130,6 +219,12 @@ pl:
130
219
  index:
131
220
  title: Organizacje
132
221
  new:
222
+ default: Domyślne?
223
+ enabled: Włączone
224
+ locale: Ustawienie regionalne
225
+ organization_admin_email_hint: Wyślemy wiadomość e-mail na ten adres, dzięki czemu będziesz mógł (mogła) go potwierdzić i skonfigurować hasło.
226
+ reference_prefix_hint: Prefiks referencyjny jest używany do jednoznacznej identyfikacji zasobów we wszystkich organizacjach.
227
+ secondary_hosts_hint: Wprowadź każdy z nich w nowej linii.
133
228
  title: Nowa organizacja
134
229
  omniauth_settings:
135
230
  decidim:
@@ -149,9 +244,14 @@ pl:
149
244
  twitter:
150
245
  api_key: Klucz API
151
246
  api_secret: Sekret API
247
+ resend_invitation:
248
+ error: Podczas wysyłania zaproszenia wystąpił problem.
249
+ success: Zaproszenie pomyślnie wysłane.
152
250
  smtp_settings:
153
251
  fieldsets:
154
252
  sender: Nadawca
253
+ instructions:
254
+ 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.'
155
255
  placeholder:
156
256
  from_email: twoja-organizacja@przyklad.org
157
257
  from_label: twoja-nazwa-organizacji
@@ -161,9 +261,19 @@ pl:
161
261
  users_registration_mode:
162
262
  disabled: Dostęp można uzyskać tylko za pomocą kont zewnętrznych
163
263
  enabled: Zezwalaj użytkownikom na rejestrację i logowanie
264
+ existing: Nie zezwalaj uczestnikom na rejestrację, ale zezwalaj obecnym uczestnikom na logowanie
164
265
  shared:
165
266
  notices:
166
267
  no_organization_warning_html: Aby rozpocząć, musisz utworzyć organizację. Przed kontynuowaniem przeczytaj %{guide}.
167
268
  our_getting_started_guide: nasz przewodnik
269
+ organizations_list:
270
+ confirm_resend_invitation: Czy na pewno wysłać ponownie zaproszenie?
271
+ resend_invitation: Wyślij ponownie zaproszenie
168
272
  titles:
169
273
  dashboard: Panel
274
+ decidim: Decidim
275
+ layouts:
276
+ decidim:
277
+ system:
278
+ login_items:
279
+ logout: Wyloguj się
@@ -110,6 +110,26 @@ tr:
110
110
  organizations:
111
111
  create:
112
112
  error: Yeni bir organizasyon oluştururken bir sorun oluştu.
113
+ error_invitation: Yeni bir kuruluş oluşturulurken bir sorun oluştu. Kuruluşunuzun yönetici adını gözden geçirin.
114
+ csp_settings:
115
+ default_src_hint: |
116
+ Default-src yönergesi, JavaScript, Görseller, CSS, Yazı Tipleri, AJAX istekleri, Çerçeveler, HTML5 Medya gibi içeriklerin yüklenmesine ilişkin varsayılan politikadır.
117
+ Platform "'self' 'unsafe-inline'" ekleyecektir, ancak daha fazlasını eklemenize olanak tanır. Emin değilseniz boş bırakın.
118
+ font_src_hint: |
119
+ Font-src yönergesi @font-face kullanılarak yüklenebilecek URL'leri kısıtlar.
120
+ Platform 'kendini' ekleyecektir ancak daha fazlasını eklemenize olanak tanır. Emin değilseniz boş bırakın.
121
+ frame_src_hint: |
122
+ Frame-src yönergesi <frame>, <iframe> ve <object> öğeleri kullanılarak yüklenebilecek URL'leri kısıtlar.
123
+ Platform 'kendini' ekleyecektir ancak daha fazlasını eklemenize olanak tanır. Emin değilseniz boş bırakın.
124
+ media_src_hint: |
125
+ Media-src yönergesi <video>, <audio> ve <source> öğeleri kullanılarak yüklenebilecek URL'leri kısıtlar.
126
+ Platform 'kendini' ekleyecektir ancak daha fazlasını eklemenize olanak tanır. Emin değilseniz boş bırakın.
127
+ script_src_hint: |
128
+ Script-src yönergesi <script> öğeleri kullanılarak yüklenebilecek URL'leri kısıtlar.
129
+ Platform "'self' 'unsafe-inline' 'unsafe-eval'" ekleyecektir, ancak daha fazlasını eklemenize olanak tanır. Emin değilseniz boş bırakın.
130
+ style_src_hint: |
131
+ Style-src yönergesi <style> öğeleri kullanılarak yüklenebilecek URL'leri kısıtlar.
132
+ Platform "'self' 'unsafe-inline'" ekleyecektir, ancak daha fazlasını eklemenize olanak tanır. Emin değilseniz boş bırakın.
113
133
  edit:
114
134
  secondary_hosts_hint: Her birini yeni bir satıra girin
115
135
  file_upload_settings:
@@ -155,6 +175,8 @@ tr:
155
175
  smtp_settings:
156
176
  fieldsets:
157
177
  sender: Gönderen
178
+ instructions:
179
+ 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.'
158
180
  placeholder:
159
181
  from_email: your-organization@example.org
160
182
  from_label: your-organization-name
@@ -166,8 +166,6 @@ zh-TW:
166
166
  smtp_settings:
167
167
  fieldsets:
168
168
  sender: 寄件者
169
- instructions:
170
- from_label: '郵件發送者將會是:"您的組織名稱 <your-organization@example.org>"。若要使用「電子郵件地址」作為標籤,請留空.'
171
169
  placeholder:
172
170
  from_email: your-organization@example.org
173
171
  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.28.1"
7
+ "0.28.2"
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.28.1
4
+ version: 0.28.2
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.28.1
35
+ version: 0.28.2
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.28.1
42
+ version: 0.28.2
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.28.1
97
+ version: 0.28.2
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.28.1
104
+ version: 0.28.2
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
@@ -281,7 +280,7 @@ metadata:
281
280
  funding_uri: https://opencollective.com/decidim
282
281
  homepage_uri: https://decidim.org
283
282
  source_code_uri: https://github.com/decidim/decidim
284
- post_install_message:
283
+ post_install_message:
285
284
  rdoc_options: []
286
285
  require_paths:
287
286
  - lib
@@ -296,8 +295,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
296
295
  - !ruby/object:Gem::Version
297
296
  version: '0'
298
297
  requirements: []
299
- rubygems_version: 3.5.9
300
- signing_key:
298
+ rubygems_version: 3.3.7
299
+ signing_key:
301
300
  specification_version: 4
302
301
  summary: Decidim system administration
303
302
  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