Skip to content

Commit 3218fc1

Browse files
committed
Chinese translation 7/9/24
1 parent d3787d2 commit 3218fc1

8 files changed

Lines changed: 43 additions & 34 deletions

File tree

scripts/control_draw/control_draw.gml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,8 +1601,8 @@ function control_draw() {
16011601
if (!isplayer) show_menu_ext("file", 0, 19, icon(icons.NEW)+"Ctrl + N$新文件|"+
16021602
icon(icons.OPEN)+"Ctrl+O$打开歌曲......|最近歌曲......|\\|" + str + condstr(recent_song[0] != "", "-|清除最近歌曲") + condstr(recent_song[0] = "", "^!无最近歌曲") + "|/|-|"+
16031603
icon(icons.SAVE)+"Ctrl+S$保存歌曲|"+
1604-
icon(icons.SAVE_AS)+"另存为|保存选项......|-|"+
1605-
inactive(totalblocks = 0 || ds_list_size(instrument_list) <= first_custom_index) + "TRANSLATE" +
1604+
icon(icons.SAVE_AS)+"另存为|"+
1605+
inactive(totalblocks = 0 || ds_list_size(instrument_list) <= first_custom_index) + "连带自定义音色一起导出......|保存选项......|-|" +
16061606
inactive(selected != 0)+"导入片段......|"+
16071607
inactive(selected = 0)+"导出片段......|"+"从 MIDI 文件导入......|从 Schematic 文件导入......|-|"+
16081608
inactive(totalblocks = 0) + "导出音频文件......|"+
@@ -1673,11 +1673,11 @@ function control_draw() {
16731673
}
16741674
}
16751675
if (!isplayer) show_menu_ext("settings", 59, 19, "音色|\\|" + str + condstr(customstr != "", "-|") + customstr + string_repeat("/|", insmenu) +
1676-
icon(icons.INSTRUMENTS)+"音色设置......|TRANSLATE...|/|-|" + icon(icons.INFORMATION) + "歌曲信息......|" + icon(icons.PROPERTIES) + "歌曲属性......|歌曲数据......|-|" + icon(icons.MIDI_INPUT) + "MIDI 设备管理器|Ctrl+P$首选项......")
1676+
icon(icons.INSTRUMENTS)+"音色设置......|从 Minecraft 游戏文件中获取音效......|/|-|" + icon(icons.INFORMATION) + "歌曲信息......|" + icon(icons.PROPERTIES) + "歌曲属性......|歌曲数据......|-|" + icon(icons.MIDI_INPUT) + "MIDI 设备管理器|Ctrl+P$首选项......")
16771677
else show_menu_ext("settingsp", 29, 19, icon(icons.INFORMATION) + "歌曲信息......|" + "歌曲数据......|-|" + "Ctrl+P$首选项......")
16781678
}
16791679
if (draw_tab("帮助")) {
1680-
show_menu_ext("help", 109 - 30 * isplayer, 19, icon(icons.HELP) + "教程视频|\\|Part 1: Composing note block music|Part 2: Opening MIDI files|Part 3: Importing songs into Minecraft|Part 4: Editing songs made in Minecraft |-|F1$观看所有|/|-|" + icon(icons.INTERNET) + "官方网站......|GitHub......|Discord 服务器......|反馈 bug......|TRANSLATE|-|更新历史......|关于......")
1680+
show_menu_ext("help", 109 - 30 * isplayer, 19, icon(icons.HELP) + "教程视频|\\|第 1 集:编写音符盒乐曲|第 2 集:打开 MIDI 文件|第 3 集:将乐曲导入进 Minecraft|第 4 集:编辑在 Minecraft 中创作的乐曲 |-|F1$观看所有|/|-|" + icon(icons.INTERNET) + "官方网站......|GitHub......|Discord 服务器......|反馈 bug......|捐赠......|-|更新历史......|关于......")
16811681
}
16821682
}
16831683

@@ -2338,7 +2338,7 @@ function control_draw() {
23382338
if (song_download_status == 1) {
23392339
window = -1
23402340
if (language != 1) draw_downloadprogress("Download", "Downloading song...", song_downloaded_size, song_total_size)
2341-
else draw_downloadprogress("TRANSLATE", "TRANSLATE", song_downloaded_size, song_total_size)
2341+
else draw_downloadprogress("下载", "正在下载乐曲......", song_downloaded_size, song_total_size)
23422342
}
23432343

23442344
// Draw debug overlay

scripts/download_song_from_url/download_song_from_url.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function download_song_from_url() {
6767
if (language != 1) {
6868
show_message("The song could not be downloaded! Please try again with a different song.");
6969
} else {
70-
show_message("TRANSLATE");
70+
show_message("歌曲下载失败!请更换歌曲重试。");
7171
}
7272
game_end();
7373
}

scripts/draw_window_about/draw_window_about.gml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ function draw_window_about() {
8686
if (draw_button2(x1 + 160, y1 + 380, 72, condstr(language != 1, "Discord", "Discord"), false)) {
8787
open_url(link_discord)
8888
}
89-
if (draw_button2(x1 + 236, y1 + 380, 72, condstr(language != 1, "Twitter", "TRANSLATE"), false)) {
89+
if (draw_button2(x1 + 236, y1 + 380, 72, condstr(language != 1, "Twitter", "Twitter"), false)) {
9090
open_url(link_twitter)
9191
}
92-
if (draw_button2(x1 + 312, y1 + 380, 72, condstr(language != 1, "YouTube", "TRANSLATE"), false)) {
92+
if (draw_button2(x1 + 312, y1 + 380, 72, condstr(language != 1, "YouTube", "Youtube"), false)) {
9393
open_url(link_youtube)
9494
}
95-
if (draw_button2(x1 + 388, y1 + 380, 72, condstr(language != 1, "Donate", "TRANSLATE"), false)) {
95+
if (draw_button2(x1 + 388, y1 + 380, 72, condstr(language != 1, "Donate", "捐赠"), false)) {
9696
open_url(link_donate)
9797
}
9898

scripts/draw_window_datapack_export/draw_window_datapack_export.gml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ function draw_window_datapack_export() {
276276
if (draw_radiobox(x1 + 264, y1 + 304, dat_source = "weather", "天气", "由天气音量控制")) dat_source = "weather"
277277

278278
// Minecraft version
279-
draw_text_dynamic(x1 + 187, y1 + 334, "TRANSLATE")
280-
if (draw_radiobox(x1 + 192, y1 + 354, dat_mcversion == 0, "1.13-1.20", "TRANSLATE")) dat_mcversion = 0
281-
if (draw_radiobox(x1 + 192, y1 + 374, dat_mcversion == 1, "1.21+", "TRANSLATE")) dat_mcversion = 1
279+
draw_text_dynamic(x1 + 187, y1 + 334, "Minecraft 版本")
280+
if (draw_radiobox(x1 + 192, y1 + 354, dat_mcversion == 0, "1.13-1.20", "导出至 Minecraft: Java 版\n版本 1.13 至 1.20.6。")) dat_mcversion = 0
281+
if (draw_radiobox(x1 + 192, y1 + 374, dat_mcversion == 1, "1.21+", "导出至 Minecraft: Java 版\n版本 1.21 及以上。")) dat_mcversion = 1
282282

283283
//Export as ZIP
284284
if (draw_checkbox(x1 + 192, y1 + 404, dat_usezip, "导出为 ZIP", "是否导出为 ZIP 格式的文件。"+br+"如关闭,将导出为文件夹。", false, true)) dat_usezip=!dat_usezip

scripts/draw_window_greeting/draw_window_greeting.gml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function draw_window_greeting() {
7070
//else draw_text_center(x1 + 132, y1 + 340 + dev_label_offset, "原作者 David Norgren")
7171
//draw_text_url(x1 + 132, y1 + 356 + dev_label_offset, "stuffbydavid.com", "https://www.stuffbydavid.com")
7272
if (language != 1) draw_text_center(x1 + 132, y1 + 340 + dev_label_offset, "Follow OpenNBS:")
73-
else draw_text_center(x1 + 132, y1 + 340 + dev_label_offset, "TRANSLATE")
73+
else draw_text_center(x1 + 132, y1 + 340 + dev_label_offset, "关注 OpenNBS:")
7474
draw_text_url(x1 + 80, y1 + 356 + dev_label_offset, "Discord", link_discord)
7575
draw_text_dynamic(x1 + 104, y1 + 356 + dev_label_offset, "|")
7676
draw_text_url(x1 + 128, y1 + 356 + dev_label_offset, "Twitter", link_twitter)
@@ -79,7 +79,8 @@ function draw_window_greeting() {
7979

8080
draw_text_url(x1 + 108, y1 + 372 + dev_label_offset, "GitHub", link_github)
8181
draw_text_dynamic(x1 + 131, y1 + 372 + dev_label_offset, "|")
82-
draw_text_url(x1 + 156, y1 + 372 + dev_label_offset, "Donate", link_donate)
82+
if (language != 1) draw_text_url(x1 + 156, y1 + 372 + dev_label_offset, "Donate", link_donate)
83+
else draw_text_url(x1 + 156, y1 + 372 + dev_label_offset, "捐赠", link_donate)
8384
draw_set_color(c_white)
8485

8586
if (fdark && theme = 3) draw_set_color(0)

scripts/draw_window_minecraft/draw_window_minecraft.gml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,11 @@ function draw_window_minecraft() {
356356
if (language != 1) draw_text_dynamic(x1 + 45, yy + 32, "There are " + string(block_outside) + " blocks outside the 2 octave range.")
357357
else draw_text_dynamic(x1 + 45, yy + 32, "" + string(block_outside) + " 个方块在 2 八度范围外。")
358358
}
359-
if (draw_button2(x1 + 45, yy + 50, 80, condstr(language != 1, "Select lower", "TRANSLATE"), 0, 1)) {
359+
if (draw_button2(x1 + 45, yy + 50, 80, condstr(language != 1, "Select lower", "框选下限外音符"), 0, 1)) {
360360
select_outside(true, false)
361361
windowclose = 1
362362
}
363-
if (draw_button2(x1 + 135, yy + 50, 80, condstr(language != 1, "Select higher", "TRANSLATE"), 0, 1)) {
363+
if (draw_button2(x1 + 135, yy + 50, 80, condstr(language != 1, "Select higher", "框选上限外音符"), 0, 1)) {
364364
select_outside(false, true)
365365
windowclose = 1
366366
}

scripts/draw_window_sound_import/draw_window_sound_import.gml

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

scripts/save_song_zip/save_song_zip.gml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function save_song_zip() {
22
var fn, tempdir, ins, src, dst, count;
33

44
if (language != 1) fn = string(get_save_filename_ext("ZIP archive (*.zip)|*.zip", condstr(filename == "", "", filename_change_ext(filename, ".zip")), "", "Save song with custom sounds"));
5-
else fn = string(get_save_filename_ext("ZIP archive (*.zip)|*.zip", condstr(filename == "", "", filename_change_ext(filename, ".zip")), "", "TRANSLATE"));
5+
else fn = string(get_save_filename_ext("ZIP archive (*.zip)|*.zip", condstr(filename == "", "", filename_change_ext(filename, ".zip")), "", "连带自定义音色一起导出"));
66
if (fn = "") return 0;
77

88
tempdir = data_directory + "Temp\\";
@@ -38,7 +38,7 @@ function save_song_zip() {
3838

3939
if (!file_exists_lib(fn)) {
4040
if (language != 1) message("The song could not be saved!", "Error");
41-
else message("TRANSLATE");
41+
else message("导出歌曲失败!", "错误");
4242
} else {
4343
if (language != 1) set_msg("Song saved");
4444
else set_msg("歌曲已保存");

0 commit comments

Comments
 (0)