Skip to content

Commit 4b21741

Browse files
SmallJokerparamat
authored andcommittedJul 25, 2018
Settings: Fix indents, chat_message_*. Update translations (#7580)
1 parent 7454deb commit 4b21741

File tree

3 files changed

+85
-54
lines changed

3 files changed

+85
-54
lines changed
 

Diff for: ‎builtin/settingtypes.txt

+29-29
Original file line numberDiff line numberDiff line change
@@ -895,8 +895,8 @@ server_announce (Announce server) bool false
895895
# Announce to this serverlist.
896896
serverlist_url (Serverlist URL) string servers.minetest.net
897897

898-
# Remove color codes from incoming chat messages
899-
# Use this to stop players from being able to use color in their messages
898+
# Remove color codes from incoming chat messages
899+
# Use this to stop players from being able to use color in their messages
900900
strip_color_codes (Strip color codes) bool false
901901

902902
[*Network]
@@ -1049,13 +1049,13 @@ world_start_time (World start time) int 5250 0 23999
10491049
server_map_save_interval (Map save interval) float 5.3
10501050

10511051
# Set the maximum character length of a chat message sent by clients.
1052-
# chat_message_max_size int 500
1052+
chat_message_max_size (Chat message max length) int 500
10531053

1054-
# Limit a single player to send X messages per 10 seconds.
1055-
# chat_message_limit_per_10sec float 10.0
1054+
# Amount of messages a player may send per 10 seconds.
1055+
chat_message_limit_per_10sec (Chat message count limit) float 10.0
10561056

1057-
# Kick player if send more than X messages per 10 seconds.
1058-
# chat_message_limit_trigger_kick int 50
1057+
# Kick players who sent more than X messages per 10 seconds.
1058+
chat_message_limit_trigger_kick (Chat message kick threshold) int 50
10591059

10601060
[**Physics]
10611061

@@ -1157,8 +1157,8 @@ secure.enable_security (Enable mod security) bool true
11571157
# functions even when mod security is on (via request_insecure_environment()).
11581158
secure.trusted_mods (Trusted mods) string
11591159

1160-
# Comma-separated list of mods that are allowed to access HTTP APIs, which
1161-
# allow them to upload and download data to/from the internet.
1160+
# Comma-separated list of mods that are allowed to access HTTP APIs, which
1161+
# allow them to upload and download data to/from the internet.
11621162
secure.http_mods (HTTP mods) string
11631163

11641164
[*Advanced]
@@ -1773,30 +1773,30 @@ mgfractal_np_cave2 (Cave2 noise) noise_params_3d 0, 12, (67, 67, 67), 10325, 3,
17731773
# 'altitude_dry': Reduces humidity with altitude.
17741774
mgvalleys_spflags (Mapgen Valleys specific flags) flags altitude_chill,humid_rivers,vary_river_depth,altitude_dry altitude_chill,noaltitude_chill,humid_rivers,nohumid_rivers,vary_river_depth,novary_river_depth,altitude_dry,noaltitude_dry
17751775

1776-
# The vertical distance over which heat drops by 20 if 'altitude_chill' is
1777-
# enabled. Also the vertical distance over which humidity drops by 10 if
1778-
# 'altitude_dry' is enabled.
1776+
# The vertical distance over which heat drops by 20 if 'altitude_chill' is
1777+
# enabled. Also the vertical distance over which humidity drops by 10 if
1778+
# 'altitude_dry' is enabled.
17791779
mgvalleys_altitude_chill (Altitude chill) int 90
17801780

1781-
# Depth below which you'll find large caves.
1781+
# Depth below which you'll find large caves.
17821782
mgvalleys_large_cave_depth (Large cave depth) int -33
17831783

1784-
# Y of upper limit of lava in large caves.
1784+
# Y of upper limit of lava in large caves.
17851785
mgvalleys_lava_depth (Lava depth) int 1
17861786

1787-
# Depth below which you'll find giant caverns.
1787+
# Depth below which you'll find giant caverns.
17881788
mgvalleys_cavern_limit (Cavern upper limit) int -256
17891789

1790-
# Y-distance over which caverns expand to full size.
1790+
# Y-distance over which caverns expand to full size.
17911791
mgvalleys_cavern_taper (Cavern taper) int 192
17921792

1793-
# Defines full size of caverns, smaller values create larger caverns.
1793+
# Defines full size of caverns, smaller values create larger caverns.
17941794
mgvalleys_cavern_threshold (Cavern threshold) float 0.6
17951795

1796-
# How deep to make rivers.
1796+
# How deep to make rivers.
17971797
mgvalleys_river_depth (River depth) int 4
17981798

1799-
# How wide to make rivers.
1799+
# How wide to make rivers.
18001800
mgvalleys_river_size (River size) int 5
18011801

18021802
# Controls width of tunnels, a smaller value creates wider tunnels.
@@ -1810,34 +1810,34 @@ mgvalleys_dungeon_ymax (Dungeon maximum Y) int 63
18101810

18111811
[**Noises]
18121812

1813-
# Caves and tunnels form at the intersection of the two noises.
1813+
# Caves and tunnels form at the intersection of the two noises.
18141814
mgvalleys_np_cave1 (Cave noise #1) noise_params_3d 0, 12, (61, 61, 61), 52534, 3, 0.5, 2.0
18151815

1816-
# Caves and tunnels form at the intersection of the two noises.
1816+
# Caves and tunnels form at the intersection of the two noises.
18171817
mgvalleys_np_cave2 (Cave noise #2) noise_params_3d 0, 12, (67, 67, 67), 10325, 3, 0.5, 2.0
18181818

1819-
# The depth of dirt or other biome filler node.
1819+
# The depth of dirt or other biome filler node.
18201820
mgvalleys_np_filler_depth (Filler depth) noise_params_2d 0, 1.2, (256, 256, 256), 1605, 3, 0.5, 2.0, eased
18211821

1822-
# 3D noise defining giant caverns.
1822+
# 3D noise defining giant caverns.
18231823
mgvalleys_np_cavern (Cavern noise) noise_params_3d 0, 1, (768, 256, 768), 59033, 6, 0.63, 2.0
18241824

1825-
# River noise. Rivers occur close to noise value zero.
1825+
# River noise. Rivers occur close to noise value zero.
18261826
mgvalleys_np_rivers (River noise) noise_params_2d 0, 1, (256, 256, 256), -6050, 5, 0.6, 2.0, eased
18271827

1828-
# Base terrain height.
1828+
# Base terrain height.
18291829
mgvalleys_np_terrain_height (Terrain height) noise_params_2d -10, 50, (1024, 1024, 1024), 5202, 6, 0.4, 2.0, eased
18301830

1831-
# Raises terrain to make valleys around the rivers.
1831+
# Raises terrain to make valleys around the rivers.
18321832
mgvalleys_np_valley_depth (Valley depth) noise_params_2d 5, 4, (512, 512, 512), -1914, 1, 1.0, 2.0, eased
18331833

1834-
# Slope and fill work together to modify the heights.
1834+
# Slope and fill work together to modify the heights.
18351835
mgvalleys_np_inter_valley_fill (Valley fill) noise_params_3d 0, 1, (256, 512, 256), 1993, 6, 0.8, 2.0
18361836

1837-
# Amplifies the valleys.
1837+
# Amplifies the valleys.
18381838
mgvalleys_np_valley_profile (Valley profile) noise_params_2d 0.6, 0.5, (512, 512, 512), 777, 1, 1.0, 2.0, eased
18391839

1840-
# Slope and fill work together to modify the heights.
1840+
# Slope and fill work together to modify the heights.
18411841
mgvalleys_np_inter_valley_slope (Valley slope) noise_params_2d 0.5, 0.5, (128, 128, 128), 746, 1, 1.0, 2.0, eased
18421842

18431843
[*Advanced]

Diff for: ‎minetest.conf.example

+38-13
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@
9696
# type: bool
9797
# fixed_virtual_joystick = false
9898

99+
# (Android) Use virtual joystick to trigger "aux" button.
100+
# If enabled, virtual joystick will also tap "aux" button when out of main circle.
101+
# type: bool
102+
# virtual_joystick_triggers_aux = false
103+
99104
# Enable joysticks
100105
# type: bool
101106
# enable_joysticks = false
@@ -465,7 +470,9 @@
465470

466471
### Filtering
467472

468-
# Use mip mapping to scale textures. May slightly increase performance.
473+
# Use mip mapping to scale textures. May slightly increase performance,
474+
# especially when using a high resolution texture pack.
475+
# Gamma correct downscaling is not supported.
469476
# type: bool
470477
# mip_map = false
471478

@@ -694,6 +701,10 @@
694701
# texture_path =
695702

696703
# The rendering back-end for Irrlicht.
704+
# A restart is required after changing this.
705+
# Note: on Android, stick with OGLES1 if unsure! App may fail to start otherwise.
706+
# On other platforms, OpenGL is recommended, and it’s the only driver with
707+
# shader support currently.
697708
# type: enum values: null, software, burningsvideo, direct3d8, direct3d9, opengl, ogles1, ogles2
698709
# video_driver = opengl
699710

@@ -1255,6 +1266,18 @@
12551266
# type: float
12561267
# server_map_save_interval = 5.3
12571268

1269+
# Set the maximum character length of a chat message sent by clients.
1270+
# type: int
1271+
# chat_message_max_size = 500
1272+
1273+
# Amount of messages a player may send per 10 seconds.
1274+
# type: float
1275+
# chat_message_limit_per_10sec = 10.0
1276+
1277+
# Kick players who sent more than X messages per 10 seconds.
1278+
# type: int
1279+
# chat_message_limit_trigger_kick = 50
1280+
12581281
### Physics
12591282

12601283
# type: float
@@ -1372,19 +1395,19 @@
13721395
# server_side_occlusion_culling = true
13731396

13741397
# Restricts the access of certain client-side functions on servers
1375-
# Combine these byteflags below to restrict more client-side features:
1398+
# Combine these byteflags below to restrict client-side features:
13761399
# LOAD_CLIENT_MODS: 1 (disable client mods loading)
13771400
# CHAT_MESSAGES: 2 (disable send_chat_message call client-side)
13781401
# READ_ITEMDEFS: 4 (disable get_item_def call client-side)
13791402
# READ_NODEDEFS: 8 (disable get_node_def call client-side)
13801403
# LOOKUP_NODES_LIMIT: 16 (limits get_node call client-side to csm_restriction_noderange)
13811404
# type: int
1382-
# csm_restriction_flags = 18
1405+
# csm_restriction_flags = 30
13831406

13841407
# If the CSM restriction for node range is enabled, get_node calls are limited
13851408
# to this distance from the player to the node.
13861409
# type: int
1387-
# csm_restriction_noderange = 8
1410+
# csm_restriction_noderange = 0
13881411

13891412
## Security
13901413

@@ -2695,15 +2718,17 @@
26952718
## Mapgen Valleys
26962719

26972720
# Map generation attributes specific to Mapgen Valleys.
2698-
# 'altitude_chill' makes higher elevations colder, which may cause biome issues.
2699-
# 'humid_rivers' modifies the humidity around rivers and in areas where water would tend to pool,
2700-
# it may interfere with delicately adjusted biomes.
2701-
# Flags that are not enabled are not modified from the default.
2702-
# Flags starting with 'no' are used to explicitly disable them.
2703-
# type: flags possible values: altitude_chill, noaltitude_chill, humid_rivers, nohumid_rivers
2704-
# mg_valleys_spflags = altitude_chill,humid_rivers
2705-
2706-
# The altitude at which temperature drops by 20.
2721+
# 'altitude_chill': Reduces heat with altitude.
2722+
# 'humid_rivers': Increases humidity around rivers and where water pools.
2723+
# 'vary_river_depth': If enabled, low humidity and high heat causes rivers
2724+
# to become shallower and occasionally dry.
2725+
# 'altitude_dry': Reduces humidity with altitude.
2726+
# type: flags possible values: altitude_chill, noaltitude_chill, humid_rivers, nohumid_rivers, vary_river_depth, novary_river_depth, altitude_dry, noaltitude_dry
2727+
# mgvalleys_spflags = altitude_chill,humid_rivers,vary_river_depth,altitude_dry
2728+
2729+
# The vertical distance over which heat drops by 20 if 'altitude_chill' is
2730+
# enabled. Also the vertical distance over which humidity drops by 10 if
2731+
# 'altitude_dry' is enabled.
27072732
# type: int
27082733
# mgvalleys_altitude_chill = 90
27092734

Diff for: ‎src/settings_translation_file.cpp

+18-12
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ fake_function() {
3535
gettext("Random input");
3636
gettext("Enable random user input (only used for testing).");
3737
gettext("Continuous forward");
38-
gettext("Continuous forward movement, toggled by autoforward key. \nPress the autoforward key again or the backwards movement to disable.");
38+
gettext("Continuous forward movement, toggled by autoforward key.\nPress the autoforward key again or the backwards movement to disable.");
3939
gettext("Touch screen threshold");
4040
gettext("The length in pixels it takes for touch screen interaction to start.");
4141
gettext("Fixed virtual joystick");
4242
gettext("(Android) Fixes the position of virtual joystick.\nIf disabled, virtual joystick will center to first-touch's position.");
43+
gettext("Virtual joystick triggers aux button");
44+
gettext("(Android) Use virtual joystick to trigger \"aux\" button.\nIf enabled, virtual joystick will also tap \"aux\" button when out of main circle.");
4345
gettext("Enable joysticks");
4446
gettext("Enable joysticks");
4547
gettext("Joystick ID");
@@ -191,7 +193,7 @@ fake_function() {
191193
gettext("Adds particles when digging a node.");
192194
gettext("Filtering");
193195
gettext("Mipmapping");
194-
gettext("Use mip mapping to scale textures. May slightly increase performance.");
196+
gettext("Use mip mapping to scale textures. May slightly increase performance,\nespecially when using a high resolution texture pack.\nGamma correct downscaling is not supported.");
195197
gettext("Anisotropic filtering");
196198
gettext("Use anisotropic filtering when viewing at textures from an angle.");
197199
gettext("Bilinear filtering");
@@ -288,7 +290,7 @@ fake_function() {
288290
gettext("Texture path");
289291
gettext("Path to texture directory. All textures are first searched from here.");
290292
gettext("Video driver");
291-
gettext("The rendering back-end for Irrlicht.");
293+
gettext("The rendering back-end for Irrlicht.\nA restart is required after changing this.\nNote: on Android, stick with OGLES1 if unsure! App may fail to start otherwise.\nOn other platforms, OpenGL is recommended, and it’s the only driver with\nshader support currently.");
292294
gettext("Cloud radius");
293295
gettext("Radius of cloud area stated in number of 64 node cloud squares.\nValues larger than 26 will start to produce sharp cutoffs at cloud area corners.");
294296
gettext("View bobbing factor");
@@ -438,7 +440,7 @@ fake_function() {
438440
gettext("Announce server");
439441
gettext("Automaticaly report to the serverlist.");
440442
gettext("Serverlist URL");
441-
gettext("Announce to this serverlist.\nIf you want to announce your ipv6 address, use serverlist_url = v6.servers.minetest.net.");
443+
gettext("Announce to this serverlist.");
442444
gettext("Strip color codes");
443445
gettext("Remove color codes from incoming chat messages\nUse this to stop players from being able to use color in their messages");
444446
gettext("Network");
@@ -470,8 +472,6 @@ fake_function() {
470472
gettext("World directory (everything in the world is stored here).\nNot needed if starting from the main menu.");
471473
gettext("Item entity TTL");
472474
gettext("Time in seconds for item entity (dropped items) to live.\nSetting it to -1 disables the feature.");
473-
gettext("Status message on connection");
474-
gettext("If enabled, show the server status message on player connection.");
475475
gettext("Damage");
476476
gettext("Enable players getting damage and dying.");
477477
gettext("Creative");
@@ -522,6 +522,12 @@ fake_function() {
522522
gettext("Time of day when a new world is started, in millihours (0-23999).");
523523
gettext("Map save interval");
524524
gettext("Interval of saving important changes in the world, stated in seconds.");
525+
gettext("Chat message max length");
526+
gettext("Set the maximum character length of a chat message sent by clients.");
527+
gettext("Chat message count limit");
528+
gettext("Amount of messages a player may send per 10 seconds.");
529+
gettext("Chat message kick threshold");
530+
gettext("Kick players who sent more than X messages per 10 seconds.");
525531
gettext("Physics");
526532
gettext("Default acceleration");
527533
gettext("Acceleration in air");
@@ -567,8 +573,8 @@ fake_function() {
567573
gettext("Server side occlusion culling");
568574
gettext("If enabled the server will perform map block occlusion culling based on\non the eye position of the player. This can reduce the number of blocks\nsent to the client 50-80%. The client will not longer receive most invisible\nso that the utility of noclip mode is reduced.");
569575
gettext("Client side modding restrictions");
570-
gettext("Restricts the access of certain client-side functions on servers\nCombine these byteflags below to restrict more client-side features:\nLOAD_CLIENT_MODS: 1 (disable client mods loading)\nCHAT_MESSAGES: 2 (disable send_chat_message call client-side)\nREAD_ITEMDEFS: 4 (disable get_item_def call client-side)\nREAD_NODEDEFS: 8 (disable get_node_def call client-side)\nLOOKUP_NODES_LIMIT: 16 (limits get_node call client-side to csm_restriction_noderange)");
571-
gettext("Client side node lookup restriction");
576+
gettext("Restricts the access of certain client-side functions on servers\nCombine these byteflags below to restrict client-side features:\nLOAD_CLIENT_MODS: 1 (disable client mods loading)\nCHAT_MESSAGES: 2 (disable send_chat_message call client-side)\nREAD_ITEMDEFS: 4 (disable get_item_def call client-side)\nREAD_NODEDEFS: 8 (disable get_node_def call client-side)\nLOOKUP_NODES_LIMIT: 16 (limits get_node call client-side to csm_restriction_noderange)");
577+
gettext("Client side node lookup range restriction");
572578
gettext("If the CSM restriction for node range is enabled, get_node calls are limited\nto this distance from the player to the node.");
573579
gettext("Security");
574580
gettext("Enable mod security");
@@ -620,7 +626,7 @@ fake_function() {
620626
gettext("High-precision FPU");
621627
gettext("Makes DirectX work with LuaJIT. Disable if it causes troubles.");
622628
gettext("Main menu style");
623-
gettext("Changes the main menu UI:\n- Full: Multple singleplayer worlds, game choice, texture pack chooser, etc.\n- Simple: One singleplayer world, no game or texture pack choosers. May be necessary for smaller screens.\n- Auto: Simple on Android, full on everything else. ");
629+
gettext("Changes the main menu UI:\n- Full: Multple singleplayer worlds, game choice, texture pack chooser, etc.\n- Simple: One singleplayer world, no game or texture pack choosers. May be necessary for smaller screens.\n- Auto: Simple on Android, full on everything else.");
624630
gettext("Main menu script");
625631
gettext("Replaces the default main menu with a custom one.");
626632
gettext("Main menu game manager");
@@ -901,9 +907,9 @@ fake_function() {
901907
gettext("Second of 2 3D noises that together define tunnels.");
902908
gettext("Mapgen Valleys");
903909
gettext("Mapgen Valleys specific flags");
904-
gettext("Map generation attributes specific to Mapgen Valleys.\n'altitude_chill' makes higher elevations colder, which may cause biome issues.\n'humid_rivers' modifies the humidity around rivers and in areas where water would tend to pool,\nit may interfere with delicately adjusted biomes.\nFlags that are not enabled are not modified from the default.\nFlags starting with 'no' are used to explicitly disable them.");
910+
gettext("Map generation attributes specific to Mapgen Valleys.\n'altitude_chill': Reduces heat with altitude.\n'humid_rivers': Increases humidity around rivers and where water pools.\n'vary_river_depth': If enabled, low humidity and high heat causes rivers\nto become shallower and occasionally dry.\n'altitude_dry': Reduces humidity with altitude.");
905911
gettext("Altitude chill");
906-
gettext("The altitude at which temperature drops by 20.");
912+
gettext("The vertical distance over which heat drops by 20 if 'altitude_chill' is\nenabled. Also the vertical distance over which humidity drops by 10 if\n'altitude_dry' is enabled.");
907913
gettext("Large cave depth");
908914
gettext("Depth below which you'll find large caves.");
909915
gettext("Lava depth");
@@ -957,5 +963,5 @@ fake_function() {
957963
gettext("Limit of emerge queues to generate");
958964
gettext("Maximum number of blocks to be queued that are to be generated.\nSet to blank for an appropriate amount to be chosen automatically.");
959965
gettext("Number of emerge threads");
960-
gettext("Number of emerge threads to use. Make this field blank, or increase this number\nto use multiple threads. On multiprocessor systems, this will improve mapgen speed greatly\nat the cost of slightly buggy caves.");
966+
gettext("Number of emerge threads to use. Make this field blank or 0, or increase this number\nto use multiple threads. On multiprocessor systems, this will improve mapgen speed greatly\nat the cost of slightly buggy caves.");
961967
}

0 commit comments

Comments
 (0)
Please sign in to comment.