Skip to content

Commit

Permalink
feature: allow idea body with just one character (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardo-navarro authored Mar 23, 2024
1 parent daf1250 commit 1bbe586
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 129 deletions.
2 changes: 1 addition & 1 deletion lib/mindwendel/brainstormings/idea.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ defmodule Mindwendel.Brainstormings.Idea do
idea
|> cast(attrs, [:username, :body, :brainstorming_id, :deprecated_label, :label_id, :user_id])
|> validate_required([:username, :body, :brainstorming_id])
|> validate_length(:body, min: 2, max: 1023)
|> validate_length(:body, min: 1, max: 1023)
|> validate_inclusion(:deprecated_label, @label_values)
end

Expand Down
128 changes: 64 additions & 64 deletions priv/gettext/de/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ msgstr ""
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: lib/mindwendel_web/templates/static_page/home.html.heex:11
#: lib/mindwendel_web/templates/static_page/home.html.heex:15
#, elixir-autogen, elixir-format
msgid "Brainstorm"
msgstr "Los geht's!"

#: lib/mindwendel_web/templates/static_page/home.html.heex:18
#: lib/mindwendel_web/templates/static_page/home.html.heex:24
#, elixir-autogen, elixir-format
msgid "How might we ..."
msgstr "Wie können wir ..."

#: lib/mindwendel_web/templates/static_page/home.html.heex:10
#: lib/mindwendel_web/templates/static_page/home.html.heex:14
#, elixir-autogen, elixir-format
msgid "Ready?"
msgstr "Fertig?"
Expand All @@ -36,53 +36,53 @@ msgstr "%{name} - Editieren"
msgid "%{name} - New Idea"
msgstr "%{name} - Neue Idee"

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:8
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:11
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete this idea?"
msgstr "Möchtest du die Idee löschen?"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:144
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:200
#, elixir-autogen, elixir-format
msgid "Attention: This will delete the brainstorming with all belonging ideas and other associated records to it. This cant be undone"
msgstr "Achtung: Hiermit löschst du das Brainstorming und alle dazugehörigen Ideen. Diese Aktion kann nicht rückgängig gemacht werden."

#: lib/mindwendel_web/live/idea_live/form_component.html.heex:30
#: lib/mindwendel_web/live/idea_live/form_component.html.heex:29
#, elixir-autogen, elixir-format
msgid "Close"
msgstr "Schließen"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:24
#: lib/mindwendel_web/live/brainstorming_live/share_component.html.heex:21
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:26
#: lib/mindwendel_web/live/brainstorming_live/share_component.html.heex:20
#, elixir-autogen, elixir-format
msgid "Copy"
msgstr "Kopieren"

#: lib/mindwendel_web/templates/static_page/home.html.heex:9
#: lib/mindwendel_web/templates/static_page/home.html.heex:13
#, elixir-autogen, elixir-format
msgid "Create a challenge."
msgstr "Erstelle ein Brainstorming."

#: lib/mindwendel_web/templates/static_page/home.html.heex:22
#: lib/mindwendel_web/templates/static_page/home.html.heex:30
#, elixir-autogen, elixir-format
msgid "Create!"
msgstr "Erstellen!"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:146
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:204
#, elixir-autogen, elixir-format
msgid "Delete"
msgstr "Löschen"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:138
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:194
#, elixir-autogen, elixir-format
msgid "Delete Brainstorming"
msgstr "Lösche Brainstorming"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:131
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:178
#, elixir-autogen, elixir-format
msgid "Export to CSV"
msgstr "Export als CSV"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:132
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:185
#, elixir-autogen, elixir-format
msgid "Export to HTML"
msgstr "Export als HTML"
Expand All @@ -97,80 +97,80 @@ msgstr "Keine Ideen? Hier gibts Gedankenanstöße!"
msgid "Idea created successfully"
msgstr "Idee erstellt"

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:24
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:93
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:25
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:107
#, elixir-autogen, elixir-format
msgid "New Idea"
msgstr "Neue Idee"

#: lib/mindwendel_web/templates/layout/root.html.heex:35
#: lib/mindwendel_web/templates/layout/root.html.heex:50
#, elixir-autogen, elixir-format
msgid "New brainstorming"
msgstr "Neues Brainstorming"

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:58
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:64
#, elixir-autogen, elixir-format
msgid "New idea"
msgstr "Neue Idee"

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:24
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:28
#, elixir-autogen, elixir-format
msgid "New idea page (Hotkey: i)"
msgstr "Neue Idee (Hotkey: i)"

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:78
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:103
#, elixir-autogen, elixir-format
msgid "No ideas brainstormed"
msgstr "Bisher keine Ideen"

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:93
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:110
#, elixir-autogen, elixir-format
msgid "Open new idea page (Hotkey: i)"
msgstr "Öffne neue Ideen Dialog (Hotkey: i)"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:40
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:42
#, elixir-autogen, elixir-format
msgid "Proceed to your brainstorming"
msgstr "Weiter zu deinem Brainstorming"

#: lib/mindwendel_web/live/idea_live/form_component.html.heex:31
#: lib/mindwendel_web/live/idea_live/form_component.html.heex:35
#, elixir-autogen, elixir-format
msgid "Save"
msgstr "Speichern"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:6
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:8
#, elixir-autogen, elixir-format
msgid "Save this link to update / delete your brainstorming later on:"
msgstr "Speichere diesen Link, um das Brainstorming zukünftig zu bearbeiten oder zu löschen"

#: lib/mindwendel_web/live/idea_live/form_component.html.heex:31
#: lib/mindwendel_web/live/idea_live/form_component.html.heex:37
#, elixir-autogen, elixir-format
msgid "Saving..."
msgstr "Speichere..."

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:28
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:29
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:33
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:34
#, elixir-autogen, elixir-format
msgid "Sort by label"
msgstr "Sortiere nach Label"

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:25
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:26
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:30
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:31
#, elixir-autogen, elixir-format
msgid "Sort by likes"
msgstr "Sortiere nach Likes"

#: lib/mindwendel_web/templates/error/error_page.html.heex:33
#: lib/mindwendel_web/templates/error/error_page.html.heex:42
#, elixir-autogen, elixir-format
msgid "Try again from home"
msgstr "Versuch es auf der Startseite"

#: lib/mindwendel_web/templates/layout/root.html.heex:41
#: lib/mindwendel_web/templates/layout/root.html.heex:63
#, elixir-autogen, elixir-format
msgid "Your brainstormings"
msgstr "Deine Brainstormings"

#: lib/mindwendel_web/templates/error/error_page.html.heex:32
#: lib/mindwendel_web/templates/error/error_page.html.heex:41
#, elixir-autogen, elixir-format
msgid "mindwendel could not be found."
msgstr "mindwendel konnte nicht gefunden werden."
Expand All @@ -190,78 +190,78 @@ msgstr "Brainstorming erfolgreich gelöscht"
msgid "Your brainstorming was created successfully! Share the link with other people and start brainstorming."
msgstr "Dein Brainstorming wurde erstellt! Teile den Link mit anderen Personen und legt los."

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:48
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:59
#, elixir-autogen, elixir-format
msgid "Edit Brainstorming"
msgstr "Editiere Brainstorming"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:128
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:175
#, elixir-autogen, elixir-format
msgid "Export"
msgstr "Export"

#: lib/mindwendel_web/templates/static_page/home.html.heex:34
#: lib/mindwendel_web/templates/static_page/home.html.heex:47
#, elixir-autogen
msgid "Your latest brainstormings"
msgstr "Deine letzten Brainstormings"

#: lib/mindwendel_web/live/idea_live/form_component.html.heex:21
#: lib/mindwendel_web/live/idea_live/form_component.html.heex:20
#, elixir-autogen, elixir-format
msgid "Your idea"
msgstr "Deine Idee"

#: lib/mindwendel_web/live/idea_live/form_component.html.heex:8
#: lib/mindwendel_web/live/idea_live/form_component.html.heex:7
#, elixir-autogen, elixir-format
msgid "Required fields are either missing or incorrect:"
msgstr "Einige Pflichtfelder fehlen oder sind inkorrekt:"

#: lib/mindwendel_web/live/idea_live/form_component.html.heex:13
#: lib/mindwendel_web/live/idea_live/form_component.html.heex:12
#, elixir-autogen, elixir-format
msgid "Username"
msgstr "Nutzername"

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:42
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:53
#: lib/mindwendel_web/templates/admin/brainstorming/export.html.heex:3
#, elixir-autogen, elixir-format
msgid "By"
msgstr "Von"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:3
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:4
#, elixir-autogen, elixir-format
msgid "Administration for brainstorming: %{name}"
msgstr "Administration für: %{name}"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:67
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:89
#, elixir-autogen, elixir-format
msgid "Show brainstorming settings link for all users"
msgstr "Zeige Link zur Administration für alle Nutzer"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:73
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:95
#, elixir-autogen, elixir-format
msgid "Warning: Please make sure you save the admin link at the top, before hiding the settings link!"
msgstr "Achtung: Bitte speichere den Admin-Link oben ab, bevor du den Link zur Administration versteckst."

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:42
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:48
#, elixir-autogen, elixir-format
msgid "Brainstorming will be deleted "
msgstr "Brainstorming wird gelöscht in "

#: lib/mindwendel_web/templates/static_page/home.html.heex:26
#: lib/mindwendel_web/templates/static_page/home.html.heex:34
#, elixir-autogen, elixir-format
msgid "Brainstormings will be deleted after %{days} days."
msgstr "Brainstormings werden nach %{days} Tagen gelöscht."

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:96
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:124
#, elixir-autogen, elixir-format
msgid "Choose the label color"
msgstr "Wähle die Farbe für das Label aus"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:88
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:112
#, elixir-autogen, elixir-format
msgid "Edit Brainstorming Labels"
msgstr "Editiere Brainstorming Labels"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:97
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:129
#, elixir-autogen, elixir-format
msgid "Type the label name"
msgstr "Gebe dem Label einen Namen"
Expand Down Expand Up @@ -291,19 +291,19 @@ msgstr "Rot"
msgid "yellow"
msgstr "Gelb"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:119
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:165
#, elixir-autogen, elixir-format
msgid "Add idea label"
msgstr "Neues Label"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:98
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:138
#, elixir-autogen, elixir-format
msgid "Remove idea label"
msgstr "Löschen"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:60
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:79
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:109
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:76
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:103
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:154
#, elixir-autogen, elixir-format
msgid "Saved"
msgstr "Gespeichert"
Expand All @@ -315,45 +315,45 @@ msgstr "Gespeichert"
msgid "Your brainstorming was not saved."
msgstr "Dein Brainstorming wurde nicht gespeichert."

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:29
#: lib/mindwendel_web/live/brainstorming_live/share_component.html.heex:25
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:31
#: lib/mindwendel_web/live/brainstorming_live/share_component.html.heex:24
#, elixir-autogen, elixir-format
msgid "Join my brainstorming"
msgstr "Trete meinem Brainstorming bei."

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:30
#: lib/mindwendel_web/live/brainstorming_live/share_component.html.heex:26
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:32
#: lib/mindwendel_web/live/brainstorming_live/share_component.html.heex:25
#, elixir-autogen, elixir-format
msgid "Mindwendel Brainstorming"
msgstr "Mindwendel Brainstorming"

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:33
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:34
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:38
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:39
#, elixir-autogen, elixir-format
msgid "Share"
msgstr "Teilen"

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:80
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:88
#, elixir-autogen, elixir-format
msgid "Share brainstorming"
msgstr "Teile Dein Brainstorming"

#: lib/mindwendel_web/live/brainstorming_live/share_component.html.heex:71
#: lib/mindwendel_web/live/brainstorming_live/share_component.html.heex:65
#, elixir-autogen, elixir-format
msgid "Download as png"
msgstr "Download als PNG"

#: lib/mindwendel_web/live/brainstorming_live/share_component.html.heex:59
#: lib/mindwendel_web/live/brainstorming_live/share_component.html.heex:54
#, elixir-autogen, elixir-format
msgid "Download as svg"
msgstr "Download als SVG"

#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:147
#: lib/mindwendel_web/live/admin/brainstorming_live/edit.html.heex:205
#, elixir-autogen, elixir-format, fuzzy
msgid "Brainstorming delete are you sure"
msgstr "Bist du sicher, dass das Brainstorming gelöscht werden soll?"

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:11
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:14
#, elixir-autogen, elixir-format
msgid "Edit Idea"
msgstr ""
Expand All @@ -363,7 +363,7 @@ msgstr ""
msgid "Idea created updated"
msgstr ""

#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:69
#: lib/mindwendel_web/live/brainstorming_live/show.html.heex:76
#, elixir-autogen, elixir-format
msgid "Update idea"
msgstr ""
Loading

0 comments on commit 1bbe586

Please sign in to comment.