From 0a48f4dac87cf1a52628478e15618e51f00ea9fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E6=82=A6=E8=A7=A3=E8=AF=B4?= Date: Sun, 1 Dec 2024 14:17:40 +0800 Subject: [PATCH] Optimized MultiLang --- MultiLang/English.cpp | 429 +++++++++++++++--------------- MultiLang/MultiLang.h | 2 - MultiLang/SimplifiedChinese.cpp | 432 +++++++++++++++--------------- MultiLang/TraditionalChinese.cpp | 441 ++++++++++++++++--------------- 4 files changed, 651 insertions(+), 653 deletions(-) diff --git a/MultiLang/English.cpp b/MultiLang/English.cpp index bff71ecb..039c0085 100644 --- a/MultiLang/English.cpp +++ b/MultiLang/English.cpp @@ -1,215 +1,216 @@ #include "MultiLang.h" -static constexpr MultiLang::string array_bounds_ex = "Blitz array index out of bounds."; -static constexpr MultiLang::string null_obj_ex = "Object does not exist!"; -static constexpr MultiLang::string bad_data_type = "Bad data type! Type is not a float, string or an integer."; -static constexpr MultiLang::string out_of_data = "Out of data!"; -static constexpr MultiLang::string stats_strings = "Active strings : {0}"; -static constexpr MultiLang::string stats_objects = "Active objects : {0}"; -static constexpr MultiLang::string stats_unreleased = "Unreleased objs: {0}"; -static constexpr MultiLang::string sound_not_exist = "Sound does not exist"; -static constexpr MultiLang::string bank_not_exist = "bbBank does not exist"; -static constexpr MultiLang::string offset_out_of_range = "Offset out of range"; -static constexpr MultiLang::string graphics_not_set = "3D Graphics mode not set."; -static constexpr MultiLang::string texture_not_exist = "Texture does not exist!"; -static constexpr MultiLang::string brush_not_exist = "Brush does not exist!"; -static constexpr MultiLang::string entity_not_exist = "Entity does not exist!"; -static constexpr MultiLang::string parent_entity_not_exist = "Parent entity does not exist."; -static constexpr MultiLang::string entity_not_mesh = "Entity is not a mesh!"; -static constexpr MultiLang::string entity_not_object = "Entity is not an object!"; -static constexpr MultiLang::string collision_out_of_range = "Collision index out of range."; -static constexpr MultiLang::string entity_not_camera = "Entity is not a camera!"; -static constexpr MultiLang::string entity_not_light = "Entity is not a light!"; -static constexpr MultiLang::string entity_not_model = "Entity is not a model!"; -static constexpr MultiLang::string entity_not_sprite = "Entity is not a sprite!"; -static constexpr MultiLang::string entity_not_md2_model = "Entity is not an MD2 Model!"; -static constexpr MultiLang::string entity_not_bsp_model = "Entity is not a BSP Model!"; -static constexpr MultiLang::string entity_not_terrain = "Entity is not a terrain!"; -static constexpr MultiLang::string illegal_number_segments = "Illegal number of segments!"; -static constexpr MultiLang::string vertex_out_of_range = "Vertex index out of range."; -static constexpr MultiLang::string texture_coordinate_out_of_range = "Texture coordinate set out of range."; -static constexpr MultiLang::string illegal_texture_frames = "Illegal number of texture frames!"; -static constexpr MultiLang::string mesh_cannot_add_to_self = "A mesh cannot be added to itself!"; -static constexpr MultiLang::string surface_out_of_range = "Surface Index out of range."; -static constexpr MultiLang::string illegal_terrain_size = "Illegal terrain size!"; -static constexpr MultiLang::string unable_load_heightmap = "Unable to load heightmap image."; -static constexpr MultiLang::string terrain_must_be_square = "Terrain must be square!"; -static constexpr MultiLang::string listener_already_created = "Listener already created!"; -static constexpr MultiLang::string no_listener_created = "No Listener created."; -static constexpr MultiLang::string entity_cannot_parented_itself = "Entity cannot be parented to itself!"; -static constexpr MultiLang::string entity_no_animations = "Entity has no animations."; -static constexpr MultiLang::string entity_not_model_or_camera = "Entity is not a model or camera!"; -static constexpr MultiLang::string entitytype_id_range = "EntityType ID must be a number from 0 to 999."; -static constexpr MultiLang::string unable_create_gxscene_instance = "Unable to create gxScene instance!"; -static constexpr MultiLang::string file_not_exist = "File does not exist"; -static constexpr MultiLang::string directory_not_exist = "Directory does not exist"; -static constexpr MultiLang::string image_not_exist = "Image doesn't exist."; -static constexpr MultiLang::string image_frame_out_of_range = "Image frame out of range!"; -static constexpr MultiLang::string font_not_exist = "Font doesn't exist."; -static constexpr MultiLang::string buffer_not_exist = "Buffer doesn't exist."; -static constexpr MultiLang::string illegal_graphics_driver_index = "Illegal graphics driver index."; -static constexpr MultiLang::string illegal_graphics_mode_index = "Illegal graphics mode index."; -static constexpr MultiLang::string unable_create_gxgraphics_instance = "Unable to create a gxGraphics instance."; -static constexpr MultiLang::string illegal_graphics_mode = "Illegal Graphics mode. Graphics modes are 0, 1, 2, 3, 4, 6 and 7."; -static constexpr MultiLang::string illegal_graphics3d_mode = "Illegal Graphics3D mode. Graphics modes are 0, 1, 2, 3, 4, 6 and 7."; -static constexpr MultiLang::string unable_close_gxgraphics_instance = "Unable to close gxGraphics instance."; -static constexpr MultiLang::wstring runtime_error = L"Catastrophic Error!"; -static constexpr MultiLang::string illegal_frame_count = "Illegal frame count!"; -static constexpr MultiLang::string illegal_first_frame = "Illegal first frame!"; -static constexpr MultiLang::string not_enough_frames_bitmap = "Not enough frames in bitmap."; -static constexpr MultiLang::string udp_stream_not_exist = "UDP Stream does not exist"; -static constexpr MultiLang::string tcp_stream_not_exist = "TCP Stream does not exist"; -static constexpr MultiLang::string tcp_server_not_exist = "TCP Server does not exist"; -static constexpr MultiLang::string host_out_of_range = "Host index out of range"; -static constexpr MultiLang::string stream_not_exist = "Stream does not exist"; -static constexpr MultiLang::string readbyte_invalid_byte = "ReadByte couldn't read a valid byte.\nMake sure the file you attempted to read isn't corrupted."; -static constexpr MultiLang::string readshort_invalid_short = "ReadShort couldn't read a valid short.\nMake sure the file you attempted to read isn't corrupted."; -static constexpr MultiLang::string readint_invalid_int = "ReadInt couldn't read a valid integer.\nMake sure the file you attempted to read isn't corrupted."; -static constexpr MultiLang::string readfloat_invalid_float = "ReadFloat couldn't read a valid float.\nMake sure the file you attempted to read isn't corrupted."; -static constexpr MultiLang::string readstring_invalid_string = "ReadString couldn't read a valid string.\nMake sure the file you attempted to read isn't corrupted."; -static constexpr MultiLang::string illegal_buffer_size = "Illegal buffer size"; -static constexpr MultiLang::string string_parameter_positive = "parameter must be positive"; -static constexpr MultiLang::string string_parameter_greater = "parameter must be greater than 0"; -static constexpr MultiLang::string userlib_not_found = "User lib not found: {0}"; -static constexpr MultiLang::string userlib_function_not_found = "User lib function not found: {0}"; -static constexpr MultiLang::wstring integer_divide_zero = L"Integer divide by zero."; -static constexpr MultiLang::string memory_access_violation = "Memory Access Violation!\nThe program attempted to read or write to a protected memory address."; -static constexpr MultiLang::wstring illegal_instruction = L"Illegal instruction.\nProcess tried to execute an invalid CPU instruction."; -static constexpr MultiLang::wstring stack_overflow = L"Stack overflow.\nMake sure there is no recursion without a base case."; -static constexpr MultiLang::wstring integer_overflow = L"Integer overflow!\nMake sure the integer doesnt exceed a value of 2147483647."; -static constexpr MultiLang::wstring float_overflow = L"Float overflow!\nMake sure the float doesn't exceed a value of 3.40282347e+38F."; -static constexpr MultiLang::wstring float_divide_zero = L"Float divide by zero."; -static constexpr MultiLang::wstring unknown_runtime_exception = L"Unknown runtime exception."; -static constexpr MultiLang::string unable_run_module = "Unable to run Blitz Basic module."; -static constexpr MultiLang::string cant_find_symbol = "Can't find symbol: {0}"; -static constexpr MultiLang::string unknown_exception_thrown = "Unknown/non-standard exception thrown!"; -static constexpr MultiLang::string startup_error = "Startup Error: {0}"; -static constexpr MultiLang::string array_index_out_of_bounds = "Array index out of bounds."; -static constexpr MultiLang::string unable_start_program = "Unable to start program! A required module could not be started."; +// ASCII -static constexpr MultiLang::string expect_identifier = "expecting identifier after \".\""; -static constexpr MultiLang::string expect_string_afrer_directive = "expecting string after lib directive"; -static constexpr MultiLang::string unknown_decl_directive = "unknown decl directive"; -static constexpr MultiLang::string function_decl_without_directive = "function decl without lib directive"; -static constexpr MultiLang::string duplicate_identifier = "duplicate identifier"; -static constexpr MultiLang::string expect_left_bracket_after_function_identifier = "expecting \"(\" after function identifier"; -static constexpr MultiLang::string expect_right_bracket_after_function_identifier = "expecting \")\" after function decl"; -static constexpr MultiLang::string expect_identifier_or_string_after_alias = "expecting identifier or string after alias"; -static constexpr MultiLang::string unable_open_linker_dll = "Unable to open linker.dll"; -static constexpr MultiLang::string error_in_linker_dll = "Error in linker.dll"; -static constexpr MultiLang::string unable_open_runtime_dll = "Unable to open runtime.dll"; -static constexpr MultiLang::string error_in_runtime_dll = "Error in runtime.dll"; -static constexpr MultiLang::string library_version_error = "Library version error"; -static constexpr MultiLang::string immediate_value_cannot_by_label = "immediate value cannot by a label"; -static constexpr MultiLang::string operand_must_be_immediate = "operand must be immediate"; -static constexpr MultiLang::string unrecognized_instruction = "unrecognized instruction"; -static constexpr MultiLang::string illegal_addressing_mode = "illegal addressing mode"; -static constexpr MultiLang::string operand_error = "operand error"; -static constexpr MultiLang::string duplicate_label = "duplicate label"; -static constexpr MultiLang::string missing_close_quote = "missing close quote"; -static constexpr MultiLang::string expect_comma = "expecting \",\""; -static constexpr MultiLang::string too_many_operands = "Too many operands"; -static constexpr MultiLang::string expression_must_be_constant = "Expression must be constant"; -static constexpr MultiLang::string constants_must_initialized = "Constants must be initialized"; -static constexpr MultiLang::string duplicate_variable_name = "Duplicate variable name"; -static constexpr MultiLang::string undefined_label = "Undefined label"; -static constexpr MultiLang::string data_expression_must_be_constant = "Data expression must be constant"; -static constexpr MultiLang::string blitz_array_sizes_must_be_constant = "Blitz array sizes must be constant"; -static constexpr MultiLang::string blitz_array_sizes_must_not_negative = "Blitz array sizes must not be negative"; -static constexpr MultiLang::string illegal_type_conversion = "Illegal type conversion ({0} -> {1})"; -static constexpr MultiLang::string too_many_parameters = "Too many parameters"; -static constexpr MultiLang::string not_enough_parameters = "Not enough parameters"; -static constexpr MultiLang::string function_not_found = "Function \"{0}\" not found"; -static constexpr MultiLang::string incorrect_function_return_type = "incorrect function return type"; -static constexpr MultiLang::string cant_convert_null_to_int = "Can't convert null to int"; -static constexpr MultiLang::string cant_convert_null_to_float = "Can't convert null to float"; -static constexpr MultiLang::string cant_convert_null_to_string = "Can't convert null to string"; -static constexpr MultiLang::string illegal_operator_for_type = "Illegal operator for type"; -static constexpr MultiLang::string arithmetic_operator_custom_type = "Arithmetic operator cannot be applied to custom type objects"; -static constexpr MultiLang::string operator_cannot_applied_to_strings = "Operator cannot be applied to strings"; -static constexpr MultiLang::string division_by_zero = "Division by zero."; -static constexpr MultiLang::string custom_type_not_found = "custom type name not found"; -static constexpr MultiLang::string type_is_not_custom_type = "type is not a custom type"; -static constexpr MultiLang::string after_cannot_used_on_null = "\"After\" cannot be used on \"Null\""; -static constexpr MultiLang::string after_must_used_with_custom_type = "\"After\" must be used with a custom type object"; -static constexpr MultiLang::string before_cannot_used_with_null = "\"Before\" cannot be used with \"Null\""; -static constexpr MultiLang::string before_must_used_with_custom_type = "\"Before\" must be used with a custom type object"; -static constexpr MultiLang::string objecthandle_must_used_with_object = "\"ObjectHandle\" must be used with an object"; -static constexpr MultiLang::string internal_compiler_error = "INTERNAL COMPILER ERROR"; -static constexpr MultiLang::string type_not_found = "Type \"{0}\" not found"; -static constexpr MultiLang::string error_in_operand = "error in operand"; -static constexpr MultiLang::string illegal_operand_size = "illegal operand size"; -static constexpr MultiLang::string register_must_be_32_bit = "register must be 32 bit"; -static constexpr MultiLang::string next_without_for = "\"Next\" without \"For\""; -static constexpr MultiLang::string wend_without_while = "\"Wend\" without \"While\""; -static constexpr MultiLang::string else_without_if = "\"Else\" without \"If\""; -static constexpr MultiLang::string endif_without_if = "\"Endif\" without \"If\""; -static constexpr MultiLang::string end_function_without_function = "\"End Function\" without \"Function\""; -static constexpr MultiLang::string until_without_repeat = "\"Until\" without \"Repeat\""; -static constexpr MultiLang::string forever_without_repeat = "\"Forever\" without \"Repeat\""; -static constexpr MultiLang::string case_without_select = "\"Case\" without \"Select\""; -static constexpr MultiLang::string end_select_without_select = "\"End Select\" without \"Select\""; -static constexpr MultiLang::string expecting = "Expecting {0}"; -static constexpr MultiLang::string identifier = "identifier"; -static constexpr MultiLang::string include_filename = "include filename"; -static constexpr MultiLang::string unable_open_include_file = "Unable to open include file"; -static constexpr MultiLang::string end_of_file = "end-of-file"; -static constexpr MultiLang::string mismatched_brackets = "Mismatched brackets"; -static constexpr MultiLang::string variable_assignment = "variable assignment"; -static constexpr MultiLang::string until_or_forever = "\"Until\" or \"Forever\""; -static constexpr MultiLang::string expression_sequence = "expression sequence"; -static constexpr MultiLang::string case_default_or_end_select = "\"Case\", \"Default\" or \"End Select\""; -static constexpr MultiLang::string before_or_after = "\"Before\" or \"After\""; -static constexpr MultiLang::string data_can_only_appear_in_main = "\"Data\" can only appear in main program"; -static constexpr MultiLang::string type_can_only_appear_in_main = "\"Type\" can only appear in main program"; -static constexpr MultiLang::string const_can_only_appear_in_main = "\"Const\" can only appear in main program"; -static constexpr MultiLang::string function_can_only_appear_in_main = "\"Function\" can only appear in main program"; -static constexpr MultiLang::string global_can_only_appear_in_main = "\"Global\" can only appear in main program"; -static constexpr MultiLang::string blitz_arrays_may_not_be_constant = "Blitz arrays may not be constant"; -static constexpr MultiLang::string cant_have_zero_dimension_array = "can\"t have a 0 dimensional array"; -static constexpr MultiLang::string field_or_end_type = "\"Field\" or \"End Type\""; -static constexpr MultiLang::string expression = "expression"; -static constexpr MultiLang::string undefined_label_check = "Undefined label \"{0}\""; -static constexpr MultiLang::string array_not_found_in_main = "Array not found in main program"; -static constexpr MultiLang::string constants_can_not_assigned_to = "Constants can not be assigned to"; -static constexpr MultiLang::string blitz_arrays_can_not_assigned_to = "Blitz arrays can not be assigned to"; -static constexpr MultiLang::string gosub_may_not_used_inside_function = "\"Gosub\" may not be used inside a function"; -static constexpr MultiLang::string break_must_appear_inside_loop = "break must appear inside a loop"; -static constexpr MultiLang::string index_variable_can_not_constant = "Index variable can not be constant"; -static constexpr MultiLang::string index_variable_must_integer_or_real = "index variable must be integer or real"; -static constexpr MultiLang::string step_value_must_constant = "Step value must be constant"; -static constexpr MultiLang::string index_variable_is_not_newtype = "Index variable is not a NewType"; -static constexpr MultiLang::string type_name_not_found = "Type name not found"; -static constexpr MultiLang::string type_mismatch = "Type mismatch"; -static constexpr MultiLang::string main_cannot_return_value = "Main program cannot return a value"; -static constexpr MultiLang::string cant_delete_non_newtype = "Can't delete non-Newtype"; -static constexpr MultiLang::string specified_name_is_not_newtype_name = "Specified name is not a NewType name"; -static constexpr MultiLang::string illegal_expression_type = "Illegal expression type"; -static constexpr MultiLang::string objects_types_are_different = "Objects types are different"; -static constexpr MultiLang::string select_cannot_used_with_objects = "Select cannot be used with objects"; -static constexpr MultiLang::string constants_can_not_modified = "Constants can not be modified"; -static constexpr MultiLang::string data_can_not_read_into_object = "Data can not be read into an object"; -static constexpr MultiLang::string variable_type_mismatch = "Variable type mismatch"; -static constexpr MultiLang::string identifier_not_used_like_this = "Identifier \"{0}\" may not be used like this"; -static constexpr MultiLang::string array_not_found = "Array not found"; -static constexpr MultiLang::string array_type_mismatch = "array type mismatch"; -static constexpr MultiLang::string incorrect_number_of_dimensions = "incorrect number of dimensions"; -static constexpr MultiLang::string variable_must_be_type = "Variable must be a Type"; -static constexpr MultiLang::string type_field_not_found = "Type field not found"; -static constexpr MultiLang::string variable_must_a_blitz_array = "Variable must be a Blitz array"; -static constexpr MultiLang::string incorrect_number_of_subscripts = "Incorrect number of subscripts"; -static constexpr MultiLang::string blitz_array_subscript_out_of_range = "Blitz array subscript out of range"; -static constexpr MultiLang::string reserved_pseudo_namespace = "Reserved pseudo namespace."; +static constexpr const char* array_bounds_ex = "Blitz array index out of bounds."; +static constexpr const char* null_obj_ex = "Object does not exist!"; +static constexpr const char* bad_data_type = "Bad data type! Type is not a float, string or an integer."; +static constexpr const char* out_of_data = "Out of data!"; +static constexpr const char* stats_strings = "Active strings : {0}"; +static constexpr const char* stats_objects = "Active objects : {0}"; +static constexpr const char* stats_unreleased = "Unreleased objs: {0}"; +static constexpr const char* sound_not_exist = "Sound does not exist"; +static constexpr const char* bank_not_exist = "bbBank does not exist"; +static constexpr const char* offset_out_of_range = "Offset out of range"; +static constexpr const char* graphics_not_set = "3D Graphics mode not set."; +static constexpr const char* texture_not_exist = "Texture does not exist!"; +static constexpr const char* brush_not_exist = "Brush does not exist!"; +static constexpr const char* entity_not_exist = "Entity does not exist!"; +static constexpr const char* parent_entity_not_exist = "Parent entity does not exist."; +static constexpr const char* entity_not_mesh = "Entity is not a mesh!"; +static constexpr const char* entity_not_object = "Entity is not an object!"; +static constexpr const char* collision_out_of_range = "Collision index out of range."; +static constexpr const char* entity_not_camera = "Entity is not a camera!"; +static constexpr const char* entity_not_light = "Entity is not a light!"; +static constexpr const char* entity_not_model = "Entity is not a model!"; +static constexpr const char* entity_not_sprite = "Entity is not a sprite!"; +static constexpr const char* entity_not_md2_model = "Entity is not an MD2 Model!"; +static constexpr const char* entity_not_bsp_model = "Entity is not a BSP Model!"; +static constexpr const char* entity_not_terrain = "Entity is not a terrain!"; +static constexpr const char* illegal_number_segments = "Illegal number of segments!"; +static constexpr const char* vertex_out_of_range = "Vertex index out of range."; +static constexpr const char* texture_coordinate_out_of_range = "Texture coordinate set out of range."; +static constexpr const char* illegal_texture_frames = "Illegal number of texture frames!"; +static constexpr const char* mesh_cannot_add_to_self = "A mesh cannot be added to itself!"; +static constexpr const char* surface_out_of_range = "Surface Index out of range."; +static constexpr const char* illegal_terrain_size = "Illegal terrain size!"; +static constexpr const char* unable_load_heightmap = "Unable to load heightmap image."; +static constexpr const char* terrain_must_be_square = "Terrain must be square!"; +static constexpr const char* listener_already_created = "Listener already created!"; +static constexpr const char* no_listener_created = "No Listener created."; +static constexpr const char* entity_cannot_parented_itself = "Entity cannot be parented to itself!"; +static constexpr const char* entity_no_animations = "Entity has no animations."; +static constexpr const char* entity_not_model_or_camera = "Entity is not a model or camera!"; +static constexpr const char* entitytype_id_range = "EntityType ID must be a number from 0 to 999."; +static constexpr const char* unable_create_gxscene_instance = "Unable to create gxScene instance!"; +static constexpr const char* file_not_exist = "File does not exist"; +static constexpr const char* directory_not_exist = "Directory does not exist"; +static constexpr const char* image_not_exist = "Image doesn't exist."; +static constexpr const char* image_frame_out_of_range = "Image frame out of range!"; +static constexpr const char* font_not_exist = "Font doesn't exist."; +static constexpr const char* buffer_not_exist = "Buffer doesn't exist."; +static constexpr const char* illegal_graphics_driver_index = "Illegal graphics driver index."; +static constexpr const char* illegal_graphics_mode_index = "Illegal graphics mode index."; +static constexpr const char* unable_create_gxgraphics_instance = "Unable to create a gxGraphics instance."; +static constexpr const char* illegal_graphics_mode = "Illegal Graphics mode. Graphics modes are 0, 1, 2, 3, 4, 6 and 7."; +static constexpr const char* illegal_graphics3d_mode = "Illegal Graphics3D mode. Graphics modes are 0, 1, 2, 3, 4, 6 and 7."; +static constexpr const char* unable_close_gxgraphics_instance = "Unable to close gxGraphics instance."; +static constexpr const wchar_t* runtime_error = L"Catastrophic Error!"; +static constexpr const char* illegal_frame_count = "Illegal frame count!"; +static constexpr const char* illegal_first_frame = "Illegal first frame!"; +static constexpr const char* not_enough_frames_bitmap = "Not enough frames in bitmap."; +static constexpr const char* udp_stream_not_exist = "UDP Stream does not exist"; +static constexpr const char* tcp_stream_not_exist = "TCP Stream does not exist"; +static constexpr const char* tcp_server_not_exist = "TCP Server does not exist"; +static constexpr const char* host_out_of_range = "Host index out of range"; +static constexpr const char* stream_not_exist = "Stream does not exist"; +static constexpr const char* readbyte_invalid_byte = "ReadByte couldn't read a valid byte.\nMake sure the file you attempted to read isn't corrupted."; +static constexpr const char* readshort_invalid_short = "ReadShort couldn't read a valid short.\nMake sure the file you attempted to read isn't corrupted."; +static constexpr const char* readint_invalid_int = "ReadInt couldn't read a valid integer.\nMake sure the file you attempted to read isn't corrupted."; +static constexpr const char* readfloat_invalid_float = "ReadFloat couldn't read a valid float.\nMake sure the file you attempted to read isn't corrupted."; +static constexpr const char* readstring_invalid_string = "ReadString couldn't read a valid string.\nMake sure the file you attempted to read isn't corrupted."; +static constexpr const char* illegal_buffer_size = "Illegal buffer size"; +static constexpr const char* string_parameter_positive = "parameter must be positive"; +static constexpr const char* string_parameter_greater = "parameter must be greater than 0"; +static constexpr const char* userlib_not_found = "User lib not found: {0}"; +static constexpr const char* userlib_function_not_found = "User lib function not found: {0}"; +static constexpr const wchar_t* integer_divide_zero = L"Integer divide by zero."; +static constexpr const char* memory_access_violation = "Memory Access Violation!\nThe program attempted to read or write to a protected memory address."; +static constexpr const wchar_t* illegal_instruction = L"Illegal instruction.\nProcess tried to execute an invalid CPU instruction."; +static constexpr const wchar_t* stack_overflow = L"Stack overflow.\nMake sure there is no recursion without a base case."; +static constexpr const wchar_t* integer_overflow = L"Integer overflow!\nMake sure the integer doesnt exceed a value of 2147483647."; +static constexpr const wchar_t* float_overflow = L"Float overflow!\nMake sure the float doesn't exceed a value of 3.40282347e+38F."; +static constexpr const wchar_t* float_divide_zero = L"Float divide by zero."; +static constexpr const wchar_t* unknown_runtime_exception = L"Unknown runtime exception."; +static constexpr const char* unable_run_module = "Unable to run Blitz Basic module."; +static constexpr const char* cant_find_symbol = "Can't find symbol: {0}"; +static constexpr const char* unknown_exception_thrown = "Unknown/non-standard exception thrown!"; +static constexpr const char* startup_error = "Startup Error: {0}"; +static constexpr const char* array_index_out_of_bounds = "Array index out of bounds."; +static constexpr const char* unable_start_program = "Unable to start program! A required module could not be started."; +static constexpr const char* expect_identifier = "expecting identifier after \".\""; +static constexpr const char* expect_string_afrer_directive = "expecting string after lib directive"; +static constexpr const char* unknown_decl_directive = "unknown decl directive"; +static constexpr const char* function_decl_without_directive = "function decl without lib directive"; +static constexpr const char* duplicate_identifier = "duplicate identifier"; +static constexpr const char* expect_left_bracket_after_function_identifier = "expecting \"(\" after function identifier"; +static constexpr const char* expect_right_bracket_after_function_identifier = "expecting \")\" after function decl"; +static constexpr const char* expect_identifier_or_string_after_alias = "expecting identifier or string after alias"; +static constexpr const char* unable_open_linker_dll = "Unable to open linker.dll"; +static constexpr const char* error_in_linker_dll = "Error in linker.dll"; +static constexpr const char* unable_open_runtime_dll = "Unable to open runtime.dll"; +static constexpr const char* error_in_runtime_dll = "Error in runtime.dll"; +static constexpr const char* library_version_error = "Library version error"; +static constexpr const char* immediate_value_cannot_by_label = "immediate value cannot by a label"; +static constexpr const char* operand_must_be_immediate = "operand must be immediate"; +static constexpr const char* unrecognized_instruction = "unrecognized instruction"; +static constexpr const char* illegal_addressing_mode = "illegal addressing mode"; +static constexpr const char* operand_error = "operand error"; +static constexpr const char* duplicate_label = "duplicate label"; +static constexpr const char* missing_close_quote = "missing close quote"; +static constexpr const char* expect_comma = "expecting \",\""; +static constexpr const char* too_many_operands = "Too many operands"; +static constexpr const char* expression_must_be_constant = "Expression must be constant"; +static constexpr const char* constants_must_initialized = "Constants must be initialized"; +static constexpr const char* duplicate_variable_name = "Duplicate variable name"; +static constexpr const char* undefined_label = "Undefined label"; +static constexpr const char* data_expression_must_be_constant = "Data expression must be constant"; +static constexpr const char* blitz_array_sizes_must_be_constant = "Blitz array sizes must be constant"; +static constexpr const char* blitz_array_sizes_must_not_negative = "Blitz array sizes must not be negative"; +static constexpr const char* illegal_type_conversion = "Illegal type conversion ({0} -> {1})"; +static constexpr const char* too_many_parameters = "Too many parameters"; +static constexpr const char* not_enough_parameters = "Not enough parameters"; +static constexpr const char* function_not_found = "Function \"{0}\" not found"; +static constexpr const char* incorrect_function_return_type = "incorrect function return type"; +static constexpr const char* cant_convert_null_to_int = "Can't convert null to int"; +static constexpr const char* cant_convert_null_to_float = "Can't convert null to float"; +static constexpr const char* cant_convert_null_to_string = "Can't convert null to string"; +static constexpr const char* illegal_operator_for_type = "Illegal operator for type"; +static constexpr const char* arithmetic_operator_custom_type = "Arithmetic operator cannot be applied to custom type objects"; +static constexpr const char* operator_cannot_applied_to_strings = "Operator cannot be applied to strings"; +static constexpr const char* division_by_zero = "Division by zero."; +static constexpr const char* custom_type_not_found = "custom type name not found"; +static constexpr const char* type_is_not_custom_type = "type is not a custom type"; +static constexpr const char* after_cannot_used_on_null = "\"After\" cannot be used on \"Null\""; +static constexpr const char* after_must_used_with_custom_type = "\"After\" must be used with a custom type object"; +static constexpr const char* before_cannot_used_with_null = "\"Before\" cannot be used with \"Null\""; +static constexpr const char* before_must_used_with_custom_type = "\"Before\" must be used with a custom type object"; +static constexpr const char* objecthandle_must_used_with_object = "\"ObjectHandle\" must be used with an object"; +static constexpr const char* internal_compiler_error = "INTERNAL COMPILER ERROR"; +static constexpr const char* type_not_found = "Type \"{0}\" not found"; +static constexpr const char* error_in_operand = "error in operand"; +static constexpr const char* illegal_operand_size = "illegal operand size"; +static constexpr const char* register_must_be_32_bit = "register must be 32 bit"; +static constexpr const char* next_without_for = "\"Next\" without \"For\""; +static constexpr const char* wend_without_while = "\"Wend\" without \"While\""; +static constexpr const char* else_without_if = "\"Else\" without \"If\""; +static constexpr const char* endif_without_if = "\"Endif\" without \"If\""; +static constexpr const char* end_function_without_function = "\"End Function\" without \"Function\""; +static constexpr const char* until_without_repeat = "\"Until\" without \"Repeat\""; +static constexpr const char* forever_without_repeat = "\"Forever\" without \"Repeat\""; +static constexpr const char* case_without_select = "\"Case\" without \"Select\""; +static constexpr const char* end_select_without_select = "\"End Select\" without \"Select\""; +static constexpr const char* expecting = "Expecting {0}"; +static constexpr const char* identifier = "identifier"; +static constexpr const char* include_filename = "include filename"; +static constexpr const char* unable_open_include_file = "Unable to open include file"; +static constexpr const char* end_of_file = "end-of-file"; +static constexpr const char* mismatched_brackets = "Mismatched brackets"; +static constexpr const char* variable_assignment = "variable assignment"; +static constexpr const char* until_or_forever = "\"Until\" or \"Forever\""; +static constexpr const char* expression_sequence = "expression sequence"; +static constexpr const char* case_default_or_end_select = "\"Case\", \"Default\" or \"End Select\""; +static constexpr const char* before_or_after = "\"Before\" or \"After\""; +static constexpr const char* data_can_only_appear_in_main = "\"Data\" can only appear in main program"; +static constexpr const char* type_can_only_appear_in_main = "\"Type\" can only appear in main program"; +static constexpr const char* const_can_only_appear_in_main = "\"Const\" can only appear in main program"; +static constexpr const char* function_can_only_appear_in_main = "\"Function\" can only appear in main program"; +static constexpr const char* global_can_only_appear_in_main = "\"Global\" can only appear in main program"; +static constexpr const char* blitz_arrays_may_not_be_constant = "Blitz arrays may not be constant"; +static constexpr const char* cant_have_zero_dimension_array = "can\"t have a 0 dimensional array"; +static constexpr const char* field_or_end_type = "\"Field\" or \"End Type\""; +static constexpr const char* expression = "expression"; +static constexpr const char* undefined_label_check = "Undefined label \"{0}\""; +static constexpr const char* array_not_found_in_main = "Array not found in main program"; +static constexpr const char* constants_can_not_assigned_to = "Constants can not be assigned to"; +static constexpr const char* blitz_arrays_can_not_assigned_to = "Blitz arrays can not be assigned to"; +static constexpr const char* gosub_may_not_used_inside_function = "\"Gosub\" may not be used inside a function"; +static constexpr const char* break_must_appear_inside_loop = "break must appear inside a loop"; +static constexpr const char* index_variable_can_not_constant = "Index variable can not be constant"; +static constexpr const char* index_variable_must_integer_or_real = "index variable must be integer or real"; +static constexpr const char* step_value_must_constant = "Step value must be constant"; +static constexpr const char* index_variable_is_not_newtype = "Index variable is not a NewType"; +static constexpr const char* type_name_not_found = "Type name not found"; +static constexpr const char* type_mismatch = "Type mismatch"; +static constexpr const char* main_cannot_return_value = "Main program cannot return a value"; +static constexpr const char* cant_delete_non_newtype = "Can't delete non-Newtype"; +static constexpr const char* specified_name_is_not_newtype_name = "Specified name is not a NewType name"; +static constexpr const char* illegal_expression_type = "Illegal expression type"; +static constexpr const char* objects_types_are_different = "Objects types are different"; +static constexpr const char* select_cannot_used_with_objects = "Select cannot be used with objects"; +static constexpr const char* constants_can_not_modified = "Constants can not be modified"; +static constexpr const char* data_can_not_read_into_object = "Data can not be read into an object"; +static constexpr const char* variable_type_mismatch = "Variable type mismatch"; +static constexpr const char* identifier_not_used_like_this = "Identifier \"{0}\" may not be used like this"; +static constexpr const char* array_not_found = "Array not found"; +static constexpr const char* array_type_mismatch = "array type mismatch"; +static constexpr const char* incorrect_number_of_dimensions = "incorrect number of dimensions"; +static constexpr const char* variable_must_be_type = "Variable must be a Type"; +static constexpr const char* type_field_not_found = "Type field not found"; +static constexpr const char* variable_must_a_blitz_array = "Variable must be a Blitz array"; +static constexpr const char* incorrect_number_of_subscripts = "Incorrect number of subscripts"; +static constexpr const char* blitz_array_subscript_out_of_range = "Blitz array subscript out of range"; +static constexpr const char* reserved_pseudo_namespace = "Reserved pseudo namespace."; -static constexpr MultiLang::wstring runtime_message = L"Runtime Message"; -static constexpr MultiLang::string current_language = "Current Language: English"; -static constexpr MultiLang::string debugger_locals = "Locals"; -static constexpr MultiLang::string debugger_globals = "Globals"; -static constexpr MultiLang::string debugger_consts = "Consts"; -static constexpr MultiLang::string debugger_unknown = ""; -static constexpr MultiLang::string debugger_cant_access_appdata = "Couldn't access the AppData folder! This is needed for the preferences file to work.\nThe IDE will use the default values."; -static constexpr MultiLang::string debugger_cant_create_folder = "Couldn't create a folder for the preferences!\nThe IDE will use the default values."; -static constexpr MultiLang::string debugger_empty_ini = "blitzide.ini is empty!\nDefaults will be set."; +static constexpr const wchar_t* runtime_message = L"Runtime Message"; +static constexpr const char* current_language = "Current Language: English"; +static constexpr const char* debugger_locals = "Locals"; +static constexpr const char* debugger_globals = "Globals"; +static constexpr const char* debugger_consts = "Consts"; +static constexpr const char* debugger_unknown = ""; +static constexpr const char* debugger_cant_access_appdata = "Couldn't access the AppData folder! This is needed for the preferences file to work.\nThe IDE will use the default values."; +static constexpr const char* debugger_cant_create_folder = "Couldn't create a folder for the preferences!\nThe IDE will use the default values."; +static constexpr const char* debugger_empty_ini = "blitzide.ini is empty!\nDefaults will be set."; static constexpr char credits[] = "Programming and design: Mark Sibly\r\n" "Keeping this thing alive: juanjp600, Saalvage, VaneBrain, AestheticalZ and ZiYueCommentary\r\n" @@ -217,9 +218,9 @@ static constexpr char credits[] = "Documentation: Mark Sibly, Simon Harrison, Paul Gerfen, Shane Monroe and the Blitz Doc Team\r\n" "Testing and support: James Boyd, Simon Armstrong and the Blitz Dev Team\r\n" "Image loader courtesy of FreeImage by Floris van den berg"; -static constexpr MultiLang::string title_release = " - Release Version"; -static constexpr MultiLang::string program_ended = "Program has ended."; -static constexpr MultiLang::string bb_err = "Blitz Error"; -static constexpr MultiLang::string init_err = "Error when creating BlitzIDE process. Please make sure ide.exe is inside the \"bin\" folder."; -static constexpr MultiLang::string blitz3d_message = "Blitz3D Message"; -static constexpr MultiLang::string created_with_beta = "Created with Blitz3D Beta V{0}.{1}"; \ No newline at end of file +static constexpr const char* title_release = " - Release Version"; +static constexpr const char* program_ended = "Program has ended."; +static constexpr const char* bb_err = "Blitz Error"; +static constexpr const char* init_err = "Error when creating BlitzIDE process. Please make sure ide.exe is inside the \"bin\" folder."; +static constexpr const char* blitz3d_message = "Blitz3D Message"; +static constexpr const char* created_with_beta = "Created with Blitz3D Beta V{0}.{1}"; \ No newline at end of file diff --git a/MultiLang/MultiLang.h b/MultiLang/MultiLang.h index 2aead20f..578430d4 100644 --- a/MultiLang/MultiLang.h +++ b/MultiLang/MultiLang.h @@ -2,8 +2,6 @@ #define MULTILANG namespace MultiLang { - typedef const char* string; - typedef const wchar_t* wstring; #ifdef CHINESE_SIMP // Simplified Chinese #include "SimplifiedChinese.cpp" #elif defined CHINESE_TRAD // Traditional Chinese diff --git a/MultiLang/SimplifiedChinese.cpp b/MultiLang/SimplifiedChinese.cpp index 7f49a023..fbea0ae8 100644 --- a/MultiLang/SimplifiedChinese.cpp +++ b/MultiLang/SimplifiedChinese.cpp @@ -1,218 +1,216 @@ #include "MultiLang.h" -// 实际上我不会Blitz3D,所以这堆玩意怎么翻译我也不太清楚 -// 欢迎帮忙纠正翻译问题! +// GB 2312 -static constexpr MultiLang::string array_bounds_ex = "Blitz数组索引越界"; -static constexpr MultiLang::string null_obj_ex = "对象不存在"; -static constexpr MultiLang::string bad_data_type = "错误的数据类型!数据类型不应是浮点值、字符串或整型"; -static constexpr MultiLang::string out_of_data = "数据不足"; -static constexpr MultiLang::string stats_strings = "激活的字符串:{0}"; -static constexpr MultiLang::string stats_objects = "激活的对象:{0}"; -static constexpr MultiLang::string stats_unreleased = "未释放的对象:{0}"; -static constexpr MultiLang::string sound_not_exist = "声音不存在"; -static constexpr MultiLang::string bank_not_exist = "bbBank不存在"; -static constexpr MultiLang::string offset_out_of_range = "位置超出范围"; -static constexpr MultiLang::string graphics_not_set = "3D画面模式未设置"; -static constexpr MultiLang::string texture_not_exist = "纹理不存在"; -static constexpr MultiLang::string brush_not_exist = "Brush不存在"; -static constexpr MultiLang::string entity_not_exist = "实体不存在"; -static constexpr MultiLang::string parent_entity_not_exist = "父实体不存在"; -static constexpr MultiLang::string entity_not_mesh = "实体不是Mesh"; -static constexpr MultiLang::string entity_not_object = "实体不是对象"; -static constexpr MultiLang::string collision_out_of_range = "碰撞索引超出范围"; -static constexpr MultiLang::string entity_not_camera = "实体不是相机"; -static constexpr MultiLang::string entity_not_light = "实体不是灯光"; -static constexpr MultiLang::string entity_not_model = "实体不是模型"; -static constexpr MultiLang::string entity_not_sprite = "实体不是Sprite"; -static constexpr MultiLang::string entity_not_md2_model = "实体不是MD2模型"; -static constexpr MultiLang::string entity_not_bsp_model = "实体不是BSP模型"; -static constexpr MultiLang::string entity_not_terrain = "实体不是地形"; -static constexpr MultiLang::string illegal_number_segments = "段数非法"; -static constexpr MultiLang::string vertex_out_of_range = "顶点索引超出范围"; -static constexpr MultiLang::string texture_coordinate_out_of_range = "纹理坐标设置超出范围"; -static constexpr MultiLang::string illegal_texture_frames = "非法纹理帧数"; -static constexpr MultiLang::string mesh_cannot_add_to_self = "无法将Mesh添加到其本身"; -static constexpr MultiLang::string surface_out_of_range = "表面索引超出范围"; -static constexpr MultiLang::string illegal_terrain_size = "非法地形大小"; -static constexpr MultiLang::string unable_load_heightmap = "无法加载高度图"; -static constexpr MultiLang::string terrain_must_be_square = "地表必须为正方形"; -static constexpr MultiLang::string listener_already_created = "已创建监听器"; -static constexpr MultiLang::string no_listener_created = "未创建监听器"; -static constexpr MultiLang::string entity_cannot_parented_itself = "实体不能为其自身的父实体"; -static constexpr MultiLang::string entity_no_animations = "实体无动画"; -static constexpr MultiLang::string entity_not_model_or_camera = "实体不是模型或相机"; -static constexpr MultiLang::string entitytype_id_range = "EntityType ID必须为0至999之间的数字"; -static constexpr MultiLang::string unable_create_gxscene_instance = "无法创建gxScene实例"; -static constexpr MultiLang::string file_not_exist = "文件不存在"; -static constexpr MultiLang::string directory_not_exist = "文件夹不存在"; -static constexpr MultiLang::string image_not_exist = "图像不存在"; -static constexpr MultiLang::string image_frame_out_of_range = "图像帧超出范围"; -static constexpr MultiLang::string font_not_exist = "字体不存在"; -static constexpr MultiLang::string buffer_not_exist = "缓冲区不存在"; -static constexpr MultiLang::string illegal_graphics_driver_index = "非法显示驱动索引"; -static constexpr MultiLang::string illegal_graphics_mode_index = "非法显示模式索引"; -static constexpr MultiLang::string unable_create_gxgraphics_instance = "无法创建gxGraphics实例"; -static constexpr MultiLang::string illegal_graphics_mode = "非法显示模式,显示模式为0到7之间的值。"; -static constexpr MultiLang::string illegal_graphics3d_mode = "非法3D显示模式,显示模式为0到7之间的值。"; -static constexpr MultiLang::string unable_close_gxgraphics_instance = "无法关闭gxGraphics实例"; -static constexpr MultiLang::wstring runtime_error = L"运行时错误!"; -static constexpr MultiLang::string illegal_frame_count = "非法帧数"; -static constexpr MultiLang::string illegal_first_frame = "非法第一帧"; -static constexpr MultiLang::string not_enough_frames_bitmap = "位图帧数不足"; -static constexpr MultiLang::string udp_stream_not_exist = "UDP流不存在"; -static constexpr MultiLang::string tcp_stream_not_exist = "TCP流不存在"; -static constexpr MultiLang::string tcp_server_not_exist = "TCP服务器不存在"; -static constexpr MultiLang::string host_out_of_range = "主机索引超出范围"; -static constexpr MultiLang::string stream_not_exist = "流不存在"; -static constexpr MultiLang::string readbyte_invalid_byte = "ReadByte无法读取有效字节\n请确保读取的文件尚未损坏"; -static constexpr MultiLang::string readshort_invalid_short = "ReadShort无法读取有效短整型\n请确保读取的文件尚未损坏"; -static constexpr MultiLang::string readint_invalid_int = "ReadInt无法读取有效整型\n请确保读取的文件尚未损坏"; -static constexpr MultiLang::string readfloat_invalid_float = "ReadFloat无法读取有效浮点值\n请确保读取的文件尚未损坏"; -static constexpr MultiLang::string readstring_invalid_string = "ReadString无法读取有效字符串\n请确保读取的文件尚未损坏"; -static constexpr MultiLang::string illegal_buffer_size = "非法缓冲区大小"; -static constexpr MultiLang::string string_parameter_positive = "参数必须为正"; -static constexpr MultiLang::string string_parameter_greater = "参数必须大于0"; -static constexpr MultiLang::string userlib_not_found = "用户库未找到:{0}"; -static constexpr MultiLang::string userlib_function_not_found = "用户库函数未找到:{0}"; -static constexpr MultiLang::wstring integer_divide_zero = L"整数除零"; -static constexpr MultiLang::string memory_access_violation = "内存访问冲突!\n程序试图读取或写入受保护的内存地址。"; -static constexpr MultiLang::wstring illegal_instruction = L"非法指令。\n程序试图执行无效的CPU指令"; -static constexpr MultiLang::wstring stack_overflow = L"堆栈溢出!\n请确保程序内没有递归现象"; -static constexpr MultiLang::wstring integer_overflow = L"整数溢出!\n请确保整数的值不超过2147483647"; -static constexpr MultiLang::wstring float_overflow = L"浮点溢出!\n请确保浮点的值不超过3.40282347e+38F"; -static constexpr MultiLang::wstring float_divide_zero = L"浮点除零"; -static constexpr MultiLang::wstring unknown_runtime_exception = L"未知运行时错误"; -static constexpr MultiLang::string unable_run_module = "无法启动Blitz Basic模块"; -static constexpr MultiLang::string cant_find_symbol = "找不到符号:{0}"; -static constexpr MultiLang::string unknown_exception_thrown = "未知/非标准异常抛出!"; -static constexpr MultiLang::string startup_error = "启动错误:{0}"; -static constexpr MultiLang::string array_index_out_of_bounds = "数组索引超出范围"; -static constexpr MultiLang::string unable_start_program = "无法启动程序!无法启动所需模块"; -static constexpr MultiLang::string reserved_pseudo_namespace = "保留的伪命名空间"; +static constexpr const char* array_bounds_ex = "Blitz数组索引越界"; +static constexpr const char* null_obj_ex = "对象不存在"; +static constexpr const char* bad_data_type = "错误的数据类型!数据类型不应是浮点值、字符串或整型"; +static constexpr const char* out_of_data = "数据不足"; +static constexpr const char* stats_strings = "激活的字符串:{0}"; +static constexpr const char* stats_objects = "激活的对象:{0}"; +static constexpr const char* stats_unreleased = "未释放的对象:{0}"; +static constexpr const char* sound_not_exist = "声音不存在"; +static constexpr const char* bank_not_exist = "bbBank不存在"; +static constexpr const char* offset_out_of_range = "位置超出范围"; +static constexpr const char* graphics_not_set = "3D画面模式未设置"; +static constexpr const char* texture_not_exist = "纹理不存在"; +static constexpr const char* brush_not_exist = "Brush不存在"; +static constexpr const char* entity_not_exist = "实体不存在"; +static constexpr const char* parent_entity_not_exist = "父实体不存在"; +static constexpr const char* entity_not_mesh = "实体不是Mesh"; +static constexpr const char* entity_not_object = "实体不是对象"; +static constexpr const char* collision_out_of_range = "碰撞索引超出范围"; +static constexpr const char* entity_not_camera = "实体不是相机"; +static constexpr const char* entity_not_light = "实体不是灯光"; +static constexpr const char* entity_not_model = "实体不是模型"; +static constexpr const char* entity_not_sprite = "实体不是Sprite"; +static constexpr const char* entity_not_md2_model = "实体不是MD2模型"; +static constexpr const char* entity_not_bsp_model = "实体不是BSP模型"; +static constexpr const char* entity_not_terrain = "实体不是地形"; +static constexpr const char* illegal_number_segments = "段数非法"; +static constexpr const char* vertex_out_of_range = "顶点索引超出范围"; +static constexpr const char* texture_coordinate_out_of_range = "纹理坐标设置超出范围"; +static constexpr const char* illegal_texture_frames = "非法纹理帧数"; +static constexpr const char* mesh_cannot_add_to_self = "无法将Mesh添加到其本身"; +static constexpr const char* surface_out_of_range = "表面索引超出范围"; +static constexpr const char* illegal_terrain_size = "非法地形大小"; +static constexpr const char* unable_load_heightmap = "无法加载高度图"; +static constexpr const char* terrain_must_be_square = "地表必须为正方形"; +static constexpr const char* listener_already_created = "已创建监听器"; +static constexpr const char* no_listener_created = "未创建监听器"; +static constexpr const char* entity_cannot_parented_itself = "实体不能为其自身的父实体"; +static constexpr const char* entity_no_animations = "实体无动画"; +static constexpr const char* entity_not_model_or_camera = "实体不是模型或相机"; +static constexpr const char* entitytype_id_range = "EntityType ID必须为0至999之间的数字"; +static constexpr const char* unable_create_gxscene_instance = "无法创建gxScene实例"; +static constexpr const char* file_not_exist = "文件不存在"; +static constexpr const char* directory_not_exist = "文件夹不存在"; +static constexpr const char* image_not_exist = "图像不存在"; +static constexpr const char* image_frame_out_of_range = "图像帧超出范围"; +static constexpr const char* font_not_exist = "字体不存在"; +static constexpr const char* buffer_not_exist = "缓冲区不存在"; +static constexpr const char* illegal_graphics_driver_index = "非法显示驱动索引"; +static constexpr const char* illegal_graphics_mode_index = "非法显示模式索引"; +static constexpr const char* unable_create_gxgraphics_instance = "无法创建gxGraphics实例"; +static constexpr const char* illegal_graphics_mode = "非法显示模式,显示模式为0到7之间的值。"; +static constexpr const char* illegal_graphics3d_mode = "非法3D显示模式,显示模式为0到7之间的值。"; +static constexpr const char* unable_close_gxgraphics_instance = "无法关闭gxGraphics实例"; +static constexpr const wchar_t* runtime_error = L"运行时错误!"; +static constexpr const char* illegal_frame_count = "非法帧数"; +static constexpr const char* illegal_first_frame = "非法第一帧"; +static constexpr const char* not_enough_frames_bitmap = "位图帧数不足"; +static constexpr const char* udp_stream_not_exist = "UDP流不存在"; +static constexpr const char* tcp_stream_not_exist = "TCP流不存在"; +static constexpr const char* tcp_server_not_exist = "TCP服务器不存在"; +static constexpr const char* host_out_of_range = "主机索引超出范围"; +static constexpr const char* stream_not_exist = "流不存在"; +static constexpr const char* readbyte_invalid_byte = "ReadByte无法读取有效字节\n请确保读取的文件尚未损坏"; +static constexpr const char* readshort_invalid_short = "ReadShort无法读取有效短整型\n请确保读取的文件尚未损坏"; +static constexpr const char* readint_invalid_int = "ReadInt无法读取有效整型\n请确保读取的文件尚未损坏"; +static constexpr const char* readfloat_invalid_float = "ReadFloat无法读取有效浮点值\n请确保读取的文件尚未损坏"; +static constexpr const char* readstring_invalid_string = "ReadString无法读取有效字符串\n请确保读取的文件尚未损坏"; +static constexpr const char* illegal_buffer_size = "非法缓冲区大小"; +static constexpr const char* string_parameter_positive = "参数必须为正"; +static constexpr const char* string_parameter_greater = "参数必须大于0"; +static constexpr const char* userlib_not_found = "用户库未找到:{0}"; +static constexpr const char* userlib_function_not_found = "用户库函数未找到:{0}"; +static constexpr const wchar_t* integer_divide_zero = L"整数除零"; +static constexpr const char* memory_access_violation = "内存访问冲突!\n程序试图读取或写入受保护的内存地址。"; +static constexpr const wchar_t* illegal_instruction = L"非法指令。\n程序试图执行无效的CPU指令"; +static constexpr const wchar_t* stack_overflow = L"堆栈溢出!\n请确保程序内没有递归现象"; +static constexpr const wchar_t* integer_overflow = L"整数溢出!\n请确保整数的值不超过2147483647"; +static constexpr const wchar_t* float_overflow = L"浮点溢出!\n请确保浮点的值不超过3.40282347e+38F"; +static constexpr const wchar_t* float_divide_zero = L"浮点除零"; +static constexpr const wchar_t* unknown_runtime_exception = L"未知运行时错误"; +static constexpr const char* unable_run_module = "无法启动Blitz Basic模块"; +static constexpr const char* cant_find_symbol = "找不到符号:{0}"; +static constexpr const char* unknown_exception_thrown = "未知/非标准异常抛出!"; +static constexpr const char* startup_error = "启动错误:{0}"; +static constexpr const char* array_index_out_of_bounds = "数组索引超出范围"; +static constexpr const char* unable_start_program = "无法启动程序!无法启动所需模块"; +static constexpr const char* reserved_pseudo_namespace = "保留的伪命名空间"; +static constexpr const char* expect_identifier = "\".\"后应为标识符"; +static constexpr const char* expect_string_afrer_directive = "lib指令后应为字符串"; +static constexpr const char* unknown_decl_directive = "未知库指令"; +static constexpr const char* function_decl_without_directive = "无lib的函数库"; +static constexpr const char* duplicate_identifier = "重复标识符"; +static constexpr const char* expect_left_bracket_after_function_identifier = "函数名后缺少\"(\""; +static constexpr const char* expect_right_bracket_after_function_identifier = "函数参数后缺少\")\""; +static constexpr const char* expect_identifier_or_string_after_alias = "别名后应为标识符或字符串"; +static constexpr const char* unable_open_linker_dll = "无法打开linker.dll"; +static constexpr const char* error_in_linker_dll = "linker.dll出错"; +static constexpr const char* unable_open_runtime_dll = "无法打开runtime.dll"; +static constexpr const char* error_in_runtime_dll = "runtime.dll出错"; +static constexpr const char* library_version_error = "库版本出错"; +static constexpr const char* immediate_value_cannot_by_label = "立即值不能通过标签"; +static constexpr const char* operand_must_be_immediate = "操作数必须为立即数"; +static constexpr const char* unrecognized_instruction = "未识别指令"; +static constexpr const char* illegal_addressing_mode = "非法寻地址方式"; +static constexpr const char* operand_error = "操作数误差"; +static constexpr const char* duplicate_label = "重复标签"; +static constexpr const char* missing_close_quote = "缺失后引号"; +static constexpr const char* expect_comma = "缺少\",\""; +static constexpr const char* too_many_operands = "操作数过多"; +static constexpr const char* expression_must_be_constant = "表达式必须为常数"; +static constexpr const char* constants_must_initialized = "常数必须被初始化"; +static constexpr const char* duplicate_variable_name = "重复变量名"; +static constexpr const char* undefined_label = "未定义标签"; +static constexpr const char* data_expression_must_be_constant = "数据表达式必须为常数"; +static constexpr const char* blitz_array_sizes_must_be_constant = "Blitz数组大小必须为常数"; +static constexpr const char* blitz_array_sizes_must_not_negative = "Blitz数组大小不能为负数"; +static constexpr const char* illegal_type_conversion = "非法类型转换({0} -> {1})"; +static constexpr const char* too_many_parameters = "参数过多"; +static constexpr const char* not_enough_parameters = "参数过少"; +static constexpr const char* function_not_found = "函数\"{0}\"未找到"; +static constexpr const char* incorrect_function_return_type = "错误函数返回值"; +static constexpr const char* cant_convert_null_to_int = "不能将null转为整数"; +static constexpr const char* cant_convert_null_to_float = "不能将null转为浮点值"; +static constexpr const char* cant_convert_null_to_string = "不能将null转为字符串"; +static constexpr const char* illegal_operator_for_type = "非法类型运算符"; +static constexpr const char* arithmetic_operator_custom_type = "算术运算符不能用于自定类型对象"; +static constexpr const char* operator_cannot_applied_to_strings = "运算符不能用于字符串"; +static constexpr const char* division_by_zero = "数字除零"; +static constexpr const char* custom_type_not_found = "自定类型名未找到"; +static constexpr const char* type_is_not_custom_type = "类型不是自定类型"; +static constexpr const char* after_cannot_used_on_null = "\"After\"不能用于\"Null\""; +static constexpr const char* after_must_used_with_custom_type = "\"After\"必须和自定类型对象使用"; +static constexpr const char* before_cannot_used_with_null = "\"Before\"不能用于\"Null\""; +static constexpr const char* before_must_used_with_custom_type = "\"Before\"必须和自定类型对象使用"; +static constexpr const char* objecthandle_must_used_with_object = "\"ObjectHandle\"必须和对象使用"; +static constexpr const char* internal_compiler_error = "编译器内部错误!"; +static constexpr const char* type_not_found = "类型\"{0}\"未找到"; +static constexpr const char* error_in_operand = "操作数错误"; +static constexpr const char* illegal_operand_size = "非法操作数大小"; +static constexpr const char* register_must_be_32_bit = "寄存器必须为32位"; +static constexpr const char* next_without_for = "\"Next\"缺少\"For\""; +static constexpr const char* wend_without_while = "\"Wend\"缺少\"While\""; +static constexpr const char* else_without_if = "\"Else\"缺少\"If\""; +static constexpr const char* endif_without_if = "\"Endif\"缺少\"If\""; +static constexpr const char* end_function_without_function = "\"End Function\"缺少\"Function\""; +static constexpr const char* until_without_repeat = "\"Until\"缺少\"Repeat\""; +static constexpr const char* forever_without_repeat = "\"Forever\"缺少\"Repeat\""; +static constexpr const char* case_without_select = "\"Case\"缺少\"Select\""; +static constexpr const char* end_select_without_select = "\"End Select\"缺少\"Select\""; +static constexpr const char* expecting = "缺少{0}"; +static constexpr const char* identifier = "标识符"; +static constexpr const char* include_filename = "导入文件名"; +static constexpr const char* unable_open_include_file = "无法打开导入文件"; +static constexpr const char* end_of_file = "文件尾部(EOF)"; +static constexpr const char* mismatched_brackets = "括号不匹配"; +static constexpr const char* variable_assignment = "变量赋值"; +static constexpr const char* until_or_forever = "\"Until\"或\"Forever\""; +static constexpr const char* expression_sequence = "表达式序列"; +static constexpr const char* case_default_or_end_select = "\"Case\"、\"Default\"或\"End Select\""; +static constexpr const char* before_or_after = "\"Before\"或\"After\""; +static constexpr const char* data_can_only_appear_in_main = "\"Data\"只能在主程序出现"; +static constexpr const char* type_can_only_appear_in_main = "\"Type\"只能在主程序出现"; +static constexpr const char* const_can_only_appear_in_main = "\"Const\"只能在主程序出现"; +static constexpr const char* function_can_only_appear_in_main = "\"Function\"只能在主程序出现"; +static constexpr const char* global_can_only_appear_in_main = "\"Global\"只能在主程序出现"; +static constexpr const char* blitz_arrays_may_not_be_constant = "Blitz数组不能为常量"; +static constexpr const char* cant_have_zero_dimension_array = "不能有零维数组"; +static constexpr const char* field_or_end_type = "\"Field\"或\"End Type\""; +static constexpr const char* expression = "表达式"; +static constexpr const char* undefined_label_check = "未声明标签\"{0}\""; +static constexpr const char* array_not_found_in_main = "在主程序中找不到数组"; +static constexpr const char* constants_can_not_assigned_to = "不能将常量分配给"; +static constexpr const char* blitz_arrays_can_not_assigned_to = "不能将Blitz数组分配给"; +static constexpr const char* gosub_may_not_used_inside_function = "\"Gosub\"不能在函数内使用"; +static constexpr const char* break_must_appear_inside_loop = "break必须在循环中出现"; +static constexpr const char* index_variable_can_not_constant = "索引变量不能为常量"; +static constexpr const char* index_variable_must_integer_or_real = "索引变量必须为整数或实数"; +static constexpr const char* step_value_must_constant = "步进值必须为常量"; +static constexpr const char* index_variable_is_not_newtype = "索引变量不是新类型"; +static constexpr const char* type_name_not_found = "类型名未找到"; +static constexpr const char* type_mismatch = "类型不匹配"; +static constexpr const char* main_cannot_return_value = "主程序不能返回值"; +static constexpr const char* cant_delete_non_newtype = "不能删除非新类型"; +static constexpr const char* specified_name_is_not_newtype_name = "指定名称不是新类型名"; +static constexpr const char* illegal_expression_type = "非法表达式类型"; +static constexpr const char* objects_types_are_different = "对量类型不同"; +static constexpr const char* select_cannot_used_with_objects = "Select不能用于对象"; +static constexpr const char* constants_can_not_modified = "常量不可被修改"; +static constexpr const char* data_can_not_read_into_object = "无法将数据读入Object"; +static constexpr const char* variable_type_mismatch = "变量类型不匹配"; +static constexpr const char* identifier_not_used_like_this = "标识符\"{0}\"不允许如此使用"; +static constexpr const char* array_not_found = "数组未找到"; +static constexpr const char* array_type_mismatch = "数组类型不匹配"; +static constexpr const char* incorrect_number_of_dimensions = "错误维度数字"; +static constexpr const char* variable_must_be_type = "变量必须为类型"; +static constexpr const char* type_field_not_found = "类型数据未找到"; +static constexpr const char* variable_must_a_blitz_array = "变量必须为Blitz数组"; +static constexpr const char* incorrect_number_of_subscripts = "下标数出错"; +static constexpr const char* blitz_array_subscript_out_of_range = "Blitz数组下标超出范围"; -static constexpr MultiLang::string expect_identifier = "\".\"后应为标识符"; -static constexpr MultiLang::string expect_string_afrer_directive = "lib指令后应为字符串"; -static constexpr MultiLang::string unknown_decl_directive = "未知库指令"; -static constexpr MultiLang::string function_decl_without_directive = "无lib的函数库"; -static constexpr MultiLang::string duplicate_identifier = "重复标识符"; -static constexpr MultiLang::string expect_left_bracket_after_function_identifier = "函数名后缺少\"(\""; -static constexpr MultiLang::string expect_right_bracket_after_function_identifier = "函数参数后缺少\")\""; -static constexpr MultiLang::string expect_identifier_or_string_after_alias = "别名后应为标识符或字符串"; -static constexpr MultiLang::string unable_open_linker_dll = "无法打开linker.dll"; -static constexpr MultiLang::string error_in_linker_dll = "linker.dll出错"; -static constexpr MultiLang::string unable_open_runtime_dll = "无法打开runtime.dll"; -static constexpr MultiLang::string error_in_runtime_dll = "runtime.dll出错"; -static constexpr MultiLang::string library_version_error = "库版本出错"; -static constexpr MultiLang::string immediate_value_cannot_by_label = "立即值不能通过标签"; -static constexpr MultiLang::string operand_must_be_immediate = "操作数必须为立即数"; -static constexpr MultiLang::string unrecognized_instruction = "未识别指令"; -static constexpr MultiLang::string illegal_addressing_mode = "非法寻地址方式"; -static constexpr MultiLang::string operand_error = "操作数误差"; -static constexpr MultiLang::string duplicate_label = "重复标签"; -static constexpr MultiLang::string missing_close_quote = "缺失后引号"; -static constexpr MultiLang::string expect_comma = "缺少\",\""; -static constexpr MultiLang::string too_many_operands = "操作数过多"; -static constexpr MultiLang::string expression_must_be_constant = "表达式必须为常数"; -static constexpr MultiLang::string constants_must_initialized = "常数必须被初始化"; -static constexpr MultiLang::string duplicate_variable_name = "重复变量名"; -static constexpr MultiLang::string undefined_label = "未定义标签"; -static constexpr MultiLang::string data_expression_must_be_constant = "数据表达式必须为常数"; -static constexpr MultiLang::string blitz_array_sizes_must_be_constant = "Blitz数组大小必须为常数"; -static constexpr MultiLang::string blitz_array_sizes_must_not_negative = "Blitz数组大小不能为负数"; -static constexpr MultiLang::string illegal_type_conversion = "非法类型转换({0} -> {1})"; -static constexpr MultiLang::string too_many_parameters = "参数过多"; -static constexpr MultiLang::string not_enough_parameters = "参数过少"; -static constexpr MultiLang::string function_not_found = "函数\"{0}\"未找到"; -static constexpr MultiLang::string incorrect_function_return_type = "错误函数返回值"; -static constexpr MultiLang::string cant_convert_null_to_int = "不能将null转为整数"; -static constexpr MultiLang::string cant_convert_null_to_float = "不能将null转为浮点值"; -static constexpr MultiLang::string cant_convert_null_to_string = "不能将null转为字符串"; -static constexpr MultiLang::string illegal_operator_for_type = "非法类型运算符"; -static constexpr MultiLang::string arithmetic_operator_custom_type = "算术运算符不能用于自定类型对象"; -static constexpr MultiLang::string operator_cannot_applied_to_strings = "运算符不能用于字符串"; -static constexpr MultiLang::string division_by_zero = "数字除零"; -static constexpr MultiLang::string custom_type_not_found = "自定类型名未找到"; -static constexpr MultiLang::string type_is_not_custom_type = "类型不是自定类型"; -static constexpr MultiLang::string after_cannot_used_on_null = "\"After\"不能用于\"Null\""; -static constexpr MultiLang::string after_must_used_with_custom_type = "\"After\"必须和自定类型对象使用"; -static constexpr MultiLang::string before_cannot_used_with_null = "\"Before\"不能用于\"Null\""; -static constexpr MultiLang::string before_must_used_with_custom_type = "\"Before\"必须和自定类型对象使用"; -static constexpr MultiLang::string objecthandle_must_used_with_object = "\"ObjectHandle\"必须和对象使用"; -static constexpr MultiLang::string internal_compiler_error = "编译器内部错误!"; -static constexpr MultiLang::string type_not_found = "类型\"{0}\"未找到"; -static constexpr MultiLang::string error_in_operand = "操作数错误"; -static constexpr MultiLang::string illegal_operand_size = "非法操作数大小"; -static constexpr MultiLang::string register_must_be_32_bit = "寄存器必须为32位"; -static constexpr MultiLang::string next_without_for = "\"Next\"缺少\"For\""; -static constexpr MultiLang::string wend_without_while = "\"Wend\"缺少\"While\""; -static constexpr MultiLang::string else_without_if = "\"Else\"缺少\"If\""; -static constexpr MultiLang::string endif_without_if = "\"Endif\"缺少\"If\""; -static constexpr MultiLang::string end_function_without_function = "\"End Function\"缺少\"Function\""; -static constexpr MultiLang::string until_without_repeat = "\"Until\"缺少\"Repeat\""; -static constexpr MultiLang::string forever_without_repeat = "\"Forever\"缺少\"Repeat\""; -static constexpr MultiLang::string case_without_select = "\"Case\"缺少\"Select\""; -static constexpr MultiLang::string end_select_without_select = "\"End Select\"缺少\"Select\""; -static constexpr MultiLang::string expecting = "缺少{0}"; -static constexpr MultiLang::string identifier = "标识符"; -static constexpr MultiLang::string include_filename = "导入文件名"; -static constexpr MultiLang::string unable_open_include_file = "无法打开导入文件"; -static constexpr MultiLang::string end_of_file = "文件尾部(EOF)"; -static constexpr MultiLang::string mismatched_brackets = "括号不匹配"; -static constexpr MultiLang::string variable_assignment = "变量赋值"; -static constexpr MultiLang::string until_or_forever = "\"Until\"或\"Forever\""; -static constexpr MultiLang::string expression_sequence = "表达式序列"; -static constexpr MultiLang::string case_default_or_end_select = "\"Case\"、\"Default\"或\"End Select\""; -static constexpr MultiLang::string before_or_after = "\"Before\"或\"After\""; -static constexpr MultiLang::string data_can_only_appear_in_main = "\"Data\"只能在主程序出现"; -static constexpr MultiLang::string type_can_only_appear_in_main = "\"Type\"只能在主程序出现"; -static constexpr MultiLang::string const_can_only_appear_in_main = "\"Const\"只能在主程序出现"; -static constexpr MultiLang::string function_can_only_appear_in_main = "\"Function\"只能在主程序出现"; -static constexpr MultiLang::string global_can_only_appear_in_main = "\"Global\"只能在主程序出现"; -static constexpr MultiLang::string blitz_arrays_may_not_be_constant = "Blitz数组不能为常量"; -static constexpr MultiLang::string cant_have_zero_dimension_array = "不能有零维数组"; -static constexpr MultiLang::string field_or_end_type = "\"Field\"或\"End Type\""; -static constexpr MultiLang::string expression = "表达式"; -static constexpr MultiLang::string undefined_label_check = "未声明标签\"{0}\""; -static constexpr MultiLang::string array_not_found_in_main = "在主程序中找不到数组"; -static constexpr MultiLang::string constants_can_not_assigned_to = "不能将常量分配给"; -static constexpr MultiLang::string blitz_arrays_can_not_assigned_to = "不能将Blitz数组分配给"; -static constexpr MultiLang::string gosub_may_not_used_inside_function = "\"Gosub\"不能在函数内使用"; -static constexpr MultiLang::string break_must_appear_inside_loop = "break必须在循环中出现"; -static constexpr MultiLang::string index_variable_can_not_constant = "索引变量不能为常量"; -static constexpr MultiLang::string index_variable_must_integer_or_real = "索引变量必须为整数或实数"; -static constexpr MultiLang::string step_value_must_constant = "步进值必须为常量"; -static constexpr MultiLang::string index_variable_is_not_newtype = "索引变量不是新类型"; -static constexpr MultiLang::string type_name_not_found = "类型名未找到"; -static constexpr MultiLang::string type_mismatch = "类型不匹配"; -static constexpr MultiLang::string main_cannot_return_value = "主程序不能返回值"; -static constexpr MultiLang::string cant_delete_non_newtype = "不能删除非新类型"; -static constexpr MultiLang::string specified_name_is_not_newtype_name = "指定名称不是新类型名"; -static constexpr MultiLang::string illegal_expression_type = "非法表达式类型"; -static constexpr MultiLang::string objects_types_are_different = "对量类型不同"; -static constexpr MultiLang::string select_cannot_used_with_objects = "Select不能用于对象"; -static constexpr MultiLang::string constants_can_not_modified = "常量不可被修改"; -static constexpr MultiLang::string data_can_not_read_into_object = "无法将数据读入Object"; -static constexpr MultiLang::string variable_type_mismatch = "变量类型不匹配"; -static constexpr MultiLang::string identifier_not_used_like_this = "标识符\"{0}\"不允许如此使用"; -static constexpr MultiLang::string array_not_found = "数组未找到"; -static constexpr MultiLang::string array_type_mismatch = "数组类型不匹配"; -static constexpr MultiLang::string incorrect_number_of_dimensions = "错误维度数字"; -static constexpr MultiLang::string variable_must_be_type = "变量必须为类型"; -static constexpr MultiLang::string type_field_not_found = "类型数据未找到"; -static constexpr MultiLang::string variable_must_a_blitz_array = "变量必须为Blitz数组"; -static constexpr MultiLang::string incorrect_number_of_subscripts = "下标数出错"; -static constexpr MultiLang::string blitz_array_subscript_out_of_range = "Blitz数组下标超出范围"; - -static constexpr MultiLang::wstring runtime_message = L"运行时消息"; -static constexpr MultiLang::string current_language = "当前语言:简体中文"; -static constexpr MultiLang::string debugger_locals = "本地"; -static constexpr MultiLang::string debugger_globals = "全局"; -static constexpr MultiLang::string debugger_consts = "常量"; -static constexpr MultiLang::string debugger_unknown = "<未知>"; -static constexpr MultiLang::string debugger_cant_access_appdata = "无法访问AppData文件夹!配置文件无法读取。\nIDE将使用默认值"; -static constexpr MultiLang::string debugger_cant_create_folder = "无法为配置文件创建文件夹!\nIDE将使用默认值"; -static constexpr MultiLang::string debugger_empty_ini = "blitzide.ini为空!\n将使用默认设置"; +static constexpr const wchar_t* runtime_message = L"运行时消息"; +static constexpr const char* current_language = "当前语言:简体中文"; +static constexpr const char* debugger_locals = "本地"; +static constexpr const char* debugger_globals = "全局"; +static constexpr const char* debugger_consts = "常量"; +static constexpr const char* debugger_unknown = "<未知>"; +static constexpr const char* debugger_cant_access_appdata = "无法访问AppData文件夹!配置文件无法读取。\nIDE将使用默认值"; +static constexpr const char* debugger_cant_create_folder = "无法为配置文件创建文件夹!\nIDE将使用默认值"; +static constexpr const char* debugger_empty_ini = "blitzide.ini为空!\n将使用默认设置"; static constexpr char credits[] = "编程及设计:Mark Sibly\r\n" "项目续命:juanjp600、Saalvage、VaneBrain、AestheticalZ和ZiYueCommentary\r\n" @@ -220,9 +218,9 @@ static constexpr char credits[] = "文档:Mark Sibly、Simon Harrison、Paul Gerfen、Shane Monroe和Blitz文档撰写团队\r\n" "测试及支持:James Boyd、Simon Armstrong和Blitz开发团队\r\n" "图像加载器:Floris van den berg制作的FreeImage"; -static constexpr MultiLang::string title_release = " - 发布版本"; -static constexpr MultiLang::string program_ended = "程序已结束"; -static constexpr MultiLang::string bb_err = "Blitz错误"; -static constexpr MultiLang::string init_err = "启动BlitzIDE时出错。请检查\"bin\"文件夹内是否有ide.exe。"; -static constexpr MultiLang::string blitz3d_message = "Blitz3D消息"; -static constexpr MultiLang::string created_with_beta = "使用Blitz3D Beta V{0}.{1}制作"; \ No newline at end of file +static constexpr const char* title_release = " - 发布版本"; +static constexpr const char* program_ended = "程序已结束"; +static constexpr const char* bb_err = "Blitz错误"; +static constexpr const char* init_err = "启动BlitzIDE时出错。请检查\"bin\"文件夹内是否有ide.exe。"; +static constexpr const char* blitz3d_message = "Blitz3D消息"; +static constexpr const char* created_with_beta = "使用Blitz3D Beta V{0}.{1}制作"; \ No newline at end of file diff --git a/MultiLang/TraditionalChinese.cpp b/MultiLang/TraditionalChinese.cpp index 34077c66..c9d43540 100644 --- a/MultiLang/TraditionalChinese.cpp +++ b/MultiLang/TraditionalChinese.cpp @@ -1,225 +1,226 @@ #include "MultiLang.h" -static constexpr MultiLang::string array_bounds_ex = "Blitz陣列索引越界"; -static constexpr MultiLang::string null_obj_ex = "物件不存在"; -static constexpr MultiLang::string bad_data_type = "錯誤的資料型別!資料型別不應是浮點值、字串或整型"; -static constexpr MultiLang::string out_of_data = "資料不足"; -static constexpr MultiLang::string stats_strings = "啟用的字串:{0}"; -static constexpr MultiLang::string stats_objects = "啟用的物件:{0}"; -static constexpr MultiLang::string stats_unreleased = "未釋放的物件:{0}"; -static constexpr MultiLang::string sound_not_exist = "聲音不存在"; -static constexpr MultiLang::string bank_not_exist = "bbBank不存在"; -static constexpr MultiLang::string offset_out_of_range = "位置超出範圍"; -static constexpr MultiLang::string graphics_not_set = "3D畫面模式未設定"; -static constexpr MultiLang::string texture_not_exist = "紋理不存在"; -static constexpr MultiLang::string brush_not_exist = "Brush不存在"; -static constexpr MultiLang::string entity_not_exist = "實體不存在"; -static constexpr MultiLang::string parent_entity_not_exist = "父實體不存在"; -static constexpr MultiLang::string entity_not_mesh = "實體不是Mesh"; -static constexpr MultiLang::string entity_not_object = "實體不是物件"; -static constexpr MultiLang::string collision_out_of_range = "碰撞索引超出範圍"; -static constexpr MultiLang::string entity_not_camera = "實體不是相機"; -static constexpr MultiLang::string entity_not_light = "實體不是燈光"; -static constexpr MultiLang::string entity_not_model = "實體不是模型"; -static constexpr MultiLang::string entity_not_sprite = "實體不是Sprite"; -static constexpr MultiLang::string entity_not_md2_model = "實體不是MD2模型"; -static constexpr MultiLang::string entity_not_bsp_model = "實體不是BSP模型"; -static constexpr MultiLang::string entity_not_terrain = "實體不是地形"; -static constexpr MultiLang::string illegal_number_segments = "段數非法"; -static constexpr MultiLang::string vertex_out_of_range = "頂點索引超出範圍"; -static constexpr MultiLang::string texture_coordinate_out_of_range = "紋理座標設定超出範圍"; -static constexpr MultiLang::string illegal_texture_frames = "非法紋理幀數"; -static constexpr MultiLang::string mesh_cannot_add_to_self = "無法將Mesh新增到其本身"; -static constexpr MultiLang::string surface_out_of_range = "表面索引超出範圍"; -static constexpr MultiLang::string illegal_terrain_size = "非法地形大小"; -static constexpr MultiLang::string unable_load_heightmap = "無法載入高度圖"; -static constexpr MultiLang::string terrain_must_be_square = "地表必須為正方形"; -static constexpr MultiLang::string listener_already_created = "已建立監聽器"; -static constexpr MultiLang::string no_listener_created = "未建立監聽器"; -static constexpr MultiLang::string entity_cannot_parented_itself = "實體不能為其自身的父實體"; -static constexpr MultiLang::string entity_no_animations = "實體無動畫"; -static constexpr MultiLang::string entity_not_model_or_camera = "實體不是模型或相機"; -static constexpr MultiLang::string entitytype_id_range = "EntityType ID必須為0至999之間的數字"; -static constexpr MultiLang::string unable_create_gxscene_instance = "無法建立gxScene例項"; -static constexpr MultiLang::string file_not_exist = "檔案不存在"; -static constexpr MultiLang::string directory_not_exist = "資料夾不存在"; -static constexpr MultiLang::string image_not_exist = "影象不存在"; -static constexpr MultiLang::string image_frame_out_of_range = "影象幀超出範圍"; -static constexpr MultiLang::string font_not_exist = "字型不存在"; -static constexpr MultiLang::string buffer_not_exist = "緩衝區不存在"; -static constexpr MultiLang::string illegal_graphics_driver_index = "非法顯示驅動索引"; -static constexpr MultiLang::string illegal_graphics_mode_index = "非法顯示模式索引"; -static constexpr MultiLang::string unable_create_gxgraphics_instance = "無法建立gxGraphics例項"; -static constexpr MultiLang::string illegal_graphics_mode = "非法顯示模式,顯示模式為0到7之間的值。"; -static constexpr MultiLang::string illegal_graphics3d_mode = "非法3D顯示模式,顯示模式為0到7之間的值。"; -static constexpr MultiLang::string unable_close_gxgraphics_instance = "無法關閉gxGraphics例項"; -static constexpr MultiLang::wstring runtime_error = L"執行時錯誤!"; -static constexpr MultiLang::string illegal_frame_count = "非法幀數"; -static constexpr MultiLang::string illegal_first_frame = "非法第一幀"; -static constexpr MultiLang::string not_enough_frames_bitmap = "點陣圖幀數不足"; -static constexpr MultiLang::string udp_stream_not_exist = "UDP流不存在"; -static constexpr MultiLang::string tcp_stream_not_exist = "TCP流不存在"; -static constexpr MultiLang::string tcp_server_not_exist = "TCP伺服器不存在"; -static constexpr MultiLang::string host_out_of_range = "主機索引超出範圍"; -static constexpr MultiLang::string stream_not_exist = "流不存在"; -static constexpr MultiLang::string readbyte_invalid_byte = "ReadByte無法讀取有效位元組\n請確保讀取的檔案尚未損壞"; -static constexpr MultiLang::string readshort_invalid_short = "ReadShort無法讀取有效短整型\n請確保讀取的檔案尚未損壞"; -static constexpr MultiLang::string readint_invalid_int = "ReadInt無法讀取有效整型\n請確保讀取的檔案尚未損壞"; -static constexpr MultiLang::string readfloat_invalid_float = "ReadFloat無法讀取有效浮點值\n請確保讀取的檔案尚未損壞"; -static constexpr MultiLang::string readstring_invalid_string = "ReadString無法讀取有效字串\n請確保讀取的檔案尚未損壞"; -static constexpr MultiLang::string illegal_buffer_size = "非法緩衝區大小"; -static constexpr MultiLang::string string_parameter_positive = "引數必須為正"; -static constexpr MultiLang::string string_parameter_greater = "引數必須大於0"; -static constexpr MultiLang::string userlib_not_found = "使用者庫未找到:{0}"; -static constexpr MultiLang::string userlib_function_not_found = "使用者庫函式未找到:{0}"; -static constexpr MultiLang::wstring integer_divide_zero = L"整數除零"; -static constexpr MultiLang::string memory_access_violation = "記憶體訪問衝突!\n程式試圖讀取或寫入受保護的記憶體地址。"; -static constexpr MultiLang::wstring illegal_instruction = L"非法指令。\n程式試圖執行無效的CPU指令"; -static constexpr MultiLang::wstring stack_overflow = L"堆疊溢位!\n請確保程式內沒有遞迴現象"; -static constexpr MultiLang::wstring integer_overflow = L"整數溢位!\n請確保整數的值不超過2147483647"; -static constexpr MultiLang::wstring float_overflow = L"浮點溢位!\n請確保浮點的值不超過3.40282347e+38F"; -static constexpr MultiLang::wstring float_divide_zero = L"浮點除零"; -static constexpr MultiLang::wstring unknown_runtime_exception = L"未知執行時錯誤"; -static constexpr MultiLang::string unable_run_module = "無法啟動Blitz Basic模組"; -static constexpr MultiLang::string cant_find_symbol = "找不到符號:{0}"; -static constexpr MultiLang::string unknown_exception_thrown = "未知/非標準異常丟擲!"; -static constexpr MultiLang::string startup_error = "啟動錯誤:{0}"; -static constexpr MultiLang::string array_index_out_of_bounds = "陣列索引超出範圍"; -static constexpr MultiLang::string unable_start_program = "無法啟動程式!無法啟動所需模組"; -static constexpr MultiLang::string reserved_pseudo_namespace = "保留的偽名稱空間"; +// Big5 -static constexpr MultiLang::string expect_identifier = "\".\"後應為識別符號"; -static constexpr MultiLang::string expect_string_afrer_directive = "lib指令後應為字串"; -static constexpr MultiLang::string unknown_decl_directive = "未知庫指令"; -static constexpr MultiLang::string function_decl_without_directive = "無lib的函式庫"; -static constexpr MultiLang::string duplicate_identifier = "重複識別符號"; -static constexpr MultiLang::string expect_left_bracket_after_function_identifier = "函式名後缺少\"(\""; -static constexpr MultiLang::string expect_right_bracket_after_function_identifier = "函式引數後缺少\")\""; -static constexpr MultiLang::string expect_identifier_or_string_after_alias = "別名後應為識別符號或字串"; -static constexpr MultiLang::string unable_open_linker_dll = "無法開啟linker.dll"; -static constexpr MultiLang::string error_in_linker_dll = "linker.dll出錯"; -static constexpr MultiLang::string unable_open_runtime_dll = "無法開啟runtime.dll"; -static constexpr MultiLang::string error_in_runtime_dll = "runtime.dll出錯"; -static constexpr MultiLang::string library_version_error = "庫版本出錯"; -static constexpr MultiLang::string immediate_value_cannot_by_label = "立即值不能透過標籤"; -static constexpr MultiLang::string operand_must_be_immediate = "運算元必須為立即數"; -static constexpr MultiLang::string unrecognized_instruction = "未識別指令"; -static constexpr MultiLang::string illegal_addressing_mode = "非法尋地址方式"; -static constexpr MultiLang::string operand_error = "運算元誤差"; -static constexpr MultiLang::string duplicate_label = "重複標籤"; -static constexpr MultiLang::string missing_close_quote = "缺失後引號"; -static constexpr MultiLang::string expect_comma = "缺少\",\""; -static constexpr MultiLang::string too_many_operands = "運算元過多"; -static constexpr MultiLang::string expression_must_be_constant = "表示式必須為常數"; -static constexpr MultiLang::string constants_must_initialized = "常數必須被初始化"; -static constexpr MultiLang::string duplicate_variable_name = "重複變數名"; -static constexpr MultiLang::string undefined_label = "未定義標籤"; -static constexpr MultiLang::string data_expression_must_be_constant = "資料表示式必須為常數"; -static constexpr MultiLang::string blitz_array_sizes_must_be_constant = "Blitz陣列大小必須為常數"; -static constexpr MultiLang::string blitz_array_sizes_must_not_negative = "Blitz陣列大小不能為負數"; -static constexpr MultiLang::string illegal_type_conversion = "非法型別轉換({0} -> {1})"; -static constexpr MultiLang::string too_many_parameters = "引數過多"; -static constexpr MultiLang::string not_enough_parameters = "引數過少"; -static constexpr MultiLang::string function_not_found = "函式\"{0}\"未找到"; -static constexpr MultiLang::string incorrect_function_return_type = "錯誤函式返回值"; -static constexpr MultiLang::string cant_convert_null_to_int = "不能將null轉為整數"; -static constexpr MultiLang::string cant_convert_null_to_float = "不能將null轉為浮點值"; -static constexpr MultiLang::string cant_convert_null_to_string = "不能將null轉為字串"; -static constexpr MultiLang::string illegal_operator_for_type = "非法型別運算子"; -static constexpr MultiLang::string arithmetic_operator_custom_type = "算術運算子不能用於自定型別物件"; -static constexpr MultiLang::string operator_cannot_applied_to_strings = "運算子不能用於字串"; -static constexpr MultiLang::string division_by_zero = "數字除零"; -static constexpr MultiLang::string custom_type_not_found = "自定型別名未找到"; -static constexpr MultiLang::string type_is_not_custom_type = "型別不是自定型別"; -static constexpr MultiLang::string after_cannot_used_on_null = "\"After\"不能用於\"Null\""; -static constexpr MultiLang::string after_must_used_with_custom_type = "\"After\"必須和自定型別物件使用"; -static constexpr MultiLang::string before_cannot_used_with_null = "\"Before\"不能用於\"Null\""; -static constexpr MultiLang::string before_must_used_with_custom_type = "\"Before\"必須和自定型別物件使用"; -static constexpr MultiLang::string objecthandle_must_used_with_object = "\"ObjectHandle\"必須和物件使用"; -static constexpr MultiLang::string internal_compiler_error = "編譯器內部錯誤!"; -static constexpr MultiLang::string type_not_found = "型別\"{0}\"未找到"; -static constexpr MultiLang::string error_in_operand = "運算元錯誤"; -static constexpr MultiLang::string illegal_operand_size = "非法運算元大小"; -static constexpr MultiLang::string register_must_be_32_bit = "暫存器必須為32位"; -static constexpr MultiLang::string next_without_for = "\"Next\"缺少\"For\""; -static constexpr MultiLang::string wend_without_while = "\"Wend\"缺少\"While\""; -static constexpr MultiLang::string else_without_if = "\"Else\"缺少\"If\""; -static constexpr MultiLang::string endif_without_if = "\"Endif\"缺少\"If\""; -static constexpr MultiLang::string end_function_without_function = "\"End Function\"缺少\"Function\""; -static constexpr MultiLang::string until_without_repeat = "\"Until\"缺少\"Repeat\""; -static constexpr MultiLang::string forever_without_repeat = "\"Forever\"缺少\"Repeat\""; -static constexpr MultiLang::string case_without_select = "\"Case\"缺少\"Select\""; -static constexpr MultiLang::string end_select_without_select = "\"End Select\"缺少\"Select\""; -static constexpr MultiLang::string expecting = "缺少{0}"; -static constexpr MultiLang::string identifier = "識別符號"; -static constexpr MultiLang::string include_filename = "匯入檔名"; -static constexpr MultiLang::string unable_open_include_file = "無法開啟匯入檔案"; -static constexpr MultiLang::string end_of_file = "檔案尾部(EOF)"; -static constexpr MultiLang::string mismatched_brackets = "括號不匹配"; -static constexpr MultiLang::string variable_assignment = "變數賦值"; -static constexpr MultiLang::string until_or_forever = "\"Until\"或\"Forever\""; -static constexpr MultiLang::string expression_sequence = "表示式序列"; -static constexpr MultiLang::string case_default_or_end_select = "\"Case\"、\"Default\"或\"End Select\""; -static constexpr MultiLang::string before_or_after = "\"Before\"或\"After\""; -static constexpr MultiLang::string data_can_only_appear_in_main = "\"Data\"只能在主程式出現"; -static constexpr MultiLang::string type_can_only_appear_in_main = "\"Type\"只能在主程式出現"; -static constexpr MultiLang::string const_can_only_appear_in_main = "\"Const\"只能在主程式出現"; -static constexpr MultiLang::string function_can_only_appear_in_main = "\"Function\"只能在主程式出現"; -static constexpr MultiLang::string global_can_only_appear_in_main = "\"Global\"只能在主程式出現"; -static constexpr MultiLang::string blitz_arrays_may_not_be_constant = "Blitz陣列不能為常量"; -static constexpr MultiLang::string cant_have_zero_dimension_array = "不能有零維陣列"; -static constexpr MultiLang::string field_or_end_type = "\"Field\"或\"End Type\""; -static constexpr MultiLang::string expression = "表示式"; -static constexpr MultiLang::string undefined_label_check = "未宣告標籤\"{0}\""; -static constexpr MultiLang::string array_not_found_in_main = "在主程式中找不到陣列"; -static constexpr MultiLang::string constants_can_not_assigned_to = "不能將常量分配給"; -static constexpr MultiLang::string blitz_arrays_can_not_assigned_to = "不能將Blitz陣列分配給"; -static constexpr MultiLang::string gosub_may_not_used_inside_function = "\"Gosub\"不能在函式內使用"; -static constexpr MultiLang::string break_must_appear_inside_loop = "break必須在迴圈中出現"; -static constexpr MultiLang::string index_variable_can_not_constant = "索引變數不能為常量"; -static constexpr MultiLang::string index_variable_must_integer_or_real = "索引變數必須為整數或實數"; -static constexpr MultiLang::string step_value_must_constant = "步進值必須為常量"; -static constexpr MultiLang::string index_variable_is_not_newtype = "索引變數不是新型別"; -static constexpr MultiLang::string type_name_not_found = "型別名未找到"; -static constexpr MultiLang::string type_mismatch = "型別不匹配"; -static constexpr MultiLang::string main_cannot_return_value = "主程式不能返回值"; -static constexpr MultiLang::string cant_delete_non_newtype = "不能刪除非新型別"; -static constexpr MultiLang::string specified_name_is_not_newtype_name = "指定名稱不是新型別名"; -static constexpr MultiLang::string illegal_expression_type = "非法表示式型別"; -static constexpr MultiLang::string objects_types_are_different = "對量型別不同"; -static constexpr MultiLang::string select_cannot_used_with_objects = "Select不能用於物件"; -static constexpr MultiLang::string constants_can_not_modified = "常量不可被修改"; -static constexpr MultiLang::string data_can_not_read_into_object = "無法將資料讀入Object"; -static constexpr MultiLang::string variable_type_mismatch = "變數型別不匹配"; -static constexpr MultiLang::string identifier_not_used_like_this = "識別符號\"{0}\"不允許如此使用"; -static constexpr MultiLang::string array_not_found = "陣列未找到"; -static constexpr MultiLang::string array_type_mismatch = "陣列型別不匹配"; -static constexpr MultiLang::string incorrect_number_of_dimensions = "錯誤維度數字"; -static constexpr MultiLang::string variable_must_be_type = "變數必須為型別"; -static constexpr MultiLang::string type_field_not_found = "型別資料未找到"; -static constexpr MultiLang::string variable_must_a_blitz_array = "變數必須為Blitz陣列"; -static constexpr MultiLang::string incorrect_number_of_subscripts = "下標數出錯"; -static constexpr MultiLang::string blitz_array_subscript_out_of_range = "Blitz陣列下標超出範圍"; +static constexpr const char* array_bounds_ex = "Blitz皚ま禫"; +static constexpr const char* null_obj_ex = "ンぃ"; +static constexpr const char* bad_data_type = "岿粇戈戈ぃ莱琌疊翴﹃┪俱"; +static constexpr const char* out_of_data = "戈ぃì"; +static constexpr const char* stats_strings = "币ノ﹃{0}"; +static constexpr const char* stats_objects = "币ノン{0}"; +static constexpr const char* stats_unreleased = "ゼ睦ン{0}"; +static constexpr const char* sound_not_exist = "羘ぃ"; +static constexpr const char* bank_not_exist = "bbBankぃ"; +static constexpr const char* offset_out_of_range = "竚禬絛瞅"; +static constexpr const char* graphics_not_set = "3D礶家Αゼ砞﹚"; +static constexpr const char* texture_not_exist = "瞶ぃ"; +static constexpr const char* brush_not_exist = "Brushぃ"; +static constexpr const char* entity_not_exist = "龟砰ぃ"; +static constexpr const char* parent_entity_not_exist = "龟砰ぃ"; +static constexpr const char* entity_not_mesh = "龟砰ぃ琌Mesh"; +static constexpr const char* entity_not_object = "龟砰ぃ琌ン"; +static constexpr const char* collision_out_of_range = "窱疾ま禬絛瞅"; +static constexpr const char* entity_not_camera = "龟砰ぃ琌诀"; +static constexpr const char* entity_not_light = "龟砰ぃ琌縊"; +static constexpr const char* entity_not_model = "龟砰ぃ琌家"; +static constexpr const char* entity_not_sprite = "龟砰ぃ琌Sprite"; +static constexpr const char* entity_not_md2_model = "龟砰ぃ琌MD2家"; +static constexpr const char* entity_not_bsp_model = "龟砰ぃ琌BSP家"; +static constexpr const char* entity_not_terrain = "龟砰ぃ琌"; +static constexpr const char* illegal_number_segments = "琿计獶猭"; +static constexpr const char* vertex_out_of_range = "郴翴ま禬絛瞅"; +static constexpr const char* texture_coordinate_out_of_range = "瞶畒夹砞﹚禬絛瞅"; +static constexpr const char* illegal_texture_frames = "獶猭瞶碫计"; +static constexpr const char* mesh_cannot_add_to_self = "礚猭盢Mesh穝糤ㄤセō"; +static constexpr const char* surface_out_of_range = "ま禬絛瞅"; +static constexpr const char* illegal_terrain_size = "獶猭"; +static constexpr const char* unable_load_heightmap = "礚猭更蔼瓜"; +static constexpr const char* terrain_must_be_square = "ゲ斗タよ"; +static constexpr const char* listener_already_created = "ミ菏钮竟"; +static constexpr const char* no_listener_created = "ゼミ菏钮竟"; +static constexpr const char* entity_cannot_parented_itself = "龟砰ぃㄤō龟砰"; +static constexpr const char* entity_no_animations = "龟砰礚笆礶"; +static constexpr const char* entity_not_model_or_camera = "龟砰ぃ琌家┪诀"; +static constexpr const char* entitytype_id_range = "EntityType IDゲ斗0999ぇ丁计"; +static constexpr const char* unable_create_gxscene_instance = "礚猭ミgxSceneㄒ兜"; +static constexpr const char* file_not_exist = "郎ぃ"; +static constexpr const char* directory_not_exist = "戈Жぃ"; +static constexpr const char* image_not_exist = "紇禜ぃ"; +static constexpr const char* image_frame_out_of_range = "紇禜碫禬絛瞅"; +static constexpr const char* font_not_exist = "ぃ"; +static constexpr const char* buffer_not_exist = "絯侥跋ぃ"; +static constexpr const char* illegal_graphics_driver_index = "獶猭陪ボ臱笆ま"; +static constexpr const char* illegal_graphics_mode_index = "獶猭陪ボ家Αま"; +static constexpr const char* unable_create_gxgraphics_instance = "礚猭ミgxGraphicsㄒ兜"; +static constexpr const char* illegal_graphics_mode = "獶猭陪ボ家Α陪ボ家Α07ぇ丁"; +static constexpr const char* illegal_graphics3d_mode = "獶猭3D陪ボ家Α陪ボ家Α07ぇ丁"; +static constexpr const char* unable_close_gxgraphics_instance = "礚猭闽超gxGraphicsㄒ兜"; +static constexpr const wchar_t* runtime_error = L"磅︽岿粇"; +static constexpr const char* illegal_frame_count = "獶猭碫计"; +static constexpr const char* illegal_first_frame = "獶猭材碫"; +static constexpr const char* not_enough_frames_bitmap = "翴皚瓜碫计ぃì"; +static constexpr const char* udp_stream_not_exist = "UDP瑈ぃ"; +static constexpr const char* tcp_stream_not_exist = "TCP瑈ぃ"; +static constexpr const char* tcp_server_not_exist = "TCP狝竟ぃ"; +static constexpr const char* host_out_of_range = "诀ま禬絛瞅"; +static constexpr const char* stream_not_exist = "瑈ぃ"; +static constexpr const char* readbyte_invalid_byte = "ReadByte礚猭弄Τじ舱\n叫絋玂弄郎﹟ゼ穕胊"; +static constexpr const char* readshort_invalid_short = "ReadShort礚猭弄Τ祏俱\n叫絋玂弄郎﹟ゼ穕胊"; +static constexpr const char* readint_invalid_int = "ReadInt礚猭弄Τ俱\n叫絋玂弄郎﹟ゼ穕胊"; +static constexpr const char* readfloat_invalid_float = "ReadFloat礚猭弄Τ疊翴\n叫絋玂弄郎﹟ゼ穕胊"; +static constexpr const char* readstring_invalid_string = "ReadString礚猭弄Τ﹃\n叫絋玂弄郎﹟ゼ穕胊"; +static constexpr const char* illegal_buffer_size = "獶猭絯侥跋"; +static constexpr const char* string_parameter_positive = "ま计ゲ斗タ"; +static constexpr const char* string_parameter_greater = "ま计ゲ斗0"; +static constexpr const char* userlib_not_found = "ㄏノ畐ゼт{0}"; +static constexpr const char* userlib_function_not_found = "ㄏノ畐ㄧΑゼт{0}"; +static constexpr const wchar_t* integer_divide_zero = L"俱计埃箂"; +static constexpr const char* memory_access_violation = "癘拘砰砐拜侥\n祘Α刚瓜弄┪糶玂臔癘拘砰"; +static constexpr const wchar_t* illegal_instruction = L"獶猭\n祘Α刚瓜磅︽礚CPU"; +static constexpr const wchar_t* stack_overflow = L"帮舼犯\n叫絋玂祘Αず⊿Τ患癹瞷禜"; +static constexpr const wchar_t* integer_overflow = L"俱计犯\n叫絋玂俱计ぃ禬筁2147483647"; +static constexpr const wchar_t* float_overflow = L"疊翴犯\n叫絋玂疊翴ぃ禬筁3.40282347e+38F"; +static constexpr const wchar_t* float_divide_zero = L"疊翴埃箂"; +static constexpr const wchar_t* unknown_runtime_exception = L"ゼ磅︽岿粇"; +static constexpr const char* unable_run_module = "礚猭币笆Blitz Basic家舱"; +static constexpr const char* cant_find_symbol = "тぃ才腹{0}"; +static constexpr const char* unknown_exception_thrown = "ゼ/獶夹非钵盽メ耏"; +static constexpr const char* startup_error = "币笆岿粇{0}"; +static constexpr const char* array_index_out_of_bounds = "皚ま禬絛瞅"; +static constexpr const char* unable_start_program = "礚猭币笆祘Α礚猭币笆┮惠家舱"; +static constexpr const char* reserved_pseudo_namespace = "玂痙鞍嘿丁"; +static constexpr const char* expect_identifier = "\".\"莱醚才腹"; +static constexpr const char* expect_string_afrer_directive = "lib莱﹃"; +static constexpr const char* unknown_decl_directive = "ゼ畐"; +static constexpr const char* function_decl_without_directive = "礚libㄧΑ畐"; +static constexpr const char* duplicate_identifier = "狡醚才腹"; +static constexpr const char* expect_left_bracket_after_function_identifier = "ㄧΑぶ\"(\""; +static constexpr const char* expect_right_bracket_after_function_identifier = "ㄧΑま计ぶ\")\""; +static constexpr const char* expect_identifier_or_string_after_alias = "莱醚才腹┪﹃"; +static constexpr const char* unable_open_linker_dll = "礚猭秨币linker.dll"; +static constexpr const char* error_in_linker_dll = "linker.dll岿"; +static constexpr const char* unable_open_runtime_dll = "礚猭秨币runtime.dll"; +static constexpr const char* error_in_runtime_dll = "runtime.dll岿"; +static constexpr const char* library_version_error = "畐セ岿"; +static constexpr const char* immediate_value_cannot_by_label = "ミぃ硓筁夹乓"; +static constexpr const char* operand_must_be_immediate = "笲衡じゲ斗ミ计"; +static constexpr const char* unrecognized_instruction = "ゼ醚"; +static constexpr const char* illegal_addressing_mode = "獶猭碝よΑ"; +static constexpr const char* operand_error = "笲衡じ粇畉"; +static constexpr const char* duplicate_label = "狡夹乓"; +static constexpr const char* missing_close_quote = "アま腹"; +static constexpr const char* expect_comma = "ぶ\",\""; +static constexpr const char* too_many_operands = "笲衡じ筁"; +static constexpr const char* expression_must_be_constant = "ボΑゲ斗盽计"; +static constexpr const char* constants_must_initialized = "盽计ゲ斗砆﹍て"; +static constexpr const char* duplicate_variable_name = "狡跑计"; +static constexpr const char* undefined_label = "ゼ﹚竡夹乓"; +static constexpr const char* data_expression_must_be_constant = "戈ボΑゲ斗盽计"; +static constexpr const char* blitz_array_sizes_must_be_constant = "Blitz皚ゲ斗盽计"; +static constexpr const char* blitz_array_sizes_must_not_negative = "Blitz皚ぃ璽计"; +static constexpr const char* illegal_type_conversion = "獶猭锣传{0} -> {1}"; +static constexpr const char* too_many_parameters = "ま计筁"; +static constexpr const char* not_enough_parameters = "ま计筁ぶ"; +static constexpr const char* function_not_found = "ㄧΑ\"{0}\"ゼт"; +static constexpr const char* incorrect_function_return_type = "岿粇ㄧΑ"; +static constexpr const char* cant_convert_null_to_int = "ぃ盢null锣俱计"; +static constexpr const char* cant_convert_null_to_float = "ぃ盢null锣疊翴"; +static constexpr const char* cant_convert_null_to_string = "ぃ盢null锣﹃"; +static constexpr const char* illegal_operator_for_type = "獶猭笲衡"; +static constexpr const char* arithmetic_operator_custom_type = "衡砃笲衡ぃノ﹚ン"; +static constexpr const char* operator_cannot_applied_to_strings = "笲衡ぃノ﹃"; +static constexpr const char* division_by_zero = "计埃箂"; +static constexpr const char* custom_type_not_found = "﹚ゼт"; +static constexpr const char* type_is_not_custom_type = "ぃ琌﹚"; +static constexpr const char* after_cannot_used_on_null = "\"After\"ぃノ\"Null\""; +static constexpr const char* after_must_used_with_custom_type = "\"After\"ゲ斗㎝﹚ンㄏノ"; +static constexpr const char* before_cannot_used_with_null = "\"Before\"ぃノ\"Null\""; +static constexpr const char* before_must_used_with_custom_type = "\"Before\"ゲ斗㎝﹚ンㄏノ"; +static constexpr const char* objecthandle_must_used_with_object = "\"ObjectHandle\"ゲ斗㎝ンㄏノ"; +static constexpr const char* internal_compiler_error = "絪亩竟ず场岿粇"; +static constexpr const char* type_not_found = "\"{0}\"ゼт"; +static constexpr const char* error_in_operand = "笲衡じ岿粇"; +static constexpr const char* illegal_operand_size = "獶猭笲衡じ"; +static constexpr const char* register_must_be_32_bit = "既竟ゲ斗32"; +static constexpr const char* next_without_for = "\"Next\"ぶ\"For\""; +static constexpr const char* wend_without_while = "\"Wend\"ぶ\"While\""; +static constexpr const char* else_without_if = "\"Else\"ぶ\"If\""; +static constexpr const char* endif_without_if = "\"Endif\"ぶ\"If\""; +static constexpr const char* end_function_without_function = "\"End Function\"ぶ\"Function\""; +static constexpr const char* until_without_repeat = "\"Until\"ぶ\"Repeat\""; +static constexpr const char* forever_without_repeat = "\"Forever\"ぶ\"Repeat\""; +static constexpr const char* case_without_select = "\"Case\"ぶ\"Select\""; +static constexpr const char* end_select_without_select = "\"End Select\"ぶ\"Select\""; +static constexpr const char* expecting = "ぶ{0}"; +static constexpr const char* identifier = "醚才腹"; +static constexpr const char* include_filename = "蹲郎"; +static constexpr const char* unable_open_include_file = "礚猭秨币蹲郎"; +static constexpr const char* end_of_file = "郎Ю场EOF"; +static constexpr const char* mismatched_brackets = "珹腹ぃで皌"; +static constexpr const char* variable_assignment = "跑计结"; +static constexpr const char* until_or_forever = "\"Until\"┪\"Forever\""; +static constexpr const char* expression_sequence = "ボΑ"; +static constexpr const char* case_default_or_end_select = "\"Case\"\"Default\"┪\"End Select\""; +static constexpr const char* before_or_after = "\"Before\"┪\"After\""; +static constexpr const char* data_can_only_appear_in_main = "\"Data\"祘Α瞷"; +static constexpr const char* type_can_only_appear_in_main = "\"Type\"祘Α瞷"; +static constexpr const char* const_can_only_appear_in_main = "\"Const\"祘Α瞷"; +static constexpr const char* function_can_only_appear_in_main = "\"Function\"祘Α瞷"; +static constexpr const char* global_can_only_appear_in_main = "\"Global\"祘Α瞷"; +static constexpr const char* blitz_arrays_may_not_be_constant = "Blitz皚ぃ盽秖"; +static constexpr const char* cant_have_zero_dimension_array = "ぃΤ箂蝴皚"; +static constexpr const char* field_or_end_type = "\"Field\"┪\"End Type\""; +static constexpr const char* expression = "ボΑ"; +static constexpr const char* undefined_label_check = "ゼ夹乓\"{0}\""; +static constexpr const char* array_not_found_in_main = "祘Αいтぃ皚"; +static constexpr const char* constants_can_not_assigned_to = "ぃ盢盽秖だ皌倒"; +static constexpr const char* blitz_arrays_can_not_assigned_to = "ぃ盢Blitz皚だ皌倒"; +static constexpr const char* gosub_may_not_used_inside_function = "\"Gosub\"ぃㄧΑずㄏノ"; +static constexpr const char* break_must_appear_inside_loop = "breakゲ斗癹伴い瞷"; +static constexpr const char* index_variable_can_not_constant = "ま跑计ぃ盽秖"; +static constexpr const char* index_variable_must_integer_or_real = "ま跑计ゲ斗俱计┪龟计"; +static constexpr const char* step_value_must_constant = "˙秈ゲ斗盽秖"; +static constexpr const char* index_variable_is_not_newtype = "ま跑计ぃ琌穝"; +static constexpr const char* type_name_not_found = "ゼт"; +static constexpr const char* type_mismatch = "ぃで皌"; +static constexpr const char* main_cannot_return_value = "祘Αぃ"; +static constexpr const char* cant_delete_non_newtype = "ぃ埃獶穝"; +static constexpr const char* specified_name_is_not_newtype_name = "﹚嘿ぃ琌穝"; +static constexpr const char* illegal_expression_type = "獶猭ボΑ"; +static constexpr const char* objects_types_are_different = "癸秖ぃ"; +static constexpr const char* select_cannot_used_with_objects = "Selectぃノン"; +static constexpr const char* constants_can_not_modified = "盽秖ぃ砆э"; +static constexpr const char* data_can_not_read_into_object = "礚猭盢戈弄Object"; +static constexpr const char* variable_type_mismatch = "跑计ぃで皌"; +static constexpr const char* identifier_not_used_like_this = "醚才腹\"{0}\"ぃす砛ㄏノ"; +static constexpr const char* array_not_found = "皚ゼт"; +static constexpr const char* array_type_mismatch = "皚ぃで皌"; +static constexpr const char* incorrect_number_of_dimensions = "岿粇蝴计"; +static constexpr const char* variable_must_be_type = "跑计ゲ斗"; +static constexpr const char* type_field_not_found = "戈ゼт"; +static constexpr const char* variable_must_a_blitz_array = "跑计ゲ斗Blitz皚"; +static constexpr const char* incorrect_number_of_subscripts = "夹计岿"; +static constexpr const char* blitz_array_subscript_out_of_range = "Blitz皚夹禬絛瞅"; -static constexpr MultiLang::wstring runtime_message = L"執行時訊息"; -static constexpr MultiLang::string current_language = "當前語言:簡體中文"; -static constexpr MultiLang::string debugger_locals = "本地"; -static constexpr MultiLang::string debugger_globals = "全域性"; -static constexpr MultiLang::string debugger_consts = "常量"; -static constexpr MultiLang::string debugger_unknown = "<未知>"; -static constexpr MultiLang::string debugger_cant_access_appdata = "無法訪問AppData資料夾!配置檔案無法讀取。\nIDE將使用預設值"; -static constexpr MultiLang::string debugger_cant_create_folder = "無法為配置檔案建立資料夾!\nIDE將使用預設值"; -static constexpr MultiLang::string debugger_empty_ini = "blitzide.ini為空!\n將使用預設設定"; +static constexpr const wchar_t* runtime_message = L"磅︽癟"; +static constexpr const char* current_language = "讽玡粂ē虏砰いゅ"; +static constexpr const char* debugger_locals = "セ"; +static constexpr const char* debugger_globals = "办┦"; +static constexpr const char* debugger_consts = "盽秖"; +static constexpr const char* debugger_unknown = "<ゼ>"; +static constexpr const char* debugger_cant_access_appdata = "礚猭砐拜AppData戈Ж皌竚郎礚猭弄\nIDE盢ㄏノ箇砞"; +static constexpr const char* debugger_cant_create_folder = "礚猭皌竚郎ミ戈Ж\nIDE盢ㄏノ箇砞"; +static constexpr const char* debugger_empty_ini = "blitzide.ini\n盢ㄏノ箇砞砞﹚"; static constexpr char credits[] = -"程式設計及設計:Mark Sibly\r\n" -"專案續命:juanjp600、Saalvage、VaneBrain、AestheticalZ和ZiYueCommentary\r\n" -".INI載入器使用\"IniPP\"的修改版本,原版由Matthias C. M. Troffaes製作\r\n" -"文件:Mark Sibly、Simon Harrison、Paul Gerfen、Shane Monroe和Blitz文件撰寫團隊\r\n" -"測試及支援:James Boyd、Simon Armstrong和Blitz開發團隊\r\n" -"影象載入器:Floris van den berg製作的FreeImage"; -static constexpr MultiLang::string title_release = " - 釋出版本"; -static constexpr MultiLang::string program_ended = "程式已結束"; -static constexpr MultiLang::string bb_err = "Blitz錯誤"; -static constexpr MultiLang::string init_err = "啟動BlitzIDE時出錯。請檢查\"bin\"資料夾內是否有ide.exe。"; -static constexpr MultiLang::string blitz3d_message = "Blitz3D訊息"; -static constexpr MultiLang::string created_with_beta = "使用Blitz3D Beta V{0}.{1}製作"; \ No newline at end of file +"祘Α砞璸の砞璸Mark Sibly\r\n" +"盡尿㏑juanjp600SaalvageVaneBrainAestheticalZ㎝ZiYueCommentary\r\n" +".INI更竟ㄏノ\"IniPP\"эセパMatthias C. M. Troffaes籹\r\n" +"ゅンMark SiblySimon HarrisonPaul GerfenShane Monroe㎝Blitzゅン级糶刮钉\r\n" +"代刚のや穿James BoydSimon Armstrong㎝Blitz秨祇刮钉\r\n" +"紇禜更竟Floris van den berg籹FreeImage"; +static constexpr const char* title_release = " - 睦セ"; +static constexpr const char* program_ended = "祘Α挡"; +static constexpr const char* bb_err = "Blitz岿粇"; +static constexpr const char* init_err = "币笆BlitzIDE岿叫浪琩\"bin\"戈Жず琌Τide.exe"; +static constexpr const char* blitz3d_message = "Blitz3D癟"; +static constexpr const char* created_with_beta = "ㄏノBlitz3D Beta V{0}.{1}籹"; \ No newline at end of file