Browse Source

Merge pull request #52090 from balloonpopper/bug52060

Correct null and boolean values being capitalised by the str command
Max Hilbrunner 4 years ago
parent
commit
4e67e9bca6

+ 2 - 2
core/variant/variant.cpp

@@ -1627,9 +1627,9 @@ Variant::operator String() const {
 String Variant::stringify(List<const void *> &stack) const {
 	switch (type) {
 		case NIL:
-			return "Null";
+			return "null";
 		case BOOL:
-			return _data._bool ? "True" : "False";
+			return _data._bool ? "true" : "false";
 		case INT:
 			return itos(_data._int);
 		case FLOAT:

+ 4 - 4
doc/classes/Object.xml

@@ -13,15 +13,15 @@
 		[codeblocks]
 		[gdscript]
 		var n = Node2D.new()
-		print("position" in n) # Prints "True".
-		print("other_property" in n) # Prints "False".
+		print("position" in n) # Prints "true".
+		print("other_property" in n) # Prints "false".
 		[/gdscript]
 		[csharp]
 		var node = new Node2D();
 		// C# has no direct equivalent to GDScript's `in` operator here, but we
 		// can achieve the same behavior by performing `Get` with a null check.
-		GD.Print(node.Get("position") != null); // Prints "True".
-		GD.Print(node.Get("other_property") != null); // Prints "False".
+		GD.Print(node.Get("position") != null); // Prints "true".
+		GD.Print(node.Get("other_property") != null); // Prints "false".
 		[/csharp]
 		[/codeblocks]
 		The [code]in[/code] operator will evaluate to [code]true[/code] as long as the key exists, even if the value is [code]null[/code].

+ 3 - 3
doc/translations/ar.po

@@ -9896,7 +9896,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33047,8 +33047,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/ca.po

@@ -9927,7 +9927,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33078,8 +33078,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/classes.pot

@@ -9897,7 +9897,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33048,8 +33048,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/cs.po

@@ -10389,7 +10389,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33547,8 +33547,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/de.po

@@ -10211,7 +10211,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33464,8 +33464,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 5 - 5
doc/translations/es.po

@@ -12986,7 +12986,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 "Convierte un valor [String] a un valor booleano, este método devolverá "
@@ -44845,8 +44845,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"
@@ -44878,8 +44878,8 @@ msgstr ""
 "usando [code]in[/code]:\n"
 "[codeblock]\n"
 "var nodo = Node2D.new()\n"
-"print(\"position\" in nodo) # Imprime \"True\".\n"
-"print(\"otra_propiedad\" in nodo) # Imprime \"False\".\n"
+"print(\"position\" in nodo) # Imprime \"true\".\n"
+"print(\"otra_propiedad\" in nodo) # Imprime \"false\".\n"
 "[/codeblock]\n"
 "El operador [code]in[/code] evaluará a [code]true[/code] siempre que la "
 "clave exista, incluso si el valor es [code]null[/code].\n"

+ 3 - 3
doc/translations/fa.po

@@ -9902,7 +9902,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33053,8 +33053,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/fi.po

@@ -9915,7 +9915,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33066,8 +33066,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/fr.po

@@ -10233,7 +10233,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33414,8 +33414,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/id.po

@@ -9928,7 +9928,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33079,8 +33079,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/it.po

@@ -10186,7 +10186,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33345,8 +33345,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/ja.po

@@ -11116,7 +11116,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -34317,8 +34317,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/ko.po

@@ -9904,7 +9904,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33055,8 +33055,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/nl.po

@@ -9930,7 +9930,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33081,8 +33081,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/pl.po

@@ -9948,7 +9948,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33100,8 +33100,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/pt_BR.po

@@ -9943,7 +9943,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33094,8 +33094,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/ro.po

@@ -9904,7 +9904,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33055,8 +33055,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/ru.po

@@ -10409,7 +10409,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33592,8 +33592,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/sr_Cyrl.po

@@ -9914,7 +9914,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33065,8 +33065,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/th.po

@@ -9920,7 +9920,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33071,8 +33071,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/tr.po

@@ -9896,7 +9896,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33047,8 +33047,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/uk.po

@@ -9982,7 +9982,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33133,8 +33133,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/zh_Hans.po

@@ -10129,7 +10129,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33283,8 +33283,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 3 - 3
doc/translations/zh_Hant.po

@@ -9933,7 +9933,7 @@ msgid ""
 "Cast a [String] value to a boolean value, this method will return "
 "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] "
 "for all non-empty strings.\n"
-"Examples: [code]bool(\"False\")[/code] returns [code]true[/code], "
+"Examples: [code]bool(\"false\")[/code] returns [code]true[/code], "
 "[code]bool(\"\")[/code] returns [code]false[/code]."
 msgstr ""
 
@@ -33084,8 +33084,8 @@ msgid ""
 "code]:\n"
 "[codeblock]\n"
 "var n = Node2D.new()\n"
-"print(\"position\" in n) # Prints \"True\".\n"
-"print(\"other_property\" in n) # Prints \"False\".\n"
+"print(\"position\" in n) # Prints \"true\".\n"
+"print(\"other_property\" in n) # Prints \"false\".\n"
 "[/codeblock]\n"
 "The [code]in[/code] operator will evaluate to [code]true[/code] as long as "
 "the key exists, even if the value is [code]null[/code].\n"

+ 1 - 1
modules/gdscript/tests/scripts/analyzer/features/call_self_get_name.out

@@ -1,3 +1,3 @@
 GDTEST_OK
 Name is equal
-True
+true

+ 1 - 1
modules/gdscript/tests/scripts/analyzer/features/call_static_builtin_function.out

@@ -1,3 +1,3 @@
 GDTEST_OK
-True
+true
 OK

+ 7 - 0
modules/gdscript/tests/scripts/parser/features/str_preserves_case.gd

@@ -0,0 +1,7 @@
+func test():
+	var null_var = null
+	var true_var:bool = true
+	var false_var:bool = false
+	print(str(null_var))
+	print(str(true_var))
+	print(str(false_var))

+ 4 - 0
modules/gdscript/tests/scripts/parser/features/str_preserves_case.out

@@ -0,0 +1,4 @@
+GDTEST_OK
+null
+true
+false