Skip to content

Commit

Permalink
Fix typos and en_US/en_GB inconsistency in files inside doc directory (
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdou-31 committed Oct 21, 2022
1 parent c78d565 commit 7e11b8e
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions doc/builtin_entities.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ artificially with `minetest.spawn_falling_node`.

Needs manual initialization when spawned using `/spawnentity`.

Default behaviour:
Default behavior:

* Falls down in a straight line (gravity = `movement_gravity` setting)
* Collides with `walkable` node
Expand Down Expand Up @@ -94,7 +94,7 @@ Needs manual initialization when spawned using `/spawnentity`.
* `set_item(self, item)`:
* Function to initialize the dropped item
* `item` (type `ItemStack`) specifies the item to represent
* `age`: Age in seconds. Behaviour according to the setting `item_entity_ttl`
* `age`: Age in seconds. Behavior according to the setting `item_entity_ttl`
* `itemstring`: Itemstring of the item that this item entity represents.
Read-only.

Expand Down
22 changes: 11 additions & 11 deletions doc/client_lua_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ examples.

#### `bgcolor[<color>;<fullscreen>]`
* Sets background color of formspec as `ColorString`
* If `true`, the background color is drawn fullscreen (does not effect the size of the formspec)
* If `true`, the background color is drawn fullscreen (does not affect the size of the formspec)

#### `background[<X>,<Y>;<W>,<H>;<texture name>]`
* Use a background. Inventory rectangles are not drawn then.
Expand All @@ -364,7 +364,7 @@ examples.
of this field.
* `x` and `y` position the field relative to the top left of the menu
* `w` and `h` are the size of the field
* Fields are a set height, but will be vertically centred on `h`
* Fields are a set height, but will be vertically centered on `h`
* Position and size units are inventory slots
* `name` is the name of the field as returned in fields to `on_receive_fields`
* `label`, if not blank, will be text printed on the top left above the field
Expand All @@ -376,7 +376,7 @@ examples.
of this field.
* `x` and `y` position the field relative to the top left of the menu
* `w` and `h` are the size of the field
* Fields are a set height, but will be vertically centred on `h`
* Fields are a set height, but will be vertically centered on `h`
* Position and size units are inventory slots
* `name` is the name of the field as returned in fields to `on_receive_fields`
* `label`, if not blank, will be text printed on the top left above the field
Expand Down Expand Up @@ -418,7 +418,7 @@ examples.
* Clickable button. When clicked, fields will be sent.
* `x`, `y` and `name` work as per field
* `w` and `h` are the size of the button
* Fixed button height. It will be vertically centred on `h`
* Fixed button height. It will be vertically centered on `h`
* `label` is the text on the button
* Position and size units are inventory slots

Expand Down Expand Up @@ -565,7 +565,7 @@ examples.
* `color` column options:
* `span=<value>`: number of following columns to affect (default: infinite)

**Note**: do _not_ use a element name starting with `key_`; those names are reserved to
**Note**: do _not_ use an element name starting with `key_`; those names are reserved to
pass key press events to formspec!

Spatial Vectors
Expand Down Expand Up @@ -684,15 +684,15 @@ Call these functions only at load time!
* Called always when a client receive a message
* Return `true` to mark the message as handled, which means that it will not be shown to chat
* `minetest.register_on_sending_chat_message(function(message))`
* Called always when a client send a message from chat
* Called always when a client sends a message from chat
* Return `true` to mark the message as handled, which means that it will not be sent to server
* `minetest.register_chatcommand(cmd, chatcommand definition)`
* Adds definition to minetest.registered_chatcommands
* `minetest.unregister_chatcommand(name)`
* Unregisters a chatcommands registered with register_chatcommand.
* `minetest.register_on_chatcommand(function(command, params))`
* Called always when a chatcommand is triggered, before `minetest.registered_chatcommands`
is checked to see if that the command exists, but after the input is parsed.
is checked to see if the command exists, but after the input is parsed.
* Return `true` to mark the command as handled, which means that the default
handlers will be prevented.
* `minetest.register_on_death(function())`
Expand Down Expand Up @@ -879,7 +879,7 @@ Call these functions only at load time!
* Unserializable things like functions and userdata are saved as null.
* **Warning**: JSON is more strict than the Lua table format.
1. You can only use strings and positive integers of at least one as keys.
2. You can not mix string and integer keys.
2. You cannot mix string and integer keys.
This is due to the fact that JSON has two distinct array and object values.
* Example: `write_json({10, {a = false}})`, returns `"[10, {\"a\": false}]"`
* `minetest.serialize(table)`: returns a string
Expand Down Expand Up @@ -911,7 +911,7 @@ Call these functions only at load time!
methods.
* `...` indicates method-specific arguments. Currently, no methods use this
* `minetest.rgba(red, green, blue[, alpha])`: returns a string
* Each argument is a 8 Bit unsigned integer
* Each argument is an 8 Bit unsigned integer
* Returns the ColorString from rgb or rgba values
* Example: `minetest.rgba(10, 20, 30, 40)`, returns `"#0A141E28"`
* `minetest.encode_base64(string)`: returns string encoded in base64
Expand Down Expand Up @@ -1216,7 +1216,7 @@ It can be created via `Raycast(pos1, pos2, objects, liquids)` or
paramtype = string, -- Paramtype of the node
paramtype2 = string, -- ParamType2 of the node
drawtype = string, -- Drawtype of the node
mesh = <string>, -- Mesh name if existant
mesh = <string>, -- Mesh name if existent
minimap_color = <Color>, -- Color of node on minimap *May not exist*
visual_scale = number, -- Visual scale of node
alpha = number, -- Alpha of the node. Only used for liquids
Expand Down Expand Up @@ -1336,7 +1336,7 @@ It can be created via `Raycast(pos1, pos2, objects, liquids)` or

Escape sequences
----------------
Most text can contain escape sequences, that can for example color the text.
Most text can contain escape sequences that can for example color the text.
There are a few exceptions: tab headers, dropdowns and vertical labels can't.
The following functions provide escape sequences:
* `minetest.get_color_escape_sequence(color)`:
Expand Down
4 changes: 2 additions & 2 deletions doc/direction.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ These goals were created from the top points in a
[roadmap brainstorm](https://github.com/minetest/minetest/issues/10461).
This should be reviewed approximately yearly, or when goals are achieved.

Pull requests that address one of these goals will be labelled as "Roadmap".
Pull requests that address one of these goals will be labeled as "Roadmap".
PRs that are not on the roadmap will be closed unless they receive a concept
approval within a week, issues can be used for preapproval.
Bug fixes are exempt for this, and are always accepted and prioritised.
Bug fixes are exempt for this, and are always accepted and prioritized.
See [CONTRIBUTING.md](../.github/CONTRIBUTING.md) for more info.

### 2.1 Rendering/Graphics improvements
Expand Down
2 changes: 1 addition & 1 deletion doc/fst_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ methods:
x, -- x width
y -- y height
}, -- special size for this tab (only relevant if no parent for tabview set)
on_change = function(type,old_tab,new_tab) -- called on tab chang, type is "ENTER" or "LEAVE"
on_change = function(type,old_tab,new_tab) -- called on tab change, type is "ENTER" or "LEAVE"
}
- set_autosave_tab(value)
^ tell tabview to automatically save current tabname as "tabview_name"_LAST
Expand Down
6 changes: 3 additions & 3 deletions doc/menu_lua_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The "gamedata" table is read when calling core.start(). It should contain:
{
playername = <name>,
password = <password>,
address = <IP/adress>,
address = <IP/address>,
port = <port>,
selected_world = <index>, -- 0 for client mode
singleplayer = <true/false>,
Expand Down Expand Up @@ -64,7 +64,7 @@ core.create_dir(absolute_path) (possible in async calls)
core.delete_dir(absolute_path) (possible in async calls)
^ absolute_path to directory to delete (needs to be absolute)
^ returns true/false
core.copy_dir(source,destination,keep_soure) (possible in async calls)
core.copy_dir(source,destination,keep_source) (possible in async calls)
^ source folder
^ destination folder
^ keep_source DEFAULT true --> if set to false source is deleted after copying
Expand All @@ -76,7 +76,7 @@ core.extract_zip(zipfile,destination) [unzip within path required]
^ destination folder to extract to
^ returns true/false
core.sound_play(spec, looped) -> handle
^ spec = SimpleSoundSpec (see lua-api.txt)
^ spec = SimpleSoundSpec (see lua_api.txt)
^ looped = bool
core.sound_stop(handle)
core.get_video_drivers()
Expand Down
4 changes: 2 additions & 2 deletions doc/texture_packs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Any other PNG files will be interpreted as textures. They must have the same
names as the textures they are supposed to override. For example, to override
the apple texture of Minetest Game, add a PNG file named `default_apple.png`.

The custom textures do not necceessarily require the same size as their
The custom textures do not necessarily require the same size as their
originals, but this might be required for a few particular textures. When
unsure, just test your texture pack in-game.

Expand Down Expand Up @@ -204,7 +204,7 @@ Here are targets you can choose from:
| special6 | The sixth entry in the special_tiles list |
| inventory | The inventory texture |
| wield | The texture used when held by the player |
| align_world=N | Overrides the "world align" behaviour of tiles ¹ |
| align_world=N | Overrides the "world align" behavior of tiles ¹ |

Nodes support all targets, but other items only support 'inventory'
and 'wield'.
Expand Down
4 changes: 2 additions & 2 deletions doc/world_format.txt
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ NOTE: Since version 29 zstd is used instead of zlib. In addition the entire
block is first serialized and then compressed (except the version byte).

u8 version
- map format version number, see serialisation.h for the latest number
- map format version number, see serialization.h for the latest number

u8 flags
- Flag bitmasks:
Expand Down Expand Up @@ -367,7 +367,7 @@ if map format version >= 29:
u16 name_len
u8[name_len] name
if map format version < 29:
-- Nothing right here, timpstamp and node id mappings are serialized later
-- Nothing right here, timestamp and node id mappings are serialized later

u8 content_width
- Number of bytes in the content (param0) fields of nodes
Expand Down

0 comments on commit 7e11b8e

Please sign in to comment.