From 3004212f58eefc802bbb768b4a36e238cc865579 Mon Sep 17 00:00:00 2001 From: Aigio Liu Date: Tue, 23 Nov 2021 18:34:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E7=BF=BB=20&=20=E6=94=B9=E8=BF=9B?= =?UTF-8?q?=E7=BF=BB=E8=AF=91=E5=B7=A5=E5=85=B7=EF=BC=8C=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=20LINQ=20to=20XML=20=E8=AF=BB=E5=8F=96=20resx=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UI/Resx/AppResources.Designer.cs | 6 +- src/ST.Client/UI/Resx/AppResources.en.resx | 49 ++++++++++++--- src/ST.Client/UI/Resx/AppResources.es.resx | 49 ++++++++++++--- src/ST.Client/UI/Resx/AppResources.it.resx | 49 ++++++++++++--- src/ST.Client/UI/Resx/AppResources.ja.resx | 54 ++++++++++++++--- src/ST.Client/UI/Resx/AppResources.ko.resx | 54 ++++++++++++++--- src/ST.Client/UI/Resx/AppResources.resx | 6 +- src/ST.Client/UI/Resx/AppResources.ru.resx | 54 ++++++++++++++--- .../UI/Resx/AppResources.zh-Hant.resx | 54 ++++++++++++++--- .../Commands/ReadCommand.cs | 2 +- .../Commands/WriteCommand.cs | 4 +- src/ST.Tools.Translate/Utils.cs | 60 ++++++++++++++++++- 12 files changed, 375 insertions(+), 66 deletions(-) diff --git a/src/ST.Client/UI/Resx/AppResources.Designer.cs b/src/ST.Client/UI/Resx/AppResources.Designer.cs index e78c37c54..6e7a22cd8 100644 --- a/src/ST.Client/UI/Resx/AppResources.Designer.cs +++ b/src/ST.Client/UI/Resx/AppResources.Designer.cs @@ -97,8 +97,8 @@ namespace System.Application.UI.Resx { } /// - /// 查找类似 「Steam++」当前版本的发布离不开大家的支持,如果Steam++有帮助到您,并且您希望我们能长久的保持新功能开发和维护,您可以考虑给我们一点捐助,以使我们更有动力的更新维护Steam++。 - ///*捐助时请记得备注上您Steam++账号的GUID在备注消息内,这样能方便我们后续将捐助奖励反馈到您的账号上。 的本地化字符串。 + /// 查找类似 「Steam++」当前版本的发布离不开大家的支持,如果 Steam++ 有帮助到您,并且您希望我们能长久的保持新功能开发和维护,您可以考虑给我们一点捐助,以使我们更有动力的更新维护 Steam++。 + ///*捐助时请记得备注上您 Steam++ 账号的 UID 在备注消息内,这样能方便我们后续将捐助奖励反馈到您的账号上。 的本地化字符串。 /// public static string About_Donate_Desc { get { @@ -107,7 +107,7 @@ namespace System.Application.UI.Resx { } /// - /// 查找类似 支持Steam++的开发 的本地化字符串。 + /// 查找类似 支持 Steam++ 的开发 的本地化字符串。 /// public static string About_Donate_Title { get { diff --git a/src/ST.Client/UI/Resx/AppResources.en.resx b/src/ST.Client/UI/Resx/AppResources.en.resx index 1dd95be46..31b956206 100644 --- a/src/ST.Client/UI/Resx/AppResources.en.resx +++ b/src/ST.Client/UI/Resx/AppResources.en.resx @@ -261,10 +261,6 @@ ASF Plus Comment=;Author=沙中金 - - No ASF path was detected, please specify the directory manually or download asf - Comment=;Author=MicrosoftTranslator - The ASF is already running Comment=;Author=MicrosoftTranslator @@ -2453,10 +2449,6 @@ donate Comment=;Author=MicrosoftTranslator - - The release of the current version of Steam+ can't be separated from everyone's support, and if Steam is helpful to you, and you want us to keep new features developed and maintained for a long time, you can consider giving us a little donation to make our more dynamic update maintenance Steam. - Comment=;Author=MicrosoftTranslator - The way in which donations are made Comment=;Author=MicrosoftTranslator @@ -2477,4 +2469,45 @@ There was an error loading the donor list data: Comment=;Author=MicrosoftTranslator + + Instead of restoring the current modification, the operation zeros all achievements and statistics. +Are you sure? + Comment=;Author=MicrosoftTranslator + + + Error code: {0} +There was an error retrieving achievement statistics, either because the game didn't have achievements, or you didn't have the game. + Comment=;Author=MicrosoftTranslator + + + You can type any text that contains SteamKey and is automatically recognized and added to the activation list, or you can type in the following format: +AAAAA-BBBBB-CCCC1 +AAAAA-BBBBB-CCCC2 +AAAAA-BBBBB-CCCC3 + Comment=;Author=MicrosoftTranslator + + + Experimental feature (it is recommended to set transparent materials to Transparent or ArylicBlur when this feature is turned on) +This feature sets live wallpapers from Wallpaper Engine and other wallpaper software to the program background, and if you don't start Wallpaper Engine, the desktop background is used by default. Backgrounds only take effect in the main window, and other windows recommend that you do not adjust transparency completely or use a picture background. When using, pay attention to switch the corresponding theme according to the bright dark color of the wallpaper to get better results. + Comment=;Author=MicrosoftTranslator + + + Sign in to the Steam account for token import, you need to remove the old token before importing, and this import method will have a 15-day cooling-off period for market transactions. +(If you don't turn on Steam network acceleration, you won't be able to sign in successfully) + Comment=;Author=MicrosoftTranslator + + + Are you sure you want to sign in to your new Steam account? +This action ends the running Steam jump to the new account login window. + Comment=;Author=MicrosoftTranslator + + + Supports the development of Steam + Comment=;Author=MicrosoftTranslator + + + The release of the current version of Steam+ can't be separated from everyone's support, and if Steam is helpful to you, and you want us to keep new features developed and maintained for a long time, you may consider giving us a little contribution to make our more dynamic update maintenance steam. +Please remember to have the UID of your Steam account in the notes message when making a donation, so that we can feed the donation reward back to your account later. + Comment=;Author=MicrosoftTranslator + diff --git a/src/ST.Client/UI/Resx/AppResources.es.resx b/src/ST.Client/UI/Resx/AppResources.es.resx index 1ac0b0594..ec4a9a708 100644 --- a/src/ST.Client/UI/Resx/AppResources.es.resx +++ b/src/ST.Client/UI/Resx/AppResources.es.resx @@ -261,10 +261,6 @@ ASF Plus Comment=;Author=EspRoy - - No se ha detectado ninguna ruta ASF, especifique manualmente el directorio o descargue ASF - Comment=;Author=EspRoy - ASF se ha funcionado Comment=;Author=EspRoy @@ -2453,10 +2449,6 @@ donar Comment=;Author=MicrosoftTranslator - - El lanzamiento de la versión actual de Steam + no se puede separar del soporte de todos, y si Steam es útil para usted, y desea que mantengamos las nuevas funciones desarrolladas y mantenidas durante mucho tiempo, puede considerar darnos una pequeña donación para hacer nuestro mantenimiento de actualización más dinámico Steam. - Comment=;Author=MicrosoftTranslator - La forma en que se hacen las donaciones Comment=;Author=MicrosoftTranslator @@ -2477,4 +2469,45 @@ Se ha producido un error al cargar los datos de la lista de donantes: Comment=;Author=MicrosoftTranslator + + En lugar de restaurar la modificación actual, la operación se centra en todos los logros y estadísticas. +¿Estás seguro? + Comment=;Author=MicrosoftTranslator + + + Código de error: {0} +Hubo un error al recuperar las estadísticas de logros, ya sea porque el juego no tenía logros o porque no tenías el juego. + Comment=;Author=MicrosoftTranslator + + + Puede escribir cualquier texto que contenga SteamKey y se reconozca automáticamente y se agregue a la lista de activación, o puede escribir en el siguiente formato: +AAAAA-BBBBB-CCCC1 +AAAAA-BBBBB-CCCC2 +AAAAA-BBBBB-CCCC3 + Comment=;Author=MicrosoftTranslator + + + Función experimental (se recomienda establecer materiales transparentes en Transparente o ArylicBlur cuando esta función está activada) +Esta función establece los fondos de pantalla en vivo de Wallpaper Engine y otro software de fondo de pantalla en el fondo del programa, y si no inicia Wallpaper Engine, el fondo de escritorio se usa de forma predeterminada. Los fondos solo surtan efecto en la ventana principal, y otras ventanas recomiendan que no ajuste la transparencia por completo ni utilice un fondo de imagen. Al usarlo, preste atención para cambiar el tema correspondiente de acuerdo con el color oscuro brillante del fondo de pantalla para obtener mejores resultados. + Comment=;Author=MicrosoftTranslator + + + Inicie sesión en la cuenta de Steam para la importación de tokens, debe eliminar el token antiguo antes de importar, y este método de importación tendrá un período de reflexión de 15 días para las transacciones de mercado. +(Si no activas la aceleración de red de Steam, no podrás iniciar sesión correctamente) + Comment=;Author=MicrosoftTranslator + + + ¿Estás seguro de que quieres iniciar sesión en tu nueva cuenta de Steam? +Esta acción finaliza el salto de Steam en ejecución a la ventana de inicio de sesión de la nueva cuenta. + Comment=;Author=MicrosoftTranslator + + + Apoya el desarrollo de Steam + Comment=;Author=MicrosoftTranslator + + + El lanzamiento de la versión actual de Steam + no se puede separar del soporte de todos, y si Steam es útil para usted, y desea que mantengamos las nuevas funciones desarrolladas y mantenidas durante mucho tiempo, puede considerar darnos una pequeña contribución para hacer nuestro vapor de mantenimiento de actualizaciones más dinámico. +Recuerda tener el UID de tu cuenta de Steam en el mensaje de notas al hacer una donación, para que podamos devolver la recompensa de la donación a tu cuenta más tarde. + Comment=;Author=MicrosoftTranslator + diff --git a/src/ST.Client/UI/Resx/AppResources.it.resx b/src/ST.Client/UI/Resx/AppResources.it.resx index d2d2ba7f0..2d2a608df 100644 --- a/src/ST.Client/UI/Resx/AppResources.it.resx +++ b/src/ST.Client/UI/Resx/AppResources.it.resx @@ -261,10 +261,6 @@ ASF Plus Comment=;Author=Zhengye - - Percorso ASF non rilevato, specificare la directory manualmente o scaricare asf - Comment=;Author=Zhengye - ASF è già in esecuzione Comment=;Author=Zhengye @@ -2453,10 +2449,6 @@ donare Comment=;Author=MicrosoftTranslator - - Il rilascio dell'attuale versione di Steam+ non può essere separato dal supporto di tutti, e se Steam ti è utile e vuoi che manteniamo le nuove funzionalità sviluppate e mantenute per lungo tempo, puoi considerare di darci una piccola donazione per rendere il nostro Steam di manutenzione degli aggiornamenti più dinamico. - Comment=;Author=MicrosoftTranslator - Il modo in cui vengono effettuate le donazioni Comment=;Author=MicrosoftTranslator @@ -2477,4 +2469,45 @@ Si è visualizzato un errore durante il caricamento dei dati dell'elenco dei donatori: Comment=;Author=MicrosoftTranslator + + Invece di ripristinare la modifica corrente, l'operazione azzera tutti i risultati e le statistiche. +Sei sicuro? + Comment=;Author=MicrosoftTranslator + + + Codice errore: {0} +C'è stato un errore nel recuperare le statistiche degli obiettivi, o perché il gioco non aveva obiettivi, o non avevi il gioco. + Comment=;Author=MicrosoftTranslator + + + Puoi digitare qualsiasi testo che contenga SteamKey e che venga automaticamente riconosciuto e aggiunto all'elenco di attivazione, oppure puoi digitare nel seguente formato: +AAAAA-BBBBB-CCCC1 +AAAAA-BBBBB-CCCC2 +AAAAA-BBBBB-CCCC3 + Comment=;Author=MicrosoftTranslator + + + Funzione sperimentale (si consiglia di impostare i materiali trasparenti su Transparent o ArylicBlur quando questa funzione è attivata) +Questa funzione imposta gli sfondi animati da Wallpaper Engine e altri software di sfondo per sfondi sullo sfondo del programma e, se non si avvia Wallpaper Engine, lo sfondo del desktop viene utilizzato per impostazione predefinita. Gli sfondi hanno effetto solo nella finestra principale e altre finestre consigliano di non regolare completamente la trasparenza o di utilizzare uno sfondo immagine. Durante l'utilizzo, prestare attenzione a cambiare il tema corrispondente in base al colore scuro brillante dello sfondo per ottenere risultati migliori. + Comment=;Author=MicrosoftTranslator + + + Accedi all'account Steam per l'importazione di token, devi rimuovere il vecchio token prima di importarlo e questo metodo di importazione avrà un periodo di riflessione di 15 giorni per le transazioni di mercato. +(Se non attiva l'accelerazione di rete di Steam, non sarai in grado di accedere correttamente) + Comment=;Author=MicrosoftTranslator + + + Sei sicuro di voler accedere al tuo nuovo account Steam? +Questa azione termina il salto di Steam in esecuzione alla finestra di accesso al nuovo account. + Comment=;Author=MicrosoftTranslator + + + Supporta lo sviluppo di Steam + Comment=;Author=MicrosoftTranslator + + + Il rilascio dell'attuale versione di Steam+ non può essere separato dal supporto di tutti, e se Steam ti è utile e vuoi che manteniamo le nuove funzionalità sviluppate e mantenute per lungo tempo, potresti considerare di darci un piccolo contributo per rendere il nostro vapore di manutenzione degli aggiornamenti più dinamico. +Ricorda di avere l'UID del tuo account Steam nel messaggio delle note quando effettui una donazione, in modo che possiamo restituire la ricompensa della donazione al tuo account in un secondo momento. + Comment=;Author=MicrosoftTranslator + diff --git a/src/ST.Client/UI/Resx/AppResources.ja.resx b/src/ST.Client/UI/Resx/AppResources.ja.resx index e7e8f1c69..f9a141adc 100644 --- a/src/ST.Client/UI/Resx/AppResources.ja.resx +++ b/src/ST.Client/UI/Resx/AppResources.ja.resx @@ -261,10 +261,6 @@ ASF Plus Comment=;Author=MicrosoftTranslator - - ASF パスが検出されない場合は、ディレクトリを手動で指定するか、asf をダウンロードします - Comment=;Author=MicrosoftTranslator - ASF は既に実行されています Comment=;Author=MicrosoftTranslator @@ -2449,10 +2445,6 @@ 寄付 Comment=;Author=MicrosoftTranslator - - Steam++の現在のリリースは、あなたのサポートなしでは不可能であり、Steam++があなたを助け、新しい機能の開発とメンテナンスを長く維持したい場合は、Steam++を維持するために私たちのよりやる気のある更新を可能にするために少しの貢献を検討してください。 - Comment=;Author=MicrosoftTranslator - 寄付の方法 Comment=;Author=MicrosoftTranslator @@ -2473,4 +2465,50 @@ 寄付リスト データの読み込み中にエラーが発生しました: Comment=;Author=MicrosoftTranslator + + Steam++ の開発をサポートします + Comment=;Author=MicrosoftTranslator + + + この操作は、現在の変更を復元するのではなく、すべての実績と統計をゼロにします。 +確かか? + Comment=;Author=MicrosoftTranslator + + + エラー コード: {0} +アチーブメント統計の取得中にエラーが発生した場合は、ゲームにアチーブメントがないか、ゲームがない可能性があります。 + Comment=;Author=MicrosoftTranslator + + + SteamKey が含まれている限り、任意のテキストを入力してアクティベーション リストに自動的に追加するか、次の形式で入力できます。 +AAAAA-BBBBB-CCCC1 +AAAAA-BBBBB-CCCC2 +AAAAA-BBBBB-CCCC3 + Comment=;Author=MicrosoftTranslator + + + これは、現在のすべての取引の見積もりを{0}します。 +続行しますか? + Comment=同意 or 取消;Author=MicrosoftTranslator + + + *実験的な機能(この機能をオンにすると、透明なマテリアルをTransparentまたはAcrylicBlurに設定することをお勧めします) +この機能は、Wallpaper Engine およびその他の壁紙ソフトウェアのライブ壁紙をプログラムの背景として設定し、Wallpaper Engine を起動しない場合は、既定でデスクトップの背景を使用します。 背景はメイン ウィンドウでのみ有効で、他のウィンドウでは、透明度を完全に透明にしたり、画像の背景を使用したりしないように調整することをお勧めします。 より良い結果を得るために、壁紙の明るい色や暗い色に応じて、対応するテーマを切り替えることに注意してください。 + Comment=;Author=MicrosoftTranslator + + + Steam アカウントにログインしてトークンをインポートするには、インポート前に古いトークンを削除する必要があり、このインポートには 15 日間の市場トランザクション冷却期間があります。 +(Steam ネットワーク アクセラレーションをオンにしないと、ログインが成功しません) + Comment=;Author=MicrosoftTranslator + + + Steam の新しいアカウントにログインしますか? +これにより、実行中の Steam が新しいアカウントログインウィンドウにジャンプします。 + Comment=;Author=MicrosoftTranslator + + + Steam++の現在のリリースは、Steam++ がお客様を助け、新機能の開発とメンテナンスを長期的に維持したい場合は、Steam++ の保守によりやる気のある更新を行うために、少しの貢献を検討してください。 +*寄付は、Steam++ アカウントの UID がメモ メッセージに含まれることを忘れないでください。 + Comment=;Author=MicrosoftTranslator + diff --git a/src/ST.Client/UI/Resx/AppResources.ko.resx b/src/ST.Client/UI/Resx/AppResources.ko.resx index 1f35f0958..68ed1c938 100644 --- a/src/ST.Client/UI/Resx/AppResources.ko.resx +++ b/src/ST.Client/UI/Resx/AppResources.ko.resx @@ -261,10 +261,6 @@ ASF Plus Comment=;Author=MicrosoftTranslator - - ASF 경로가 검색되지 않은 경우 디렉터리를 수동으로 지정하거나 asf를 다운로드합니다 - Comment=;Author=MicrosoftTranslator - ASF가 이미 실행 중입니다 Comment=;Author=MicrosoftTranslator @@ -2449,10 +2445,6 @@ 기부 Comment=;Author=MicrosoftTranslator - - Steam++의 현재 릴리스는 모든 사람의 지원 없이는 사용할 수 없으며, Steam++가 도움이 되고 새로운 기능 개발 및 유지 관리를 오래 지속하기를 원한다면 Steam++를 보다 동적으로 업데이트할 수 있도록 약간의 기여를 하는 것이 좋습니다. - Comment=;Author=MicrosoftTranslator - 기부 방법 Comment=;Author=MicrosoftTranslator @@ -2473,4 +2465,50 @@ 기부 목록 데이터를 로드하는 중 오류가 발생했습니다. Comment=;Author=MicrosoftTranslator + + Steam++의 개발을 지원합니다 + Comment=;Author=MicrosoftTranslator + + + 이 작업은 현재 수정 사항을 복원하는 대신 모든 도전 과제와 통계를 0으로 만듭니다. +정말 확실한가요? + Comment=;Author=MicrosoftTranslator + + + 오류 코드: {0} +도전 과제 통계를 검색하는 동안 오류가 발생했습니다. + Comment=;Author=MicrosoftTranslator + + + SteamKey가 포함된 모든 텍스트를 입력하거나 활성화 목록에 자동으로 인식되거나 다음 형식으로 입력할 수 있습니다. +AAAAA-BBBBB-CCCC1 +AAAAA-BBBBB-CCCC2 +AAAAA-BBBBB-CCCC3 + Comment=;Author=MicrosoftTranslator + + + 이렇게 하면 현재 거래 견적이 {0}. +계속하시겠습니까? + Comment=同意 or 取消;Author=MicrosoftTranslator + + + *실험적 기능(이 기능을 켜면 투명 재질을 Transparent 또는 AcrylicBlur로 설정하는 것이 좋습니다.) +이 기능은 Wallpaper Engine 및 기타 배경 화면 소프트웨어의 라이브 배경 화면을 프로그램 배경으로 설정하고 Wallpaper Engine을 시작하지 않은 경우 기본적으로 바탕 화면 배경을 사용합니다. 배경은 기본 창에서만 작동하며 다른 창은 투명도를 완전히 투명하게 조정하거나 그림 배경을 사용하지 않는 것이 좋습니다. 더 나은 결과를 위해 배경 화면의 밝고 어두운 색상에 따라 테마를 전환 할 때주의하십시오. + Comment=;Author=MicrosoftTranslator + + + 토큰 가져오기를 위해 Steam 계정에 로그인하려면 이전 토큰을 제거해야 하며, 이 가져오기에는 15일의 시장 거래 냉각 기간이 있습니다. +(Steam 네트워크 가속을 켜지 않으면 로그인이 실패합니다.) + Comment=;Author=MicrosoftTranslator + + + Steam 새 계정에 로그인하시겠습니까? +이렇게 하면 실행 중인 Steam이 새 계정 로그인 창으로 이동합니다. + Comment=;Author=MicrosoftTranslator + + + "Steam++"의 현재 릴리스는 여러분의 지원 없이는 불가능하며, Steam++가 도움이 되었고 새로운 기능 개발 및 유지 관리를 오래 지속하기를 원한다면 Steam++를 보다 동기 부여된 업데이트로 유지하기 위해 약간의 기여를 하는 것이 좋습니다. +*기부할 때 Steam++ 계정의 UID가 메모 메시지에 있는 메모를 기억하여 나중에 기부 보상을 계정에 다시 제공할 수 있습니다. + Comment=;Author=MicrosoftTranslator + diff --git a/src/ST.Client/UI/Resx/AppResources.resx b/src/ST.Client/UI/Resx/AppResources.resx index 7a3b521b3..d006afcc3 100644 --- a/src/ST.Client/UI/Resx/AppResources.resx +++ b/src/ST.Client/UI/Resx/AppResources.resx @@ -1905,11 +1905,11 @@ AAAAA-BBBBB-CCCC3 捐助 - 支持Steam++的开发 + 支持 Steam++ 的开发 - 「Steam++」当前版本的发布离不开大家的支持,如果Steam++有帮助到您,并且您希望我们能长久的保持新功能开发和维护,您可以考虑给我们一点捐助,以使我们更有动力的更新维护Steam++。 -*捐助时请记得备注上您Steam++账号的GUID在备注消息内,这样能方便我们后续将捐助奖励反馈到您的账号上。 + 「Steam++」当前版本的发布离不开大家的支持,如果 Steam++ 有帮助到您,并且您希望我们能长久的保持新功能开发和维护,您可以考虑给我们一点捐助,以使我们更有动力的更新维护 Steam++。 +*捐助时请记得备注上您 Steam++ 账号的 UID 在备注消息内,这样能方便我们后续将捐助奖励反馈到您的账号上。 捐助方式 diff --git a/src/ST.Client/UI/Resx/AppResources.ru.resx b/src/ST.Client/UI/Resx/AppResources.ru.resx index c0c4af6a1..b0f59e5aa 100644 --- a/src/ST.Client/UI/Resx/AppResources.ru.resx +++ b/src/ST.Client/UI/Resx/AppResources.ru.resx @@ -261,10 +261,6 @@ ASF Plus Comment=;Author=MicrosoftTranslator - - Путь ASF не обнаружен, укажите каталог вручную или загрузите asf - Comment=;Author=MicrosoftTranslator - ASF уже запущен Comment=;Author=MicrosoftTranslator @@ -2449,10 +2445,6 @@ взносы Comment=;Author=MicrosoftTranslator - - Выпуск текущей версии "Steam++" неотделим от вашей поддержки, и если Steam++ поможет вам, и вы хотите, чтобы мы сохранили разработку и обслуживание новых функций в течение длительного времени, вы можете рассмотреть вопрос о внесении нам небольшого вклада, чтобы сделать наши обновления более мотивированными для поддержания Steam++. - Comment=;Author=MicrosoftTranslator - Способы внесения взносов Comment=;Author=MicrosoftTranslator @@ -2473,4 +2465,50 @@ Произошла ошибка при загрузке данных списка пожертвований: Comment=;Author=MicrosoftTranslator + + Поддержка разработки Steam++ + Comment=;Author=MicrosoftTranslator + + + Вместо восстановления текущей модификации все достижения и статистика обнуляются. +Ты уверен в этом? + Comment=;Author=MicrosoftTranslator + + + Код ошибки: {0} +Произошла ошибка при извлечении статистики достижений, возможно, игра не была выполнена или у вас ее нет. + Comment=;Author=MicrosoftTranslator + + + Вы можете ввести любой текст, который будет автоматически распознаваться до тех пор, пока он содержит SteamKey, чтобы добавить в список активации, или введите его в следующем формате: +AAAAA-BBBBB-CCCC1 +AAAAA-BBBBB-CCCC2 +AAAAA-BBBBB-CCCC3 + Comment=;Author=MicrosoftTranslator + + + Это {0} все ваши текущие торговые котировки. +Вы уверены, что хотите продолжить? + Comment=同意 or 取消;Author=MicrosoftTranslator + + + *Экспериментальная функция (рекомендуется установить прозрачный материал в Transparent или ArylicBlur при включении этой функции) +Эта функция устанавливает живые обои Wallpaper Engine и другого программного обеспечения обоев в качестве фона программы, а также фон рабочего стола по умолчанию, если вы не запустили Wallpaper Engine. Фон вступает в силу только в главном окне, другие окна рекомендуют настроить прозрачность не полностью прозрачно или использовать фон рисунка. При использовании, будьте осторожны, чтобы переключить соответствующие темы самостоятельно в соответствии с темным цветом обоев для получения лучших результатов. + Comment=;Author=MicrosoftTranslator + + + Войдите в учетную запись Steam для импорта маркеров, перед импортом необходимо удалить старый маркер, и этот способ импорта будет иметь 15-дневный период охлаждения для рыночных сделок. +(Если ускорение сети Steam не включено, вход в систему не будет успешным) + Comment=;Author=MicrosoftTranslator + + + Вы действительно хотите войти в новую учетную запись Steam? +Это завершает переход запущенного Steam к новому окну входа в учетную запись. + Comment=;Author=MicrosoftTranslator + + + Выпуск текущей версии "Steam++" неотделим от вашей поддержки, и если Steam++ поможет вам, и вы хотите, чтобы мы сохранили разработку и обслуживание новых функций в течение длительного времени, вы можете рассмотреть вопрос о внесении нам небольшого вклада, чтобы сделать наше обновление и обслуживание Steam++. +*При внесении взносов, пожалуйста, не забудьте отметить UID вашей учетной записи Steam++ в сообщении для комментариев, чтобы мы могли позже обратной связи с наградами пожертвований на ваш счет. + Comment=;Author=MicrosoftTranslator + diff --git a/src/ST.Client/UI/Resx/AppResources.zh-Hant.resx b/src/ST.Client/UI/Resx/AppResources.zh-Hant.resx index b00a66e6f..87613a91e 100644 --- a/src/ST.Client/UI/Resx/AppResources.zh-Hant.resx +++ b/src/ST.Client/UI/Resx/AppResources.zh-Hant.resx @@ -261,10 +261,6 @@ ASF Plus Comment=;Author=MicrosoftTranslator - - 未檢測到ASF路徑,請手動指定目錄或下載asf - Comment=;Author=MicrosoftTranslator - ASF已經運行 Comment=;Author=MicrosoftTranslator @@ -2449,10 +2445,6 @@ 捐助 Comment=;Author=MicrosoftTranslator - - 「Steam++」當前版本的發佈離不開大家的支援,如果Steam++有説明到您,並且您希望我們能長久的保持新功能開發和維護,您可以考慮給我們一點捐助,以使我們更有動力的更新維護Steam++。 - Comment=;Author=MicrosoftTranslator - 捐助方式 Comment=;Author=MicrosoftTranslator @@ -2473,4 +2465,50 @@ 載入捐助清單資料發生錯誤: Comment=;Author=MicrosoftTranslator + + 支援 Steam++ 的開發 + Comment=;Author=MicrosoftTranslator + + + 該操作不是還原當前修改,而是使所有成就和統計數據歸零。 +真的確定嗎? + Comment=;Author=MicrosoftTranslator + + + 錯誤代碼: {0} +檢索成就統計資訊時出錯,可能是該遊戲沒有成就,或者你沒有該遊戲。 + Comment=;Author=MicrosoftTranslator + + + 你可以鍵入任何文本只要其中包含SteamKey就會被自動識別添加到激活清單,也可以按以下格式輸入: +AAAAA-BBBBB-CCCC1 +AAAAA-BBBBB-CCCC2 +AAAAA-BBBBB-CCCC3 + Comment=;Author=MicrosoftTranslator + + + 這將{0}您當前所有的交易報價。 +確定要繼續嗎? + Comment=同意 or 取消;Author=MicrosoftTranslator + + + *實驗性功能(開啟此功能時建議將透明材質設置為Transparent或AcrylicBlur) +這個功能可以將 Wallpaper Engine 以及其它壁紙軟體的動態壁紙設置為程式背景,如果你沒有啟動 Wallpaper Engine ,則預設使用桌面背景。 背景僅在主視窗生效,其它窗口建議調整透明度不要完全透明或者使用圖片背景。 使用時注意自行根據壁紙亮暗色情況切換對應主題以獲得更好的效果。 + Comment=;Author=MicrosoftTranslator + + + 登錄Steam帳號進行令牌導入,導入前需要移除舊令牌,並且此導入方式會有市場交易15天冷卻期。 +(如果沒有開Steam網路加速會導致無法登錄成功) + Comment=;Author=MicrosoftTranslator + + + 確定要登錄 Steam 新帳戶嗎? +此操作會結束正在運行的 Steam 跳轉到新帳號登錄視窗。 + Comment=;Author=MicrosoftTranslator + + + 「Steam++」當前版本的發佈離不開大家的支援,如果 Steam++ 有説明到您,並且您希望我們能長久的保持新功能開發和維護,您可以考慮給我們一點捐助,以使我們更有動力的更新維護 Steam++。 +*捐助時請記得備註上您 Steam++ 帳號的 UID 在備註消息內,這樣能方便我們後續將捐助獎勵反饋到您的帳號上。 + Comment=;Author=MicrosoftTranslator + diff --git a/src/ST.Tools.Translate/Commands/ReadCommand.cs b/src/ST.Tools.Translate/Commands/ReadCommand.cs index df1e3f85d..521d7d23f 100644 --- a/src/ST.Tools.Translate/Commands/ReadCommand.cs +++ b/src/ST.Tools.Translate/Commands/ReadCommand.cs @@ -108,7 +108,7 @@ namespace System.Commands } } - var resxFileDictLangDict = GetResxDict(resxFilePathLang, ignoreStringBuilder: true).dict; + var resxFileDictLangDict = GetResxDict2(resxFilePathLang, ignoreStringBuilder: true).dict; foreach (var item in dict) { resxFileDictLangDict.AddOrReplace(item); diff --git a/src/ST.Tools.Translate/Commands/WriteCommand.cs b/src/ST.Tools.Translate/Commands/WriteCommand.cs index 2991cbab2..0d17ba352 100644 --- a/src/ST.Tools.Translate/Commands/WriteCommand.cs +++ b/src/ST.Tools.Translate/Commands/WriteCommand.cs @@ -46,7 +46,7 @@ namespace System.Commands var resxFilePathLang = GetResxFilePathLang(args); ResxFileLangCreateByNotExists(resxFilePathLang); - var resxFileDict = GetResxDict(args.resxFilePath, ignoreStringBuilder: true); + var resxFileDict = GetResxDict2(args.resxFilePath, ignoreStringBuilder: true); if (!resxFileDict.dict.Any()) { Console.WriteLine($"Error: resx file not any value, path: {args.resxFilePath}"); @@ -65,7 +65,7 @@ namespace System.Commands } } - var resxFileDictLang = GetResxDict(resxFilePathLang, ignoreStringBuilder: true); + var resxFileDictLang = GetResxDict2(resxFilePathLang, ignoreStringBuilder: true); if (resxFileDictLang.dict.Count > resxFileDict.dict.Count) // 译文不能比原文多 { Console.WriteLine($"Error: resx file lang count incorrect, path: {resxFilePathLang}, langCount: {resxFileDictLang.dict.Count} sCount: {resxFileDict.dict.Count}"); diff --git a/src/ST.Tools.Translate/Utils.cs b/src/ST.Tools.Translate/Utils.cs index 7c497c9d3..e22328ac9 100644 --- a/src/ST.Tools.Translate/Utils.cs +++ b/src/ST.Tools.Translate/Utils.cs @@ -6,6 +6,7 @@ using System.Linq; using System.Security; using System.Text; using System.Threading.Tasks; +using System.Xml.Linq; using static System.Constants; using static System.ProjectPathUtil; using R = System.Properties.Resources; @@ -168,7 +169,7 @@ namespace System return string.Join(';', dict.Select(x => $"{x.Key}={x.Value}")); } - public static Dictionary Deserialize(string comment) + public static Dictionary Deserialize(string? comment) { if (string.IsNullOrWhiteSpace(comment)) { @@ -197,6 +198,63 @@ namespace System } } + public static (StringBuilder start, StringBuilder end, Dictionary comment)> dict) GetResxDict2( + string resxFilePath, + string[]? ignoreKeys = null, + bool ignoreStringBuilder = false) + { + Dictionary comment)> dict = new(); + using var sr = File.OpenText(resxFilePath); + var doc = XDocument.Load(sr); + var query = from s in doc.Descendants() + where s.Name.LocalName == "data" + select s; + foreach (var item in query) + { + if (item.HasElements && item.HasAttributes) + { + var name = item.Attribute("name"); + string? value = null, comment = null; + if (name != null) + { + foreach (var element in item.Elements()) + { + if (element.Name == "value") + { + value = element.Value; + } + else if (element.Name == "comment") + { + comment = element.Value; + } + } + if (value != null) + { + value = Unescape(value); + dict.AddOrReplace(name!.Value, (value, Deserialize(comment))); + } + } + } + } + if (ignoreKeys.Any_Nullable()) + { + foreach (var item in ignoreKeys!) + { + if (dict.ContainsKey(item)) + { + dict.Remove(item); + } + } + } + if (ignoreStringBuilder) + return (null!, null!, dict); + const string EndMark = ""; + StringBuilder start = new(R.Resx.TrimEnd(EndMark)); + StringBuilder end = new(EndMark); + return (start, end, dict); + } + + [Obsolete] public static (StringBuilder start, StringBuilder end, Dictionary comment)> dict) GetResxDict( string resxFilePath, string[]? ignoreKeys = null,