Skip to content

Commit e0d906e

Browse files
abnerjacobsenBreno-de-AngeloGuilhermeAumojowilf
authored
Add Portuguese translation (#480)
* Add Portuguese translation * 🔥 remove(i18n.py): remove pt_BR from SUPPORTED_LOCALES due to error in get_locale_display_name * 🔥 remove(pt_BR): Remove Portuguese (Brazil) language support This commit removes the Portuguese (Brazil) language support from the application. This includes the removal of translation files, momentjs, flatpickr, and admin.po files. * 🌐 i18n(starlette_admin): Improve Portuguese translations and remove Brazilian Portuguese support - Corrected spelling errors in 'pt.json' file - Updated translation for 'New %(name)s' in 'admin.po' file - Adjusted test case in 'test_i18n.py' to reflect changes in Portuguese translation - Removed 'pt_BR' from SUPPORTED_LOCALES in 'i18n.py' as it's no longer needed * feat: adicionado tradução de botão de busca no filtro * Delete starlette-admin.code-workspace * minor fixes --------- Co-authored-by: Breno-de-Angelo <brenodeangelo@gmail.com> Co-authored-by: GuilhermeAumo <160528382+GuilhermeAumo@users.noreply.github.com> Co-authored-by: Jocelin Hounon <hounonj@gmail.com>
1 parent 889ad5f commit e0d906e

File tree

7 files changed

+388
-0
lines changed

7 files changed

+388
-0
lines changed

starlette_admin/i18n.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"de", # German
1414
"en", # English
1515
"fr", # French
16+
"pt", # Portuguese
1617
"ru", # Russian
1718
"tr", # Turkish
1819
]
+176
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
{
2+
"aria": {
3+
"sortAscending": ": Ordenar colunas de forma ascendente",
4+
"sortDescending": ": Ordenar colunas de forma descendente"
5+
},
6+
"buttons": {
7+
"collection": "Coleção",
8+
"colvis": "Visibilidade de colunas",
9+
"colvisRestore": "Restaurar visibilidade",
10+
"copy": "Copiar",
11+
"copyKeys": "Pressionar CTRL ou u2318 + C para copiar a informação para a área de transferência. Para cancelar, clique nesta mensagem ou pressione ESC.",
12+
"copySuccess": {
13+
"1": "Uma linha copiada para a área de transferência",
14+
"_": "%ds linhas copiadas para a área de transferência"
15+
},
16+
"copyTitle": "Copiar para a área de transferência",
17+
"createState": "Criar",
18+
"csv": "CSV",
19+
"excel": "Excel",
20+
"pageLength": {
21+
"-1": "Mostrar todas as linhas",
22+
"_": "Mostrar %d linhas"
23+
},
24+
"pdf": "PDF",
25+
"print": "Imprimir",
26+
"removeAllStates": "Remover Todos",
27+
"removeState": "Remover",
28+
"renameState": "Renomear",
29+
"savedStates": "Gravados",
30+
"stateRestore": "Estado %d",
31+
"updateState": "Atualizar"
32+
},
33+
"datetime": {
34+
"amPm": [
35+
"am",
36+
"pm"
37+
],
38+
"hours": "horas",
39+
"minutes": "minutos",
40+
"months": [
41+
"Janeiro",
42+
"Fevereiro",
43+
"Março",
44+
"Abril",
45+
"Maio",
46+
"Junho",
47+
"Julho",
48+
"Agosto",
49+
"Setembro",
50+
"Outubro",
51+
"Novembro",
52+
"Dezembro"
53+
],
54+
"next": "próximo",
55+
"previous": "anterior",
56+
"seconds": "segundos",
57+
"unknown": "desconhecido",
58+
"weekdays": [
59+
"Seg",
60+
"Ter",
61+
"Qua",
62+
"Qui",
63+
"Sex",
64+
"Sáb",
65+
"Dom"
66+
]
67+
},
68+
"decimal": ",",
69+
"emptyTable": "Não foi encontrado nenhum registo",
70+
"info": "Mostrando os registos _START_ a _END_ num total de _TOTAL_",
71+
"infoEmpty": "Mostrando 0 os registos num total de 0",
72+
"infoFiltered": "(filtrado num total de _MAX_ registos)",
73+
"infoThousands": ".",
74+
"lengthMenu": "Mostrar _MENU_ registos",
75+
"loadingRecords": "Carregando...",
76+
"paginate": {
77+
"first": "Primeiro",
78+
"last": "Último",
79+
"next": "Seguinte",
80+
"previous": "Anterior"
81+
},
82+
"processing": "Processando...",
83+
"search": "Procurar:",
84+
"searchBuilder": {
85+
"add": "Adicionar condição",
86+
"search": "Buscar",
87+
"button": {
88+
"0": "<i class=\"fa-solid fa-filter\"></i> Construtor de pesquisa",
89+
"_": "<i class=\"fa-solid fa-filter\"></i> Construtor de pesquisa (%d)"
90+
},
91+
"clearAll": "Limpar tudo",
92+
"condition": "Condição",
93+
"conditions": {
94+
"array": {
95+
"contains": "Contém",
96+
"empty": "Vazio",
97+
"equals": "Igual",
98+
"not": "Diferente",
99+
"notEmpty": "Não está vazio",
100+
"without": "Sem"
101+
},
102+
"date": {
103+
"after": "Depois",
104+
"before": "Antes",
105+
"between": "Entre",
106+
"empty": "Vazio",
107+
"equals": "Igual",
108+
"not": "Diferente",
109+
"notBetween": "Não está entre",
110+
"notEmpty": "Não está vazio"
111+
},
112+
"number": {
113+
"between": "Entre",
114+
"empty": "Vazio",
115+
"equals": "Igual",
116+
"gt": "Maior que",
117+
"gte": "Maior ou igual a",
118+
"lt": "Menor que",
119+
"lte": "Menor ou igual a",
120+
"not": "Diferente",
121+
"notBetween": "Não está entre",
122+
"notEmpty": "Não está vazio"
123+
},
124+
"string": {
125+
"contains": "Contém",
126+
"empty": "Vazio",
127+
"endsWith": "Termina em",
128+
"equals": "Igual",
129+
"not": "Diferente",
130+
"notContains": "Não contém",
131+
"notEmpty": "Não está vazio",
132+
"notEndsWith": "Não termina com",
133+
"notStartsWith": "Não começa com",
134+
"startsWith": "Começa em"
135+
}
136+
},
137+
"data": "Dados",
138+
"deleteTitle": "Excluir condição de filtragem",
139+
"leftTitle": "Excluir critério",
140+
"logicAnd": "E",
141+
"logicOr": "Ou",
142+
"rightTitle": "Incluir critério",
143+
"title": {
144+
"0": "Construtor de pesquisa",
145+
"_": "Construtor de pesquisa (%d)"
146+
},
147+
"value": "Valor"
148+
},
149+
"select": {
150+
"cells": {
151+
"1": "1 célula selecionada",
152+
"_": "%d células selecionadas"
153+
},
154+
"columns": {
155+
"1": "1 coluna selecionada",
156+
"_": "%d colunas selecionadas"
157+
},
158+
"rows": {
159+
"1": "%d linha selecionada",
160+
"_": "%d linhas selecionadas"
161+
}
162+
},
163+
"starlette-admin": {
164+
"buttons": {
165+
"export": "Exportar"
166+
},
167+
"conditions": {
168+
"empty": "Vazia",
169+
"false": "Falso",
170+
"notEmpty": "Não está vazio",
171+
"true": "Verdadeiro"
172+
}
173+
},
174+
"thousands": ".",
175+
"zeroRecords": "Não foram encontrados resultados"
176+
}

starlette_admin/statics/i18n/flatpickr/pt.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

starlette_admin/statics/i18n/momentjs/pt.js

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
# Portuguese translations for starlette-admin.
2+
# Copyright (C) 2023 ORGANIZATION
3+
# This file is distributed under the same license as the starlette-admin
4+
# project.
5+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
6+
#
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: starlette-admin VERSION\n"
10+
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
11+
"POT-Creation-Date: 2023-10-28 16:32-0500\n"
12+
"PO-Revision-Date: 2024-01-18 22:30-0300\n"
13+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14+
"Language: pt\n"
15+
"Language-Team: pt <LL@li.org>\n"
16+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
17+
"MIME-Version: 1.0\n"
18+
"Content-Type: text/plain; charset=utf-8\n"
19+
"Content-Transfer-Encoding: 8bit\n"
20+
"Generated-By: Babel 2.14.0\n"
21+
22+
#: starlette_admin/actions.py:11 starlette_admin/actions.py:107
23+
#: starlette_admin/templates/modals/actions.html:12
24+
msgid "Yes, Proceed"
25+
msgstr "Sim, Prosseguir"
26+
27+
#: starlette_admin/auth.py:31
28+
msgid "Administrator"
29+
msgstr "Administrador"
30+
31+
#: starlette_admin/base.py:44 starlette_admin/contrib/odmantic/admin.py:17
32+
#: starlette_admin/contrib/sqla/admin.py:28
33+
#: starlette_admin/templates/create.html:7
34+
#: starlette_admin/templates/detail.html:8
35+
#: starlette_admin/templates/edit.html:7 starlette_admin/templates/list.html:7
36+
msgid "Admin"
37+
msgstr "Admin"
38+
39+
#: starlette_admin/base.py:254
40+
#, python-format
41+
msgid "Model with identity %(identity)s not found"
42+
msgstr "Modelo com identidade %(identity)s não encontrado"
43+
44+
#: starlette_admin/templates/forms/_delete.html:8
45+
#: starlette_admin/templates/modals/delete.html:25 starlette_admin/views.py:461
46+
#: starlette_admin/views.py:498
47+
msgid "Delete"
48+
msgstr "Excluir"
49+
50+
#: starlette_admin/views.py:462
51+
msgid "Are you sure you want to delete selected items?"
52+
msgstr "Tem certeza de que deseja excluir os itens selecionados?"
53+
54+
#: starlette_admin/views.py:463
55+
msgid "Yes, delete all"
56+
msgstr "Sim, exclua tudo"
57+
58+
#: starlette_admin/views.py:468 starlette_admin/views.py:507
59+
#, python-format
60+
msgid "Item was successfully deleted"
61+
msgid_plural "%(count)d items were successfully deleted"
62+
msgstr[0] "O item foi excluído com sucesso"
63+
msgstr[1] "%(count)d itens foram excluídos com sucesso"
64+
65+
#: starlette_admin/views.py:476
66+
msgid "View"
67+
msgstr "Visualizar"
68+
69+
#: starlette_admin/templates/edit.html:12 starlette_admin/views.py:488
70+
msgid "Edit"
71+
msgstr "Editar"
72+
73+
#: starlette_admin/templates/modals/delete.html:15 starlette_admin/views.py:499
74+
msgid "Are you sure you want to delete this item?"
75+
msgstr "Tem certeza de que deseja excluir este item?"
76+
77+
#: starlette_admin/views.py:818
78+
msgid "All"
79+
msgstr "Todos"
80+
81+
#: starlette_admin/templates/actions.html:6
82+
msgid "With selected"
83+
msgstr "Com selecionado(s)"
84+
85+
#: starlette_admin/templates/create.html:12
86+
msgid "Create"
87+
msgstr "Criar"
88+
89+
#: starlette_admin/templates/create.html:25
90+
#: starlette_admin/templates/list.html:34
91+
#, python-format
92+
msgid "New %(name)s"
93+
msgstr "Novo(a) %(name)s"
94+
95+
#: starlette_admin/templates/create.html:44
96+
#: starlette_admin/templates/edit.html:46
97+
#: starlette_admin/templates/modals/actions.html:10
98+
#: starlette_admin/templates/modals/delete.html:21
99+
msgid "Cancel"
100+
msgstr "Cancelar"
101+
102+
#: starlette_admin/templates/create.html:46
103+
#: starlette_admin/templates/edit.html:48
104+
msgid "Save and add another"
105+
msgstr "Salvar e adicione outro"
106+
107+
#: starlette_admin/templates/create.html:48
108+
#: starlette_admin/templates/edit.html:50
109+
msgid "Save and continue editing"
110+
msgstr "Salvar e continue editando"
111+
112+
#: starlette_admin/templates/create.html:49
113+
#: starlette_admin/templates/edit.html:51
114+
msgid "Save"
115+
msgstr "Salvar"
116+
117+
#: starlette_admin/templates/detail.html:13
118+
msgid "Detail"
119+
msgstr "Detalhe"
120+
121+
#: starlette_admin/templates/detail.html:47
122+
msgid "Attribute"
123+
msgstr "Atributo"
124+
125+
#: starlette_admin/templates/detail.html:48
126+
msgid "Value"
127+
msgstr "Valor"
128+
129+
#: starlette_admin/templates/edit.html:27
130+
#, python-format
131+
msgid "Edit %(name)s"
132+
msgstr "Editar %(name)s"
133+
134+
#: starlette_admin/templates/error.html:7
135+
msgid "Oops… You just found an error page"
136+
msgstr "Ops… Você acabou de encontrar uma página de erro"
137+
138+
#: starlette_admin/templates/error.html:29
139+
msgid "Take me home"
140+
msgstr "Me leve ao início"
141+
142+
#: starlette_admin/templates/layout.html:95
143+
#: starlette_admin/templates/layout.html:118
144+
#: starlette_admin/templates/layout.html:204
145+
msgid "Logout"
146+
msgstr "Sair"
147+
148+
#: starlette_admin/templates/list.html:67
149+
msgid "Search"
150+
msgstr "Procurar"
151+
152+
#: starlette_admin/templates/login.html:16
153+
msgid "Login to your account"
154+
msgstr "Faça login na sua conta"
155+
156+
#: starlette_admin/templates/login.html:32
157+
msgid "Username"
158+
msgstr "Usuário"
159+
160+
#: starlette_admin/templates/login.html:43
161+
msgid "Password"
162+
msgstr "Senha"
163+
164+
#: starlette_admin/templates/login.html:56
165+
msgid "Remember me"
166+
msgstr "Lembre de mim"
167+
168+
#: starlette_admin/templates/login.html:60
169+
msgid "Sign in"
170+
msgstr "Entrar"
171+
172+
#: starlette_admin/templates/row-actions.html:38
173+
msgid "Actions"
174+
msgstr "Ações"
175+
176+
#: starlette_admin/templates/forms/_delete.html:13
177+
msgid "Checked this to delete current content of this field"
178+
msgstr "Marquei isto para excluir o conteúdo atual deste campo"
179+
180+
#: starlette_admin/templates/forms/enum.html:5
181+
#, python-format
182+
msgid "Select a %(label)s"
183+
msgstr "Selecione um %(label)s"
184+
185+
#: starlette_admin/templates/forms/list.html:44
186+
msgid "Add item"
187+
msgstr "Adicionar Item"
188+
189+
#: starlette_admin/templates/modals/loading.html:7
190+
msgid "Loading"
191+
msgstr "Carregando"

0 commit comments

Comments
 (0)