Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💻 Add Ability to Rename Class #5978

Merged
merged 10 commits into from
Dec 10, 2024
6 changes: 6 additions & 0 deletions messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

msgid "repair_program_logo_alt"
msgstr ""

Expand Down
7 changes: 6 additions & 1 deletion templates/customize-class.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
</button>
<br><br>
<div class="flex flex-col gap-2">
<h2>{{_('customize_class')}}: {{class_info.name}}</h2>
<h2>{{_('customize_class')}}: {{class_info.name}}
<i class="fa-solid fa-pencil cursor-pointer text-lg mx-2"
onclick="hedyApp.rename_class('{{class_info.id}}', '{{_("rename_class_prompt")}}')"
title="{{ _('rename_class') }}">
</i>
</h2>

{{ render_partial('customize-class/partial-sortable-adventures.html',
customizations=customizations,
Expand Down
6 changes: 6 additions & 0 deletions translations/ar/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,12 @@ msgstr "هل أنت متأكد أنك تريد ازالة التلميذ من ا
msgid "remove_user_prompt"
msgstr "هل تأكد حذف هذا المستخدم؟"

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/bg/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1732,6 +1732,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/bn/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1810,6 +1810,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/ca/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1583,6 +1583,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/cs/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1741,6 +1741,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/cy/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1798,6 +1798,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/da/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1804,6 +1804,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/de/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1509,6 +1509,12 @@ msgstr "Soll der/die Schüler*in aus der Klasse entfernt werden?"
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

msgid "repair_program_logo_alt"
msgstr "Repariere Programm Symbol"

Expand Down
6 changes: 6 additions & 0 deletions translations/el/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1621,6 +1621,12 @@ msgstr "Είσαι βέβαιος/α ότι θέλεις να αφαιρέσει
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/en/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,12 @@ msgstr "Are you sure you want to remove the student from the class?"
msgid "remove_user_prompt"
msgstr "Confirm removing this user from the class."

msgid "rename_class"
msgstr "Rename class"

msgid "rename_class_prompt"
msgstr "What is the name you want to give to this class?"

msgid "repair_program_logo_alt"
msgstr "Repair program icon"

Expand Down
6 changes: 6 additions & 0 deletions translations/eo/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1648,6 +1648,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

msgid "repair_program_logo_alt"
msgstr "Piktogramo pri riparado de programo"

Expand Down
6 changes: 6 additions & 0 deletions translations/es/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,12 @@ msgstr "¿Estás seguro de que quieres eliminar al alumno de la clase?"
msgid "remove_user_prompt"
msgstr "Confirmar la eliminación de este usuario de la clase."

msgid "rename_class"
msgstr "Renombrar clase"

msgid "rename_class_prompt"
msgstr "¿Cuál es el nombre que le quieres dar a esta clase?"

msgid "repair_program_logo_alt"
msgstr "Icono de reparación de programa"

Expand Down
6 changes: 6 additions & 0 deletions translations/et/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1789,6 +1789,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/fa/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/fi/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1797,6 +1797,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/fr/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1539,6 +1539,12 @@ msgstr "Es-tu sur de vouloir supprimer l'élève de la classe ?"
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

msgid "repair_program_logo_alt"
msgstr "Corriger l'icône du programmer"

Expand Down
6 changes: 6 additions & 0 deletions translations/fr_CA/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/fy/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1720,6 +1720,12 @@ msgstr "Witst seker datst de learling út de klas fuorthelje wolst?"
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/he/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1782,6 +1782,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/hi/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1646,6 +1646,12 @@ msgstr "क्या आप वाकई छात्र को कक्षा
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/hr/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1806,6 +1806,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/hu/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1730,6 +1730,12 @@ msgstr "Biztos vagy benne, hogy eltávolítod a tanulót az osztályból?"
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/ia/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1801,6 +1801,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/iba/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/id/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1528,6 +1528,12 @@ msgstr "Apa kamu yakin mau mengeluarkan murid tersebut dari kelas?"
msgid "remove_user_prompt"
msgstr "Konfirmasikan penghapusan pengguna ini dari kelas."

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

msgid "repair_program_logo_alt"
msgstr "Ikon program perbaikan"

Expand Down
6 changes: 6 additions & 0 deletions translations/it/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1748,6 +1748,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/ja/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1801,6 +1801,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

#, fuzzy
msgid "repair_program_logo_alt"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions translations/kab/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1481,6 +1481,12 @@ msgstr ""
msgid "remove_user_prompt"
msgstr ""

msgid "rename_class"
msgstr ""

msgid "rename_class_prompt"
msgstr ""

msgid "repair_program_logo_alt"
msgstr "Seɣti tignit n usihel"

Expand Down
Loading
Loading