mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-26 03:59:34 +08:00
Translate
This commit is contained in:
@@ -1973,4 +1973,16 @@
|
||||
<value>Steam International Service</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="Settings_General_LogSize" xml:space="preserve">
|
||||
<value>Log files are occupied {0}</value>
|
||||
<comment>Comment={0}占用体积大小;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="User_WaitFastLoginTip" xml:space="preserve">
|
||||
<value>We have opened the quick login window using your system browser, please go to this page and log in. Keep the window open</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="Retry" xml:space="preserve">
|
||||
<value>retry</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
</root>
|
||||
|
||||
@@ -1974,4 +1974,16 @@
|
||||
<value>Servicio Internacional steam</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="Settings_General_LogSize" xml:space="preserve">
|
||||
<value>Los archivos de registro están ocupados {0}</value>
|
||||
<comment>Comment={0}占用体积大小;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="User_WaitFastLoginTip" xml:space="preserve">
|
||||
<value>Hemos abierto la ventana de inicio de sesión rápido utilizando el navegador de su sistema, por favor vaya a esta página e inicie sesión. Mantener la ventana abierta</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="Retry" xml:space="preserve">
|
||||
<value>reintentar</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
</root>
|
||||
|
||||
@@ -1974,4 +1974,16 @@ Sicuro di voler continuare?</value>
|
||||
<value>Servizio internazionale steam</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="Settings_General_LogSize" xml:space="preserve">
|
||||
<value>I file di registro sono occupati {0}</value>
|
||||
<comment>Comment={0}占用体积大小;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="User_WaitFastLoginTip" xml:space="preserve">
|
||||
<value>Abbiamo aperto la finestra di accesso rapido utilizzando il browser di sistema, vai a questa pagina e accedi. Tenere aperta la finestra</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="Retry" xml:space="preserve">
|
||||
<value>ripetere</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
</root>
|
||||
|
||||
@@ -1969,4 +1969,16 @@
|
||||
<value>スチームインターナショナル</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="Settings_General_LogSize" xml:space="preserve">
|
||||
<value>ログ ファイルが既に使用されています {0}</value>
|
||||
<comment>Comment={0}占用体积大小;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="User_WaitFastLoginTip" xml:space="preserve">
|
||||
<value>システム ブラウザを使用してクイック ランディング ウィンドウを開いたので、そのページに移動してログインします。 ウィンドウを開いたままにしておきます</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="Retry" xml:space="preserve">
|
||||
<value>再試行します</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
</root>
|
||||
|
||||
@@ -1969,4 +1969,16 @@
|
||||
<value>스팀 인터내셔널웨어</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="Settings_General_LogSize" xml:space="preserve">
|
||||
<value>로그 파일이 이미 {0}</value>
|
||||
<comment>Comment={0}占用体积大小;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="User_WaitFastLoginTip" xml:space="preserve">
|
||||
<value>시스템 브라우저를 사용하여 빠른 로그인 창을 열수 있습니다. 창을 열어 두십시오</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="Retry" xml:space="preserve">
|
||||
<value>다시 시도하십시오</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
</root>
|
||||
|
||||
@@ -1969,4 +1969,16 @@
|
||||
<value>Международная одежда Steam</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="Settings_General_LogSize" xml:space="preserve">
|
||||
<value>Файл журнала занят {0}</value>
|
||||
<comment>Comment={0}占用体积大小;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="User_WaitFastLoginTip" xml:space="preserve">
|
||||
<value>Мы открыли окно быстрого входа с помощью вашего системного браузера, пожалуйста, перейдите на эту страницу и войдите в систему. Оставьте окно открытым</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="Retry" xml:space="preserve">
|
||||
<value>Повторите попытку</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
</root>
|
||||
|
||||
@@ -1969,4 +1969,16 @@
|
||||
<value>Steam國際服</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="Settings_General_LogSize" xml:space="preserve">
|
||||
<value>記錄檔已佔用 {0}</value>
|
||||
<comment>Comment={0}占用体积大小;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="User_WaitFastLoginTip" xml:space="preserve">
|
||||
<value>我們已使用您的系統瀏覽器打開快速登陸視窗,請進入該頁面並登陸。 保持該窗口打開</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
<data name="Retry" xml:space="preserve">
|
||||
<value>重試</value>
|
||||
<comment>Comment=;Author=MicrosoftTranslator</comment>
|
||||
</data>
|
||||
</root>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
@@ -114,4 +114,4 @@
|
||||
<UserProperties XamarinHotReloadWrongLinkerErrorInfoBarSTClientMobileDroidAppHideInfoBar="True" />
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
</Project>
|
||||
</Project>
|
||||
@@ -82,7 +82,7 @@ namespace System.Commands
|
||||
}
|
||||
if (index_cell_value == -1 || index_cell_author == -1 || index_cell_comment == -1) return messages;
|
||||
|
||||
Dictionary<string, (string value, string comment)> dict = new();
|
||||
Dictionary<string, (string value, Dictionary<string, string> comment)> dict = new();
|
||||
while (true) // 循环 Body 区域
|
||||
{
|
||||
row = sheet.GetRow(index_row++);
|
||||
@@ -104,11 +104,16 @@ namespace System.Commands
|
||||
{ CommentKey, comment },
|
||||
{ AuthorKey, author },
|
||||
};
|
||||
var commentStr = Serialize(commentDict);
|
||||
dict.Add(key, (value, commentStr));
|
||||
dict.Add(key, (value, commentDict));
|
||||
}
|
||||
}
|
||||
|
||||
var resxFileDictLangDict = GetResxDict(resxFilePathLang, ignoreStringBuilder: true).dict;
|
||||
foreach (var item in dict)
|
||||
{
|
||||
resxFileDictLangDict.AddOrReplace(item);
|
||||
}
|
||||
|
||||
var template = Properties.Resources.Resx;
|
||||
const string rootEndMark = "</root>";
|
||||
var rootEndIndex = template.IndexOf(rootEndMark);
|
||||
@@ -119,13 +124,14 @@ namespace System.Commands
|
||||
}
|
||||
|
||||
var sb = new StringBuilder(template.Substring(0, rootEndIndex));
|
||||
foreach (var item in dict)
|
||||
foreach (var item in resxFileDictLangDict)
|
||||
{
|
||||
sb.AppendFormatLine(" <data name=\"{0}\" xml:space=\"preserve\">", item.Key);
|
||||
sb.AppendFormatLine(" <value>{0}</value>", Escape(item.Value.value));
|
||||
if (!string.IsNullOrWhiteSpace(item.Value.comment))
|
||||
var commentStr = Serialize(item.Value.comment);
|
||||
if (!string.IsNullOrWhiteSpace(commentStr))
|
||||
{
|
||||
sb.AppendFormatLine(" <comment>{0}</comment>", Escape(item.Value.comment));
|
||||
sb.AppendFormatLine(" <comment>{0}</comment>", Escape(commentStr));
|
||||
}
|
||||
sb.AppendLine(" </data>");
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace System.Commands
|
||||
/// </summary>
|
||||
static class WriteCommand
|
||||
{
|
||||
public static bool EnableAzureTranslation { get; private set; } = false;
|
||||
public static bool EnableAzureTranslation { get; private set; } = true;
|
||||
|
||||
readonly static Dictionary<string, (string fileName, string author)> tempXlsxPairs = new()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user