Skip to content

Commit 613f554

Browse files
authored
Updating Connection Dialog header (#19008)
* Updating Connection Dialog header and icon * loc update
1 parent 25fb36f commit 613f554

File tree

8 files changed

+16
-60
lines changed

8 files changed

+16
-60
lines changed

localization/l10n/bundle.l10n.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
"Advanced Connection Settings": "Advanced Connection Settings",
195195
"Advanced": "Advanced",
196196
"Test Connection": "Test Connection",
197-
"Connect to SQL Server": "Connect to SQL Server",
197+
"Connect to Database": "Connect to Database",
198198
"Parameters": "Parameters",
199199
"Connection String": "Connection String",
200200
"Browse Azure": "Browse Azure",

localization/xliff/vscode-mssql.xlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@
270270
<trans-unit id="++CODE++1a2303ede07493acc7caaa7c737f3c52bcc9cf04372be19ed1b0af6b9f2c791e">
271271
<source xml:lang="en">Connect</source>
272272
</trans-unit>
273-
<trans-unit id="++CODE++8a8bef20f041d1f1fc0ea7966a3fa58563c599617464a303258ed302ddca5a79">
274-
<source xml:lang="en">Connect to SQL Server</source>
273+
<trans-unit id="++CODE++150851f09acf7f6f4d53e35fb619389c38558ea5b98d3a13efaf84b3eda50422">
274+
<source xml:lang="en">Connect to Database</source>
275275
</trans-unit>
276276
<trans-unit id="++CODE++b6c3dc8ba33b3a93b9060f81da8fa7d496f07487cec7a12353257242b2ea9e24">
277277
<source xml:lang="en">Connected to server &quot;{0}&quot; on document &quot;{1}&quot;. Server information: {2}</source>

media/database_dark.svg

Lines changed: 3 additions & 0 deletions
Loading

media/database_light.svg

Lines changed: 3 additions & 0 deletions
Loading

media/sqlServer_dark.svg

Lines changed: 0 additions & 25 deletions
This file was deleted.

media/sqlServer_light.svg

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/reactviews/common/locConstants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class LocConstants {
164164
advancedConnectionSettings: l10n.t("Advanced Connection Settings"),
165165
advancedSettings: l10n.t("Advanced"),
166166
testConnection: l10n.t("Test Connection"),
167-
connectToSQLServer: l10n.t("Connect to SQL Server"),
167+
connectToDatabase: l10n.t("Connect to Database"),
168168
parameters: l10n.t("Parameters"),
169169
connectionString: l10n.t("Connection String"),
170170
browseAzure: l10n.t("Browse Azure"),

src/reactviews/pages/ConnectionDialog/components/connectionHeader.component.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { ConnectionDialogContext } from "../connectionDialogStateProvider";
1010
import { locConstants } from "../../../common/locConstants";
1111
import { useContext } from "react";
1212

13-
const sqlServerImage = require("../../../../../media/sqlServer_light.svg");
14-
const sqlServerImageDark = require("../../../../../media/sqlServer_dark.svg");
13+
const databaseIconLight = require("../../../../../media/database_light.svg");
14+
const databaseIconDark = require("../../../../../media/database_dark.svg");
1515

1616
export const ConnectionHeader = () => {
1717
const connectionDialogContext = useContext(ConnectionDialogContext);
@@ -29,10 +29,10 @@ export const ConnectionHeader = () => {
2929
}}
3030
src={
3131
connectionDialogContext?.themeKind === ColorThemeKind.Light
32-
? sqlServerImage
33-
: sqlServerImageDark
32+
? databaseIconLight
33+
: databaseIconDark
3434
}
35-
alt="SQL Server"
35+
alt={locConstants.connectionDialog.connectToDatabase}
3636
height={60}
3737
width={60}
3838
/>
@@ -43,7 +43,7 @@ export const ConnectionHeader = () => {
4343
}}
4444
weight="medium"
4545
>
46-
{locConstants.connectionDialog.connectToSQLServer}
46+
{locConstants.connectionDialog.connectToDatabase}
4747
</Text>
4848
</div>
4949
);

0 commit comments

Comments
 (0)