@@ -19,41 +19,49 @@ function draw_window_sound_import() {
1919
2020 // Title
2121 draw_theme_font (font_main_bold)
22- draw_text_dynamic (x1, y1, ((language == 0 ) ? " Import sounds" : " TRANSLATE " ));
22+ draw_text_dynamic (x1, y1, ((language == 0 ) ? " Import sounds" : " 导入音效 " ));
2323 draw_theme_font (font_main)
2424
2525 // Info text
2626 x1 = startx;
2727 y1 += 20 ;
2828 draw_text_dynamic (
2929 x1, y1,
30+ ((language == 0 ) ?
3031 " This assistant will help you extract sound files from your Minecraft:" + " \n " +
3132 " Java Edition installation." + " \n " +
3233 " Before continuing, ensure you have launched the version you want from" + " \n " +
3334 " the Minecraft Launcher." + " \n " +
34- " Select a version from the list, and then click 'Import' to look for sounds!"
35+ " Select a version from the list, and then click 'Import' to look for sounds!" :
36+ " 本向导将帮助您从您的 Minecraft:Java 版中提取音效。" + " \n " +
37+ " 在开始之前,请确保您从您的启动器至少启动过一次您想要选择的版本。" + " \n " +
38+ " 从列表中选择一个游戏版本,然后点击“导入”来选择音效!"
39+ )
3540 )
3641
3742 // Minecraft installation path
3843 x1 = startx;
3944 y1 += 110 ;
40- draw_text_dynamic (x1, y1, " 1. Set your Minecraft installation path:" );
45+ draw_text_dynamic (x1, y1, ((language == 0 ) ? " 1. Set your Minecraft installation path:" : " 1. 设定您的.minecraft目录: " ) );
4146 x1 += 16 ;
4247 y1 += 20 ;
4348 draw_text_dynamic (x1, y1, string_truncate (mc_install_path, 280 , true ));
4449 y1 -= 20 ;
4550
4651 // Change button
4752 x1 = startx + width - 72 - 20 ;
48- if (draw_button2 (x1, y1, 72 , " Change" , false , true )) {
49- var fn = string (get_save_filename_ext (" " , " Select Minecraft installation directory" , mc_install_path, " Minecraft installation directory" ));
53+ if (draw_button2 (x1, y1, 72 , ((language == 0 ) ? " Change" : " 更改" ), false , true )) {
54+ var fn = string (get_save_filename_ext (" " ,
55+ ((language == 0 ) ? " Select Minecraft installation directory" : " 选择Minecraft安装目录" ),
56+ mc_install_path,
57+ ((language == 0 ) ? " Minecraft installation directory" : " Minecraft安装目录" )));
5058 if (fn != " " ) mc_install_path = filename_dir (fn);
5159 update_asset_index_menu ();
5260 }
5361 y1 += 28 ;
5462
5563 // Use default button
56- if (draw_button2 (x1, y1, 72 , " Use default" , false , true )) {
64+ if (draw_button2 (x1, y1, 72 , ((language == 0 ) ? " Use default" : " 使用默认设定 " ) , false , true )) {
5765 mc_install_path = mc_default_path;
5866 update_asset_index_menu ();
5967 }
@@ -62,7 +70,7 @@ function draw_window_sound_import() {
6270 // Asset index select menu
6371 x1 = startx;
6472 y1 += 30 ;
65- draw_text_dynamic (x1, y1, " 2. Select the asset list to copy sounds from:" );
73+ draw_text_dynamic (x1, y1, ((language == 0 ) ? " 2. Select the asset list to copy sounds from:" : " 2. 选择想从中提取音效的版本: " ) );
6674 x1 += 16 ;
6775 y1 += 20 ;
6876 y1 += 1 ;
@@ -82,16 +90,16 @@ function draw_window_sound_import() {
8290 if (sound_import_status == 2 ) {
8391 if (theme == 3 && fdark || theme == 2 ) draw_set_color (c_lime);
8492 else draw_set_color (c_green);
85- draw_text_dynamic (x1, y1, string_format_thousands (sound_import_asset_index_count) + " sounds have been copied!" );
93+ draw_text_dynamic (x1, y1, string_format_thousands (sound_import_asset_index_count) + ((language == 0 ) ? " sounds have been copied!" : " 个音效获取成功! " ) );
8694 } else if (sound_import_status == 1 ) {
87- draw_text_dynamic (x1, y1, " Copying sounds... please wait!" );
95+ draw_text_dynamic (x1, y1, ((language == 0 ) ? " Copying sounds... please wait!" : " 正在获取音效...... 请稍候! " ) );
8896 } else {
8997 if (sound_import_asset_index_count > 0 ) {
90- draw_text_dynamic (x1, y1, string_format_thousands (sound_import_asset_index_count) + " sounds located!" );
98+ draw_text_dynamic (x1, y1, string_format_thousands (sound_import_asset_index_count) + ((language == 0 ) ? " sounds located!" : " 个音效已被找到! " ) );
9199 } else {
92100 draw_set_color (c_red);
93- draw_text_dynamic (x1, y1 - 7 , " No sounds located! Check your" );
94- draw_text_dynamic (x1, y1 + 7 , " Minecraft installation path." );
101+ draw_text_dynamic (x1, y1 - 7 , ((language == 0 ) ? " No sounds located! Check your" : " 未找到音效!请检查您的 Minecraft " ) );
102+ draw_text_dynamic (x1, y1 + 7 , ((language == 0 ) ? " Minecraft installation path." : " 安装目录。 " ) );
95103 }
96104 }
97105 draw_theme_color ();
@@ -101,25 +109,25 @@ function draw_window_sound_import() {
101109 // Copy sounds button
102110 x1 = startx + width - 86 - 20 ;
103111 var is_locked = sound_import_selected_asset_index == " " ;
104- if (draw_button2 (x1, y1, 86 , " Get sounds" , is_locked, false )) {
112+ if (draw_button2 (x1, y1, 86 , ((language == 0 ) ? " Get sounds" : " 获取音效 " ) , is_locked, false )) {
105113 load_asset_index (true );
106114 }
107115
108116 // Instrument settings button
109117 x1 = startx + 12 ;
110118 y1 = starty + height - 20 - 12 ;
111- if (draw_button2 (x1, y1, 120 , " Instrument settings..." , false , true )) {
119+ if (draw_button2 (x1, y1, 120 , ((language == 0 ) ? " Instrument settings..." : " 音色设置...... " ) , false , true )) {
112120 window = w_instruments;
113121 }
114122 // Sounds folder button
115123 x1 += 120 + 12 ;
116- if (draw_button2 (x1, y1, 120 , " Open Sounds folder" , false , true )) {
124+ if (draw_button2 (x1, y1, 120 , ((language == 0 ) ? " Open Sounds folder" : " 打开已获取音效目录 " ) , false , true )) {
117125 open_url (sounds_directory);
118126 }
119127
120128 // OK button
121129 x1 = startx + width - 72 - 8 - 12 ;
122- if (draw_button2 (x1, y1, 72 , " OK" , false , false )) {
130+ if (draw_button2 (x1, y1, 72 , ((language == 0 ) ? " OK" : " 确定 " ) , false , false )) {
123131 sound_import_status = 0 ;
124132 window = 0 ;
125133 }
0 commit comments