优化提示信息

This commit is contained in:
Harvey Zack committed 2018-12-06 15:59:21 +08:00
1 parent 06fa463bdd
commit 56eba5626e
2 files changed
+8 -5

No files matched your search

+5 -3
View File
@@ -2726,14 +2726,16 @@
'Gif time is too short': 'Gif 时间太短',
'Start creating gif, please wait': '开始创建 gif,请稍等',
'Create gif successfully': '创建 gif 成功',
'There is another gif in the processing': '正有另一个 gif 在创建中'
'There is another gif in the processing': '正有另一个 gif 在创建中',
'Release the mouse to start': '放开鼠标即可开始'
},
'zh-tw': {
'Long press, gif length is between 1 second and 5 seconds': '長按,gif 長度為 1 ~ 5 秒',
'Gif time is too short': 'Gif 時間太短',
'Start creating gif, please wait': '開始創建 gif,請稍等',
'Create gif successfully': '創建 gif 成功',
'There is another gif in the processing': '正有另一個 gif 在創建中'
'There is another gif in the processing': '正有另一個 gif 在創建中',
'Release the mouse to start': '放開鼠標即可開始'
}
});
}
@@ -2817,7 +2819,7 @@
$progress.style.width = "".concat(width + 1, "%");
loop();
} else {
createGif();
notice.show(i18n.get('Release the mouse to start'));
}
}, 50);
})();
+3 -2
View File
@@ -8,6 +8,7 @@ function i18nMix(i18n) {
'Start creating gif, please wait': '开始创建 gif,请稍等',
'Create gif successfully': '创建 gif 成功',
'There is another gif in the processing': '正有另一个 gif 在创建中',
'Release the mouse to start': '放开鼠标即可开始',
},
'zh-tw': {
'Long press, gif length is between 1 second and 5 seconds': '長按,gif 長度為 1 ~ 5 秒',
@@ -15,6 +16,7 @@ function i18nMix(i18n) {
'Start creating gif, please wait': '開始創建 gif,請稍等',
'Create gif successfully': '創建 gif 成功',
'There is another gif in the processing': '正有另一個 gif 在創建中',
'Release the mouse to start': '放開鼠標即可開始',
},
});
}
@@ -91,7 +93,6 @@ function artplayerPluginGif(art) {
cleanTimer();
pressStartTime = new Date();
notice.show(i18n.get('Long press, gif length is between 1 second and 5 seconds'));
(function loop() {
progressTimer = setTimeout(() => {
const width = parseInt($progress.style.width, 10);
@@ -99,7 +100,7 @@ function artplayerPluginGif(art) {
$progress.style.width = `${width + 1}%`;
loop();
} else {
createGif();
notice.show(i18n.get('Release the mouse to start'));
}
}, 50);
})();