Skip to content

Commit 43e6227

Browse files
authored
Xlate (#157)
2 parents 68daf7e + 5cd34c6 commit 43e6227

File tree

3 files changed

+107
-40
lines changed

3 files changed

+107
-40
lines changed

Diff for: frontend/src/libs/locale/da.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@
247247
"File": "Kan kun ændres ved applikationsstart",
248248
"Lang": "Kun engelsk virker.",
249249
"DefaultInstance": "Træder i kraft efter genstart af Toolbar.",
250-
"Form": "Brug formularlogin i stedet for Basic Auth."
250+
"Form": "Brug formularlogin i stedet for Basic Auth.",
251+
"AfterRestarting": "Får effekter efter genstart af Toolbar"
251252
},
252253
"configvalues": {
253254
"Enabled": "Aktiveret",

Diff for: frontend/src/libs/locale/pt.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
{}
1+
{
2+
"words": {
3+
"Activity": "Atividade",
4+
"Actions": "Ações",
5+
"About": "Sobre"
6+
},
7+
"20charactermax": "Máximo de 20 caracteres",
8+
"32characterhash": "Hash de 32 caracteres"
9+
}

Diff for: pkg/translations/locales/pt/messages.gotext.json

+96-38
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"id": "Dialog Failed: {Err}",
66
"message": "Dialog Failed: {Err}",
7-
"translation": "",
7+
"translation": "Falha no diálogo: {Err}",
88
"placeholders": [
99
{
1010
"id": "Err",
@@ -19,7 +19,7 @@
1919
{
2020
"id": "Writing config: decoding '{Name}' value '{Value}' error: {Err}",
2121
"message": "Writing config: decoding '{Name}' value '{Value}' error: {Err}",
22-
"translation": "",
22+
"translation": "Escrevendo configuração: decodificando '{Name}' valor '{Value}' erro: {Err}",
2323
"placeholders": [
2424
{
2525
"id": "Name",
@@ -73,7 +73,7 @@
7373
{
7474
"id": "Error writing config: {Error}",
7575
"message": "Error writing config: {Error}",
76-
"translation": "",
76+
"translation": "Erro ao gravar configuração: {Error}",
7777
"placeholders": [
7878
{
7979
"id": "Error",
@@ -88,7 +88,7 @@
8888
{
8989
"id": "Saved: '{Name}' Value: {Value}",
9090
"message": "Saved: '{Name}' Value: {Value}",
91-
"translation": "",
91+
"translation": "Salvou: '{Name}' Valor: {Value}",
9292
"placeholders": [
9393
{
9494
"id": "Name",
@@ -111,7 +111,7 @@
111111
{
112112
"id": "Config {Msg}",
113113
"message": "Config {Msg}",
114-
"translation": "",
114+
"translation": "Configuração {Msg}",
115115
"placeholders": [
116116
{
117117
"id": "Msg",
@@ -126,12 +126,12 @@
126126
{
127127
"id": "Choose Folder",
128128
"message": "Choose Folder",
129-
"translation": ""
129+
"translation": "Escolher pasta"
130130
},
131131
{
132132
"id": "Opening directory browser: {Err}",
133133
"message": "Opening directory browser: {Err}",
134-
"translation": "",
134+
"translation": "Abrindo o navegador de pastas: {Err}",
135135
"placeholders": [
136136
{
137137
"id": "Err",
@@ -146,7 +146,7 @@
146146
{
147147
"id": "Saved {App} instance configuration!",
148148
"message": "Saved {App} instance configuration!",
149-
"translation": "",
149+
"translation": "Configuração da instância {App} salva!",
150150
"placeholders": [
151151
{
152152
"id": "App",
@@ -161,7 +161,7 @@
161161
{
162162
"id": "Added new {App} instance!",
163163
"message": "Added new {App} instance!",
164-
"translation": "",
164+
"translation": "Adicionada uma nova instância {App}!",
165165
"placeholders": [
166166
{
167167
"id": "App",
@@ -176,7 +176,7 @@
176176
{
177177
"id": "Provided {StarrApp} instance {Idx} does not exist",
178178
"message": "Provided {StarrApp} instance {Idx} does not exist",
179-
"translation": "",
179+
"translation": "Instância {Idx} fornecida de {StarrApp} não existe",
180180
"placeholders": [
181181
{
182182
"id": "StarrApp",
@@ -199,7 +199,7 @@
199199
{
200200
"id": "Really delete {StarrApp} instance? Name: {Name}",
201201
"message": "Really delete {StarrApp} instance? Name: {Name}",
202-
"translation": "",
202+
"translation": "Tem certeza que quer remover a instância {StarrApp} ? Nome: {Name}",
203203
"placeholders": [
204204
{
205205
"id": "StarrApp",
@@ -222,12 +222,12 @@
222222
{
223223
"id": "Remove Instance",
224224
"message": "Remove Instance",
225-
"translation": ""
225+
"translation": "Remover Instância"
226226
},
227227
{
228228
"id": "Removed {StarrApp} Instance",
229229
"message": "Removed {StarrApp} Instance",
230-
"translation": "",
230+
"translation": "Instância {StarrApp} removida",
231231
"placeholders": [
232232
{
233233
"id": "StarrApp",
@@ -304,17 +304,17 @@
304304
{
305305
"id": "Config Problem",
306306
"message": "Config Problem",
307-
"translation": ""
307+
"translation": "Problema de configuração"
308308
},
309309
{
310310
"id": "Hide",
311311
"message": "Hide",
312-
"translation": ""
312+
"translation": "Esconder"
313313
},
314314
{
315315
"id": "Checking for current {Updates} release: {Err}",
316316
"message": "Checking for current {Updates} release: {Err}",
317-
"translation": "",
317+
"translation": "Verifique a atual {Updates} release: {Err}",
318318
"placeholders": [
319319
{
320320
"id": "Updates",
@@ -337,7 +337,7 @@
337337
{
338338
"id": "Checked Current {Updates} release: {Version} ({RelSize})",
339339
"message": "Checked Current {Updates} release: {Version} ({RelSize})",
340-
"translation": "",
340+
"translation": "Versão atual de {Updates} verificada: {Version} ({RelSize})",
341341
"placeholders": [
342342
{
343343
"id": "Updates",
@@ -368,17 +368,17 @@
368368
{
369369
"id": "Downloading File",
370370
"message": "Downloading File",
371-
"translation": ""
371+
"translation": "Baixando arquivo"
372372
},
373373
{
374374
"id": "Missing release, check first?",
375375
"message": "Missing release, check first?",
376-
"translation": ""
376+
"translation": "Faltando o lançamento, verifique primeiro?"
377377
},
378378
{
379379
"id": "Downloading {Updates} update failed: {Error}",
380380
"message": "Downloading {Updates} update failed: {Error}",
381-
"translation": "",
381+
"translation": "Falha ao baixar a atualização de {Updates}: {Error}",
382382
"placeholders": [
383383
{
384384
"id": "Updates",
@@ -401,7 +401,7 @@
401401
{
402402
"id": "Downloading {Updates} release from {CurrURL} to {Path} ({Size})",
403403
"message": "Downloading {Updates} release from {CurrURL} to {Path} ({Size})",
404-
"translation": "",
404+
"translation": "Fazendo download da versão {Updates} de {CurrURL} para {Path} ({Size})",
405405
"placeholders": [
406406
{
407407
"id": "Updates",
@@ -440,7 +440,7 @@
440440
{
441441
"id": "Downloading {Size} to {Path}",
442442
"message": "Downloading {Size} to {Path}",
443-
"translation": "",
443+
"translation": "Baixando {Size} para {Path}",
444444
"placeholders": [
445445
{
446446
"id": "Size",
@@ -463,7 +463,7 @@
463463
{
464464
"id": "Launching installer: {Path}: {Err}",
465465
"message": "Launching installer: {Path}: {Err}",
466-
"translation": "",
466+
"translation": "Iniciando o instalador: {Path}: {Err}",
467467
"placeholders": [
468468
{
469469
"id": "Path",
@@ -486,7 +486,7 @@
486486
{
487487
"id": "Launching Installer: {Path}",
488488
"message": "Launching Installer: {Path}",
489-
"translation": "",
489+
"translation": "Iniciando o instalador: {Path}",
490490
"placeholders": [
491491
{
492492
"id": "Path",
@@ -501,7 +501,7 @@
501501
{
502502
"id": "Opening Folder: {Path}: {Err}",
503503
"message": "Opening Folder: {Path}: {Err}",
504-
"translation": "",
504+
"translation": "Pasta de abertura: {Path}: {Err}",
505505
"placeholders": [
506506
{
507507
"id": "Path",
@@ -524,7 +524,7 @@
524524
{
525525
"id": "Opening Path: {Path}",
526526
"message": "Opening Path: {Path}",
527-
"translation": "",
527+
"translation": "Caminho de Abertura: {Path}",
528528
"placeholders": [
529529
{
530530
"id": "Path",
@@ -539,37 +539,37 @@
539539
{
540540
"id": "ERROR",
541541
"message": "ERROR",
542-
"translation": ""
542+
"translation": "ERRO"
543543
},
544544
{
545545
"id": "WARN",
546546
"message": "WARN",
547-
"translation": ""
547+
"translation": "AVISO"
548548
},
549549
{
550550
"id": "INFO",
551551
"message": "INFO",
552-
"translation": ""
552+
"translation": "INFO"
553553
},
554554
{
555555
"id": "DEBUG",
556556
"message": "DEBUG",
557-
"translation": ""
557+
"translation": "DEPURAR"
558558
},
559559
{
560560
"id": "TRACE",
561561
"message": "TRACE",
562-
"translation": ""
562+
"translation": "VESTÍGIO"
563563
},
564564
{
565565
"id": "FATAL",
566566
"message": "FATAL",
567-
"translation": ""
567+
"translation": "FATAL"
568568
},
569569
{
570570
"id": "Logger Error: {Err}",
571571
"message": "Logger Error: {Err}",
572-
"translation": "",
572+
"translation": "Erro do Logger: {Err}",
573573
"placeholders": [
574574
{
575575
"id": "Err",
@@ -584,12 +584,12 @@
584584
{
585585
"id": "...continuing:",
586586
"message": "...continuing:",
587-
"translation": ""
587+
"translation": "..continuando:"
588588
},
589589
{
590590
"id": "Go Panic! This is a bug!\n{Version}-{Revision} {Branch} {R}\n{Stack}",
591591
"message": "Go Panic! This is a bug!\n{Version}-{Revision} {Branch} {R}\n{Stack}",
592-
"translation": "",
592+
"translation": "Pânico no Go! Isso é um bug!\n{Version}-{Revision} {Branch} {R}\n{Stack}",
593593
"placeholders": [
594594
{
595595
"id": "Version",
@@ -636,12 +636,70 @@
636636
{
637637
"id": "Closing Logger",
638638
"message": "Closing Logger",
639-
"translation": ""
639+
"translation": "Fechando o Logger"
640640
},
641641
{
642642
"id": "closing log rotator:",
643643
"message": "closing log rotator:",
644-
"translation": ""
644+
"translation": "fechando o rotador de log:"
645+
},
646+
{
647+
"id": "Getting user data: {Error}",
648+
"message": "Getting user data: {Error}",
649+
"translatorComment": "Copied from source.",
650+
"fuzzy": true,
651+
"translation": "Obtendo dados do usuário: {Error}",
652+
"placeholders": [
653+
{
654+
"id": "Error",
655+
"string": "%[1]v",
656+
"type": "string",
657+
"underlyingType": "string",
658+
"argNum": 1,
659+
"expr": "err.Error()"
660+
}
661+
]
662+
},
663+
{
664+
"id": "Choose File",
665+
"message": "Choose File",
666+
"translatorComment": "Copied from source.",
667+
"fuzzy": true,
668+
"translation": "Escolher arquivo"
669+
},
670+
{
671+
"id": "Opening file browser: {Err}",
672+
"message": "Opening file browser: {Err}",
673+
"translatorComment": "Copied from source.",
674+
"fuzzy": true,
675+
"translation": "Abrindo o navegador de arquivos: {Err}",
676+
"placeholders": [
677+
{
678+
"id": "Err",
679+
"string": "%[1]v",
680+
"type": "error",
681+
"underlyingType": "interface{Error() string}",
682+
"argNum": 1,
683+
"expr": "err"
684+
}
685+
]
686+
},
687+
{
688+
"id": "Getting block lists: {Error}",
689+
"message": "Getting block lists: {Error}",
690+
"translatorComment": "Copied from source.",
691+
"fuzzy": true,
692+
"translation": "Obtendo listas de bloqueio: {Error}",
693+
"placeholders": [
694+
{
695+
"id": "Error",
696+
"string": "%[1]v",
697+
"type": "string",
698+
"underlyingType": "string",
699+
"argNum": 1,
700+
"expr": "err.Error()"
701+
}
702+
]
645703
}
646704
]
647-
}
705+
}

0 commit comments

Comments
 (0)