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

Support translation for login form placeholders #425

Merged
merged 15 commits into from
Dec 23, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions i18n/admin.pot
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ 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: 2023-12-20 13:34+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\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.13.1\n"

#: starlette_admin/actions.py:11 starlette_admin/actions.py:107
#: starlette_admin/actions.py:11 starlette_admin/actions.py:106
#: starlette_admin/templates/modals/actions.html:12
msgid "Yes, Proceed"
msgstr ""
Expand All @@ -35,7 +35,7 @@ msgstr ""
msgid "Admin"
msgstr ""

#: starlette_admin/base.py:254
#: starlette_admin/base.py:257
#, python-format
msgid "Model with identity %(identity)s not found"
msgstr ""
Expand Down Expand Up @@ -73,7 +73,7 @@ msgstr ""
msgid "Are you sure you want to delete this item?"
msgstr ""

#: starlette_admin/views.py:818
#: starlette_admin/views.py:880
msgid "All"
msgstr ""

Expand Down Expand Up @@ -138,9 +138,9 @@ 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:98
#: starlette_admin/templates/layout.html:121
#: starlette_admin/templates/layout.html:207
msgid "Logout"
msgstr ""

Expand All @@ -156,10 +156,18 @@ msgstr ""
msgid "Username"
msgstr ""

#: starlette_admin/templates/login.html:36
msgid "Enter username"
msgstr ""

#: starlette_admin/templates/login.html:43
msgid "Password"
msgstr ""

#: starlette_admin/templates/login.html:47
msgid "Enter password"
msgstr ""

#: starlette_admin/templates/login.html:56
msgid "Remember me"
msgstr ""
Expand Down
4 changes: 2 additions & 2 deletions starlette_admin/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h2 class="card-title text-center mb-4">{{ _("Login to your account") }}</h2>
<input type="text"
name="username"
class="form-control {% if form_errors and form_errors.has('username') %}is-invalid{% endif %}"
placeholder="Enter username"
placeholder="{{ _('Enter username') }}"
hasansezertasan marked this conversation as resolved.
Show resolved Hide resolved
autocomplete="off"/>
{% if form_errors and form_errors.has('username') %}
<div class="invalid-feedback">{{ form_errors.msg('username') }}</div>
Expand All @@ -44,7 +44,7 @@ <h2 class="card-title text-center mb-4">{{ _("Login to your account") }}</h2>
<input type="password"
name="password"
class="form-control {% if form_errors and form_errors.has('password') %}is-invalid{% endif %}"
placeholder="Password"
placeholder="{{ _('Enter password') }}"
hasansezertasan marked this conversation as resolved.
Show resolved Hide resolved
autocomplete="off"/>
{% if form_errors and form_errors.has('password') %}
<div class="invalid-feedback">{{ form_errors.msg('password') }}</div>
Expand Down
24 changes: 16 additions & 8 deletions starlette_admin/translations/en/LC_MESSAGES/admin.po
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2023-12-20 13:34+0300\n"
"PO-Revision-Date: 2022-12-25 13:16+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n"
Expand All @@ -17,9 +17,9 @@ 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.13.1\n"

#: starlette_admin/actions.py:11 starlette_admin/actions.py:107
#: starlette_admin/actions.py:11 starlette_admin/actions.py:106
#: starlette_admin/templates/modals/actions.html:12
msgid "Yes, Proceed"
msgstr ""
Expand All @@ -36,7 +36,7 @@ msgstr ""
msgid "Admin"
msgstr ""

#: starlette_admin/base.py:254
#: starlette_admin/base.py:257
#, python-format
msgid "Model with identity %(identity)s not found"
msgstr ""
Expand Down Expand Up @@ -74,7 +74,7 @@ msgstr ""
msgid "Are you sure you want to delete this item?"
msgstr ""

#: starlette_admin/views.py:818
#: starlette_admin/views.py:880
msgid "All"
msgstr ""

Expand Down Expand Up @@ -139,9 +139,9 @@ 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:98
#: starlette_admin/templates/layout.html:121
#: starlette_admin/templates/layout.html:207
msgid "Logout"
msgstr ""

Expand All @@ -157,10 +157,18 @@ msgstr ""
msgid "Username"
msgstr ""

#: starlette_admin/templates/login.html:36
msgid "Enter username"
msgstr ""

#: starlette_admin/templates/login.html:43
msgid "Password"
msgstr ""

#: starlette_admin/templates/login.html:47
msgid "Enter password"
msgstr ""

#: starlette_admin/templates/login.html:56
msgid "Remember me"
msgstr ""
Expand Down
25 changes: 17 additions & 8 deletions starlette_admin/translations/fr/LC_MESSAGES/admin.po
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2023-12-20 13:34+0300\n"
"PO-Revision-Date: 2022-12-24 18:16+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: fr\n"
Expand All @@ -17,9 +17,9 @@ 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.13.1\n"

#: starlette_admin/actions.py:11 starlette_admin/actions.py:107
#: starlette_admin/actions.py:11 starlette_admin/actions.py:106
#: starlette_admin/templates/modals/actions.html:12
msgid "Yes, Proceed"
msgstr "Oui, Continuez"
Expand All @@ -36,7 +36,7 @@ msgstr "Administrateur"
msgid "Admin"
msgstr "Administration"

#: starlette_admin/base.py:254
#: starlette_admin/base.py:257
#, python-format
msgid "Model with identity %(identity)s not found"
msgstr "Le model ayant pour identité %(identity)s n'existe pas"
Expand Down Expand Up @@ -74,7 +74,7 @@ msgstr "Modifier"
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:880
msgid "All"
msgstr "Tout"

Expand Down Expand Up @@ -139,9 +139,9 @@ 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:98
#: starlette_admin/templates/layout.html:121
#: starlette_admin/templates/layout.html:207
msgid "Logout"
msgstr "Se déconnecter "

Expand All @@ -157,10 +157,19 @@ msgstr "Connectez-vous à votre compte"
msgid "Username"
msgstr "Nom d'utilisateur"

#: starlette_admin/templates/login.html:36
#, fuzzy
msgid "Enter username"
msgstr "Nom d'utilisateur"
jowilf marked this conversation as resolved.
Show resolved Hide resolved

#: starlette_admin/templates/login.html:43
msgid "Password"
msgstr "Mot de passe"

#: starlette_admin/templates/login.html:47
msgid "Enter password"
msgstr "Entrez le mot de passe"

#: starlette_admin/templates/login.html:56
msgid "Remember me"
msgstr "Se rappeler de moi"
Expand Down
24 changes: 16 additions & 8 deletions starlette_admin/translations/ru/LC_MESSAGES/admin.po
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2023-12-20 13:34+0300\n"
"PO-Revision-Date: 2022-12-25 13:16+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: ru\n"
Expand All @@ -18,9 +18,9 @@ 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.13.1\n"

#: starlette_admin/actions.py:11 starlette_admin/actions.py:107
#: starlette_admin/actions.py:11 starlette_admin/actions.py:106
#: starlette_admin/templates/modals/actions.html:12
msgid "Yes, Proceed"
msgstr "Да, продолжить"
Expand All @@ -37,7 +37,7 @@ msgstr "Администратор"
msgid "Admin"
msgstr "Админ"

#: starlette_admin/base.py:254
#: starlette_admin/base.py:257
#, python-format
msgid "Model with identity %(identity)s not found"
msgstr "Модель с идентификатором %(identity)s не найдена"
Expand Down Expand Up @@ -76,7 +76,7 @@ msgstr "Редактировать"
msgid "Are you sure you want to delete this item?"
msgstr "Вы уверены, что хотите удалить этот элемент?"

#: starlette_admin/views.py:818
#: starlette_admin/views.py:880
msgid "All"
msgstr "Все"

Expand Down Expand Up @@ -141,9 +141,9 @@ 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:98
#: starlette_admin/templates/layout.html:121
#: starlette_admin/templates/layout.html:207
msgid "Logout"
msgstr "Выйти"

Expand All @@ -159,10 +159,18 @@ msgstr "Войти в свой аккаунт"
msgid "Username"
msgstr "Имя пользователя"

#: starlette_admin/templates/login.html:36
msgid "Enter username"
msgstr "Введите имя пользователя" # Google Translate

#: starlette_admin/templates/login.html:43
msgid "Password"
msgstr "Пароль"

#: starlette_admin/templates/login.html:47
msgid "Enter password"
msgstr "Введите пароль" # Google Translate

#: starlette_admin/templates/login.html:56
msgid "Remember me"
msgstr "Запомнить меня"
Expand Down
24 changes: 16 additions & 8 deletions starlette_admin/translations/tr/LC_MESSAGES/admin.po
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2023-12-20 13:34+0300\n"
"PO-Revision-Date: 2023-10-13 04:50+0300\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: tr\n"
Expand All @@ -17,9 +17,9 @@ 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.13.1\n"

#: starlette_admin/actions.py:11 starlette_admin/actions.py:107
#: starlette_admin/actions.py:11 starlette_admin/actions.py:106
#: starlette_admin/templates/modals/actions.html:12
msgid "Yes, Proceed"
msgstr "Evet, Devam Et"
Expand All @@ -36,7 +36,7 @@ msgstr "Yönetici"
msgid "Admin"
msgstr "Yönetici"

#: starlette_admin/base.py:254
#: starlette_admin/base.py:257
#, python-format
msgid "Model with identity %(identity)s not found"
msgstr "%(identity) kimliğine sahip model bulunamadı"
Expand Down Expand Up @@ -74,7 +74,7 @@ msgstr "Düzenle"
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:880
msgid "All"
msgstr "Hepsi"

Expand Down Expand Up @@ -139,9 +139,9 @@ 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:98
#: starlette_admin/templates/layout.html:121
#: starlette_admin/templates/layout.html:207
msgid "Logout"
msgstr "Çıkış"

Expand All @@ -157,10 +157,18 @@ msgstr "Hesabınıza giriş yapın"
msgid "Username"
msgstr "Kullanıcı adı"

#: starlette_admin/templates/login.html:36
msgid "Enter username"
msgstr "Kullanıcı adı"
hasansezertasan marked this conversation as resolved.
Show resolved Hide resolved

#: starlette_admin/templates/login.html:43
msgid "Password"
msgstr "Şifre"

#: starlette_admin/templates/login.html:47
msgid "Enter password"
msgstr "Şifre"
hasansezertasan marked this conversation as resolved.
Show resolved Hide resolved

#: starlette_admin/templates/login.html:56
msgid "Remember me"
msgstr "Beni hatırla"
Expand Down