SDL Trados Studio 的秘密 - 命令行参数

SDL Trados Studio安装之后你就可以通过桌面或者开始菜单的快捷方式启动这个广为认知的CAT工具了

快捷方式会启动
C:\Program Files (x86)\SDL\SDL Trados Studio\Studio 目录下的
SDLTradosStudio.exe

第一个秘密是:

实际上Trados Studio是支持命令行参数的,可以带参数启动


USAGE: SDLTradosStudio.exe [/help|/?] /arg1 val1 /arg2 val2
用法: SDLTradosStudio.exe [/help|/?] /arg1 val1 /arg2 val2
Task: NoAutoUpdate
目的: NoAutoUpdate
Description: Starts the application without automatically checking for updates.
描述: 禁止程序自动更新,这个可以加到快捷方式中
Usage: SDLTradosStudio.exe /noautoupdate
用法: SDLTradosStudio.exe /noautoupdate
Arguments: 
	/noautoupdate	Starts the application without automatically checking for updates.

在这里插入图片描述


Task: Open Retrofit
Description: Opens a retrofit file in the Alignment View.
Usage: SDLTradosStudio.exe /openRetrofit <retrofit>
Arguments: 
	/openRetrofit	The full file path to the retrofit file you want to open.

Task: Open Alignment
Description: Opens an alignment in the Alignment View.
Usage: SDLTradosStudio.exe /openAlignment <alignment>
Arguments: 
	/openAlignment	The full file path to the alignment you want to open.

Task: Create Project
Description: Starts the Create Project wizard.
Usage: SDLTradosStudio.exe /createProject [/files <file1> [<file2> <folder1> ...]] [/name <name>] [/template <template>] [/referenceProject <referenceProject>]
Arguments: 
	/createProject	Starts the Create Project wizard.
	/files	The full file path of one or more documents or folders to add to the Create Project wizard.
	/name	The name of the Project
	/template	An existing template name or file path to use.
	/referenceProject	An existing reference project file path to use.

Task: Open Document
Description: Opens a document or a number of documents in the Editor View.
Usage: SDLTradosStudio.exe /openDocument <document1> [<document2> ...]
Arguments: 
	/openDocument	The full file path of one or more documents to open.

Task: Open File Based TM
Description: Opens a file based TM or a number of file based TMs in the TM View.
Usage: SDLTradosStudio.exe /openFileTm <file tm1> [<file tm2> ...]
Arguments: 
	/openFileTm	The full file path of one or more TMs to open.

Task: Open Package
Description: Opens a package in the Package View.
Usage: SDLTradosStudio.exe /openPackage <package>
Arguments: 
	/openPackage	The full file path of the package to open.

Task: Open Project
Description: Opens a project in the Projects View.
Usage: SDLTradosStudio.exe /openProject <project>
Arguments: 
	/openProject	The full file path of a Project to open.

Task: Open Language Cloud Task
Description: Opens a Language Cloud Task in Studio
Usage: SDLTradosStudio.exe /openLCTask <TaskId>
Arguments: 
	/openLCTask	The Id of the Language Cloud Task to open

Task: Open Server Project
Description: Opens a server project in the Projects View.
Usage: SDLTradosStudio.exe /openServerProject <project URI>
Arguments: 
	/openServerProject	The URI of a Server Project to open.

第二个秘密是

SDLTradosStudio.exe是.NET 应用程序,因此支持.NET 配置文件,
C:\Program Files (x86)\SDL\SDL Trados Studio\Studio 下能找到一个文件 SDLTradosStudio.exe.config
内容如下

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
    <section name="BestMatchServiceUrlsConfig" type="Sdl.BestMatchServiceStudioIntegration.Common.UrlsConfig, Sdl.BestMatchServiceStudioIntegration.Common" />
    <section name="BestMatchServiceSettings" type="Sdl.BestMatchService.Common.Configuration.BestMatchServiceSettingsSection, Sdl.BestMatchService.Common" />
  </configSections>

  <system.net>
    <settings>
      <servicePointManager expect100Continue="false" />
    </settings>
  </system.net>

  <system.runtime.remoting>
    <application>
      <service>
        <wellknown mode="SingleCall" type="Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.PhraseExtractionNotification, Sdl.TranslationStudio.Editor" objectUri="PhraseExtractionNotification.rem" />
      </service>
      <channels>
        <channel ref="ipc" portName="PhraseExtractionNotification" authorizedGroup="Everyone">
        </channel>
      </channels>
    </application>
  </system.runtime.remoting>

  <BestMatchServiceSettings>
    <tracking>
      <setting name="applicationKey" value="n3JUV2wjQeKOVB0muXqL0Q%3D%3D" />
    </tracking>
    <auth0>
      <setting name="clientId" value="LxQFbTZxk2Pc7mg0N4RfIOp2WCeypuzN" />
      <setting name="audience" value="https://api.sdl.com" />
    </auth0>
  </BestMatchServiceSettings>
  <BestMatchServiceUrlsConfig login="https://lc-api.sdl.com" logout="http://languagecloud.sdl.com/translation-toolkit/logout" auth0="https://sdl-prod.eu.auth0.com">
    <introduction url="https://languagecloud.sdl.com/translators-studio">
      <alternate lang="de" url="https://languagecloud.sdl.com/de/translators-studio" />
      <alternate lang="fr" url="https://languagecloud.sdl.com/fr/translators-studio" />
      <alternate lang="es" url="https://languagecloud.sdl.com/es/translators-studio" />
      <alternate lang="ja" url="https://languagecloud.sdl.com/ja/translators-studio" />
      <alternate lang="it" url="https://languagecloud.sdl.com/it/translators-studio" />
      <alternate lang="ko-KR" url="https://languagecloud.sdl.com/kr/translators-studio" />
      <alternate lang="zh-CN" url="https://languagecloud.sdl.com/zh/translators-studio" />
    </introduction>
    <createNewAccount url="https://languagecloud.sdl.com/translation-toolkit/sign-up-sdl-identity">
      <alternate lang="de" url="https://languagecloud.sdl.com/de/translation-toolkit/sign-up-sdl-identity" />
      <alternate lang="fr" url="https://languagecloud.sdl.com/fr/translation-toolkit/sign-up-sdl-identity" />
      <alternate lang="es" url="https://languagecloud.sdl.com/es/translation-toolkit/sign-up-sdl-identity" />
      <alternate lang="ja" url="https://languagecloud.sdl.com/ja/translation-toolkit/sign-up-sdl-identity" />
      <alternate lang="it" url="https://languagecloud.sdl.com/it/translation-toolkit/sign-up-sdl-identity" />
      <alternate lang="ko-KR" url="https://languagecloud.sdl.com/kr/translation-toolkit/sign-up-sdl-identity" />
      <alternate lang="zh-CN" url="https://languagecloud.sdl.com/zh/translation-toolkit/sign-up-sdl-identity" />
    </createNewAccount>
    <moreInfo url="https://languagecloud.sdl.com/translators">
      <alternate lang="de" url="https://languagecloud.sdl.com/de/translators" />
      <alternate lang="fr" url="https://languagecloud.sdl.com/fr/translators" />
      <alternate lang="es" url="https://languagecloud.sdl.com/es/translators" />
      <alternate lang="ja" url="https://languagecloud.sdl.com/ja/translators" />
      <alternate lang="it" url="https://languagecloud.sdl.com/it/translators" />
      <alternate lang="ko-KR" url="https://languagecloud.sdl.com/kr/translators" />
      <alternate lang="zh-CN" url="https://languagecloud.sdl.com/zh/translators" />
    </moreInfo>
    <!-- Root url required for hyperlinks in LanguageCloud MT Provider UI-->
    <translationToolkit url="https://languagecloud.sdl.com/translation-toolkit/">
      <alternate lang="de" url="https://languagecloud.sdl.com/de/translation-toolkit/" />
      <alternate lang="fr" url="https://languagecloud.sdl.com/fr/translation-toolkit/" />
      <alternate lang="es" url="https://languagecloud.sdl.com/es/translation-toolkit/" />
      <alternate lang="ja" url="https://languagecloud.sdl.com/ja/translation-toolkit/" />
      <alternate lang="it" url="https://languagecloud.sdl.com/it/translation-toolkit/" />
      <alternate lang="ko-KR" url="https://languagecloud.sdl.com/kr/translation-toolkit/" />
      <alternate lang="zh-CN" url="https://languagecloud.sdl.com/zh/translation-toolkit/" />
    </translationToolkit>
    <HavingTroubleSigningIn url="https://gateway.sdl.com/apex/communityknowledge?articleName=How-to-reset-your-password-for-your-My-SDL-Account" />
    <GettingStarted url="http://www.sdl.com/languagecloud/machine-translation/resources.html?download-type=Video/">
      <alternate lang="de" url="http://www.sdl.com/de/languagecloud/machine-translation/resources.html?download-type=Video" />
      <alternate lang="fr" url="http://www.sdl.com/fr/languagecloud/machine-translation/resources.html?download-type=Video" />
      <alternate lang="es" url="http://www.sdl.com/es/languagecloud/machine-translation/resources.html?download-type=Video" />
      <alternate lang="ja" url="http://www.sdl.com/jp/languagecloud/machine-translation/resources.html?download-type=Video" />
      <alternate lang="it" url="http://www.sdl.com/it/languagecloud/machine-translation/resources.html?download-type=Vide" />
      <alternate lang="ko-KR" url="http://www.sdl.com/kr/languagecloud/machine-translation/resources.html?download-type=Video/" />
      <alternate lang="zh-CN" url="http://www.sdl.com/cn/languagecloud/machine-translation/resources.html?download-type=Video" />
    </GettingStarted>
    <LanguageCloudPricingPage url="http://www.sdl.com/languagecloud/machine-translation/pricing.html">
      <alternate lang="de" url="http://www.sdl.com/de/languagecloud/machine-translation/pricing.html" />
      <alternate lang="fr" url="http://www.sdl.com/fr/languagecloud/machine-translation/pricing.html" />
      <alternate lang="es" url="http://www.sdl.com/es/languagecloud/machine-translation/pricing.html" />
      <alternate lang="ja" url="http://www.sdl.com/jp/languagecloud/machine-translation/pricing.html" />
      <alternate lang="it" url="http://www.sdl.com/it/languagecloud/machine-translation/pricing.html" />
      <alternate lang="ko-KR" url="http://www.sdl.com/kr/languagecloud/machine-translation/pricing.html" />
      <alternate lang="zh-CN" url="http://www.sdl.com/cn/languagecloud/machine-translation/pricing.html" />
    </LanguageCloudPricingPage>
    <AdaptiveMTLearnMore url="http://www.sdl.com/cxc/language/translation-productivity/machine-translation/adaptivemt.html?InterestProfile=LTTranslatorProductivity">
      <alternate lang="de" url="http://www.sdl.com/de/cxc/language/translation-productivity/machine-translation/adaptivemt.html?InterestProfile=LTTranslatorProductivity" />
      <alternate lang="fr" url="http://www.sdl.com/fr/cxc/language/translation-productivity/machine-translation/adaptivemt.html?InterestProfile=LTTranslatorProductivity" />
      <alternate lang="es" url="http://www.sdl.com/es/cxc/language/translation-productivity/machine-translation/adaptivemt.html?InterestProfile=LTTranslatorProductivity" />
      <alternate lang="ja" url="http://www.sdl.com/jp/cxc/language/translation-productivity/machine-translation/adaptivemt.html?InterestProfile=LTTranslatorProductivity" />
      <alternate lang="it" url="http://www.sdl.com/it/cxc/language/translation-productivity/machine-translation/adaptivemt.html?InterestProfile=LTTranslatorProductivity" />
      <alternate lang="ko-KR" url="http://www.sdl.com/kr/cxc/language/translation-productivity/machine-translation/adaptivemt.html?InterestProfile=LTTranslatorProductivity" />
      <alternate lang="zh-CN" url="http://www.sdl.com/cn/cxc/language/translation-productivity/machine-translation/adaptivemt.html?InterestProfile=LTTranslatorProductivity" />
    </AdaptiveMTLearnMore>
    <IntroducingAdaptiveMT url="http://www.sdl.com/video/studio-2017-introducing-sdl-adaptivemt/111026">
      <alternate lang="de" url="http://www.sdl.com/de/video/studio-2017-introducing-sdl-adaptivemt/111026" />
      <alternate lang="fr" url="http://www.sdl.com/fr/video/studio-2017-introducing-sdl-adaptivemt/111026" />
      <alternate lang="es" url="http://www.sdl.com/es/video/studio-2017-introducing-sdl-adaptivemt/111026" />
      <alternate lang="ja" url="http://www.sdl.com/jp/video/studio-2017-introducing-sdl-adaptivemt/111026" />
      <alternate lang="it" url="http://www.sdl.com/it/video/studio-2017-introducing-sdl-adaptivemt/111026" />
      <alternate lang="ko-KR" url="http://www.sdl.com/kr/video/studio-2017-introducing-sdl-adaptivemt/111026" />
      <alternate lang="zh-CN" url="http://www.sdl.com/cn/video/studio-2017-introducing-sdl-adaptivemt/111026" />
    </IntroducingAdaptiveMT>
    <HowToUseAdaptiveMT url="http://www.sdl.com/video/studio-2017-getting-started-with-sdl-adaptivemt/111027">
      <alternate lang="de" url="http://www.sdl.com/de/video/studio-2017-getting-started-with-sdl-adaptivemt/111027" />
      <alternate lang="fr" url="http://www.sdl.com/fr/video/studio-2017-getting-started-with-sdl-adaptivemt/111027" />
      <alternate lang="es" url="http://www.sdl.com/es/video/studio-2017-getting-started-with-sdl-adaptivemt/111027" />
      <alternate lang="ja" url="http://www.sdl.com/jp/video/studio-2017-getting-started-with-sdl-adaptivemt/111027" />
      <alternate lang="it" url="http://www.sdl.com/it/video/studio-2017-getting-started-with-sdl-adaptivemt/111027" />
      <alternate lang="ko-KR" url="http://www.sdl.com/kr/video/studio-2017-getting-started-with-sdl-adaptivemt/111027" />
      <alternate lang="zh-CN" url="http://www.sdl.com/cn/video/studio-2017-getting-started-with-sdl-adaptivemt/111027" />
    </HowToUseAdaptiveMT>
  </BestMatchServiceUrlsConfig>
  <log4net>
    <!-- Set levels to DEBUG for extended logging information -->
    <appender name="RollingFile" type="Sdl.Desktop.Logger.LocalUserAppDataFileAppender, Sdl.Desktop.Logger">
    </appender>

    <!-- output to debug string -->
    <appender name="OutputDebug" type="log4net.Appender.OutputDebugStringAppender">
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
      </layout>
    </appender>

    <root>
      <level value="INFO" />
      <appender-ref ref="RollingFile" />
      <appender-ref ref="OutputDebug" />
    </root>

    <logger name="Sdl.TranslationStudio">
      <level value="INFO" />
    </logger>

    <logger name="Sdl.Desktop">
      <level value="INFO" />
    </logger>

    <logger name="Sdl.ProjectApi">
      <level value="INFO" />
    </logger>

    <logger name="Licensing">
      <level value="INFO" />
    </logger>

    <!--<logger name="Sdl.MultiTerm">
      <level value="DEBUG"/>
    </logger>-->
  </log4net>

  <appSettings>
    <!--  UpdateClientFilePath can be an absolute or relative file path (relative to All Users\Application Data) -->
    <add key="UpdateClientFilePath" value="SDL\SDL Trados Studio\Studio15\Updates\StudioUpdateClient.exe" />    

    <!-- CheckForUpdateGroupPolicyRegistryKey is relative to the HKEY_LOCAL_MACHINE -->
    <add key="CheckForUpdateGroupPolicyRegistryKey" value="Software\Policies\SDL\Studio15" />
    <add key="CheckForProvideCustomerExperienceFeedbackGroupPolicyRegistryKey" value="Software\Policies\SDL\Studio15" />

    <!-- DisableRssFeedProxy determines whether proxies are disabled for the rss feed -->
    <add key="DisableRssFeedProxy" value="false" />

    <!-- BatchTaskthreadCount is the maximum number of allowed threads to run batch tasks -->
    <add key="BatchTaskthreadCount" value="3" />

    <!-- Open Exchange Apps location in start menu folder -->
    <add key="OpenExchangeAppsLocation" value="\Programs\SDL Trados Studio 2019 Apps" />

    <!-- Enables the keyboard hooking to fix the ribbon ALT+KEYCODES issue for all the modeless windows-->
    <add key="KEYBOARD_HOOKING_ENABLED" value="false" />

    <add key="BestMatchServiceStudioIntegrationPolicyRegistryKey" value="Software\Policies\SDL\Studio15\BestMatchServiceStudioIntegration" />

    <add key="FileStreamBufferSize" value="0x80000" />

    <!-- Enable/disable segment split in Alignment Editor. -->
    <add key="AlignmentSplitEnabled" value="true" />
  </appSettings>

  <system.diagnostics>
    <trace autoflush="true" />
    <sources>
      <source name="System.ServiceModel" propagateActivity="true" switchValue="Information, ActivityTracing">
        <listeners>
          <add name="xml" />
        </listeners>
      </source>
      <source name="LanguagePlatform" switchValue="Information, ActivityTracing">
        <listeners>
          <add name="xml" />
        </listeners>
      </source>
      <source name="Sdl.Enterprise2" switchValue="Information, ActivityTracing">
        <listeners>
          <add name="xml" />
        </listeners>
      </source>
      <source name="System.Runtime.Serialization" switchValue="Information, ActivityTracing">
        <listeners>
          <add name="xml" />
        </listeners>
      </source>
    </sources>
    <sharedListeners>
      <add name="xml" type="System.Diagnostics.XmlWriterTraceListener" initializeData="C:\ProgramData\SDL\Service\Logs\client.svclog" />
    </sharedListeners>
  </system.diagnostics>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7" />
  </startup>
  <runtime>
    <NetFx40_PInvokeStackResilience enabled="1" />
    <legacyCorruptedStateExceptionsPolicy enabled="true" />
    <ThrowUnobservedTaskException enabled="true" />
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
      </dependentAssembly>
     
      <dependentAssembly>
        <assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.2.3.0" newVersion="1.2.3.0" />
      </dependentAssembly>	
    </assemblyBinding>
  </runtime>
</configuration>

比如修改Log Level,关闭订阅等等

最后一个秘密
可以更改SDLTradosStudio在Win10此贴菜单上的图标
C:\Program Files (x86)\SDL\SDL Trados Studio\Studio 下能找到一个文件 SDLTradosStudio.visualelementsmanifest.xml

<?xml version="1.0" encoding="utf-8" ?>
<Application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <VisualElements
        BackgroundColor="#25BD59"
        ShowNameOnSquare150x150Logo="on"
        ForegroundText="light"
        Square150x150Logo="Assets\SDLTradosStudio150.png"
        Square70x70Logo="Assets\SDLTradosStudio70.png"
      />
</Application>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值