mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-30 05:28:46 +00:00
Merge pull request #687 from OpenLBE/dev
Localize UI strings to English in editor windows
This commit is contained in:
@@ -261,14 +261,14 @@ namespace YooAsset.Editor
|
|||||||
catch (System.Exception e)
|
catch (System.Exception e)
|
||||||
{
|
{
|
||||||
_reportCombiner = null;
|
_reportCombiner = null;
|
||||||
_titleLabel.text = "导入报告失败!";
|
_titleLabel.text = "Failed to import report!";
|
||||||
_descLabel.text = e.Message;
|
_descLabel.text = e.Message;
|
||||||
UnityEngine.Debug.LogError(e.StackTrace);
|
UnityEngine.Debug.LogError(e.StackTrace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void FixAllBtn_clicked()
|
private void FixAllBtn_clicked()
|
||||||
{
|
{
|
||||||
if (EditorUtility.DisplayDialog("提示", "修复全部资源(排除白名单和隐藏元素)", "Yes", "No"))
|
if (EditorUtility.DisplayDialog("Info", "Fix all resources (excluding whitelist and hidden elements)", "Yes", "No"))
|
||||||
{
|
{
|
||||||
if (_reportCombiner != null)
|
if (_reportCombiner != null)
|
||||||
_reportCombiner.FixAll();
|
_reportCombiner.FixAll();
|
||||||
@@ -276,7 +276,7 @@ namespace YooAsset.Editor
|
|||||||
}
|
}
|
||||||
private void FixSelectBtn_clicked()
|
private void FixSelectBtn_clicked()
|
||||||
{
|
{
|
||||||
if (EditorUtility.DisplayDialog("提示", "修复勾选资源(包含白名单和隐藏元素)", "Yes", "No"))
|
if (EditorUtility.DisplayDialog("Info", "Fix selected resources (including whitelist and hidden elements)", "Yes", "No"))
|
||||||
{
|
{
|
||||||
if (_reportCombiner != null)
|
if (_reportCombiner != null)
|
||||||
_reportCombiner.FixSelect();
|
_reportCombiner.FixSelect();
|
||||||
@@ -302,7 +302,7 @@ namespace YooAsset.Editor
|
|||||||
}
|
}
|
||||||
private void ExportFilesBtn_clicked()
|
private void ExportFilesBtn_clicked()
|
||||||
{
|
{
|
||||||
string selectFolderPath = EditorUtility.OpenFolderPanel("导入所有选中资源", EditorTools.GetProjectPath(), string.Empty);
|
string selectFolderPath = EditorUtility.OpenFolderPanel("Export all selected resources", EditorTools.GetProjectPath(), string.Empty);
|
||||||
if (string.IsNullOrEmpty(selectFolderPath) == false)
|
if (string.IsNullOrEmpty(selectFolderPath) == false)
|
||||||
{
|
{
|
||||||
if (_reportCombiner != null)
|
if (_reportCombiner != null)
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ namespace YooAsset.Editor
|
|||||||
}
|
}
|
||||||
private void ScanAllBtn_clicked()
|
private void ScanAllBtn_clicked()
|
||||||
{
|
{
|
||||||
if (EditorUtility.DisplayDialog("提示", $"开始全面扫描!", "Yes", "No"))
|
if (EditorUtility.DisplayDialog("Info", $"Start full scan!", "Yes", "No"))
|
||||||
{
|
{
|
||||||
string searchKeyWord = _scannerSearchField.value;
|
string searchKeyWord = _scannerSearchField.value;
|
||||||
AssetArtScannerSettingData.ScanAll(searchKeyWord);
|
AssetArtScannerSettingData.ScanAll(searchKeyWord);
|
||||||
@@ -248,7 +248,7 @@ namespace YooAsset.Editor
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Debug.LogWarning("全面扫描已经取消");
|
Debug.LogWarning("Full scan has been canceled.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void ScanBtn_clicked()
|
private void ScanBtn_clicked()
|
||||||
|
|||||||
@@ -82,14 +82,14 @@ namespace YooAsset.Editor
|
|||||||
}
|
}
|
||||||
private void BuildButton_clicked()
|
private void BuildButton_clicked()
|
||||||
{
|
{
|
||||||
if (EditorUtility.DisplayDialog("提示", $"开始构建资源包[{PackageName}]!", "Yes", "No"))
|
if (EditorUtility.DisplayDialog("Info", $"Start building resource package [{PackageName}]!", "Yes", "No"))
|
||||||
{
|
{
|
||||||
EditorTools.ClearUnityConsole();
|
EditorTools.ClearUnityConsole();
|
||||||
EditorApplication.delayCall += ExecuteBuild;
|
EditorApplication.delayCall += ExecuteBuild;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Debug.LogWarning("[Build] 打包已经取消");
|
Debug.LogWarning("[Build] Packaging has been canceled.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,14 +42,14 @@ namespace YooAsset.Editor
|
|||||||
}
|
}
|
||||||
private void BuildButton_clicked()
|
private void BuildButton_clicked()
|
||||||
{
|
{
|
||||||
if (EditorUtility.DisplayDialog("提示", $"开始构建资源包[{PackageName}]!", "Yes", "No"))
|
if (EditorUtility.DisplayDialog("Info", $"Start building resource package [{PackageName}]!", "Yes", "No"))
|
||||||
{
|
{
|
||||||
EditorTools.ClearUnityConsole();
|
EditorTools.ClearUnityConsole();
|
||||||
EditorApplication.delayCall += ExecuteBuild;
|
EditorApplication.delayCall += ExecuteBuild;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Debug.LogWarning("[Build] 打包已经取消");
|
Debug.LogWarning("[Build] Packaging has been canceled.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -77,14 +77,14 @@ namespace YooAsset.Editor
|
|||||||
}
|
}
|
||||||
private void BuildButton_clicked()
|
private void BuildButton_clicked()
|
||||||
{
|
{
|
||||||
if (EditorUtility.DisplayDialog("提示", $"开始构建资源包[{PackageName}]!", "Yes", "No"))
|
if (EditorUtility.DisplayDialog("Info", $"Start building resource package [{PackageName}]!", "Yes", "No"))
|
||||||
{
|
{
|
||||||
EditorTools.ClearUnityConsole();
|
EditorTools.ClearUnityConsole();
|
||||||
EditorApplication.delayCall += ExecuteBuild;
|
EditorApplication.delayCall += ExecuteBuild;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Debug.LogWarning("[Build] 打包已经取消");
|
Debug.LogWarning("[Build] Packaging has been canceled.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -82,14 +82,14 @@ namespace YooAsset.Editor
|
|||||||
}
|
}
|
||||||
private void BuildButton_clicked()
|
private void BuildButton_clicked()
|
||||||
{
|
{
|
||||||
if (EditorUtility.DisplayDialog("提示", $"开始构建资源包[{PackageName}]!", "Yes", "No"))
|
if (EditorUtility.DisplayDialog("Info", $"Start building resource package [{PackageName}]!", "Yes", "No"))
|
||||||
{
|
{
|
||||||
EditorTools.ClearUnityConsole();
|
EditorTools.ClearUnityConsole();
|
||||||
EditorApplication.delayCall += ExecuteBuild;
|
EditorApplication.delayCall += ExecuteBuild;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Debug.LogWarning("[Build] 打包已经取消");
|
Debug.LogWarning("[Build] Packaging has been canceled.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user