From eab4a554b22a28b7e73ef8c7e49c973ab207b15e Mon Sep 17 00:00:00 2001 From: sjhddh Date: Wed, 22 Apr 2026 14:14:06 +0200 Subject: [PATCH 1/2] Make single-row delete submit button translatable Closes #751 The `submit_btn_text="Yes, delete"` on the single-row delete row_action was a raw English literal, while the surrounding `text` and `confirmation` args use `_()`. Wrap it so non-English locales render a translated button. Ran `hatch run i18n:extract|update|compile` to regenerate the POT/PO/MO catalogs. Added translations for de, fr, pt, ru, tr, zh_Hant; kept en msgstr empty as convention. --- i18n/admin.pot | 60 ++++++++++-------- .../translations/de/LC_MESSAGES/admin.mo | Bin 2523 -> 2564 bytes .../translations/de/LC_MESSAGES/admin.po | 54 +++++++++------- .../translations/en/LC_MESSAGES/admin.mo | Bin 613 -> 613 bytes .../translations/en/LC_MESSAGES/admin.po | 54 +++++++++------- .../translations/fr/LC_MESSAGES/admin.mo | Bin 2537 -> 2580 bytes .../translations/fr/LC_MESSAGES/admin.po | 54 +++++++++------- .../translations/pt/LC_MESSAGES/admin.mo | Bin 2396 -> 2438 bytes .../translations/pt/LC_MESSAGES/admin.po | 57 ++++++++++------- .../translations/ru/LC_MESSAGES/admin.mo | Bin 2955 -> 3004 bytes .../translations/ru/LC_MESSAGES/admin.po | 54 +++++++++------- .../translations/tr/LC_MESSAGES/admin.mo | Bin 2386 -> 2424 bytes .../translations/tr/LC_MESSAGES/admin.po | 54 +++++++++------- .../translations/zh_Hant/LC_MESSAGES/admin.mo | Bin 2254 -> 2297 bytes .../translations/zh_Hant/LC_MESSAGES/admin.po | 57 ++++++++++------- starlette_admin/views.py | 2 +- 16 files changed, 256 insertions(+), 190 deletions(-) diff --git a/i18n/admin.pot b/i18n/admin.pot index e13dec20b..339934f5b 100644 --- a/i18n/admin.pot +++ b/i18n/admin.pot @@ -1,33 +1,33 @@ # Translations template for starlette-admin. -# Copyright (C) 2023 ORGANIZATION +# Copyright (C) 2026 ORGANIZATION # This file is distributed under the same license as the starlette-admin # project. -# FIRST AUTHOR , 2023. +# FIRST AUTHOR , 2026. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: starlette-admin VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2023-10-28 16:32-0500\n" +"POT-Creation-Date: 2026-04-22 14:12+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.13.0\n" +"Generated-By: Babel 2.18.0\n" #: starlette_admin/actions.py:11 starlette_admin/actions.py:107 #: starlette_admin/templates/modals/actions.html:12 msgid "Yes, Proceed" msgstr "" -#: starlette_admin/auth.py:31 +#: starlette_admin/auth.py:37 msgid "Administrator" msgstr "" -#: starlette_admin/base.py:44 starlette_admin/contrib/odmantic/admin.py:17 +#: starlette_admin/base.py:53 starlette_admin/contrib/odmantic/admin.py:17 #: starlette_admin/contrib/sqla/admin.py:28 #: starlette_admin/templates/create.html:7 #: starlette_admin/templates/detail.html:8 @@ -35,45 +35,49 @@ msgstr "" msgid "Admin" msgstr "" -#: starlette_admin/base.py:254 +#: starlette_admin/base.py:293 #, python-format msgid "Model with identity %(identity)s not found" msgstr "" #: starlette_admin/templates/forms/_delete.html:8 -#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:461 -#: starlette_admin/views.py:498 +#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:463 +#: starlette_admin/views.py:500 msgid "Delete" msgstr "" -#: starlette_admin/views.py:462 +#: starlette_admin/views.py:464 msgid "Are you sure you want to delete selected items?" msgstr "" -#: starlette_admin/views.py:463 +#: starlette_admin/views.py:465 msgid "Yes, delete all" msgstr "" -#: starlette_admin/views.py:468 starlette_admin/views.py:507 +#: starlette_admin/views.py:471 starlette_admin/views.py:509 #, python-format msgid "Item was successfully deleted" msgid_plural "%(count)d items were successfully deleted" msgstr[0] "" msgstr[1] "" -#: starlette_admin/views.py:476 +#: starlette_admin/views.py:478 msgid "View" msgstr "" -#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:488 +#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:490 msgid "Edit" msgstr "" -#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:499 +#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:501 msgid "Are you sure you want to delete this item?" msgstr "" -#: starlette_admin/views.py:818 +#: starlette_admin/views.py:503 +msgid "Yes, delete" +msgstr "" + +#: starlette_admin/views.py:907 msgid "All" msgstr "" @@ -117,11 +121,16 @@ msgstr "" msgid "Detail" msgstr "" -#: starlette_admin/templates/detail.html:47 +#: starlette_admin/templates/detail.html:53 +#: starlette_admin/templates/list.html:67 +msgid "Search" +msgstr "" + +#: starlette_admin/templates/detail.html:64 msgid "Attribute" msgstr "" -#: starlette_admin/templates/detail.html:48 +#: starlette_admin/templates/detail.html:65 msgid "Value" msgstr "" @@ -138,25 +147,23 @@ msgstr "" msgid "Take me home" msgstr "" -#: starlette_admin/templates/layout.html:95 -#: starlette_admin/templates/layout.html:118 -#: starlette_admin/templates/layout.html:204 +#: starlette_admin/templates/layout.html:96 +#: starlette_admin/templates/layout.html:119 +#: starlette_admin/templates/layout.html:237 msgid "Logout" msgstr "" -#: starlette_admin/templates/list.html:67 -msgid "Search" -msgstr "" - #: starlette_admin/templates/login.html:16 msgid "Login to your account" msgstr "" #: starlette_admin/templates/login.html:32 +#: starlette_admin/templates/login.html:36 msgid "Username" msgstr "" #: starlette_admin/templates/login.html:43 +#: starlette_admin/templates/login.html:47 msgid "Password" msgstr "" @@ -173,7 +180,7 @@ msgid "Actions" msgstr "" #: starlette_admin/templates/forms/_delete.html:13 -msgid "Checked this to delete current content of this field" +msgid "Check this to delete the current content of this field" msgstr "" #: starlette_admin/templates/forms/enum.html:5 @@ -188,3 +195,4 @@ msgstr "" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "" + diff --git a/starlette_admin/translations/de/LC_MESSAGES/admin.mo b/starlette_admin/translations/de/LC_MESSAGES/admin.mo index c9fb6329845945956f29799a565785467f5e4df9..f0f38166a2c8e4f2cff5bf012a8aa93d65557a05 100644 GIT binary patch delta 726 zcmYMw&nv@m9LMp`X2$&9%wbtt62h`A&9Ac*M=raO7Kf3Vh}0-<9E1zyw2O;_)h;-# zlyVq_q(lu#DgFRFUs-(nem{@z=kxu%e|$f8)hq7Az00<3xSDvpJi`{v{;xHwF-1(* zu^6|p5cjYglURU<*p6vz!Dn=!laF?+#W2?A=aF9%W+cBbjy5(-p%TZjAD2-LoM8=K zpc1~I3cX_)dI)a7MpUDNSc=2QZAKW}7)1{*pxq>l+2X~;!Y-=N0V-h{l_-Py<8$OT zmkes~2DR@ARp=8d@e7ljVg*5pPtk2P9;5PPQSsMkqrS=UqCb7bUJTNO0w+;NIE#I_ zl%JpGzh{vUbBiVTfGYHcL->s_Hn0MBP$#pG9EM3Fy_h3(Vg|ME$^qJ#V?hN!QuEds>*k|vt}5&g wbofIdU$CPm7-|iKQWJ$O7E4!Z)81X+jb+mDv5DxE85nKzjmBcpxbJW22b`}^PXGV_ delta 679 zcmYMwO(+Cm7{Kvoc6XMs%Vs~6a?<9o4!axKw7Joy99BqCQe1GN+%T7Q+PEw!$yZwC z;xKzzaUf+ca>7CFfpS&K-T%pyY3BXC@67vr%v*@QMeKUmw<}y-JRLkEhOYjvHIGOG z%XMtTO*C;En{fxdc#26ZV*+2$LW7Tf3}7FI-SzOFw&dLxljvi^3~J&z%;7R>167RS zEo#D7)IxO(qD62V+fWJOiwon}&D!Y!ZfhcDCyJPev3h;dA! z79K}E!fDjFRcyfx)Dzi4{lk5v7dgUKJV)JEMQxyFiBt5fcuJPJR5~yNW>301m2wJZ Q!Z3QBOMkz&^kap70rpovkN^Mx diff --git a/starlette_admin/translations/de/LC_MESSAGES/admin.po b/starlette_admin/translations/de/LC_MESSAGES/admin.po index 7da2c034e..92aea33f3 100644 --- a/starlette_admin/translations/de/LC_MESSAGES/admin.po +++ b/starlette_admin/translations/de/LC_MESSAGES/admin.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: starlette-admin VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-03-07 16:31+0000\n" +"POT-Creation-Date: 2026-04-22 14:12+0200\n" "PO-Revision-Date: 2024-03-07 16:50+0000\n" "Last-Translator: FULL NAME \n" "Language: de\n" @@ -17,18 +17,18 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.13.0\n" +"Generated-By: Babel 2.18.0\n" #: starlette_admin/actions.py:11 starlette_admin/actions.py:107 #: starlette_admin/templates/modals/actions.html:12 msgid "Yes, Proceed" msgstr "Ja, fortfahren" -#: starlette_admin/auth.py:31 +#: starlette_admin/auth.py:37 msgid "Administrator" msgstr "Administrator" -#: starlette_admin/base.py:44 starlette_admin/contrib/odmantic/admin.py:17 +#: starlette_admin/base.py:53 starlette_admin/contrib/odmantic/admin.py:17 #: starlette_admin/contrib/sqla/admin.py:28 #: starlette_admin/templates/create.html:7 #: starlette_admin/templates/detail.html:8 @@ -36,45 +36,49 @@ msgstr "Administrator" msgid "Admin" msgstr "Admin" -#: starlette_admin/base.py:254 +#: starlette_admin/base.py:293 #, python-format msgid "Model with identity %(identity)s not found" msgstr "Modell mit Identität %(identity)s wurde nicht gefunden" #: starlette_admin/templates/forms/_delete.html:8 -#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:461 -#: starlette_admin/views.py:498 +#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:463 +#: starlette_admin/views.py:500 msgid "Delete" msgstr "Löschen" -#: starlette_admin/views.py:462 +#: starlette_admin/views.py:464 msgid "Are you sure you want to delete selected items?" msgstr "Sind Sie sicher, dass Sie die ausgewählten Elemente löschen möchten?" -#: starlette_admin/views.py:463 +#: starlette_admin/views.py:465 msgid "Yes, delete all" msgstr "Ja, alles löschen" -#: starlette_admin/views.py:468 starlette_admin/views.py:507 +#: starlette_admin/views.py:471 starlette_admin/views.py:509 #, python-format msgid "Item was successfully deleted" msgid_plural "%(count)d items were successfully deleted" msgstr[0] "Element wurde erfolgreich gelöscht" msgstr[1] "%(count)d Elemente wurden erfolgreich gelöscht" -#: starlette_admin/views.py:476 +#: starlette_admin/views.py:478 msgid "View" msgstr "Ansehen" -#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:488 +#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:490 msgid "Edit" msgstr "Bearbeiten" -#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:499 +#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:501 msgid "Are you sure you want to delete this item?" msgstr "Sind Sie sicher, dass Sie dieses Element löschen möchten?" -#: starlette_admin/views.py:818 +#: starlette_admin/views.py:503 +msgid "Yes, delete" +msgstr "Ja, löschen" + +#: starlette_admin/views.py:907 msgid "All" msgstr "Alle" @@ -118,11 +122,16 @@ msgstr "Speichern" msgid "Detail" msgstr "Detail" -#: starlette_admin/templates/detail.html:47 +#: starlette_admin/templates/detail.html:53 +#: starlette_admin/templates/list.html:67 +msgid "Search" +msgstr "Suchen" + +#: starlette_admin/templates/detail.html:64 msgid "Attribute" msgstr "Attribut" -#: starlette_admin/templates/detail.html:48 +#: starlette_admin/templates/detail.html:65 msgid "Value" msgstr "Wert" @@ -139,25 +148,23 @@ msgstr "Ups… Sie haben gerade eine Fehlerseite gefunden" msgid "Take me home" msgstr "Zur Startseite" -#: starlette_admin/templates/layout.html:95 -#: starlette_admin/templates/layout.html:118 -#: starlette_admin/templates/layout.html:204 +#: starlette_admin/templates/layout.html:96 +#: starlette_admin/templates/layout.html:119 +#: starlette_admin/templates/layout.html:237 msgid "Logout" msgstr "Abmelden" -#: starlette_admin/templates/list.html:67 -msgid "Search" -msgstr "Suchen" - #: starlette_admin/templates/login.html:16 msgid "Login to your account" msgstr "Melden Sie sich bei Ihrem Konto an" #: starlette_admin/templates/login.html:32 +#: starlette_admin/templates/login.html:36 msgid "Username" msgstr "Benutzername" #: starlette_admin/templates/login.html:43 +#: starlette_admin/templates/login.html:47 msgid "Password" msgstr "Passwort" @@ -189,3 +196,4 @@ msgstr "Element hinzufügen" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "Laden" + diff --git a/starlette_admin/translations/en/LC_MESSAGES/admin.mo b/starlette_admin/translations/en/LC_MESSAGES/admin.mo index 3cff8aa89b3e65f812b721f81a8916806dd78013..50511b71df1489bafec78a369dd8983e58420887 100644 GIT binary patch delta 35 rcmaFL@|0!5YXLJ|0~1{%BLzbfD?=k~1EY<\n" "Language: en\n" @@ -17,18 +17,18 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.13.0\n" +"Generated-By: Babel 2.18.0\n" #: starlette_admin/actions.py:11 starlette_admin/actions.py:107 #: starlette_admin/templates/modals/actions.html:12 msgid "Yes, Proceed" msgstr "" -#: starlette_admin/auth.py:31 +#: starlette_admin/auth.py:37 msgid "Administrator" msgstr "" -#: starlette_admin/base.py:44 starlette_admin/contrib/odmantic/admin.py:17 +#: starlette_admin/base.py:53 starlette_admin/contrib/odmantic/admin.py:17 #: starlette_admin/contrib/sqla/admin.py:28 #: starlette_admin/templates/create.html:7 #: starlette_admin/templates/detail.html:8 @@ -36,45 +36,49 @@ msgstr "" msgid "Admin" msgstr "" -#: starlette_admin/base.py:254 +#: starlette_admin/base.py:293 #, python-format msgid "Model with identity %(identity)s not found" msgstr "" #: starlette_admin/templates/forms/_delete.html:8 -#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:461 -#: starlette_admin/views.py:498 +#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:463 +#: starlette_admin/views.py:500 msgid "Delete" msgstr "" -#: starlette_admin/views.py:462 +#: starlette_admin/views.py:464 msgid "Are you sure you want to delete selected items?" msgstr "" -#: starlette_admin/views.py:463 +#: starlette_admin/views.py:465 msgid "Yes, delete all" msgstr "" -#: starlette_admin/views.py:468 starlette_admin/views.py:507 +#: starlette_admin/views.py:471 starlette_admin/views.py:509 #, python-format msgid "Item was successfully deleted" msgid_plural "%(count)d items were successfully deleted" msgstr[0] "" msgstr[1] "" -#: starlette_admin/views.py:476 +#: starlette_admin/views.py:478 msgid "View" msgstr "" -#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:488 +#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:490 msgid "Edit" msgstr "" -#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:499 +#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:501 msgid "Are you sure you want to delete this item?" msgstr "" -#: starlette_admin/views.py:818 +#: starlette_admin/views.py:503 +msgid "Yes, delete" +msgstr "" + +#: starlette_admin/views.py:907 msgid "All" msgstr "" @@ -118,11 +122,16 @@ msgstr "" msgid "Detail" msgstr "" -#: starlette_admin/templates/detail.html:47 +#: starlette_admin/templates/detail.html:53 +#: starlette_admin/templates/list.html:67 +msgid "Search" +msgstr "" + +#: starlette_admin/templates/detail.html:64 msgid "Attribute" msgstr "" -#: starlette_admin/templates/detail.html:48 +#: starlette_admin/templates/detail.html:65 msgid "Value" msgstr "" @@ -139,25 +148,23 @@ msgstr "" msgid "Take me home" msgstr "" -#: starlette_admin/templates/layout.html:95 -#: starlette_admin/templates/layout.html:118 -#: starlette_admin/templates/layout.html:204 +#: starlette_admin/templates/layout.html:96 +#: starlette_admin/templates/layout.html:119 +#: starlette_admin/templates/layout.html:237 msgid "Logout" msgstr "" -#: starlette_admin/templates/list.html:67 -msgid "Search" -msgstr "" - #: starlette_admin/templates/login.html:16 msgid "Login to your account" msgstr "" #: starlette_admin/templates/login.html:32 +#: starlette_admin/templates/login.html:36 msgid "Username" msgstr "" #: starlette_admin/templates/login.html:43 +#: starlette_admin/templates/login.html:47 msgid "Password" msgstr "" @@ -189,3 +196,4 @@ msgstr "" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "" + diff --git a/starlette_admin/translations/fr/LC_MESSAGES/admin.mo b/starlette_admin/translations/fr/LC_MESSAGES/admin.mo index 67065ec24a37d025f463174f3956b2fa386160d5..3a0de79d78efef93bceb9f9636867a4a3bf60bc7 100644 GIT binary patch delta 720 zcmYMxJ4ixN7{KwPsinO%b+9DFqM!$rnMOmjH3YQ?5kZfkheIVk2wJ3}ty{%D z*DF=Za0AOQjYiC1CGKJg9%BdQu?1hyj5a=+unq(0)y89gCe@VoVh#;VSVRdN!$Dj{ zDc}m7SU?H*ijwF9E6~N_Mr=YUbO_5agxqS1#(^{F!WA^Bq*5t5HN4nCNpy%3Fpm=G z0%gb7$gOT^q`-TWc}0{&Us#PlxXme6u}I?WQLQA-Vilfi7SKR`^+?B$MeN2}R!QPv zlmMeN{Wz(OGbl&9uZ@pT=AWPq&u|*=(1JaDtj7Vg;v@z!f=Q|PfR6mT6OV delta 686 zcmYMxPbh<79KiAC-9O%qnQhcq63am?`)6duVM^q%1G%jv7fyDjw=@SPwKh&mAv?If zNy>#p%5~(jgPU@4a+2>aZ+Uy)=kq-8`#itj?|I&8@FQR}{ff;cm-#01Eqj# z?7~}=fUhWtn%IUqizC>LQfLM}IE~yYM-#+F4B;BOl%Z6Sj-MALltjlU0qZD%Oq3np zAh)`skpdr4<~6Vb-|>jk`$CDcOO=waj9#o;ULsS}J*LR7p6Dd;2PI*G)e;~>Gl^Mi zyp3|Cd)By$GQWnMc#g|>g>DS-u@58Y!z_;B0!qRAXvjaS(UF}zqnyMW%F%t|0Dj{j z_L5x!Phk(vp{!d)NmM{7q>SuEogqur1xj2K4{__8XGl>&akGX%oA7MUh%qJzosof5dZ)H diff --git a/starlette_admin/translations/fr/LC_MESSAGES/admin.po b/starlette_admin/translations/fr/LC_MESSAGES/admin.po index 2ccfc0735..ab3679b5f 100644 --- a/starlette_admin/translations/fr/LC_MESSAGES/admin.po +++ b/starlette_admin/translations/fr/LC_MESSAGES/admin.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: starlette-admin VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2023-10-28 16:32-0500\n" +"POT-Creation-Date: 2026-04-22 14:12+0200\n" "PO-Revision-Date: 2022-12-24 18:16+0100\n" "Last-Translator: FULL NAME \n" "Language: fr\n" @@ -17,18 +17,18 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.13.0\n" +"Generated-By: Babel 2.18.0\n" #: starlette_admin/actions.py:11 starlette_admin/actions.py:107 #: starlette_admin/templates/modals/actions.html:12 msgid "Yes, Proceed" msgstr "Oui, Continuez" -#: starlette_admin/auth.py:31 +#: starlette_admin/auth.py:37 msgid "Administrator" msgstr "Administrateur" -#: starlette_admin/base.py:44 starlette_admin/contrib/odmantic/admin.py:17 +#: starlette_admin/base.py:53 starlette_admin/contrib/odmantic/admin.py:17 #: starlette_admin/contrib/sqla/admin.py:28 #: starlette_admin/templates/create.html:7 #: starlette_admin/templates/detail.html:8 @@ -36,45 +36,49 @@ msgstr "Administrateur" msgid "Admin" msgstr "Administration" -#: starlette_admin/base.py:254 +#: starlette_admin/base.py:293 #, python-format msgid "Model with identity %(identity)s not found" msgstr "Le model ayant pour identité %(identity)s n'existe pas" #: starlette_admin/templates/forms/_delete.html:8 -#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:461 -#: starlette_admin/views.py:498 +#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:463 +#: starlette_admin/views.py:500 msgid "Delete" msgstr "Supprimer" -#: starlette_admin/views.py:462 +#: starlette_admin/views.py:464 msgid "Are you sure you want to delete selected items?" msgstr "Êtes-vous sûr de vouloir supprimer ces éléments?" -#: starlette_admin/views.py:463 +#: starlette_admin/views.py:465 msgid "Yes, delete all" msgstr "Oui, supprimer tout" -#: starlette_admin/views.py:468 starlette_admin/views.py:507 +#: starlette_admin/views.py:471 starlette_admin/views.py:509 #, python-format msgid "Item was successfully deleted" msgid_plural "%(count)d items were successfully deleted" msgstr[0] "L'élément a été supprimé avec succès" msgstr[1] "%(count)d éléments ont été supprimés avec succès" -#: starlette_admin/views.py:476 +#: starlette_admin/views.py:478 msgid "View" msgstr "Afficher" -#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:488 +#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:490 msgid "Edit" msgstr "Modifier" -#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:499 +#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:501 msgid "Are you sure you want to delete this item?" msgstr "Êtes-vous sûr de vouloir supprimer cet élément?" -#: starlette_admin/views.py:818 +#: starlette_admin/views.py:503 +msgid "Yes, delete" +msgstr "Oui, supprimer" + +#: starlette_admin/views.py:907 msgid "All" msgstr "Tout" @@ -118,11 +122,16 @@ msgstr "Enregistrer" msgid "Detail" msgstr "Détail" -#: starlette_admin/templates/detail.html:47 +#: starlette_admin/templates/detail.html:53 +#: starlette_admin/templates/list.html:67 +msgid "Search" +msgstr "Rechercher" + +#: starlette_admin/templates/detail.html:64 msgid "Attribute" msgstr "Attribut" -#: starlette_admin/templates/detail.html:48 +#: starlette_admin/templates/detail.html:65 msgid "Value" msgstr "Valeur" @@ -139,25 +148,23 @@ msgstr "Oups… Vous venez de trouver une page d'erreur" msgid "Take me home" msgstr "Retournez à la page d'acceuil" -#: starlette_admin/templates/layout.html:95 -#: starlette_admin/templates/layout.html:118 -#: starlette_admin/templates/layout.html:204 +#: starlette_admin/templates/layout.html:96 +#: starlette_admin/templates/layout.html:119 +#: starlette_admin/templates/layout.html:237 msgid "Logout" msgstr "Se déconnecter " -#: starlette_admin/templates/list.html:67 -msgid "Search" -msgstr "Rechercher" - #: starlette_admin/templates/login.html:16 msgid "Login to your account" msgstr "Connectez-vous à votre compte" #: starlette_admin/templates/login.html:32 +#: starlette_admin/templates/login.html:36 msgid "Username" msgstr "Nom d'utilisateur" #: starlette_admin/templates/login.html:43 +#: starlette_admin/templates/login.html:47 msgid "Password" msgstr "Mot de passe" @@ -189,3 +196,4 @@ msgstr "Ajouter un élément" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "Chargement" + diff --git a/starlette_admin/translations/pt/LC_MESSAGES/admin.mo b/starlette_admin/translations/pt/LC_MESSAGES/admin.mo index ac32f6c3ad180a5cd1d8d418d5500247fa4b6d0c..64fbba87bd802d71d90683835273c1f7988a8446 100644 GIT binary patch delta 739 zcmYMxJ1j#{7{Kv!tLjZ%&w3;`B9&+bH}wdyGKd&hEJCXVP#3bh9DVAXh^Y8*YF^lc^jzw6>qz@ah7hBwT>Q6__xE~hL%Ys#u#Bm(KEtCT8 zu?8Pe5`Lf@^ogYyU~?-5Q3@T!5}ZVunxU&k3j?@`KIJHN$Ux`AG0H({l!RH7M7Jov z_yK9^iB1a4p{#pDIp_;3@CT2$#d0=DzB8&V$23ZwYn1)B5_7(KWYCW}45Oc2a`2Gr zF!m9Tqa@fxn%Z|wB3so7N&zVx!%Hki56SAW45>{8(Zmoseg@MFA{awCAca!lIZEOy ztiu~@z#P)l7hNrWqpZ{U!{sIeDDz>Id_5?I47&5fD1}ZHaWQgrQ9ei^iGvN#sczUy z(YRs9jCpI>vMs_)Ti%^^@akRj_jYteI!x2(jtq30p)NDCkl(Cn{h4jwlSfw*(Uq`a Ot}-60nR5Hx^Ev0Lti}Yo#THql6X3xr>PGvh36D_|ouPj5 zB@%K?qXpig&b!AFe8XM--Y06F6{_^%ChGbF)O9DhaTdGSUoPl0;}`0Nb*xq!u@l3n z36e;Nm2(bRA~tFPX&lBKEW~%L!Vjb-DIjSCz39h2wDn9z>F5S&)C$*86YpUq9%2n% zAR!Ml75IWW?;G_G{vaVf4qo$Bq81WFecy;$XfJ93gC5DOIrjbWn3+l>XUvpk#^TfQ tRJJ?s#>jYFQ~qcu+!~5>nc\n" "Language: pt\n" @@ -17,18 +17,18 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.14.0\n" +"Generated-By: Babel 2.18.0\n" #: starlette_admin/actions.py:11 starlette_admin/actions.py:107 #: starlette_admin/templates/modals/actions.html:12 msgid "Yes, Proceed" msgstr "Sim, Prosseguir" -#: starlette_admin/auth.py:31 +#: starlette_admin/auth.py:37 msgid "Administrator" msgstr "Administrador" -#: starlette_admin/base.py:44 starlette_admin/contrib/odmantic/admin.py:17 +#: starlette_admin/base.py:53 starlette_admin/contrib/odmantic/admin.py:17 #: starlette_admin/contrib/sqla/admin.py:28 #: starlette_admin/templates/create.html:7 #: starlette_admin/templates/detail.html:8 @@ -36,45 +36,49 @@ msgstr "Administrador" msgid "Admin" msgstr "Admin" -#: starlette_admin/base.py:254 +#: starlette_admin/base.py:293 #, python-format msgid "Model with identity %(identity)s not found" msgstr "Modelo com identidade %(identity)s não encontrado" #: starlette_admin/templates/forms/_delete.html:8 -#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:461 -#: starlette_admin/views.py:498 +#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:463 +#: starlette_admin/views.py:500 msgid "Delete" msgstr "Excluir" -#: starlette_admin/views.py:462 +#: starlette_admin/views.py:464 msgid "Are you sure you want to delete selected items?" msgstr "Tem certeza de que deseja excluir os itens selecionados?" -#: starlette_admin/views.py:463 +#: starlette_admin/views.py:465 msgid "Yes, delete all" msgstr "Sim, exclua tudo" -#: starlette_admin/views.py:468 starlette_admin/views.py:507 +#: starlette_admin/views.py:471 starlette_admin/views.py:509 #, python-format msgid "Item was successfully deleted" msgid_plural "%(count)d items were successfully deleted" msgstr[0] "O item foi excluído com sucesso" msgstr[1] "%(count)d itens foram excluídos com sucesso" -#: starlette_admin/views.py:476 +#: starlette_admin/views.py:478 msgid "View" msgstr "Visualizar" -#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:488 +#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:490 msgid "Edit" msgstr "Editar" -#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:499 +#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:501 msgid "Are you sure you want to delete this item?" msgstr "Tem certeza de que deseja excluir este item?" -#: starlette_admin/views.py:818 +#: starlette_admin/views.py:503 +msgid "Yes, delete" +msgstr "Sim, exclua" + +#: starlette_admin/views.py:907 msgid "All" msgstr "Todos" @@ -118,11 +122,16 @@ msgstr "Salvar" msgid "Detail" msgstr "Detalhe" -#: starlette_admin/templates/detail.html:47 +#: starlette_admin/templates/detail.html:53 +#: starlette_admin/templates/list.html:67 +msgid "Search" +msgstr "Procurar" + +#: starlette_admin/templates/detail.html:64 msgid "Attribute" msgstr "Atributo" -#: starlette_admin/templates/detail.html:48 +#: starlette_admin/templates/detail.html:65 msgid "Value" msgstr "Valor" @@ -139,25 +148,23 @@ msgstr "Ops… Você acabou de encontrar uma página de erro" msgid "Take me home" msgstr "Me leve ao início" -#: starlette_admin/templates/layout.html:95 -#: starlette_admin/templates/layout.html:118 -#: starlette_admin/templates/layout.html:204 +#: starlette_admin/templates/layout.html:96 +#: starlette_admin/templates/layout.html:119 +#: starlette_admin/templates/layout.html:237 msgid "Logout" msgstr "Sair" -#: starlette_admin/templates/list.html:67 -msgid "Search" -msgstr "Procurar" - #: starlette_admin/templates/login.html:16 msgid "Login to your account" msgstr "Faça login na sua conta" #: starlette_admin/templates/login.html:32 +#: starlette_admin/templates/login.html:36 msgid "Username" msgstr "Usuário" #: starlette_admin/templates/login.html:43 +#: starlette_admin/templates/login.html:47 msgid "Password" msgstr "Senha" @@ -174,7 +181,8 @@ msgid "Actions" msgstr "Ações" #: starlette_admin/templates/forms/_delete.html:13 -msgid "Checked this to delete current content of this field" +#, fuzzy +msgid "Check this to delete the current content of this field" msgstr "Marquei isto para excluir o conteúdo atual deste campo" #: starlette_admin/templates/forms/enum.html:5 @@ -189,3 +197,4 @@ msgstr "Adicionar Item" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "Carregando" + diff --git a/starlette_admin/translations/ru/LC_MESSAGES/admin.mo b/starlette_admin/translations/ru/LC_MESSAGES/admin.mo index 1d3bcb239917bde8111a8068d9979b77357d2551..dfc482436645e1ceb70234bb581c0a15c89d17dc 100644 GIT binary patch delta 686 zcmYMxPbhNT|+gfW8Qlf}0B`F6oY1zAI;-Yrj!L-tHQX(#t zQgd+79K_ARO%Aela#3=lmhY35xA%QN&+mPI@AEvr-yCn7c=O>Jeu(xP56ZY{4S5Zd?e3rQSG`k}U+Y1U5`y7pBmK z7s#oexk=$-d0ax7XJ#8@#U7Lf!YBG@e`4&*-yP khAnHr?eV*PK8M%e=k;}ae7Sz(icS~IotWMX*|??c7wP#&?f?J) delta 657 zcmYMwze_?<6u|MTJulpGjmxL=i3hfTBewA<2STYG_cJog^D-XlSXa zD6vUu5?5;rqO!KYrv8AwhlC#Q-OoMm-FMEpx8%$^Gp}~-SaA*WxOk=v68&E>qf!>a zIGS(++i@G4@Bn?7MlW7r3qGS6KQV$|jd*~cH0Z22!|$dnh|D<08JHY;cT4eHg{Koyj_rQB0v1bI7eq3{tq# zh(A!))lqir;GCs_FiOL7DC<{I3hWd%jY;Fti?(G8=>fkUoNxyslcAvQA1|z%k_JP# R@L+z|Ebi*<<6*U^egW=yLFNDe diff --git a/starlette_admin/translations/ru/LC_MESSAGES/admin.po b/starlette_admin/translations/ru/LC_MESSAGES/admin.po index ef8e09f0f..76261e599 100644 --- a/starlette_admin/translations/ru/LC_MESSAGES/admin.po +++ b/starlette_admin/translations/ru/LC_MESSAGES/admin.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: starlette-admin VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2023-10-28 16:32-0500\n" +"POT-Creation-Date: 2026-04-22 14:12+0200\n" "PO-Revision-Date: 2022-12-25 13:16+0100\n" "Last-Translator: FULL NAME \n" "Language: ru\n" @@ -18,18 +18,18 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.13.0\n" +"Generated-By: Babel 2.18.0\n" #: starlette_admin/actions.py:11 starlette_admin/actions.py:107 #: starlette_admin/templates/modals/actions.html:12 msgid "Yes, Proceed" msgstr "Да, продолжить" -#: starlette_admin/auth.py:31 +#: starlette_admin/auth.py:37 msgid "Administrator" msgstr "Администратор" -#: starlette_admin/base.py:44 starlette_admin/contrib/odmantic/admin.py:17 +#: starlette_admin/base.py:53 starlette_admin/contrib/odmantic/admin.py:17 #: starlette_admin/contrib/sqla/admin.py:28 #: starlette_admin/templates/create.html:7 #: starlette_admin/templates/detail.html:8 @@ -37,26 +37,26 @@ msgstr "Администратор" msgid "Admin" msgstr "Админ" -#: starlette_admin/base.py:254 +#: starlette_admin/base.py:293 #, python-format msgid "Model with identity %(identity)s not found" msgstr "Модель с идентификатором %(identity)s не найдена" #: starlette_admin/templates/forms/_delete.html:8 -#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:461 -#: starlette_admin/views.py:498 +#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:463 +#: starlette_admin/views.py:500 msgid "Delete" msgstr "Удалить" -#: starlette_admin/views.py:462 +#: starlette_admin/views.py:464 msgid "Are you sure you want to delete selected items?" msgstr "Вы уверены, что хотите удалить выбранные элементы?" -#: starlette_admin/views.py:463 +#: starlette_admin/views.py:465 msgid "Yes, delete all" msgstr "Да, удалить все" -#: starlette_admin/views.py:468 starlette_admin/views.py:507 +#: starlette_admin/views.py:471 starlette_admin/views.py:509 #, python-format msgid "Item was successfully deleted" msgid_plural "%(count)d items were successfully deleted" @@ -64,19 +64,23 @@ msgstr[0] "Элемент успешно удален" msgstr[1] "%(count)d элемента успешно удалены" msgstr[2] "%(count)d элементов успешно удалены" -#: starlette_admin/views.py:476 +#: starlette_admin/views.py:478 msgid "View" msgstr "" -#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:488 +#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:490 msgid "Edit" msgstr "Редактировать" -#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:499 +#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:501 msgid "Are you sure you want to delete this item?" msgstr "Вы уверены, что хотите удалить этот элемент?" -#: starlette_admin/views.py:818 +#: starlette_admin/views.py:503 +msgid "Yes, delete" +msgstr "Да, удалить" + +#: starlette_admin/views.py:907 msgid "All" msgstr "Все" @@ -120,11 +124,16 @@ msgstr "Сохранить" msgid "Detail" msgstr "Информация" -#: starlette_admin/templates/detail.html:47 +#: starlette_admin/templates/detail.html:53 +#: starlette_admin/templates/list.html:67 +msgid "Search" +msgstr "Поиск" + +#: starlette_admin/templates/detail.html:64 msgid "Attribute" msgstr "Атрибут" -#: starlette_admin/templates/detail.html:48 +#: starlette_admin/templates/detail.html:65 msgid "Value" msgstr "Значение" @@ -141,25 +150,23 @@ msgstr "Ой… Вы только что нашли страницу с ошиб msgid "Take me home" msgstr "Вернуться на главную" -#: starlette_admin/templates/layout.html:95 -#: starlette_admin/templates/layout.html:118 -#: starlette_admin/templates/layout.html:204 +#: starlette_admin/templates/layout.html:96 +#: starlette_admin/templates/layout.html:119 +#: starlette_admin/templates/layout.html:237 msgid "Logout" msgstr "Выйти" -#: starlette_admin/templates/list.html:67 -msgid "Search" -msgstr "Поиск" - #: starlette_admin/templates/login.html:16 msgid "Login to your account" msgstr "Войти в свой аккаунт" #: starlette_admin/templates/login.html:32 +#: starlette_admin/templates/login.html:36 msgid "Username" msgstr "Имя пользователя" #: starlette_admin/templates/login.html:43 +#: starlette_admin/templates/login.html:47 msgid "Password" msgstr "Пароль" @@ -191,3 +198,4 @@ msgstr "Добавить элемент" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "Загрузка" + diff --git a/starlette_admin/translations/tr/LC_MESSAGES/admin.mo b/starlette_admin/translations/tr/LC_MESSAGES/admin.mo index 934490075237414b1df21819f5a44c3e0b82116f..75a706dcb2b3fa671aef8371001e363b4edf61dd 100644 GIT binary patch delta 722 zcmYMwPbh<79Ki8svyJ&PGqX0tTK<&3+gb~e6AnAL>_Vv>2*oZIae2wXg;LCg?Be90 zSaz{;SPm;CyErIvzzsPmCEs7(^7g*Z=lT8K_kDi9=P5Y89NL4!lvG@;JoP+LgGB$= zrctS4!YwSpB%1LMEAR-5@C>^#gKhYNR;=Qs1?w=3K0O}$Q&TZLF^wiZh@&jLfFrnu z(m)<-@D^pkSCm3;SdJckZo(FnMk82;QRG%J1}9FT2UpOdG^KW#I7sZH6goj!FoUvC z4rRyJ$gK(t(%>D+ch4w=KCu#iaGO)K@lz>rif+YYloL7Ey+kwhRi23)%?-*CTIfOw zhmn*T#C{ys^Xtf_)h0?~+j@QvtB6xLfTt*py<;tYqcq@R@h7)f~zR` z4Lwd`1MvYi;sr_r_h`pQlpTJc8^86ulWMYFGs;PIpfuQvHjG$-xf*Av#>w=uF=5KPhtx8oB z9$*a~p&heWkEd9LR~W!N`tTh!wD8h_PK=^%#xs8=Rm@Dxqm2(1Pzo>NG;W~`aEq;Y zk5cdhrBMm%P~*>i=tdcI6rDJQ+$zSS1?R9GSJ9!8N~KxoBr+(CE>H^QQ3@F-J1!u% zdf*`gKB0W~hK=}%$DH0b))J?fQp}>9#F^vzsmhYXaE2J diff --git a/starlette_admin/translations/tr/LC_MESSAGES/admin.po b/starlette_admin/translations/tr/LC_MESSAGES/admin.po index b1097f43c..7cd52ffde 100644 --- a/starlette_admin/translations/tr/LC_MESSAGES/admin.po +++ b/starlette_admin/translations/tr/LC_MESSAGES/admin.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: starlette-admin VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2023-10-28 16:32-0500\n" +"POT-Creation-Date: 2026-04-22 14:12+0200\n" "PO-Revision-Date: 2023-10-13 04:50+0300\n" "Last-Translator: FULL NAME \n" "Language: tr\n" @@ -17,18 +17,18 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.13.0\n" +"Generated-By: Babel 2.18.0\n" #: starlette_admin/actions.py:11 starlette_admin/actions.py:107 #: starlette_admin/templates/modals/actions.html:12 msgid "Yes, Proceed" msgstr "Evet, Devam Et" -#: starlette_admin/auth.py:31 +#: starlette_admin/auth.py:37 msgid "Administrator" msgstr "Yönetici" -#: starlette_admin/base.py:44 starlette_admin/contrib/odmantic/admin.py:17 +#: starlette_admin/base.py:53 starlette_admin/contrib/odmantic/admin.py:17 #: starlette_admin/contrib/sqla/admin.py:28 #: starlette_admin/templates/create.html:7 #: starlette_admin/templates/detail.html:8 @@ -36,45 +36,49 @@ msgstr "Yönetici" msgid "Admin" msgstr "Yönetici" -#: starlette_admin/base.py:254 +#: starlette_admin/base.py:293 #, python-format msgid "Model with identity %(identity)s not found" msgstr "%(identity) kimliğine sahip model bulunamadı" #: starlette_admin/templates/forms/_delete.html:8 -#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:461 -#: starlette_admin/views.py:498 +#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:463 +#: starlette_admin/views.py:500 msgid "Delete" msgstr "Sil" -#: starlette_admin/views.py:462 +#: starlette_admin/views.py:464 msgid "Are you sure you want to delete selected items?" msgstr "Seçili öğeleri silmek istediğinizden emin misiniz?" -#: starlette_admin/views.py:463 +#: starlette_admin/views.py:465 msgid "Yes, delete all" msgstr "Evet, tümünü sil" -#: starlette_admin/views.py:468 starlette_admin/views.py:507 +#: starlette_admin/views.py:471 starlette_admin/views.py:509 #, python-format msgid "Item was successfully deleted" msgid_plural "%(count)d items were successfully deleted" msgstr[0] "Öğe başarıyla silindi" msgstr[1] "%(count)d öğe başarıyla silindi" -#: starlette_admin/views.py:476 +#: starlette_admin/views.py:478 msgid "View" msgstr "Görüntüle" -#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:488 +#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:490 msgid "Edit" msgstr "Düzenle" -#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:499 +#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:501 msgid "Are you sure you want to delete this item?" msgstr "Bu öğeyi silmek istediğinizden emin misiniz?" -#: starlette_admin/views.py:818 +#: starlette_admin/views.py:503 +msgid "Yes, delete" +msgstr "Evet, sil" + +#: starlette_admin/views.py:907 msgid "All" msgstr "Hepsi" @@ -118,11 +122,16 @@ msgstr "Kaydet" msgid "Detail" msgstr "Detay" -#: starlette_admin/templates/detail.html:47 +#: starlette_admin/templates/detail.html:53 +#: starlette_admin/templates/list.html:67 +msgid "Search" +msgstr "Ara" + +#: starlette_admin/templates/detail.html:64 msgid "Attribute" msgstr "Özellik" -#: starlette_admin/templates/detail.html:48 +#: starlette_admin/templates/detail.html:65 msgid "Value" msgstr "Değer" @@ -139,25 +148,23 @@ msgstr "Oops... Bir hata sayfası buldunuz" msgid "Take me home" msgstr "Beni ana sayfaya götür" -#: starlette_admin/templates/layout.html:95 -#: starlette_admin/templates/layout.html:118 -#: starlette_admin/templates/layout.html:204 +#: starlette_admin/templates/layout.html:96 +#: starlette_admin/templates/layout.html:119 +#: starlette_admin/templates/layout.html:237 msgid "Logout" msgstr "Çıkış" -#: starlette_admin/templates/list.html:67 -msgid "Search" -msgstr "Ara" - #: starlette_admin/templates/login.html:16 msgid "Login to your account" msgstr "Hesabınıza giriş yapın" #: starlette_admin/templates/login.html:32 +#: starlette_admin/templates/login.html:36 msgid "Username" msgstr "Kullanıcı adı" #: starlette_admin/templates/login.html:43 +#: starlette_admin/templates/login.html:47 msgid "Password" msgstr "Şifre" @@ -189,3 +196,4 @@ msgstr "Öğe ekle" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "Yükleniyor" + diff --git a/starlette_admin/translations/zh_Hant/LC_MESSAGES/admin.mo b/starlette_admin/translations/zh_Hant/LC_MESSAGES/admin.mo index 3022da956fa2e11cda9790e022bb1a7af215f4cb..e84c9ebb971825c45067494b8ec0168396b59450 100644 GIT binary patch delta 746 zcmYMxKWGzS7{~E9X_}_gwkFilpqA4X18Qh;lu&f(*1=7(WV^xh5A@HFpeV>8MRaJV z7|<3n1=>2OZJ-Xei)Il^!9porbV{U)1()g~{r>0+J?`Gm`@HwQ&->ha+wp(#;71}- zFZ9 z*um#&!U$?%&c@?7KsCbbQ2A%%(b-%&Gn#f?Cp&s0>t4&a^}Fp(C^S}o e5xp5szI=P|re<2N-yd$wHJ>jZ%q}-ihK>Q}8d`Y( delta 716 zcmYMxO(?@*9KiACzc-V&ZB0?q-%CW6nRywvU0lRLP)LGzDB~Wm0^f0u+xtXGaFas%w^8B)3b~Q2j?b`;{nZ7PT71?WU)mq^(e5BC zsw$}MM_D+m<6$f(9>WHVplp;tIam^9eiqyC1ZDgS#+#`WsK@{}$CZgyC~-YjVGGLD zhjsh7jwf}zgpyDUZ-`vSdYM|WRmz~}GEuh~t*=*b^B`YomFxx#AhW8=7x%BWwqG)s^G diff --git a/starlette_admin/translations/zh_Hant/LC_MESSAGES/admin.po b/starlette_admin/translations/zh_Hant/LC_MESSAGES/admin.po index c40fda0e0..8151bc676 100644 --- a/starlette_admin/translations/zh_Hant/LC_MESSAGES/admin.po +++ b/starlette_admin/translations/zh_Hant/LC_MESSAGES/admin.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: starlette-admin VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2023-10-28 16:32-0500\n" +"POT-Creation-Date: 2026-04-22 14:12+0200\n" "PO-Revision-Date: 2025-03-26 19:34+0800\n" "Last-Translator: FULL NAME \n" "Language: zh_Hant\n" @@ -17,18 +17,18 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.17.0\n" +"Generated-By: Babel 2.18.0\n" #: starlette_admin/actions.py:11 starlette_admin/actions.py:107 #: starlette_admin/templates/modals/actions.html:12 msgid "Yes, Proceed" msgstr "是,繼續" -#: starlette_admin/auth.py:31 +#: starlette_admin/auth.py:37 msgid "Administrator" msgstr "管理員" -#: starlette_admin/base.py:44 starlette_admin/contrib/odmantic/admin.py:17 +#: starlette_admin/base.py:53 starlette_admin/contrib/odmantic/admin.py:17 #: starlette_admin/contrib/sqla/admin.py:28 #: starlette_admin/templates/create.html:7 #: starlette_admin/templates/detail.html:8 @@ -36,44 +36,48 @@ msgstr "管理員" msgid "Admin" msgstr "後台" -#: starlette_admin/base.py:254 +#: starlette_admin/base.py:293 #, python-format msgid "Model with identity %(identity)s not found" msgstr "找不到識別碼為 %(identity)s 的模型" #: starlette_admin/templates/forms/_delete.html:8 -#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:461 -#: starlette_admin/views.py:498 +#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:463 +#: starlette_admin/views.py:500 msgid "Delete" msgstr "刪除" -#: starlette_admin/views.py:462 +#: starlette_admin/views.py:464 msgid "Are you sure you want to delete selected items?" msgstr "確定要刪除所選項目嗎?" -#: starlette_admin/views.py:463 +#: starlette_admin/views.py:465 msgid "Yes, delete all" msgstr "是,全部刪除" -#: starlette_admin/views.py:468 starlette_admin/views.py:507 +#: starlette_admin/views.py:471 starlette_admin/views.py:509 #, python-format msgid "Item was successfully deleted" msgid_plural "%(count)d items were successfully deleted" msgstr[0] "已成功刪除 %(count)d 個項目" -#: starlette_admin/views.py:476 +#: starlette_admin/views.py:478 msgid "View" msgstr "檢視" -#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:488 +#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:490 msgid "Edit" msgstr "編輯" -#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:499 +#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:501 msgid "Are you sure you want to delete this item?" msgstr "確定要刪除此項目嗎?" -#: starlette_admin/views.py:818 +#: starlette_admin/views.py:503 +msgid "Yes, delete" +msgstr "是,刪除" + +#: starlette_admin/views.py:907 msgid "All" msgstr "全部" @@ -117,11 +121,16 @@ msgstr "儲存" msgid "Detail" msgstr "詳細資料" -#: starlette_admin/templates/detail.html:47 +#: starlette_admin/templates/detail.html:53 +#: starlette_admin/templates/list.html:67 +msgid "Search" +msgstr "搜尋" + +#: starlette_admin/templates/detail.html:64 msgid "Attribute" msgstr "屬性" -#: starlette_admin/templates/detail.html:48 +#: starlette_admin/templates/detail.html:65 msgid "Value" msgstr "值" @@ -138,25 +147,23 @@ msgstr "哎呀⋯您找到了一個錯誤頁面" msgid "Take me home" msgstr "返回首頁" -#: starlette_admin/templates/layout.html:95 -#: starlette_admin/templates/layout.html:118 -#: starlette_admin/templates/layout.html:204 +#: starlette_admin/templates/layout.html:96 +#: starlette_admin/templates/layout.html:119 +#: starlette_admin/templates/layout.html:237 msgid "Logout" msgstr "登出" -#: starlette_admin/templates/list.html:67 -msgid "Search" -msgstr "搜尋" - #: starlette_admin/templates/login.html:16 msgid "Login to your account" msgstr "登入您的帳戶" #: starlette_admin/templates/login.html:32 +#: starlette_admin/templates/login.html:36 msgid "Username" msgstr "使用者名稱" #: starlette_admin/templates/login.html:43 +#: starlette_admin/templates/login.html:47 msgid "Password" msgstr "密碼" @@ -173,7 +180,8 @@ msgid "Actions" msgstr "操作" #: starlette_admin/templates/forms/_delete.html:13 -msgid "Checked this to delete current content of this field" +#, fuzzy +msgid "Check this to delete the current content of this field" msgstr "勾選此項以刪除此欄位的當前內容" #: starlette_admin/templates/forms/enum.html:5 @@ -188,3 +196,4 @@ msgstr "新增項目" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "載入中" + diff --git a/starlette_admin/views.py b/starlette_admin/views.py index 9249bbfc2..9f6cd02d1 100644 --- a/starlette_admin/views.py +++ b/starlette_admin/views.py @@ -500,7 +500,7 @@ def row_action_2_edit(self, request: Request, pk: Any) -> str: text=_("Delete"), confirmation=_("Are you sure you want to delete this item?"), icon_class="fa-solid fa-trash", - submit_btn_text="Yes, delete", + submit_btn_text=_("Yes, delete"), submit_btn_class="btn-danger", action_btn_class="btn-danger", ) From 6173726dbcffad1a534a06ee5fa030f9da696ef9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 22 Apr 2026 12:14:44 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- i18n/admin.pot | 1 - starlette_admin/translations/de/LC_MESSAGES/admin.po | 1 - starlette_admin/translations/en/LC_MESSAGES/admin.po | 1 - starlette_admin/translations/fr/LC_MESSAGES/admin.po | 1 - starlette_admin/translations/pt/LC_MESSAGES/admin.po | 1 - starlette_admin/translations/ru/LC_MESSAGES/admin.po | 1 - starlette_admin/translations/tr/LC_MESSAGES/admin.po | 1 - starlette_admin/translations/zh_Hant/LC_MESSAGES/admin.po | 1 - 8 files changed, 8 deletions(-) diff --git a/i18n/admin.pot b/i18n/admin.pot index 339934f5b..da6eab140 100644 --- a/i18n/admin.pot +++ b/i18n/admin.pot @@ -195,4 +195,3 @@ msgstr "" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "" - diff --git a/starlette_admin/translations/de/LC_MESSAGES/admin.po b/starlette_admin/translations/de/LC_MESSAGES/admin.po index 92aea33f3..732a775d9 100644 --- a/starlette_admin/translations/de/LC_MESSAGES/admin.po +++ b/starlette_admin/translations/de/LC_MESSAGES/admin.po @@ -196,4 +196,3 @@ msgstr "Element hinzufügen" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "Laden" - diff --git a/starlette_admin/translations/en/LC_MESSAGES/admin.po b/starlette_admin/translations/en/LC_MESSAGES/admin.po index 77469369e..993bca0df 100644 --- a/starlette_admin/translations/en/LC_MESSAGES/admin.po +++ b/starlette_admin/translations/en/LC_MESSAGES/admin.po @@ -196,4 +196,3 @@ msgstr "" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "" - diff --git a/starlette_admin/translations/fr/LC_MESSAGES/admin.po b/starlette_admin/translations/fr/LC_MESSAGES/admin.po index ab3679b5f..bb2051805 100644 --- a/starlette_admin/translations/fr/LC_MESSAGES/admin.po +++ b/starlette_admin/translations/fr/LC_MESSAGES/admin.po @@ -196,4 +196,3 @@ msgstr "Ajouter un élément" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "Chargement" - diff --git a/starlette_admin/translations/pt/LC_MESSAGES/admin.po b/starlette_admin/translations/pt/LC_MESSAGES/admin.po index e3d13f105..5ea0ad47c 100644 --- a/starlette_admin/translations/pt/LC_MESSAGES/admin.po +++ b/starlette_admin/translations/pt/LC_MESSAGES/admin.po @@ -197,4 +197,3 @@ msgstr "Adicionar Item" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "Carregando" - diff --git a/starlette_admin/translations/ru/LC_MESSAGES/admin.po b/starlette_admin/translations/ru/LC_MESSAGES/admin.po index 76261e599..bc675f79e 100644 --- a/starlette_admin/translations/ru/LC_MESSAGES/admin.po +++ b/starlette_admin/translations/ru/LC_MESSAGES/admin.po @@ -198,4 +198,3 @@ msgstr "Добавить элемент" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "Загрузка" - diff --git a/starlette_admin/translations/tr/LC_MESSAGES/admin.po b/starlette_admin/translations/tr/LC_MESSAGES/admin.po index 7cd52ffde..9be4cce71 100644 --- a/starlette_admin/translations/tr/LC_MESSAGES/admin.po +++ b/starlette_admin/translations/tr/LC_MESSAGES/admin.po @@ -196,4 +196,3 @@ msgstr "Öğe ekle" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "Yükleniyor" - diff --git a/starlette_admin/translations/zh_Hant/LC_MESSAGES/admin.po b/starlette_admin/translations/zh_Hant/LC_MESSAGES/admin.po index 8151bc676..80ccd5664 100644 --- a/starlette_admin/translations/zh_Hant/LC_MESSAGES/admin.po +++ b/starlette_admin/translations/zh_Hant/LC_MESSAGES/admin.po @@ -196,4 +196,3 @@ msgstr "新增項目" #: starlette_admin/templates/modals/loading.html:7 msgid "Loading" msgstr "載入中" -