Fix the error message in str2double.

This commit is contained in:
BruceChen 2022-09-29 21:34:18 +08:00
parent 5571b99a03
commit 36d2a2c731
3 changed files with 4 additions and 2 deletions

View file

@ -88,6 +88,7 @@ error.connection_timeout=§8A timeout occured while attempting to connect to thi
error.forge=§8Forge Login Handshake did not complete successfully error.forge=§8Forge Login Handshake did not complete successfully
error.forge_encrypt=§8Forge StartEncryption Handshake did not complete successfully error.forge_encrypt=§8Forge StartEncryption Handshake did not complete successfully
error.setting.str2int=Failed to convert '{0}' into an integer. Please check your settings. error.setting.str2int=Failed to convert '{0}' into an integer. Please check your settings.
error.setting.str2double=Failed to convert '{0}' to a floating-point number. Please check your settings.
error.setting.str2locationList.convert_fail=Failed to convert '{0}' to a floating point number. Please check your settings. error.setting.str2locationList.convert_fail=Failed to convert '{0}' to a floating point number. Please check your settings.
error.setting.str2locationList.format_err=Wrong format, can't parse '{0}' into position data.. Please check your settings. error.setting.str2locationList.format_err=Wrong format, can't parse '{0}' into position data.. Please check your settings.
error.setting.argument_syntax={0}: Invalid syntax, expecting --argname=value or --section.argname=value error.setting.argument_syntax={0}: Invalid syntax, expecting --argname=value or --section.argname=value

View file

@ -85,7 +85,8 @@ error.no_version_report=§8服务器未报告其协议版本自动检测将
error.connection_timeout=§8尝试连接到此IP时超时。 error.connection_timeout=§8尝试连接到此IP时超时。
error.forge=§8Forge登录握手未成功完成 error.forge=§8Forge登录握手未成功完成
error.forge_encrypt=§8Forge StartEncryption握手未成功完成 error.forge_encrypt=§8Forge StartEncryption握手未成功完成
error.setting.str2int=无法将'{0}'转换为整数。请检查设置。 error.setting.str2int=无法将'{0}'转换为一个整数。请检查设置。
error.setting.str2double=无法将'{0}'转换为一个浮点数。请检查设置。
error.setting.argument_syntax={0}:无效语法,应为 --argname=value 或 --section.argname=value error.setting.argument_syntax={0}:无效语法,应为 --argname=value 或 --section.argname=value
error.setting.unknown_section={0}:未知设置部分'{1}' error.setting.unknown_section={0}:未知设置部分'{1}'
error.setting.unknown_or_invalid={0}:未知设置或无效值 error.setting.unknown_or_invalid={0}:未知设置或无效值

View file

@ -966,7 +966,7 @@ namespace MinecraftClient
return num; return num;
else else
{ {
ConsoleIO.WriteLogLine(Translations.Get("error.setting.str2int", str)); ConsoleIO.WriteLogLine(Translations.Get("error.setting.str2double", str));
return 0; return 0;
} }
} }