您可以通过 OCE 工具包命令行界面和语言服务提供商 (Language Service Provider, LSP) 管理多语言站点的翻译。
站点的本地化策略指定默认语言,如英语(美国)(en-US),以及站点的一种或多种替代语言,如德语和法语。站点的文本字符串可以翻译为指定的替代语言。如果在翻译之前更改站点的语言,则文本字符串仍然会以默认语言显示。
OCE 工具包在命令行界面中提供以下翻译选项:
Translation cec list-translation-jobs Lists translation jobs. [alias: ltj] cec create-translation-job <name> Creates a translation job <name> for a site on CEC server. [alias: ctj] cec download-translation-job <name> Downloads translation job <name> from CEC server. [alias: dtj] cec submit-translation-job <name> Submits translation job <name> to translation connection <connection>. [alias: stj] cec ingest-translation-job <name> Gets translated job <name> from translation connection and ingest. [alias: itj] cec upload-translation-job <name> Uploads translation job <name> to CEC server. [alias: utj] cec create-translation-connector <name> Creates translation connector <name>. [alias: ctc] cec start-translation-connector <name> Starts translation connector <name>. [alias: stc] cec register-translation-connector <name> Registers a translation connector. [alias: rtc]
可以使用 cec list-translation-jobs
命令列出服务器上已经存在的翻译作业。例如:
cec ltj -s Server: <server-name> Asset translation jobs: Name Status Source Language Target Languages Pending Languages testHash INPROGRESS en-US fr-FR,de-DE fr-FR,de-DE Site translation jobs: Name Status Source Language Target Languages Pending Languages demoTest TRANSLATED en-US de-DE,fr-FR
键入任何不带参数或者带 -h
的 cec
命令将提供关于命令的帮助。请参见使用 cec 命令行实用程序。
以下部分提供了有关通过 LSP 翻译站点的信息: