Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

TranslatePressでWordPressを簡単に翻訳する方法

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

あなたのサイトを他の言語に翻訳したいですか?

初期設定では、WordPressは多言語コンテンツを管理する簡単な方法を提供していません。しかし、プラグインを使用することで、WordPressサイトを簡単に翻訳することができます。

この投稿では、TranslatePressを使ってWordPressサイトを簡単に翻訳する方法をご紹介します。

How to translate your WordPress with TranslatePress

なぜWordPressサイトの翻訳にTranslatePressを使うのですか?

WordPressの一番いいところは、どんな言語でも使えるということです。WordPressのテーマやプラグインのほとんどは、どの言語にも翻訳して使用することができます。

あなたのビジネスサイトが多言語の読者を持つ場合、コンテンツを翻訳することは非常に有益です。

Google翻訳のような機械翻訳に頼ることもできるが、これらの翻訳は良いものではなく、時にはかなり誤解を招くこともある。

一方、多言語WordPressプラグインを使用している場合、複数の投稿を作成する必要があり、異なる言語を行き来する必要があります。

TranslatePressプラグインを使用すると、ライブエディタを使用してサイトやコンテンツを翻訳することができ、同じコンテンツのために複数の投稿を作成する必要はありません。

ライブエディターから即座に言語を切り替えることができ、TranslatePressを使ってテーマやプラグインを翻訳することもできます。

それでは、TranslatePressを使ってWordPressサイトを簡単に翻訳する方法を見てみましょう。

ステップ1:WordPressにTranslatePressをインストールする

最初に行う必要があるのは、TranslatePressプラグインをインストールして有効化することです。詳しくは、WordPressプラグインのインストール方法のステップバイステップガイドをご覧ください。

有効化したら、WordPressの管理ダッシュボードから設定 ” TranslatePressのページに移動し、プラグインの設定を行います。

ここから「全般」タブに切り替える必要がある。

まず、「初期設定言語」オプションの横にあるドロップダウンメニューから、あなたのサイトの初期設定言語を選択する必要があります。

これは、WordPressがすでにダウンロードされている言語です。

Choose a default language in TranslatePress

その後、サイトを翻訳したい言語を選択する必要があります。

すべての言語」セクションに移動し、「言語」オプションの下にあるドロップダウンメニューからサイトを翻訳したい言語を選択するだけです。

その後、「追加」ボタンをクリックします。

Choose a translation language

次に、ページの「母国語名」設定までスクロールダウンする。

ここでは、言語名を母国語で表示するか、英語で表示するかを選択する必要があります。Yes’か’No’を選択してください。

次のオプションは、URLにサブディレクトリとして初期言語名を表示するかどうかの設定です。例えば、http://example.com/en/。

検索エンジン最適化のためにも、この設定のままにしておくことをお勧めします。

その後、「カスタムリンクで言語を強制する」設定に向かう。

初期設定のオプションは「はい」で、プラグインが翻訳された言語のカスタムリンクを変更し、URLをよりSEOフレンドリーなものにします。

Configure other General settings

次のオプションでは、自動翻訳にGoogle翻訳を使用するかどうかを設定できます。

初期設定は「いいえ」ですが、Google翻訳を使いたい場合は変更できます。

必要なのは、次のオプションでGoogle翻訳APIキーを提供することだけです。オプションの下にリンクがあり、取得方法が表示されます。

Provide Google Translate API if you want to activate it

最後に、あなたのサイトに言語スイッチャーをどのように表示するかの設定オプションになります。TranslatePressは3つの選択肢を提供します。

ショートコードを使ったり、ナビゲーションメニューにスイッチャーを追加したり、フローティングメニューを表示したりすることができます。この投稿の後半で、あなたのサイトに言語スイッチャーを追加する方法を紹介します。

あとは、「変更を保存」ボタンをクリックするだけで、設定が保存されます。

ステップ2:サイトコンテンツの翻訳

サイトを翻訳するには、プラグインの設定ページにある「サイトを翻訳」タブをクリックするか、WordPress管理バーにある「サイトを翻訳」ボタンをクリックします。

新しいブラウザータブでライブ翻訳エディターが開きます。

Click Translate Site button

あとは、サイト上の翻訳したいテキストの横にある青い翻訳アイコンをクリックするだけです。

その後、TranslatePressは自動的に翻訳エディターの左カラムに選択したテキストを読み込みます。

Translate website

カラムにテキストが読み込まれたら、下のボックスにトランジションを追加し、上部にある’Save Translation’ボタンをクリックして変更を保存します。

こうすることで、ナビゲーションメニューボタン、サイドバー、ウィジェット、メタ情報など、サイトのあらゆるページのコンテンツをすべて翻訳することができます。

TranslatePressを使用すると、ログイン中にサイト上の任意のページや投稿の翻訳を即座に開始することもできます。

あなたがする必要があるすべては、ライブエディターを開くために上部にある ‘翻訳ページ’ボタンをクリックするだけです。

Directly translate page

このプラグインのもう一つの利点は、特定の文字列を一度だけ翻訳すればよいということだ。

一度文字列を翻訳すると、プラグインが他の場所でも自動的に翻訳してくれます。

ステップ3:ウェブサイトに言語切り替え機能を追加する

サイトを翻訳したら、サイトに言語スイッチャーを追加する必要があります。

言語スイッチャーは、ユーザーがサイトにアクセスした際に言語を選択できるようにするものです。通常、各国の国旗が表示され、サイトで使用可能な言語を示します。

TranslatePressでは、ショートコードを使用して、ナビゲーションメニュー項目として、またはフローティングバナーとして言語スイッチャーを追加することができます。

言語スイッチャーは、国旗、言語名、またはその両方で表示できる。

ショートコードを使ってWordPressに言語切り替え機能を追加する

WordPressでショートコードを使って言語切り替え機能を追加したい場合は、管理画面のダッシュボードから設定 ” TranslatePressのページにアクセスしてください。

設定」ページで「一般」タブを下にスクロールし、「言語切り替え」セクションの[language-switcher]ショートコードをコピーします。

Copy shortcode for the language switcher

言語スイッチャーを表示したいページ、投稿日、サイドバーウィジェットにこのショートコードを貼り付けることができます。

これがデモサイトでの言語切り替えの様子です。

Shortcode language switcher

WordPressのナビゲーションメニューに言語切り替え機能を追加する

ナビゲーションメニュー項目として言語スイッチャーを追加したい場合は、ダッシュボードから外観 ” メニューページに移動します。

注: フルサイトエディターでブロックベースのテーマを使っている場合は、この方法は使えません。

ここから、画面左隅の「メニュー項目の追加」セクションにある「言語切り替え」タブをクリックする必要があります。

タブが展開されたら、言語スイッチャーに表示したい言語をチェックするだけです。

その後、「メニューを追加」ボタンをクリックして、言語スイッチャーをメニュー項目として追加します。

Add language switcher in navigation menu

最後に、「メニューを保存」ボタンをクリックして、変更内容を保存することを忘れないでください。

これでWordPressのナビゲーションメニューに言語スイッチャーが追加されます。

私たちのテストサイトではこのように見えた。

Language switcher added in nav menu

フローティング言語スイッチャーの追加

フローティング言語スイッチャーを追加したい場合は、管理画面のダッシュボードから設定 ” TranslatePressのページに移動するだけです。

まず、「一般」タブの「言語切り替え」セクションまでスクロールダウンする必要があります。

ここから、’Floating language selection’オプションの隣にあるボックスにチェックを入れてください。

画面右隅のドロップダウンメニューから、フローティング言語スイッチャーの位置を切り替えることもできます。

Add a floating language switcher

その後、変更を保存するボタンをクリックして、設定を保存することを忘れないでください。

あなたのサイトにアクセスすると、ウェブサイトの各ページの下にフローティング言語スイッチャーが表示されるようになりました。

Add floating switcher

この投稿が、TranslatePressを使用してWordPressサイトを翻訳する方法を学ぶのにお役に立てば幸いです。WordPressで多言語サイトマップを作成する方法の投稿や、ビジネスサイトに最適なWordPressプラグインのリストもご覧ください。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

28件のコメント返信を残す

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

    • WPBeginner Support says

      The plugin is not for translating videos at the moment it is for your site’s written content.

      管理者

  2. Thong Shi Ying says

    Hi,
    I am facing a problem is when I clicking to other page, the language will different. How to set when I clicking to other page, the page also remain the same language?

    • WPBeginner Support says

      For that, you may want to look into a multilingual plugin, if you reach out to TranslatePress they can let you know if the option to keep the selected language is currently available at the moment.

      管理者

  3. Lucie Frankova says

    Hello Guys,

    I would like to thank you for an amazing article, it is very useful.

    I just translated whole webpage into English and added the language switcher.
    When being logged in as an admin, I am seeing all perfectly (english version, language switchers..
    But if another person looks at the webpage the langugae options are not visible at all. Did I do something wrong? Is there any other step I am missing?

    Thank you for your help in advance.

    • WPBeginner Support says

      For the most common fix, you would want to ensure you clear any and all caching on your site

      管理者

  4. Hugo says

    If I have an image with a bit of text on it, can I change it to a French version if I’m creating a French page? Since the text is not editable in the photo, I’d have to create a new French version of the photo.

    I didn’t see any comments on an option of converting images with translate press.

    Thanks in advance.

    • WPBeginner Support says

      You would want to reach out to TranslatePress for their current tools and options available and they would be able to assist.

      管理者

    • WPBeginner Support says

      You would want to check with the plugin’s support for questions like these, for the moment you should be able to update page titles with the plugin.

      管理者

  5. Jose Aguirre says

    Hi, i need to force a second language (not default language) in my site, how can do that ?

  6. ANASTASIA says

    What happens if I switch after a while to another translate plugin? would it leave traces, broken URL …?

    • WPBeginner Support says

      It would depend on how the urls are structured in each plugin, if you check with the plugin’s support they should be able to let you know if you can recreate the urls you had before.

      管理者

  7. Hassan says

    Hi
    I want to translate a website (originally written in Arabic) to English and i have all pages available in the website in English but i do not know how to link the Arabic page to the same page in English

    • WPBeginner Support says

      If you’re using TranslatePress you would add the text using the translate site button and going to the page you want translated.

      管理者

  8. Ajay Kumar says

    I didn’t understand one thing is that we have to manually translate each and every word? is that the plugin going to work? if I want to translate into Marathi then I have to write each and every word in Marathi? am I right? then what’s the use of this plugin if we only gives the translations>

    • WPBeginner Support says

      The plugin does have the option to use Google Translate, the only issue with that is not all automatic translations work well. That is why it allows you to manually edit the content on your site.

      管理者

      • Ajay Kumar says

        so, this only allows you to translate manually, there is no automatic translation, am right?

        • WPBeginner Support says

          The plugin has the option to use automatic translation deals with Google translate

  9. Al Sch says

    Hi,

    Question – if I write a new post (in english, the original website language), will the post also appear in english on all the other websites in different languages?
    Thanks!

    • WPBeginner Support says

      It would depend on if you’re auto-translating or not, by default you would need to translate the post as otherwise it would appear as your default language on the page for other languages

      管理者

      • Al Sch says

        I would be translating things myself, but yeah it makes sense, thanks! I just wasn’t sure whether any edits, additions, etc on the english version automatically appear on the other versions.

  10. Ivan says

    I recommnd to use google translate to translate site becouse the quality of translation is 4 times better! I use my scripts for it.

    • WPBeginner Support says

      Thanks for your input, the plugin has the option to use the Google translate API so users do not need to manually visit the translate page of Google to get those translations.

      管理者

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。