From 6963ba631ed0210cf0798e0b77ee83659bbc418a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 15 Dec 2022 12:26:59 +0100 Subject: [PATCH] Fix typos with codespell --- DONORS.md | 2 +- doc/classes/EditorSettings.xml | 4 ++-- doc/classes/PopupMenu.xml | 2 +- doc/classes/TranslationServer.xml | 2 +- drivers/gles2/rasterizer_scene_gles2.h | 2 +- editor/editor_file_system.cpp | 2 +- editor/plugins/spatial_editor_plugin.cpp | 2 +- misc/scripts/codespell.sh | 2 +- modules/gdnative/nativescript/nativescript.cpp | 4 ++-- platform/windows/tts_windows.cpp | 2 +- scene/main/http_request.cpp | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/DONORS.md b/DONORS.md index b50fc613175..5ce096b7783 100644 --- a/DONORS.md +++ b/DONORS.md @@ -183,7 +183,7 @@ generous deed immortalized in the next stable release of Godot Engine. Cristopher CT CzechBlueBea - CzłowiekImadło + CzłowiekImadło Daniel Reed Daniel Tebbutt Darrian Little diff --git a/doc/classes/EditorSettings.xml b/doc/classes/EditorSettings.xml index 2adebc6665f..2a4ddd40e22 100644 --- a/doc/classes/EditorSettings.xml +++ b/doc/classes/EditorSettings.xml @@ -296,8 +296,8 @@ The navigation scheme to use in the 3D editor. Changing this setting will affect the mouse buttons that must be held down to perform certain operations in the 3D editor viewport. - [b]Godot[/b] Middle mouse button to orbit, [kbd]Shift + Middle mouse button[/kbd] to pan. [kbd]Mouse wheel[/kbd] to zoom. - - [b]Maya:[/b] [kbd]Alt + Left mouse buttton[/kbd] to orbit. [kbd]Middle mouse button[/kbd] to pan, [kbd]Shift + Middle mouse button[/kbd] to pan 10 times faster. [kbd]Mouse wheel[/kbd] to zoom. - - [b]Modo:[/b] [kbd]Alt + Left mouse buttton[/kbd] to orbit. [kbd]Alt + Shift + Left mouse button[/kbd] to pan. [kbd]Ctrl + Alt + Left mouse button[/kbd] to zoom. + - [b]Maya:[/b] [kbd]Alt + Left mouse button[/kbd] to orbit. [kbd]Middle mouse button[/kbd] to pan, [kbd]Shift + Middle mouse button[/kbd] to pan 10 times faster. [kbd]Mouse wheel[/kbd] to zoom. + - [b]Modo:[/b] [kbd]Alt + Left mouse button[/kbd] to orbit. [kbd]Alt + Shift + Left mouse button[/kbd] to pan. [kbd]Ctrl + Alt + Left mouse button[/kbd] to zoom. See also [member editors/3d/freelook/freelook_navigation_scheme]. [b]Note:[/b] On certain window managers on Linux, the [kbd]Alt[/kbd] key will be intercepted by the window manager when clicking a mouse button at the same time. This means Godot will not see the modifier key as being pressed. diff --git a/doc/classes/PopupMenu.xml b/doc/classes/PopupMenu.xml index fc22aad7706..bea1e787382 100644 --- a/doc/classes/PopupMenu.xml +++ b/doc/classes/PopupMenu.xml @@ -493,7 +493,7 @@ Emitted when an item of some [code]id[/code] is pressed or its accelerator is activated. - [b]Note:[/b] If [code]id[/code] is negative (either explicitly or due to overflow), this will return the correponding index instead. + [b]Note:[/b] If [code]id[/code] is negative (either explicitly or due to overflow), this will return the corresponding index instead. diff --git a/doc/classes/TranslationServer.xml b/doc/classes/TranslationServer.xml index 6bf50c513b9..7853047a853 100644 --- a/doc/classes/TranslationServer.xml +++ b/doc/classes/TranslationServer.xml @@ -110,7 +110,7 @@ - Retunrs [code]locale[/code] string standardized to match known locales (e.g. [code]en-US[/code] would be matched to [code]en_US[/code]). + Returns [code]locale[/code] string standardized to match known locales (e.g. [code]en-US[/code] would be matched to [code]en_US[/code]). diff --git a/drivers/gles2/rasterizer_scene_gles2.h b/drivers/gles2/rasterizer_scene_gles2.h index ed541911280..c5bac81b92d 100644 --- a/drivers/gles2/rasterizer_scene_gles2.h +++ b/drivers/gles2/rasterizer_scene_gles2.h @@ -122,7 +122,7 @@ public: /* struct SceneDataUBO { - //this is a std140 compatible struct. Please read the OpenGL 3.3 Specificaiton spec before doing any changes + //this is a std140 compatible struct. Please read the OpenGL 3.3 Specification spec before doing any changes float projection_matrix[16]; float inv_projection_matrix[16]; float camera_inverse_matrix[16]; diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index 188e895a764..be7fe9a3995 100644 --- a/editor/editor_file_system.cpp +++ b/editor/editor_file_system.cpp @@ -1938,7 +1938,7 @@ void EditorFileSystem::reimport_files(const Vector &p_files) { if (group_file_cache.has(p_files[i])) { //maybe the file itself is a group! groups_to_reimport.insert(p_files[i]); - //groups do not belong to grups + //groups do not belong to groups group_file = String(); } else if (group_file != String()) { //it's a group file, add group to import and skip this file diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index a3a4aa45a48..9a9d177944e 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -989,7 +989,7 @@ void SpatialEditorViewport::_update_name() { } if (RoomManager::static_rooms_get_active_and_loaded()) { - // TRANSLATORS: This will be appended to the view name when Portal Occulusion is enabled. + // TRANSLATORS: This will be appended to the view name when Portal Occlusion is enabled. name += TTR(" [portals active]"); } diff --git a/misc/scripts/codespell.sh b/misc/scripts/codespell.sh index be7c1962a4c..1f84ba12339 100644 --- a/misc/scripts/codespell.sh +++ b/misc/scripts/codespell.sh @@ -1,5 +1,5 @@ #!/bin/sh -SKIP_LIST="./thirdparty,*.gen.*,*.po,*.pot,package-lock.json,./core/string/locales.h,./DONORS.md,./misc/dist/linux/org.godotengine.Godot.desktop,./misc/scripts/codespell.sh" +SKIP_LIST="./.git,./bin,./thirdparty,*.gen.*,*.po,*.pot,package-lock.json,./core/string/locales.h,./DONORS.md,./misc/dist/linux/org.godotengine.Godot.desktop,./misc/scripts/codespell.sh" IGNORE_LIST="ba,childs,commiting,complies,curvelinear,doubleclick,expct,fave,findn,gird,inout,leapyear,lod,nd,numer,ois,readded,ro,statics,switchs,te,varius,varn" codespell -w -q 3 -S "${SKIP_LIST}" -L "${IGNORE_LIST}" diff --git a/modules/gdnative/nativescript/nativescript.cpp b/modules/gdnative/nativescript/nativescript.cpp index 7aabea735ab..7cdc98e95e4 100644 --- a/modules/gdnative/nativescript/nativescript.cpp +++ b/modules/gdnative/nativescript/nativescript.cpp @@ -189,7 +189,7 @@ bool NativeScript::can_instance() const { #ifdef TOOLS_ENABLED // Only valid if this is either a tool script or a "regular" script. - // (so an environment whre scripting is disabled (and not the editor) would not + // (so an environment where scripting is disabled (and not the editor) would not // create objects). return script_data && (is_tool() || ScriptServer::is_scripting_enabled()); #else @@ -1760,7 +1760,7 @@ void NativeReloadNode::_notification(int p_what) { // Multiple GDNative libraries may be reloaded. The library and script // path should match to prevent failing `NSL->library_classes` lookup // from `get_script_desc()` in `script->_update_placeholder` below. - // This check also prevents "!script_data is true" error from occuring + // This check also prevents "!script_data is true" error from occurring // when e. g. re-focusing editor window. if (L->key() != U->key()) { continue; diff --git a/platform/windows/tts_windows.cpp b/platform/windows/tts_windows.cpp index d9a0d29b98a..7b853b3eb6b 100644 --- a/platform/windows/tts_windows.cpp +++ b/platform/windows/tts_windows.cpp @@ -90,7 +90,7 @@ void TTS_Windows::_update_tts() { UTData ut; ut.string = text; - ut.offset = pitch_tag.length(); // Substract injected tag offset. + ut.offset = pitch_tag.length(); // Subtract injected tag offset. ut.id = message.id; synth->SetVolume(message.volume); diff --git a/scene/main/http_request.cpp b/scene/main/http_request.cpp index 0a924358675..4537d094091 100644 --- a/scene/main/http_request.cpp +++ b/scene/main/http_request.cpp @@ -277,7 +277,7 @@ bool HTTPRequest::_update_connection() { call_deferred("_request_done", RESULT_CHUNKED_BODY_SIZE_MISMATCH, response_code, response_headers, PoolByteArray()); return true; - // Request migh have been done + // Request might have been done } else { // Did not request yet, do request