legacy-knowledge-base
公開されました Jun. 30, 2025

googleクラウド翻訳APIを使用して自動翻訳が機能しない

written-by

Pooja Bhambani

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • 再現の手順
    1.
    Googleクラウド翻訳を有効にするには、アクティブなアカウントと、クラウド翻訳APIが有効になっているGoogleクラウドプロジェクトが必要です。 このプロジェクトには、JSONアカウントキーを持つサービスアカウントも必要です。 詳しくは、 Google Cloud Translation の公式ドキュメントをご確認ください。
    2. メニュー」(グローバルメニュー)をクリックし、「コントロールパネル」タブをクリックし、「システム設定」→「翻訳」→「Googleクラウドを使用する翻訳者」と進みます。
    3. 有効をチェックします。
    4. 有効なGoogleクラウドサービスのアカウントキーをJSON形式で入力します。
    5. Save をクリックします。
    6. サイト管理 > コンテンツ & データ > ウェブコンテンツ に移動する。
    7. 基本ウェブコンテンツを追加する:翻訳テスト」を追加します。
    8. 翻訳テスト」ウェブコンテンツの「アクション」をクリックし、「翻訳」をクリックします。
    9. 英語から日本語への翻訳を選択します。
    10. 自動翻訳をクリックします。

    期待される結果 英語から日本語への翻訳に成功すること。

    実際の結果 エラーが発生し、「翻訳サービスに問題があります。 管理者に連絡してください』。 バックグラウンドでエラーが報告された:"ERROR [http-nio-8080-exec-5][AutoTranslateServlet: 94] null

環境

  • Liferay DXP 7.4
  • 2023.Q3.0
  • 2023.Q3.1

解像度

  • この現象はLiferay DXPの既知のバグであり、2023.Q3.1で修正されています。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base