Skip to content

Commit 98f49d1

Browse files
authored
Merge pull request #239 from pontovinte/i18n/pt_br
I18N pt-BR.
2 parents acf89a3 + e6a33eb commit 98f49d1

22 files changed

+2154
-2163
lines changed

docs/docs.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7173,6 +7173,9 @@ const docTemplate = `{
71737173
},
71747174
"theme": {
71757175
"$ref": "#/definitions/schema.SiteThemeResp"
7176+
},
7177+
"version": {
7178+
"type": "string"
71767179
}
71777180
}
71787181
},

docs/swagger.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7161,6 +7161,9 @@
71617161
},
71627162
"theme": {
71637163
"$ref": "#/definitions/schema.SiteThemeResp"
7164+
},
7165+
"version": {
7166+
"type": "string"
71647167
}
71657168
}
71667169
},

docs/swagger.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,6 +1335,8 @@ definitions:
13351335
$ref: '#/definitions/schema.SiteSeoReq'
13361336
theme:
13371337
$ref: '#/definitions/schema.SiteThemeResp'
1338+
version:
1339+
type: string
13381340
type: object
13391341
schema.SiteInterfaceReq:
13401342
properties:

go.mod

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,3 @@ require (
139139
modernc.org/token v1.0.0 // indirect
140140
sigs.k8s.io/yaml v1.3.0 // indirect
141141
)
142-
143-
// github action runner Sometimes it will time out.
144-
replace gitee.com/travelliu/dm v1.8.11192 => github.com/aichy126/dm v1.8.11192
145-
146-
replace modernc.org/z v1.2.19 => github.com/aichy126/modernc.org_z v1.2.19

go.sum

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3f
3838
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
3939
gitea.com/xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a h1:lSA0F4e9A2NcQSqGqTOXqu2aRi/XEQxDCBwM8yJtE6s=
4040
gitea.com/xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a/go.mod h1:EXuID2Zs0pAQhH8yz+DNjUbjppKQzKFAn28TMYPB6IU=
41+
gitee.com/travelliu/dm v1.8.11192/go.mod h1:DHTzyhCrM843x9VdKVbZ+GKXGRbKM2sJ4LxihRxShkE=
4142
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8=
4243
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8=
4344
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
@@ -63,9 +64,6 @@ github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMx
6364
github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g=
6465
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c=
6566
github.com/agiledragon/gomonkey/v2 v2.3.1/go.mod h1:ap1AmDzcVOAz1YpeJ3TCzIgstoaWLA6jbbgxfB4w2iY=
66-
github.com/aichy126/dm v1.8.11192/go.mod h1:DHTzyhCrM843x9VdKVbZ+GKXGRbKM2sJ4LxihRxShkE=
67-
github.com/aichy126/modernc.org_z v1.2.19 h1:g4KvQojkFWBJk47OGvKzuudTr5mRF7jORSwobYyc2Sc=
68-
github.com/aichy126/modernc.org_z v1.2.19/go.mod h1:+ZpP0pc4zz97eukOzW3xagV/lS82IpPN9NGG5pNF9vY=
6967
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
7068
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
7169
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
@@ -1295,6 +1293,8 @@ modernc.org/tcl v1.8.13 h1:V0sTNBw0Re86PvXZxuCub3oO9WrSTqALgrwNZNvLFGw=
12951293
modernc.org/tcl v1.8.13/go.mod h1:V+q/Ef0IJaNUSECieLU4o+8IScapxnMyFV6i/7uQlAY=
12961294
modernc.org/token v1.0.0 h1:a0jaWiNMDhDUtqOj09wvjWWAqd3q7WpBulmL9H2egsk=
12971295
modernc.org/token v1.0.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
1296+
modernc.org/z v1.2.19 h1:BGyRFWhDVn5LFS5OcX4Yd/MlpRTOc7hOPTdcIpCiUao=
1297+
modernc.org/z v1.2.19/go.mod h1:+ZpP0pc4zz97eukOzW3xagV/lS82IpPN9NGG5pNF9vY=
12981298
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
12991299
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
13001300
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=

i18n/de_DE.yaml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ backend:
107107
other: Should not contain synonym tags.
108108
cannot_update:
109109
other: No permission to update.
110+
is_used_cannot_delete:
111+
other: You cannot delete a tag that is in use
110112
cannot_set_synonym_as_itself:
111113
other: You cannot set the synonym of the current tag as itself.
112114
smtp:
@@ -309,7 +311,7 @@ ui:
309311
msg:
310312
empty: Code cannot be empty.
311313
language:
312-
label: Language (optional)
314+
label: Language
313315
placeholder: Automatic detection
314316
btn_cancel: Cancel
315317
btn_confirm: Add
@@ -345,7 +347,7 @@ ui:
345347
only_image: Only image files are allowed.
346348
max_size: File size cannot exceed 4MB.
347349
desc:
348-
label: Description (optional)
350+
label: Description
349351
tab_url: Image URL
350352
form_url:
351353
fields:
@@ -354,7 +356,7 @@ ui:
354356
msg:
355357
empty: Image URL cannot be empty.
356358
name:
357-
label: Description (optional)
359+
label: Description
358360
btn_cancel: Cancel
359361
btn_confirm: Add
360362
uploading: Uploading
@@ -374,7 +376,7 @@ ui:
374376
msg:
375377
empty: URL cannot be empty.
376378
name:
377-
label: Description (optional)
379+
label: Description
378380
btn_cancel: Cancel
379381
btn_confirm: Add
380382
ordered_list:
@@ -422,7 +424,7 @@ ui:
422424
range: URL slug up to 35 characters.
423425
character: URL slug contains unallowed character set.
424426
desc:
425-
label: Description (optional)
427+
label: Description
426428
btn_cancel: Cancel
427429
btn_submit: Submit
428430
tag_info:
@@ -439,9 +441,11 @@ ui:
439441
synonyms_text: The following tags will be remapped to
440442
delete:
441443
title: Delete this tag
442-
content: >-
443-
<p>We do not allow deleting tag with posts.</p><p>Please remove this tag from the posts first.</p>
444-
content2: Are you sure you wish to delete?
444+
tip_with_posts: >-
445+
<p>We do not allowed <strong>deleting tag with posts</strong>.</p> <p>Please remove this tag from the posts first.</p>
446+
tip_with_synonyms: >-
447+
<p>We do not allowed <strong>deleting tag with synonyms</strong>.</p> <p>Please remove the synonyms from this tag first.</p>
448+
tip: Are you sure you wish to delete?
445449
close: Close
446450
edit_tag:
447451
title: Edit Tag
@@ -677,13 +681,13 @@ ui:
677681
default: System
678682
msg: Please upload an avatar
679683
bio:
680-
label: About Me (optional)
684+
label: About Me
681685
website:
682-
label: Website (optional)
686+
label: Website
683687
placeholder: "https://example.com"
684688
msg: Website incorrect format
685689
location:
686-
label: Location (optional)
690+
label: Location
687691
placeholder: "City, Country"
688692
notification:
689693
heading: Notifications
@@ -1163,11 +1167,11 @@ ui:
11631167
validate: Please enter a valid URL.
11641168
text: The address of your site.
11651169
short_desc:
1166-
label: Short Site Description (optional)
1170+
label: Short Site Description
11671171
msg: Short site description cannot be empty.
11681172
text: "Short description, as used in the title tag on homepage."
11691173
desc:
1170-
label: Site Description (optional)
1174+
label: Site Description
11711175
msg: Site description cannot be empty.
11721176
text: "Describe this site in one sentence, as used in the meta description tag."
11731177
contact_email:
@@ -1177,14 +1181,6 @@ ui:
11771181
text: Email address of key contact responsible for this site.
11781182
interface:
11791183
page_title: Interface
1180-
logo:
1181-
label: Logo (optional)
1182-
msg: Site logo cannot be empty.
1183-
text: You can upload your image or <1>reset</1> it to the site title text.
1184-
theme:
1185-
label: Theme
1186-
msg: Theme cannot be empty.
1187-
text: Select an existing theme.
11881184
language:
11891185
label: Interface Language
11901186
msg: Interface language cannot be empty.
@@ -1236,18 +1232,18 @@ ui:
12361232
branding:
12371233
page_title: Branding
12381234
logo:
1239-
label: Logo (optional)
1235+
label: Logo
12401236
msg: Logo cannot be empty.
12411237
text: The logo image at the top left of your site. Use a wide rectangular image with a height of 56 and an aspect ratio greater than 3:1. If left blank, the site title text will be shown.
12421238
mobile_logo:
1243-
label: Mobile Logo (optional)
1239+
label: Mobile Logo
12441240
text: The logo used on mobile version of your site. Use a wide rectangular image with a height of 56. If left blank, the image from the "logo" setting will be used.
12451241
square_icon:
1246-
label: Square Icon (optional)
1242+
label: Square Icon
12471243
msg: Square icon cannot be empty.
12481244
text: Image used as the base for metadata icons. Should ideally be larger than 512x512.
12491245
favicon:
1250-
label: Favicon (optional)
1246+
label: Favicon
12511247
text: A favicon for your site. To work correctly over a CDN it must be a png. Will be resized to 32x32. If left blank, "square icon" will be used.
12521248
legal:
12531249
page_title: Legal
@@ -1313,6 +1309,7 @@ ui:
13131309
label: Login required
13141310
text: Only logged in users can access this community.
13151311
form:
1312+
optional: (optional)
13161313
empty: cannot be empty
13171314
invalid: is invalid
13181315
btn_submit: Save
@@ -1362,5 +1359,7 @@ ui:
13621359
staffs: Our community staff
13631360
reputation: reputation
13641361
votes: votes
1365-
1362+
prompt:
1363+
leave_page: "Are you sure you want to leave the page?"
1364+
changes_not_save: "Your changes may not be saved."
13661365

i18n/en_US.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ backend:
109109
cannot_update:
110110
other: No permission to update.
111111
is_used_cannot_delete:
112-
other: "You cannot delete a tag that is in use"
112+
other: You cannot delete a tag that is in use
113113
cannot_set_synonym_as_itself:
114114
other: You cannot set the synonym of the current tag as itself.
115115
smtp:

i18n/es_ES.yaml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ backend:
107107
other: No debe contener etiquetas sinónimas.
108108
cannot_update:
109109
other: Sin permiso para actualizar.
110+
is_used_cannot_delete:
111+
other: You cannot delete a tag that is in use
110112
cannot_set_synonym_as_itself:
111113
other: No se puede establecer como sinónimo de una etiqueta la propia etiqueta.
112114
smtp:
@@ -330,7 +332,7 @@ ui:
330332
msg:
331333
empty: Código no puede estar vacío.
332334
language:
333-
label: Lenguage (opcional)
335+
label: Language
334336
placeholder: Detección automática
335337
btn_cancel: Cancelar
336338
btn_confirm: Añadir
@@ -366,7 +368,7 @@ ui:
366368
only_image: Solo se permiten archivos de imagen.
367369
max_size: El tamaño del archivo no puede superar 4MB.
368370
desc:
369-
label: Descripción (opcional)
371+
label: Description
370372
tab_url: URL de la imagen
371373
form_url:
372374
fields:
@@ -375,7 +377,7 @@ ui:
375377
msg:
376378
empty: La URL de la imagen no puede estar vacía.
377379
name:
378-
label: Descripción (opcional)
380+
label: Description
379381
btn_cancel: Cancelar
380382
btn_confirm: Añadir
381383
uploading: Subiendo
@@ -395,7 +397,7 @@ ui:
395397
msg:
396398
empty: La dirección no puede estar vacía.
397399
name:
398-
label: Descripción (opcional)
400+
label: Description
399401
btn_cancel: Cancelar
400402
btn_confirm: Añadir
401403
ordered_list:
@@ -443,7 +445,7 @@ ui:
443445
range: URL slug hasta 35 caracteres.
444446
character: La URL amigable contiene caracteres no permitidos.
445447
desc:
446-
label: Descripción (opcional)
448+
label: Description
447449
btn_cancel: Cancelar
448450
btn_submit: Enviar
449451
tag_info:
@@ -460,9 +462,11 @@ ui:
460462
synonyms_text: Las siguientes etiquetas serán reasignadas a
461463
delete:
462464
title: Eliminar esta etiqueta
463-
content: >-
464-
<p>No se permite la eliminación de etiquetas con posts.</p><p>Por favor antes elimina esta etiqueta del post.</p>
465-
content2: '¿Estás seguro de que deseas borrarlo?'
465+
tip_with_posts: >-
466+
<p>We do not allowed <strong>deleting tag with posts</strong>.</p> <p>Please remove this tag from the posts first.</p>
467+
tip_with_synonyms: >-
468+
<p>We do not allowed <strong>deleting tag with synonyms</strong>.</p> <p>Please remove the synonyms from this tag first.</p>
469+
tip: Are you sure you wish to delete?
466470
close: Cerrar
467471
edit_tag:
468472
title: Editar etiqueta
@@ -698,13 +702,13 @@ ui:
698702
default: Sistema
699703
msg: Por favor, sube una imagen
700704
bio:
701-
label: Sobre mí (opcional)
705+
label: About Me
702706
website:
703-
label: Sitio web (opcional)
707+
label: Website
704708
placeholder: "https://example.com"
705709
msg: Formato del sitio web incorrecto
706710
location:
707-
label: Ubicación (opcional)
711+
label: Location
708712
placeholder: "Ciudad, País"
709713
notification:
710714
heading: Notificaciones
@@ -1188,11 +1192,11 @@ ui:
11881192
validate: Please enter a valid URL.
11891193
text: The address of your site.
11901194
short_desc:
1191-
label: Short Site Description (optional)
1195+
label: Short Site Description
11921196
msg: Short site description cannot be empty.
11931197
text: "Short description, as used in the title tag on homepage."
11941198
desc:
1195-
label: Site Description (optional)
1199+
label: Site Description
11961200
msg: Site description cannot be empty.
11971201
text: "Describe this site in one sentence, as used in the meta description tag."
11981202
contact_email:
@@ -1202,14 +1206,6 @@ ui:
12021206
text: Email address of key contact responsible for this site.
12031207
interface:
12041208
page_title: Interface
1205-
logo:
1206-
label: Logo (optional)
1207-
msg: Site logo cannot be empty.
1208-
text: You can upload your image or <1>reset</1> it to the site title text.
1209-
theme:
1210-
label: Theme
1211-
msg: Theme cannot be empty.
1212-
text: Select an existing theme.
12131209
language:
12141210
label: Interface Language
12151211
msg: Interface language cannot be empty.
@@ -1261,18 +1257,18 @@ ui:
12611257
branding:
12621258
page_title: Branding
12631259
logo:
1264-
label: Logo (optional)
1260+
label: Logo
12651261
msg: Logo cannot be empty.
12661262
text: The logo image at the top left of your site. Use a wide rectangular image with a height of 56 and an aspect ratio greater than 3:1. If left blank, the site title text will be shown.
12671263
mobile_logo:
1268-
label: Mobile Logo (optional)
1264+
label: Mobile Logo
12691265
text: The logo used on mobile version of your site. Use a wide rectangular image with a height of 56. If left blank, the image from the "logo" setting will be used.
12701266
square_icon:
1271-
label: Square Icon (optional)
1267+
label: Square Icon
12721268
msg: Square icon cannot be empty.
12731269
text: Image used as the base for metadata icons. Should ideally be larger than 512x512.
12741270
favicon:
1275-
label: Favicon (optional)
1271+
label: Favicon
12761272
text: A favicon for your site. To work correctly over a CDN it must be a png. Will be resized to 32x32. If left blank, "square icon" will be used.
12771273
legal:
12781274
page_title: Legal
@@ -1338,6 +1334,7 @@ ui:
13381334
label: Inicio de sesión requerido
13391335
text: Sólo usuarios con sesión iniciada pueden acceder a esta comunidad.
13401336
form:
1337+
optional: (optional)
13411338
empty: no puede estar en blanco
13421339
invalid: no es válido
13431340
btn_submit: Guardar
@@ -1387,5 +1384,7 @@ ui:
13871384
staffs: Nuestor equipo de la comunidad
13881385
reputation: reputación
13891386
votes: votos
1390-
1387+
prompt:
1388+
leave_page: "Are you sure you want to leave the page?"
1389+
changes_not_save: "Your changes may not be saved."
13911390

0 commit comments

Comments
 (0)