Fixed Typos

This commit is contained in:
Ahmad 2024-05-23 12:22:41 +05:00 committed by GitHub
parent 301920747d
commit 5c30695d66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
18 changed files with 23 additions and 23 deletions

View File

@ -37,8 +37,8 @@ def __handle_mfa_validation_request(
mfa_method: str, user_mfa_auths: dict, form_data: dict
) -> None:
"""
An internal utlity function to execute mfa.validate(...) method in case, it
matched the following conditions:
An internal utility function to execute mfa.validate(...) method in case,
it matched the following conditions:
1. Method specified is a valid and in the supported methods list.
2. User has registered for this auth method.
@ -172,7 +172,7 @@ def _mfa_registration_view(
if form_data[mfa.name] == 'SETUP':
if supported_mfa['registered'] is True:
flash(_("'{}' is already registerd'").format(mfa.label),
flash(_("'{}' is already registered'").format(mfa.label),
MessageType.SUCCESS)
return None
@ -238,7 +238,7 @@ def __handle_registration_view_for_post_method(
_next_url (str) : Redirect to which url, when clicked on the
'continue' button on the registration page.
_mfa_auths (dict): A dict object returned by the method -
'mfa_suppored_methods'.
'mfa_supported_methods'.
Returns:
(Union[str, None], Union[Response, None], Union[dict, None]):
@ -289,7 +289,7 @@ def registration_view() -> Response:
A url end-point to register/deregister an authentication method.
It supports two HTTP methods:
* GET : Generate a view listing all the suppoted list with 'Setup',
* GET : Generate a view listing all the supported list with 'Setup',
or 'Delete' buttons. If user has registered for the auth method, it
will render a 'Delete' button next to it, and 'Setup' button
otherwise.

View File

@ -1479,7 +1479,7 @@ class ServerNode(PGChildNodeView):
If Yes, connect the server and return connection.
If No, Raise HTTP error and ask for the password.
In case of 'Save Password' request from user, excrypted Pasword
In case of 'Save Password' request from user, excrypted Password
will be stored in the respected server database and
establish the connection OR just connect the server and do not
store the password.

View File

@ -97,7 +97,7 @@ class EdbFuncModule(CollectionNodeModule):
"""
Register preferences for this module.
"""
# Add the node informaton for browser, not in respective
# Add the node information for browser, not in respective
# node preferences
self.browser_preference = Preferences.module('browser')
self.pref_show_system_objects = self.browser_preference.preference(
@ -665,7 +665,7 @@ class EdbProcModule(CollectionNodeModule):
"""
Register preferences for this module.
"""
# Add the node informaton for browser, not in respective
# Add the node information for browser, not in respective
# node preferences
self.browser_preference = Preferences.module('browser')
self.pref_show_system_objects = self.browser_preference.preference(

View File

@ -42,7 +42,7 @@ define('pgadmin.node.package', [
hasSQL: true,
hasDepends: true,
Init: function() {
/* Avoid mulitple registration of menus */
/* Avoid multiple registration of menus */
if (this.initialized)
return;

View File

@ -618,7 +618,7 @@ class ColumnsView(PGChildNodeView, DataTypeReader):
"""
Convert acl coming from client to required db parsing format.
:param data: Data.
:param old_data: old data for comparision and get name.
:param old_data: old data for Comparison and get name.
"""
# If name is not present in data then
# we will fetch it from old data, we also need schema & table name

View File

@ -66,7 +66,7 @@ define('pgadmin.node.database', [
},
width: '700px',
Init: function() {
/* Avoid mulitple registration of menus */
/* Avoid multiple registration of menus */
if (this.initialized)
return;

View File

@ -638,7 +638,7 @@ rolmembership:{
def check_precondition(action=None):
"""
This function will behave as a decorator which will checks the status
of the database connection for the maintainance database of the server,
of the database connection for the maintenance database of the server,
beforeexecuting rest of the operation for the wrapped function. It will
also attach manager, conn (maintenance connection for the server) as
properties of the instance.

View File

@ -78,7 +78,7 @@ define('pgadmin.node.role', [
return gettext('Group Role') + ' - ' + d.label;
},
Init: function() {
/* Avoid mulitple registration of menus */
/* Avoid multiple registration of menus */
if (this.initialized)
return;

View File

@ -516,7 +516,7 @@ class TablespaceView(PGChildNodeView):
def get_sql(self, gid, sid, data, tsid=None):
"""
This function will genrate sql from model/properties data
This function will generate sql from model/properties data
"""
required_args = [
'name'

View File

@ -47,7 +47,7 @@ define('pgadmin.node.tablespace', [
hasStatistics: true,
statsPrettifyFields: [gettext('Size')],
Init: function() {
/* Avoid mulitple registration of menus */
/* Avoid multiple registration of menus */
if (this.initialized)
return;

View File

@ -25,7 +25,7 @@ class ServerType():
Create an instance of this class to define new type of the server support,
In order to define new type of instance, you may want to override this
class with overriden function - instanceOf for type checking for
class with overridden function - instanceOf for type checking for
identification based on the version.
"""
registry = dict()

View File

@ -139,7 +139,7 @@ class DatabaseSchema extends BaseUISchema {
}
if (data.db_confirm_password.includes('\'') || data.db_confirm_password.includes('"') ||
data.db_confirm_password.includes('@') || data.db_confirm_password.includes('/')) {
setErrMsg('db_confirm_password', gettext('Invalid passowrd.'));
setErrMsg('db_confirm_password', gettext('Invalid password.'));
return true;
}

View File

@ -246,7 +246,7 @@ export function getBigAnimalSummary(cloud, bigAnimalClusterTypeData, bigAnimalIn
];
if(bigAnimalClusterTypeData.provider.includes('aws')){
rows4.push(createData(gettext('Volume IOPS'), bigAnimalInstanceData.volume_IOPS));
rows4.push(createData(gettext('Disk Throuhgput'), bigAnimalInstanceData.disk_throughput));
rows4.push(createData(gettext('Disk Throughput'), bigAnimalInstanceData.disk_throughput));
}
const rows5 = [

View File

@ -736,7 +736,7 @@ export default function DebuggerArgumentComponent({ debuggerInfo, restartDebug,
.catch((error) => {
setLoaderText('');
pgAdmin.Browser.notifier.alert(
gettext('Error occured: '),
gettext('Error occurred: '),
parseApiError(error)
);
});

View File

@ -32,7 +32,7 @@ class SchemaDiffModel:
def set_result(self, node_name, compare_result):
"""
This method set the result of the comparision based on nodes.
This method set the result of the Comparison based on nodes.
"""
self._comparison_result[node_name] = compare_result

View File

@ -76,7 +76,7 @@ export function Results() {
return (
<>
<Box className={classes.header}>
<span>{gettext('DDL Comparision')}</span>
<span>{gettext('DDL Comparison')}</span>
</Box>
<Box className={classes.labelContainer}>
<Box className={classes.label}>{gettext('Source')}</Box>

View File

@ -242,7 +242,7 @@ export function MainToolBar({containerRef, onFilterClick, onManageMacros}) {
queryToolCtx.modal.showModal(gettext('Commit transaction?'), (closeModal)=>(
<ConfirmTransactionContent
closeModal={closeModal}
text={gettext('The current transaction is not commited to the database. '
text={gettext('The current transaction is not committed to the database. '
+'Do you want to commit or rollback the transaction?')}
onRollback={()=>{
onExecutionDone();

View File

@ -28,7 +28,7 @@ def save_changed_data(changed_data, columns_info, conn, command_obj,
conn: The connection object
columns_info: session_obj['columns_info']
client_primary_key: session_obj['client_primary_key']
auto_commit: If the changes should be commited automatically.
auto_commit: If the changes should be committed automatically.
"""
status = False
res = None