From 84aee17901afb4c5d31081f58da39ceba5563714 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Mon, 13 Feb 2023 11:27:12 +0800 Subject: Improvements and fixes based on Weblate comments * Description of `ui_text_submit` action should be "Submit Text" instead of "Text Submitted". * Spell out "Animation" instead of using "Anim.". * Treat "Max" as regular word instead of writing "Max.". * Use generic "Set %s" for action name instead of a dedicated "Set target_position". * Add translator comment for: * "Inclusive" and "Self" in the profiler. * Places where it needs the context about being an editor progress label. * "Duplicated Animation Name" since it's refering to the new name of a duplicated animation. * Disambiguation of "View Plane Transform", "Paste Selects" and "Display Normal". * Fix wrong undo action name for renaming an input action. * Fix missing end quote in a shader error message. * In class reference: * Fix duplicated "if" in the description of `signf()`. * Fix mismatched example output in `String.operator %()`. * Fix typo in the description of `Decal.texture_emission`. * Unify description of `String.match()` and `StringName.match()`. --- doc/classes/@GlobalScope.xml | 2 +- doc/classes/Decal.xml | 2 +- doc/classes/String.xml | 2 +- doc/classes/StringName.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml index 55810156a1..012ba5bf92 100644 --- a/doc/classes/@GlobalScope.xml +++ b/doc/classes/@GlobalScope.xml @@ -1139,7 +1139,7 @@ - Returns [code]-1.0[/code] if [param x] is negative, [code]1.0[/code] if [param x] is positive, and [code]0.0[/code] if if [param x] is zero. + Returns [code]-1.0[/code] if [param x] is negative, [code]1.0[/code] if [param x] is positive, and [code]0.0[/code] if [param x] is zero. [codeblock] sign(-6.5) # Returns -1.0 sign(0.0) # Returns 0.0 diff --git a/doc/classes/Decal.xml b/doc/classes/Decal.xml index b63f6e7252..9d4b8d73e3 100644 --- a/doc/classes/Decal.xml +++ b/doc/classes/Decal.xml @@ -94,7 +94,7 @@ [b]Note:[/b] Unlike [BaseMaterial3D] whose filter mode can be adjusted on a per-material basis, the filter mode for [Decal] textures is set globally with [member ProjectSettings.rendering/textures/decals/filter]. - [Texture2D] with the emission [Color] of the Decal. Either this or the [member texture_emission] must be set for the Decal to be visible. Use the alpha channel like a mask to smoothly blend the edges of the decal with the underlying object. + [Texture2D] with the emission [Color] of the Decal. Either this or the [member texture_albedo] must be set for the Decal to be visible. Use the alpha channel like a mask to smoothly blend the edges of the decal with the underlying object. [b]Note:[/b] Unlike [BaseMaterial3D] whose filter mode can be adjusted on a per-material basis, the filter mode for [Decal] textures is set globally with [member ProjectSettings.rendering/textures/decals/filter]. diff --git a/doc/classes/String.xml b/doc/classes/String.xml index 792cd38741..5f01abc1bf 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -1052,7 +1052,7 @@ [codeblock] print("I caught %d fishes!" % 2) # Prints "I caught 2 fishes!" - var my_message = "Travelling to %s, at %2.2f per second." + var my_message = "Travelling to %s, at %2.2f km/h." var location = "Deep Valley" var speed = 40.3485 print(my_message % [location, speed]) # Prints "Travelling to Deep Valley, at 40.35 km/h." diff --git a/doc/classes/StringName.xml b/doc/classes/StringName.xml index c103fb2287..9d6e6b1a13 100644 --- a/doc/classes/StringName.xml +++ b/doc/classes/StringName.xml @@ -504,7 +504,7 @@ - Does a simple expression match, where [code]*[/code] matches zero or more arbitrary characters and [code]?[/code] matches any single character except a period ([code].[/code]). An empty string or empty expression always evaluates to [code]false[/code]. + Does a simple expression match (also called "glob" or "globbing"), where [code]*[/code] matches zero or more arbitrary characters and [code]?[/code] matches any single character except a period ([code].[/code]). An empty string or empty expression always evaluates to [code]false[/code]. -- cgit v1.2.3