Skip to content

Commit

Permalink
Fix typo in comments and message strings (#5287)
Browse files Browse the repository at this point in the history
  • Loading branch information
st-Wook committed May 12, 2023
1 parent 5dce068 commit c00d75f
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 32 deletions.
6 changes: 3 additions & 3 deletions Core/GDCore/Events/CodeGeneration/EventsCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ gd::String EventsCodeGenerator::GenerateConditionCode(
condition.SetParameters(parameters);
}

// Verify that there are no mismatchs between object type in parameters.
// Verify that there are no mismatches between object type in parameters.
for (std::size_t pNb = 0; pNb < instrInfos.parameters.size(); ++pNb) {
if (ParameterMetadata::IsObject(instrInfos.parameters[pNb].GetType())) {
gd::String objectInParameter =
Expand Down Expand Up @@ -481,7 +481,7 @@ gd::String EventsCodeGenerator::GenerateActionCode(
action.SetParameters(parameters);
}

// Verify that there are no mismatchs between object type in parameters.
// Verify that there are no mismatches between object type in parameters.
for (std::size_t pNb = 0; pNb < instrInfos.parameters.size(); ++pNb) {
if (ParameterMetadata::IsObject(instrInfos.parameters[pNb].GetType())) {
gd::String objectInParameter = action.GetParameter(pNb).GetPlainString();
Expand Down Expand Up @@ -1238,7 +1238,7 @@ size_t EventsCodeGenerator::GenerateSingleUsageUniqueIdFor(
<< std::endl;
}

// Base the unique id on the adress in memory so that the same instruction
// Base the unique id on the address in memory so that the same instruction
// in memory will get the same id across different code generations.
size_t uniqueId = (size_t)instruction;

Expand Down
4 changes: 2 additions & 2 deletions Core/GDCore/Events/CodeGeneration/EventsCodeGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ class GD_CORE_API EventsCodeGenerator {
* - string : %Text expression -> string
* - layer, color, file, stringWithSelector : Same as string
* - relationalOperator : Used to make a comparison between the function
resturn value and value of the parameter preceding the relationOperator
return value and value of the parameter preceding the relationOperator
parameter -> string
* - operator : Used to update a value using a setter and a getter -> string
* - key, mouse, objectvar, scenevar, globalvar, password, musicfile,
Expand Down Expand Up @@ -785,7 +785,7 @@ class GD_CORE_API EventsCodeGenerator {
const gd::Project* project; ///< The project being used.
const gd::Layout* scene; ///< The scene being generated.

bool errorOccurred; ///< Must be set to true if an error occured.
bool errorOccurred; ///< Must be set to true if an error occurred.
bool compilationForRuntime; ///< Is set to true if the code generation is
///< made for runtime only.

Expand Down
2 changes: 1 addition & 1 deletion Extensions/Firebase/B_firebasetools/D_analyticstools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace gdjs {
};

/**
* Sets the User ID (the name under wich the user will appear on the analytics).
* Sets the User ID (the name under which the user will appear on the analytics).
* Should be unique if possible.
* @param newUID The new User ID.
*/
Expand Down
2 changes: 1 addition & 1 deletion Extensions/Firebase/B_firebasetools/D_authtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ namespace gdjs {
};

/**
* Send an email to the users email adress to verify it.
* Send an email to the users email address to verify it.
* @note Even though this function is redundant, we keep it for consistency.
* @see currentUser.sendEmailVerification
*/
Expand Down
6 changes: 3 additions & 3 deletions Extensions/Firebase/B_firebasetools/D_cloudfirestoretools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace gdjs {
* from a query.
* @param queryID - The query to add the filter to.
* @param field - The field to run the condition on.
* @param op - The condtion operator.
* @param op - The condition operator.
* @param value - The value to check against.
*/
export const queryWhere = (
Expand Down Expand Up @@ -244,7 +244,7 @@ namespace gdjs {
/**
* Writes a variable in a collection as document.
* @param collectionName - The collection where to store the variable.
* @param variableName - The name under wich the variable will be saved (document name).
* @param variableName - The name under which the variable will be saved (document name).
* @param variable - The variable to write.
* @param [callbackStateVariable] - The variable where to store the result.
*/
Expand Down Expand Up @@ -304,7 +304,7 @@ namespace gdjs {
/**
* Updates a variable/document.
* @param collectionName - The collection where the document is stored.
* @param variableName - The name under wich the variable will be saved (document name).
* @param variableName - The name under which the variable will be saved (document name).
* @param variable - The variable to update.
* @param [callbackStateVariable] - The variable where to store the result.
*/
Expand Down
16 changes: 8 additions & 8 deletions Extensions/Firebase/B_firebasetools/D_databasetools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ namespace gdjs {

/**
* Updates a database variable.
* @param path - The name under wich the variable will be saved (document name).
* @param path - The name under which the variable will be saved (document name).
* @param variable - The variable to update.
* @param [callbackStateVariable] - The variable where to store the result.
*/
Expand All @@ -85,7 +85,7 @@ namespace gdjs {

/**
* Updates a field of a database variable.
* @param path - The name under wich the variable will be saved (document name).
* @param path - The name under which the variable will be saved (document name).
* @param field - The field where to update.
* @param value - The value to write.
* @param [callbackStateVariable] - The variable where to store the result.
Expand Down Expand Up @@ -114,7 +114,7 @@ namespace gdjs {

/**
* Deletes a database variable.
* @param path - The name under wich the variable will be saved (document name).
* @param path - The name under which the variable will be saved (document name).
* @param [callbackStateVariable] - The variable where to store the result.
*/
export const deleteVariable = (
Expand All @@ -137,7 +137,7 @@ namespace gdjs {

/**
* Deletes a field of a database variable.
* @param path - The name under wich the variable will be saved (document name).
* @param path - The name under which the variable will be saved (document name).
* @param field - The field to delete.
* @param [callbackStateVariable] - The variable where to store the result.
*/
Expand All @@ -164,7 +164,7 @@ namespace gdjs {

/**
* Gets a database variable and store it in a variable.
* @param path - The name under wich the variable will be saved (document name).
* @param path - The name under which the variable will be saved (document name).
* @param callbackValueVariable - The variable where to store the result.
* @param [callbackStateVariable] - The variable where to store if the operation was successful.
*/
Expand Down Expand Up @@ -192,7 +192,7 @@ namespace gdjs {

/**
* Gets a field of a database variable and store it in a variable.
* @param path - The name under wich the variable will be saved (document name).
* @param path - The name under which the variable will be saved (document name).
* @param field - The field to get.
* @param callbackValueVariable - The variable where to store the result.
* @param [callbackStateVariable] - The variable where to store if the operation was successful.
Expand Down Expand Up @@ -222,7 +222,7 @@ namespace gdjs {

/**
* Checks for existence of a database variable.
* @param path - The name under wich the variable will be saved (document name).
* @param path - The name under which the variable will be saved (document name).
* @param callbackValueVariable - The variable where to store the result.
* @param [callbackStateVariable] - The variable where to store if the operation was successful.
*/
Expand Down Expand Up @@ -254,7 +254,7 @@ namespace gdjs {

/**
* Checks for existence of a database variable.
* @param path - The name under wich the variable will be saved (document name).
* @param path - The name under which the variable will be saved (document name).
* @param field - The field to check.
* @param callbackValueVariable - The variable where to store the result.
* @param [callbackStateVariable] - The variable where to store if the operation was successful.
Expand Down
12 changes: 6 additions & 6 deletions Extensions/Firebase/JsExtension.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module.exports = {
_('Change user UID'),
_(
"Changes the current user's analytics identifier. " +
'This is what let Analytics differienciate user, ' +
'This is what let Analytics differentiate user, ' +
'so it should always be unique for each user. ' +
'For advanced usage only.'
),
Expand Down Expand Up @@ -178,9 +178,9 @@ module.exports = {
extension
.addAction(
'SetRemoteConfigAutoUpdateInterval',
_('Set Remote Config Auto Update Inteval'),
_('Sets Remote Config Auto Update Inteval.'),
_('Set Remote Config Auto Update Inteval to _PARAM0_'),
_('Set Remote Config Auto Update Interval'),
_('Sets Remote Config Auto Update Interval.'),
_('Set Remote Config Auto Update Interval to _PARAM0_'),
_('Remote Config'),
'JsPlatform/Extensions/firebase.png',
'JsPlatform/Extensions/firebase.png'
Expand Down Expand Up @@ -400,9 +400,9 @@ module.exports = {
extension
.addStrExpression(
'GetAuthToken',
_('Get the user authentififcation token'),
_('Get the user authentication token'),
_(
'Get the user authentififcation token. The token is the proof of authentication.'
'Get the user authentication token. The token is the proof of authentication.'
),
_('Authentication'),
'JsPlatform/Extensions/firebase.png'
Expand Down
4 changes: 2 additions & 2 deletions Extensions/Firebase/tests/FirebaseExtension.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ describeIfOnline('Firebase extension end-to-end tests', function () {
],
});

// Query with selector fitler
// Query with selector filter
gdjs.evtTools.firebaseTools.firestore.startQueryFrom(
'selector',
'main'
Expand Down Expand Up @@ -549,7 +549,7 @@ describeIfOnline('Firebase extension end-to-end tests', function () {
errors = true;
}

// No error was throwm, there is an issue
// No error was thrown, there is an issue
if (!errors)
throw new Error('Expected wrong credentials to prevent login');

Expand Down
4 changes: 2 additions & 2 deletions Extensions/TileMap/JsExtension.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ const defineTileMap = function (
_(
'Set the Tiled or LDtk file containing the Tilemap data to display. This is usually the main file exported from Tiled/LDtk.'
),
_('Set the tilemape file of _PARAM0_ to _PARAM1_'),
_('Set the tilemap file of _PARAM0_ to _PARAM1_'),
'',
'JsPlatform/Extensions/tile_map.svg',
'JsPlatform/Extensions/tile_map.svg'
Expand Down Expand Up @@ -274,7 +274,7 @@ const defineTileMap = function (
'SetTilesetJsonFile',
_('Tileset JSON file'),
_(
'Set the JSON file with the tileset data (sometimes that is embeded in the Tilemap, so not needed)'
'Set the JSON file with the tileset data (sometimes that is embedded in the Tilemap, so not needed)'
),
_('Set the tileset JSON file of _PARAM0_ to _PARAM1_'),
'',
Expand Down
6 changes: 3 additions & 3 deletions GDJS/GDJS/Extensions/Builtin/CommonInstructionsExtension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ CommonInstructionsExtension::CommonInstructionsExtension() {
codeGenerator.AddGlobalDeclaration(forEachObjectsList + " = [];\n");

if (realObjects.size() !=
1) //(We write a slighty more simple ( and optimized ) output code
1) //(We write a slightly more simple ( and optimized ) output code
// when only one object list is used.)
{
outputCode += forEachTotalCountVar + " = 0;\n";
Expand Down Expand Up @@ -732,7 +732,7 @@ CommonInstructionsExtension::CommonInstructionsExtension() {

// For loop declaration
if (realObjects.size() ==
1) // We write a slighty more simple ( and optimized ) output code
1) // We write a slightly more simple ( and optimized ) output code
// when only one object list is used.
outputCode +=
"for (" + forEachIndexVar + " = 0;" + forEachIndexVar + " < " +
Expand All @@ -748,7 +748,7 @@ CommonInstructionsExtension::CommonInstructionsExtension() {

// Pick one object
if (realObjects.size() == 1) {
// We write a slighty more simple ( and optimized ) output code
// We write a slightly more simple ( and optimized ) output code
// when only one object list is used.
gd::String temporary = codeGenerator.GetCodeNamespaceAccessor() +
"forEachTemporary" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const GameMonetization = ({ game, onGameUpdated }: Props) => {
}}
label={
<Trans>
Allow to display advertisments on the game page on gd.games.
Allow to display advertisements on the game page on gd.games.
</Trans>
}
tooltipOrHelperText={
Expand Down

0 comments on commit c00d75f

Please sign in to comment.