Skip to content

Commit 1982ce6

Browse files
authored
Task: Translate CCS interface to pt-BR (#89)
1 parent d728f40 commit 1982ce6

7 files changed

Lines changed: 30 additions & 24 deletions

File tree

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -884,27 +884,27 @@
884884
{
885885
"category": "Consistem",
886886
"command": "vscode-objectscript.ccs.resolveContextExpression",
887-
"title": "Resolve Context Expression"
887+
"title": "Ajuda de Contexto"
888888
},
889889
{
890890
"category": "Consistem",
891891
"command": "vscode-objectscript.ccs.goToDefinition",
892-
"title": "Go to Definition"
892+
"title": "Ir para Definição"
893893
},
894894
{
895895
"category": "Consistem",
896896
"command": "vscode-objectscript.ccs.followDefinitionLink",
897-
"title": "Follow Definition Link"
897+
"title": "Seguir Link de Definição"
898898
},
899899
{
900900
"category": "Consistem",
901901
"command": "vscode-objectscript.ccs.followSourceAnalysisLink",
902-
"title": "Follow Source Analysis Link"
902+
"title": "Seguir Link de Análise de Código-Fonte"
903903
},
904904
{
905905
"category": "Consistem",
906906
"command": "vscode-objectscript.ccs.locateTriggers",
907-
"title": "Locate Triggers"
907+
"title": "Localizar Gatilhos"
908908
},
909909
{
910910
"category": "Consistem",
@@ -914,22 +914,22 @@
914914
{
915915
"category": "Consistem",
916916
"command": "vscode-objectscript.ccs.locateTriggers.openLocation",
917-
"title": "Open Located Trigger"
917+
"title": "Abrir Gatilho Localizado"
918918
},
919919
{
920920
"category": "Consistem",
921921
"command": "vscode-objectscript.ccs.createItem",
922-
"title": "Create Item"
922+
"title": "Criar Item"
923923
},
924924
{
925925
"category": "Consistem",
926926
"command": "vscode-objectscript.ccs.jumpToTagOffsetCrossEntity",
927-
"title": "Go to Definition (+Offset ^Item)"
927+
"title": "Ir para Definição (+linha ^Item)"
928928
},
929929
{
930930
"category": "Consistem",
931931
"command": "vscode-objectscript.ccs.jumpToTagOffsetCrossEntity.insertSelection",
932-
"title": "Insert Selection (Quick Pick)",
932+
"title": "Inserir Seleção (Quick Pick)",
933933
"enablement": "inQuickOpen && vscode-objectscript.ccs.jumpToTagQuickPickActive"
934934
},
935935
{
@@ -1045,7 +1045,7 @@
10451045
"category": "ObjectScript",
10461046
"command": "vscode-objectscript.ccs.getGlobalDocumentation",
10471047
"enablement": "vscode-objectscript.connectActive",
1048-
"title": "Show Global Documentation"
1048+
"title": "Documentação Global"
10491049
},
10501050
{
10511051
"category": "ObjectScript",
@@ -1317,7 +1317,7 @@
13171317
{
13181318
"category": "Consistem",
13191319
"command": "vscode-objectscript.ccs.convertCurrentItem",
1320-
"title": "Converter Item (Simples)"
1320+
"title": "Converter Item"
13211321
},
13221322
{
13231323
"category": "Consistem",
@@ -1378,12 +1378,12 @@
13781378
"type": "object",
13791379
"properties": {
13801380
"consistem.globalDocumentation.openInFile": {
1381-
"description": "Open global documentation in a file instead of the Output view.",
1381+
"description": "Abrir a documentação global em um arquivo em vez da visualização de Saída.",
13821382
"type": "boolean",
13831383
"default": true
13841384
},
13851385
"consistem.globalDocumentation.filePath": {
1386-
"markdownDescription": "Path to the file where global documentation is written. Relative paths are resolved against the system temporary directory (e.g. %TEMP% on Windows). If empty, defaults to `%TEMP%\\globalDocumentation.txt`.",
1386+
"markdownDescription": "Caminho do arquivo onde a documentação global será gravada. Caminhos relativos são resolvidos em relação ao diretório temporário do sistema (ex.: %TEMP% no Windows). Se estiver vazio, o padrão será `%TEMP%\\globalDocumentation.txt`.",
13871387
"type": "string",
13881388
"default": "",
13891389
"when": "config.consistem.globalDocumentation.openInFile"

src/ccs/commands/contextHelp.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function resolveContextExpression(): Promise<void> {
2121
const contextExpression = contextInfo.text;
2222

2323
if (!contextExpression.trim()) {
24-
void vscode.window.showErrorMessage("Context expression is empty.");
24+
void vscode.window.showErrorMessage("A expressão da ajuda de contexto está vazia.");
2525
return;
2626
}
2727

@@ -69,10 +69,10 @@ export async function resolveContextExpression(): Promise<void> {
6969
const errorMessage =
7070
typeof data === "object" && data && "message" in data && typeof data.message === "string"
7171
? data.message
72-
: "Failed to resolve context expression.";
72+
: "Falha ao resolver a ajuda de contexto.";
7373
void vscode.window.showErrorMessage(errorMessage);
7474
} catch (error) {
75-
handleError(error, "Failed to resolve context expression.");
75+
handleError(error, "Falha ao resolver a ajuda de contexto.");
7676
}
7777
}
7878

@@ -173,7 +173,7 @@ async function applyResolvedTextExpression(
173173
try {
174174
await showGifInWebview(gifUri);
175175
} catch (error) {
176-
handleError(error, "Failed to open GIF from context expression.");
176+
handleError(error, "Falha ao abrir o GIF da ajuda de contexto.");
177177
}
178178
}
179179
}
@@ -339,7 +339,7 @@ function normalizeGlobalDocumentationContent(content: GlobalDocumentationRespons
339339
try {
340340
return JSON.stringify(content, null, 2);
341341
} catch (error) {
342-
handleError(error, "Failed to parse global documentation content.");
342+
handleError(error, "Falha ao processar o conteúdo da documentação global.");
343343
}
344344
}
345345

@@ -435,7 +435,7 @@ function getGifWebviewHtml(webview: vscode.Webview, gifUri: vscode.Uri, title: s
435435
const cspSource = escapeHtml(webview.cspSource);
436436

437437
return `<!DOCTYPE html>
438-
<html lang="en">
438+
<html lang="pt-BR">
439439
<head>
440440
<meta charset="UTF-8" />
441441
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src ${cspSource} data:;" />

src/ccs/providers/DefinitionDocumentLinkProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class DefinitionDocumentLinkProvider implements vscode.DocumentLinkProvid
5454
`command:${followDefinitionLinkCommand}?${encodeURIComponent(JSON.stringify(args))}`
5555
);
5656
const link = new vscode.DocumentLink(match.range, commandUri);
57-
link.tooltip = vscode.l10n.t("Go to Definition");
57+
link.tooltip = vscode.l10n.t("Ir para definição");
5858
return link;
5959
});
6060
}

src/ccs/providers/SourceAnalysisLinkProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class SourceAnalysisLinkProvider implements vscode.DocumentLinkProvider {
8484
);
8585

8686
const link = new vscode.DocumentLink(range, commandUri);
87-
link.tooltip = vscode.l10n.t("Open Source Analysis location");
87+
link.tooltip = vscode.l10n.t("Abrir localização da análise de fonte");
8888
return link;
8989
}
9090
}

src/ccs/sourcecontrol/client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ export class SourceControlApi {
1717
const { host, port, username, password, https: useHttps, pathPrefix } = api.config;
1818

1919
if (!host || !port) {
20-
throw new Error("No active InterSystems server connection for this file.");
20+
throw new Error(
21+
"Nenhuma conexão ativa com servidor InterSystems foi encontrada para este arquivo. Verifique a conexão e o namespace selecionados."
22+
);
2123
}
2224

2325
const normalizedPrefix = pathPrefix ? (pathPrefix.startsWith("/") ? pathPrefix : `/${pathPrefix}`) : "";

src/ccs/sourcecontrol/clients/converterClient.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ export class ConverterClient {
121121
if (fallbackApi.active && fallbackApi.ns) {
122122
api = fallbackApi;
123123
} else {
124-
throw new Error("No active namespace for conversão de arquivo.");
124+
throw new Error(
125+
"Nenhum namespace ativo foi encontrado para conversão de arquivo. Verifique a conexão ativa e tente novamente."
126+
);
125127
}
126128
}
127129

src/ccs/sourcecontrol/clients/locateTriggersClient.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ export class LocateTriggersClient {
166166
if (fallbackApi.active && fallbackApi.ns) {
167167
api = fallbackApi;
168168
} else {
169-
throw new Error("No active namespace for localizar gatilhos.");
169+
throw new Error(
170+
"Nenhum namespace ativo foi encontrado para localizar gatilhos. Verifique a conexão ativa e tente novamente."
171+
);
170172
}
171173
}
172174

0 commit comments

Comments
 (0)