Skip to content

Commit 9c8df1a

Browse files
authored
React string cleanup.
1 parent e7db351 commit 9c8df1a

File tree

20 files changed

+33
-33
lines changed

20 files changed

+33
-33
lines changed

web/pgadmin/dashboard/static/js/Dashboard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ function Dashboard({
868868
})
869869
.then((res) => {
870870
if (res?.data?.['logs_disabled']) {
871-
setSsMsg(gettext('Please enable the logging to view the server logs or check the log file is in place or not.'));
871+
setSsMsg(gettext('Please enable logging to view the server logs, or check if the log file is in place.'));
872872
} else {
873873
setDashData(parseData(res.data));
874874
}

web/pgadmin/dashboard/static/js/SystemStats/Summary.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default function Summary({preferences, sid, did, pageVisible, enablePoll=
136136
{ icon: '', name: gettext('Host name'), value: gettext(os_info_obj['host_name']) },
137137
{ icon: '', name: gettext('Domain name'), value: gettext(os_info_obj['domain_name']) },
138138
{ icon: '', name: gettext('Architecture'), value: gettext(os_info_obj['architecture']) },
139-
{ icon: '', name: gettext('Os up since seconds'), value: gettext(os_info_obj['os_up_since_seconds']) },
139+
{ icon: '', name: gettext('OS uptime (seconds)'), value: gettext(os_info_obj['os_up_since_seconds']) },
140140
];
141141
setOsStats(os_info_list);
142142

@@ -145,7 +145,7 @@ export default function Summary({preferences, sid, did, pageVisible, enablePoll=
145145
{ icon: '', name: gettext('Vendor'), value: gettext(cpu_info_obj['vendor']) },
146146
{ icon: '', name: gettext('Description'), value: gettext(cpu_info_obj['description']) },
147147
{ icon: '', name: gettext('Model name'), value: gettext(cpu_info_obj['model_name']) },
148-
{ icon: '', name: gettext('No of cores'), value: gettext(cpu_info_obj['no_of_cores']) },
148+
{ icon: '', name: gettext('Number of cores'), value: gettext(cpu_info_obj['no_of_cores']) },
149149
{ icon: '', name: gettext('Architecture'), value: gettext(cpu_info_obj['architecture']) },
150150
{ icon: '', name: gettext('Clock speed Hz'), value: gettext(cpu_info_obj['clock_speed_hz']) },
151151
{ icon: '', name: gettext('L1 dcache size'), value: gettext(cpu_info_obj['l1dcache_size']) },

web/pgadmin/misc/cloud/static/js/CloudWizard.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ export default function CloudWizard({ nodeInfo, nodeData, onClose, cloudPanelId}
412412
<WizardStep stepId={1} >
413413
<Box sx={{ position: 'relative',top: '20%'}}>
414414
{cloudProvider == CLOUD_PROVIDERS.BIGANIMAL && <Box sx={{ marginBottom: '1em', display: 'flex'}}>
415-
<Box>{gettext('The verification code to authenticate the pgAdmin to EDB BigAnimal is: ')} <strong>{verificationCode}</strong>
416-
<br/>{gettext('By clicking the below button, you will be redirected to the EDB BigAnimal authentication page in a new tab.')}
415+
<Box>{gettext('The verification code to authenticate pgAdmin to EDB BigAnimal is: ')} <strong>{verificationCode}</strong>
416+
<br/>{gettext('By clicking the button below, you will be redirected to the EDB BigAnimal authentication page in a new tab.')}
417417
</Box>
418418
</Box>}
419419
{cloudProvider == CLOUD_PROVIDERS.BIGANIMAL && <PrimaryButton onClick={authenticateBigAnimal} disabled={verificationIntiated}>

web/pgadmin/misc/workspaces/static/js/WorkspaceWelcomePage.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ export default function WorkspaceWelcomePage({ mode }) {
8989
let welcomeIcon = <QueryToolIcon style={{height: '1.5rem'}} />;
9090
let welcomeTitle = gettext('Welcome to the Query Tool Workspace!');
9191
let welcomeFirst = gettext('The Query Tool is a robust and versatile environment designed for executing SQL commands and reviewing result sets efficiently.');
92-
let welcomeSecond = gettext('In this workspace, you can seamlessly open and manage multiple query tabs, making it easier to organize your work. You can select the existing servers or create a completely new ad-hoc connection to any database server as needed.');
92+
let welcomeSecond = gettext('In this workspace, you can seamlessly open and manage multiple query tabs, making it easier to organize your work. You can connect to existing servers or create an ad-hoc connection to any database server as needed.');
9393

9494
if (mode == WORKSPACES.PSQL_TOOL) {
9595
welcomeIcon = <TerminalRoundedIcon style={{height: '2rem', width: 'unset'}} />;
9696
welcomeTitle = gettext('Welcome to the PSQL Workspace!');
9797
welcomeFirst = gettext('The PSQL tool allows users to connect to PostgreSQL or EDB Advanced server using the psql command line interface.');
98-
welcomeSecond = gettext('In this workspace, you can seamlessly open and manage multiple PSQL tabs, making it easier to organize your work. You can select the existing servers or create a completely new ad-hoc connection to any database server as needed.');
98+
welcomeSecond = gettext('In this workspace, you can seamlessly open and manage multiple PSQL tabs, making it easier to organize your work. You can connect to existing servers or create an ad-hoc connection to any database server as needed.');
9999
}
100100

101101
return (

web/pgadmin/preferences/static/js/components/PreferencesHelper.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function reloadPgAdmin() {
3232
export function getNoteField(node, subNode, nodeData, note = '') {
3333
// Check and add the note for the element.
3434
if (subNode.label === gettext('Nodes') && node.label === gettext('Browser')) {
35-
note = gettext('This settings is to Show/Hide nodes in the object explorer.');
35+
note = gettext('This setting is used to show/hide nodes in the Object Explorer.');
3636
}
3737

3838
if (note.length > 0) {

web/pgadmin/preferences/static/js/components/RightPreference.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function RightPreference({ schema, filteredItemIds, selectedItem,
4646
return (
4747
<Box className='PreferencesComponent-preferencesContainer'>
4848
<Box className='PreferencesComponent-noSelection'>
49-
<Box>{gettext('Navigate to any below item to view or edit its preferences.')}</Box>
49+
<Box>{gettext('Select an item below to view or edit its preferences.')}</Box>
5050
{selectedItem.children.map((child) => (
5151
<Box key={child.id}>
5252
<Link component='button' onClick={()=>setSelectedItem(child)} underline="hover">{child.name}</Link>

web/pgadmin/static/js/Dialogs/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function checkMasterPassword(data, masterpass_callback_queue, cancel_call
8989
if(isKeyring) {
9090
if(error){
9191
pgAdmin.Browser.notifier.alert(gettext('Migration failed'),
92-
gettext(`Passwords previously saved can not be re-encrypted using encryption key stored in the ${res.data.data.keyring_name}. due to ${error}`));
92+
gettext(`Passwords previously saved cannot be re-encrypted using the encryption key stored in the ${res.data.data.keyring_name} due to ${error}.`));
9393
}else{
9494
pgAdmin.Browser.notifier.alert(gettext('Migration successful'),
9595
gettext(`Passwords previously saved are re-encrypted using encryption key stored in the ${res.data.data.keyring_name}.`));

web/pgadmin/static/js/Explain/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ function parsePlanData(data, ctx) {
506506
}
507507

508508
export default function Explain({plans=[],
509-
emptyMessage=gettext('Use Explain/Explain analyze button to generate the plan for a query. Alternatively, you can also execute "EXPLAIN (FORMAT JSON) [QUERY]".')
509+
emptyMessage=gettext('Use the Explain/Explain Analyze button to generate the plan for a query. Alternatively, you can also execute "EXPLAIN (FORMAT JSON) [QUERY]".')
510510
}) {
511511

512512
const [tabValue, setTabValue] = React.useState(0);

web/pgadmin/static/js/SchemaView/utils/createFieldControls.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const createFieldControls = ({
7272

7373
if (field.isFullTab) {
7474
if (field.type === inlineGroup)
75-
throw new Error('Inline group can not be full tab control');
75+
throw new Error('Inline group cannot be a full tab control.');
7676

7777
const { visible } = schemaState.options(accessPath.concat(field.id));
7878
currentGroup = createGroup(
@@ -107,11 +107,11 @@ export const createFieldControls = ({
107107

108108
if (field.type === inlineGroup) {
109109
if (inlineGroupId) {
110-
throw new Error('inline-group can not be created within inline-group');
110+
throw new Error('An inline-group cannot be created within an inline-group.');
111111
}
112112
inlineGroup = currentGroup.inlineGroups[inlineGroupId];
113113
if (inlineGroup) {
114-
throw new Error('inline-group must be unique-id within a tab group');
114+
throw new Error('An inline-group must have a unique ID within a tab group.');
115115
}
116116
inlineGroup = currentGroup.inlineGroups[inlineGroupId] = {
117117
control: View('InlineView'),

web/pgadmin/static/js/SecurityPages/ForgotPasswordPage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function ForgotPasswordPage({csrfToken, actionUrl, ...props}) {
1313
};
1414

1515
return (
16-
<BasePage title={gettext('Forget Password')} pageImage={<ForgotPasswordImage style={{height: '100%', width: '100%'}} />} {...props} >
16+
<BasePage title={gettext('Forgot Password')} pageImage={<ForgotPasswordImage style={{height: '100%', width: '100%'}} />} {...props} >
1717
<form style={{display:'flex', gap:'15px', flexDirection:'column'}} action={actionUrl} method="POST">
1818
<input name="csrf_token" defaultValue={csrfToken} hidden/>
1919
<div>{gettext('Enter the email address for the user account you wish to recover the password for:')}</div>

0 commit comments

Comments
 (0)