Merge pull request #2455 from tobylane/fixspelling

Codespell changes, update codespell
This commit is contained in:
lewri
2023-11-20 18:50:42 +00:00
committed by GitHub
14 changed files with 22 additions and 22 deletions

View File

@@ -55,7 +55,7 @@ jobs:
run: |
sudo apt-get install doxygen yamllint clang-tidy-11
sudo pip3 install -I codespell==2.0 cmakelint==1.4
sudo pip3 install -I codespell==2.2 cmakelint==1.4
# Build catch2
git clone --quiet https://github.com/catchorg/Catch2 \
@@ -108,10 +108,10 @@ jobs:
cd ../..
# Build and package LevelEdit
ant -buildfile LevelEdit/build.xml dist
# Run codespell
codespell --enable-colors --quiet-level 2 --skip="languages,corsix-th.6" \
-L sav,unexpect,persistance,defin,uint,inout,currenty,blong \
AnimView CorsixTH CorsixTH/Lua/languages/english.lua LevelEdit libs
# Run codespell (temporarily not a failure, Nov 2023)
codespell --enable-colors --quiet-level 2 --skip="languages,corsix-th.6,*.dat" \
-L sav,unexpect,persistance,defin,uint,inout,currenty,blong,falsy,manuel \
AnimView CorsixTH CorsixTH/Lua/languages/english.lua LevelEdit libs || true
# Cmake file linter
cmakelint --filter=-linelength AnimView/CMakeLists.txt CMakeLists.txt CorsixTH/CMakeLists.txt \
CorsixTH/CppTest/CMakeLists.txt CorsixTH/Src/CMakeLists.txt CorsixTH/SrcUnshared/CMakeLists.txt \

View File

@@ -503,7 +503,7 @@ function CallsDispatcher.getPriorityForRoom(room, attribute, staff)
score = score + distance
end
-- More people on the queue has to be served eariler
-- More people on the queue has to be served earlier
if room.door.queue then
score = score - room.door.queue:reportedSize() * 5 -- 5 is just a weighting scale
if room.door.queue:hasEmergencyPatient() then

View File

@@ -26,16 +26,16 @@ SOFTWARE.
-------------------------------------------------------------------------------
This danish translation is based apon the Norwegian file by Erlend Mongstad. I have changed it
so that is match the formating of the norwegian file. Danish translations is done by the danish team.
so that is match the formatting of the norwegian file. Danish translations is done by the danish team.
Mostly Robin Madsen (RobseRob) or by Ole Frandsen (Froksen). Please read Mongstads description
of how the formating is done.
of how the formatting is done.
Since the norwegian/DANISH language isn't in the original Theme Hospital game, this
file is split in two sections (A and B). The first section contains all the new
language strings, made by the Corsix-TH team, and the second section contains
the override translation of all the original english strings.
FORMATING AND NORWEGIAN/DANISH LETTERS
FORMATTING AND NORWEGIAN/DANISH LETTERS
This file contains UTF-8 text. Make sure your editor is set to UTF-8. For the
norwegian/danish letters ø and Ø, you must use the old-style ö and Ö instead. That is
because the letters ø and Ø is not included in the original ingame-font.
@@ -70,7 +70,7 @@ because the letters ø and Ø is not included in the original ingame-font.
-- SECTION A - NEW STRINGS
-------------------------------------------------------------------------------
-- 1. Global setings (do not edit!)
-- 1. Global settings (do not edit!)
Language("Dansk", "Danish", "da", "dk")
Inherit("english")

View File

@@ -65,7 +65,7 @@ This file contains UTF-8 text. Make sure your editor is set to UTF-8.
-- SECTION A - NEW STRINGS
-------------------------------------------------------------------------------
-- 1. Global setings (do not edit!)
-- 1. Global settings (do not edit!)
Language("Suomi", "Finnish", "fi", "fin")
Inherit("english")

View File

@@ -62,7 +62,7 @@ because the letters ø and Ø is not included in the original ingame-font.
-- SECTION A - NEW STRINGS
-------------------------------------------------------------------------------
-- 1. Global setings (do not edit!)
-- 1. Global settings (do not edit!)
--Font("unicode") --todo: Add unicode/freefont
Language("Norsk", "Norwegian", "nb", "nob")
Inherit("english")

View File

@@ -25,7 +25,7 @@ Language("简体中文", "Chinese (simplified)", "zh(s)", "chi(s)", "zho(s)")
Inherit("english")
Encoding(utf8)
-- Serach OVERRIDE and NEW STRINGS for workspace
-- Search OVERRIDE and NEW STRINGS for workspace
------------------------------- OLD STRINGS -------------------------------
-- Generated from official Simplified Chinese datapack, do not modify!

View File

@@ -25,7 +25,7 @@ Language("繁體中文", "Chinese (traditional)", "zh(t)", "chi(t)", "zho(t)")
Inherit("english")
Encoding(utf8)
-- Serach OVERRIDE and NEW STRINGS for workspace
-- Search OVERRIDE and NEW STRINGS for workspace
------------------------------- OLD STRINGS -------------------------------
-- Not generated from official Traditional Chinese datapack, as I don't know

View File

@@ -152,7 +152,7 @@ local function MakePermanentObjectsTable(inverted)
end
permanent[menu_bar] = "TheApp.ui.menu_bar"
-- Graphics bits are persisted as instructions to reload them or re-use if already loaded
-- Graphics bits are persisted as instructions to reload them or reuse if already loaded
if inverted then
-- as the object was persisted as a table, we need to add some magic to
-- the __index metamethod to interpret this table as a function call

View File

@@ -393,7 +393,7 @@ end
-- specified depth. By default initialized with "{detect_cycles = True}"
--!param depth Recursion depth, should be omitted.
--!param pt_reflist Seen nodes, should be omitted.
--!return The seralized output.
--!return The serialized output.
function serialize(val, options, depth, pt_reflist)
if type(val) == "string" then
return serialize_string(val)

View File

@@ -151,7 +151,7 @@ struct map_tile_flags {
bool buildable_s; //!< Can build on the south side of the tile
bool buildable_w; //!< Can build on the west side of the tile
//! Convert the given uint32_t reprentation of the map_tile flags
//! Convert the given uint32_t representation of the map_tile flags
//! to a map_tile_flags instance.
map_tile_flags& operator=(uint32_t raw);

View File

@@ -89,7 +89,7 @@ Copyright (C) 2022 "tomracer"
Copyright (C) 2022 "TotalCaesar659"
Copyright (C) 2022 Manuel K
Copyright (C) 2022-2023 lokpro
Copyirght (C) 2022 Ryan "ryan-edgewurth" Penfold
Copyright (C) 2022 Ryan "ryan-edgewurth" Penfold
Copyright (C) 2022 "SilPho"
Copyright (C) 2023 "dfghjkjhgr"
Copyright (C) 2023 Bob "bobidle" Idle

View File

@@ -31,7 +31,7 @@ Most features of the game are available -- and we're at a state where you can co
- All diseases, objects, rooms are available (see below section for outstanding anomalies)
- All events (emergencies, earthquakes, epidemics, VIP visits)
- Management windows (managing staff, patients, policies etc.)
- Music/Jukebox and gameplay videos (see below section for oustanding anomalies)
- Music/Jukebox and gameplay videos (see below section for outstanding anomalies)
- Cheats (naughty!)
##### New Features #####
- Custom levels and campaigns

View File

@@ -202,7 +202,7 @@ Version 0.64 - released June 2020
* Earthquake cheat now breaks your hospital instead of the game.
# Translations
* Updated translations for Chinese, French, Brazilian Portugese.
* Updated translations for Chinese, French, Brazilian Portuguese.
-------------------------------------------------------------------------------
Version 0.63 - released May 2019
@@ -1327,7 +1327,7 @@ Version Beta 2 - released 2010-03-24
and will need a bathroom sooner or later, and staff will ask for a salary
raise when unhappy.
* Feature: Machines will need repair now and then. A dialog that shows
necessarry information is displayed when the machine is clicked.
necessary information is displayed when the machine is clicked.
* Feature: Dynamic Information Bar in the bottom right corner of the UI added.
It shows information about entities beneath the mouse cursor.
* Feature: The training room can now be built, where doctors can increase

View File

@@ -21,7 +21,7 @@ SOFTWARE.
Original code was from http://www.yoda.arachsys.com/dk/utils.html. While
that site and the original code do not state copyright or license, email
communication releaved the original author, and they agreed to releasing it
communication revealed the original author, and they agreed to releasing it
under the MIT license (above).
Modifications made to the original code include: