Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit c7c29f2

Browse files
authored
Merge pull request #6365 from psrpinto/fix/naming
2 parents f990a59 + 4b6de3a commit c7c29f2

File tree

17 files changed

+45
-45
lines changed

17 files changed

+45
-45
lines changed

src/AddThreepid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export default class AddThreepid {
248248

249249
/**
250250
* Takes a phone number verification code as entered by the user and validates
251-
* it with the ID server, then if successful, adds the phone number.
251+
* it with the identity server, then if successful, adds the phone number.
252252
* @param {string} msisdnToken phone number verification code as entered by the user
253253
* @return {Promise} Resolves if the phone number was added. Rejects with an object
254254
* with a "message" property which contains a human-readable message detailing why

src/IdentityAuthClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export default class IdentityAuthClient {
127127
await this._matrixClient.getIdentityAccount(token);
128128
} catch (e) {
129129
if (e.errcode === "M_TERMS_NOT_SIGNED") {
130-
console.log("Identity Server requires new terms to be agreed to");
130+
console.log("Identity server requires new terms to be agreed to");
131131
await startTermsFlow([new Service(
132132
SERVICE_TYPES.IS,
133133
identityServerUrl,

src/components/structures/InteractiveAuth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default class InteractiveAuthComponent extends React.Component {
5454
// * emailSid {string} If email auth was performed, the sid of
5555
// the auth session.
5656
// * clientSecret {string} The client secret used in auth
57-
// sessions with the ID server.
57+
// sessions with the identity server.
5858
onAuthFinished: PropTypes.func.isRequired,
5959

6060
// Inputs provided by the user to the auth process

src/components/structures/MatrixChat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
561561
switch (payload.action) {
562562
case 'MatrixActions.accountData':
563563
// XXX: This is a collection of several hacks to solve a minor problem. We want to
564-
// update our local state when the ID server changes, but don't want to put that in
564+
// update our local state when the identity server changes, but don't want to put that in
565565
// the js-sdk as we'd be then dictating how all consumers need to behave. However,
566566
// this component is already bloated and we probably don't want this tiny logic in
567567
// here, but there's no better place in the react-sdk for it. Additionally, we're

src/components/views/auth/InteractiveAuthEntryComponents.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import CaptchaForm from "./CaptchaForm";
4141
* one HS whilst beign a guest on another).
4242
* loginType: the login type of the auth stage being attempted
4343
* authSessionId: session id from the server
44-
* clientSecret: The client secret in use for ID server auth sessions
44+
* clientSecret: The client secret in use for identity server auth sessions
4545
* stageParams: params from the server for the stage being attempted
4646
* errorText: error message from a previous attempt to authenticate
4747
* submitAuthDict: a function which will be called with the new auth dict
@@ -54,8 +54,8 @@ import CaptchaForm from "./CaptchaForm";
5454
* Defined keys for stages are:
5555
* m.login.email.identity:
5656
* * emailSid: string representing the sid of the active
57-
* verification session from the ID server, or
58-
* null if no session is active.
57+
* verification session from the identity server,
58+
* or null if no session is active.
5959
* fail: a function which should be called with an error object if an
6060
* error occurred during the auth stage. This will cause the auth
6161
* session to be failed and the process to go back to the start.

src/components/views/dialogs/IntegrationsImpossibleDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class IntegrationsImpossibleDialog extends React.Component {
4646
<div className='mx_IntegrationsImpossibleDialog_content'>
4747
<p>
4848
{_t(
49-
"Your %(brand)s doesn't allow you to use an Integration Manager to do this. " +
49+
"Your %(brand)s doesn't allow you to use an integration manager to do this. " +
5050
"Please contact an admin.",
5151
{ brand },
5252
)}

src/components/views/dialogs/TermsDialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ export default class TermsDialog extends React.PureComponent<ITermsDialogProps,
9090
private nameForServiceType(serviceType: SERVICE_TYPES, host: string): JSX.Element {
9191
switch (serviceType) {
9292
case SERVICE_TYPES.IS:
93-
return <div>{_t("Identity Server")}<br />({host})</div>;
93+
return <div>{_t("Identity server")}<br />({host})</div>;
9494
case SERVICE_TYPES.IM:
95-
return <div>{_t("Integration Manager")}<br />({host})</div>;
95+
return <div>{_t("Integration manager")}<br />({host})</div>;
9696
}
9797
}
9898

src/components/views/elements/AppPermission.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export default class AppPermission extends React.Component {
114114

115115
// Due to i18n limitations, we can't dedupe the code for variables in these two messages.
116116
const warning = this.state.isWrapped
117-
? _t("Using this widget may share data <helpIcon /> with %(widgetDomain)s & your Integration Manager.",
117+
? _t("Using this widget may share data <helpIcon /> with %(widgetDomain)s & your integration manager.",
118118
{ widgetDomain: this.state.widgetDomain }, { helpIcon: () => warningTooltip })
119119
: _t("Using this widget may share data <helpIcon /> with %(widgetDomain)s.",
120120
{ widgetDomain: this.state.widgetDomain }, { helpIcon: () => warningTooltip });

src/components/views/rooms/Stickerpicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export default class Stickerpicker extends React.PureComponent {
224224
}
225225

226226
_getStickerpickerContent() {
227-
// Handle Integration Manager errors
227+
// Handle integration manager errors
228228
if (this.state._imError) {
229229
return this._errorStickerpickerContent();
230230
}

src/components/views/settings/SetIdServer.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const REACHABILITY_TIMEOUT = 10000; // ms
4444
async function checkIdentityServerUrl(u) {
4545
const parsedUrl = url.parse(u);
4646

47-
if (parsedUrl.protocol !== 'https:') return _t("Identity Server URL must be HTTPS");
47+
if (parsedUrl.protocol !== 'https:') return _t("Identity server URL must be HTTPS");
4848

4949
// XXX: duplicated logic from js-sdk but it's quite tied up in the validation logic in the
5050
// js-sdk so probably as easy to duplicate it than to separate it out so we can reuse it
@@ -53,17 +53,17 @@ async function checkIdentityServerUrl(u) {
5353
if (response.ok) {
5454
return null;
5555
} else if (response.status < 200 || response.status >= 300) {
56-
return _t("Not a valid Identity Server (status code %(code)s)", { code: response.status });
56+
return _t("Not a valid identity server (status code %(code)s)", { code: response.status });
5757
} else {
58-
return _t("Could not connect to Identity Server");
58+
return _t("Could not connect to identity server");
5959
}
6060
} catch (e) {
61-
return _t("Could not connect to Identity Server");
61+
return _t("Could not connect to identity server");
6262
}
6363
}
6464

6565
interface IProps {
66-
// Whether or not the ID server is missing terms. This affects the text
66+
// Whether or not the identity server is missing terms. This affects the text
6767
// shown to the user.
6868
missingTerms: boolean;
6969
}
@@ -87,7 +87,7 @@ export default class SetIdServer extends React.Component<IProps, IState> {
8787

8888
let defaultIdServer = '';
8989
if (!MatrixClientPeg.get().getIdentityServerUrl() && getDefaultIdentityServerUrl()) {
90-
// If no ID server is configured but there's one in the config, prepopulate
90+
// If no identity server is configured but there's one in the config, prepopulate
9191
// the field to help the user.
9292
defaultIdServer = abbreviateUrl(getDefaultIdentityServerUrl());
9393
}
@@ -112,7 +112,7 @@ export default class SetIdServer extends React.Component<IProps, IState> {
112112
}
113113

114114
private onAction = (payload: ActionPayload) => {
115-
// We react to changes in the ID server in the event the user is staring at this form
115+
// We react to changes in the identity server in the event the user is staring at this form
116116
// when changing their identity server on another device.
117117
if (payload.action !== "id_server_changed") return;
118118

@@ -356,7 +356,7 @@ export default class SetIdServer extends React.Component<IProps, IState> {
356356
let sectionTitle;
357357
let bodyText;
358358
if (idServerUrl) {
359-
sectionTitle = _t("Identity Server (%(server)s)", { server: abbreviateUrl(idServerUrl) });
359+
sectionTitle = _t("Identity server (%(server)s)", { server: abbreviateUrl(idServerUrl) });
360360
bodyText = _t(
361361
"You are currently using <server></server> to discover and be discoverable by " +
362362
"existing contacts you know. You can change your identity server below.",
@@ -371,7 +371,7 @@ export default class SetIdServer extends React.Component<IProps, IState> {
371371
);
372372
}
373373
} else {
374-
sectionTitle = _t("Identity Server");
374+
sectionTitle = _t("Identity server");
375375
bodyText = _t(
376376
"You are not currently using an identity server. " +
377377
"To discover and be discoverable by existing contacts you know, " +

src/components/views/settings/SetIntegrationManager.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ export default class SetIntegrationManager extends React.Component<IProps, IStat
6565
if (currentManager) {
6666
managerName = `(${currentManager.name})`;
6767
bodyText = _t(
68-
"Use an Integration Manager <b>(%(serverName)s)</b> to manage bots, widgets, " +
68+
"Use an integration manager <b>(%(serverName)s)</b> to manage bots, widgets, " +
6969
"and sticker packs.",
7070
{ serverName: currentManager.name },
7171
{ b: sub => <b>{sub}</b> },
7272
);
7373
} else {
74-
bodyText = _t("Use an Integration Manager to manage bots, widgets, and sticker packs.");
74+
bodyText = _t("Use an integration manager to manage bots, widgets, and sticker packs.");
7575
}
7676

7777
return (
@@ -86,7 +86,7 @@ export default class SetIntegrationManager extends React.Component<IProps, IStat
8686
<br />
8787
<br />
8888
{_t(
89-
"Integration Managers receive configuration data, and can modify widgets, " +
89+
"Integration managers receive configuration data, and can modify widgets, " +
9090
"send room invites, and set power levels on your behalf.",
9191
)}
9292
</span>

src/components/views/settings/tabs/user/GeneralUserSettingsTab.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ export default class GeneralUserSettingsTab extends React.Component {
364364
onFinished={this.state.requiredPolicyInfo.resolve}
365365
introElement={intro}
366366
/>
367-
{ /* has its own heading as it includes the current ID server */ }
367+
{ /* has its own heading as it includes the current identity server */ }
368368
<SetIdServer missingTerms={true} />
369369
</div>
370370
);
@@ -387,7 +387,7 @@ export default class GeneralUserSettingsTab extends React.Component {
387387
return (
388388
<div className="mx_SettingsTab_section">
389389
{threepidSection}
390-
{ /* has its own heading as it includes the current ID server */ }
390+
{ /* has its own heading as it includes the current identity server */ }
391391
<SetIdServer />
392392
</div>
393393
);

src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export default class HelpUserSettingsTab extends React.Component<IProps, IState>
290290
<span className='mx_SettingsTab_subheading'>{_t("Advanced")}</span>
291291
<div className='mx_SettingsTab_subsectionText'>
292292
{_t("Homeserver is")} <code>{MatrixClientPeg.get().getHomeserverUrl()}</code><br />
293-
{_t("Identity Server is")} <code>{MatrixClientPeg.get().getIdentityServerUrl()}</code><br />
293+
{_t("Identity server is")} <code>{MatrixClientPeg.get().getIdentityServerUrl()}</code><br />
294294
<br />
295295
<details>
296296
<summary>{_t("Access Token")}</summary><br />

0 commit comments

Comments
 (0)