<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>自動翻訳 | imakat.com</title>
	<atom:link href="https://imakat.com/tag/%E8%87%AA%E5%8B%95%E7%BF%BB%E8%A8%B3/feed/" rel="self" type="application/rss+xml" />
	<link>https://imakat.com</link>
	<description>工夫と改善で人生をちょっと豊かに</description>
	<lastBuildDate>Sun, 14 Sep 2025 01:37:13 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://i0.wp.com/imakat.com/wp-content/uploads/2023/07/cropped-80d64ecd340db4e2ca3224859b04caed.png?fit=32%2C32&#038;ssl=1</url>
	<title>自動翻訳 | imakat.com</title>
	<link>https://imakat.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">160909258</site>	<item>
		<title>【Cocoonカスタマイズ】ブログを自動翻訳する方法〜Prisna Google Website Translatorの挿入</title>
		<link>https://imakat.com/2019/12/26/1020/</link>
		
		<dc:creator><![CDATA[imakat]]></dc:creator>
		<pubDate>Wed, 25 Dec 2019 22:00:00 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[デジタル]]></category>
		<category><![CDATA[自動翻訳]]></category>
		<guid isPermaLink="false">http://imakat.com/?p=1020</guid>

					<description><![CDATA[2023.2.9更新：Google Translatorプラグインが突然、動かなくなりました。そこで、その代替えとして、ほぼ同じ機能の、Prisna Google Website Translatorプラグイン、へ変更し [&#8230;]]]></description>
										<content:encoded><![CDATA[
<hr class="wp-block-separator has-text-color has-key-color-color has-alpha-channel-opacity has-key-color-background-color has-background is-style-wide"/>



<p>2023.2.9更新：Google Translatorプラグインが突然、動かなくなりました。そこで、その代替えとして、ほぼ同じ機能の、<a rel="noopener" target="_blank" href="https://imakat.synology.me/wp-content/pmedia/スクリーンショット_2023-02-09_10.30.28.png">Prisna Google Website Translatorプラグイン、へ変更<span class="fa fa-external-link external-icon anchor-icon"></span></a>しました。プラグインをインストールした後で、Cocoon childのtmp-user/header-insert.phpの中のスクリプトを、以下に書き換えてください。</p>



<pre class="wp-block-code"><code>&lt;?php echo do_shortcode('&#91;prisna-google-website-translator]'); ?&gt;</code></pre>



<hr class="wp-block-separator has-text-color has-key-color-color has-alpha-channel-opacity has-key-color-background-color has-background is-style-wide"/>



<p><strong>GoogleのWeb翻訳ツールが終了となるとのこと</strong>（もうなったのかな？）ですので、これは困る人も多そうです。</p>



<p>WordPressプラグインの「Google Language Translator」 は使用可能のようなので、 復活させることにしました。</p>



<p>このプラグインの利用方法ですが、２つあります。一つ目は、設置場所を固定する方法です。２つ目は、浮動させる方法です。</p>



<p></p>



<h3 class="wp-block-heading">浮動させる方法</h3>



<p>先に浮動させる方法ですが、これは簡単です。プラグインのsetting(設定)にて、以下のように選択します。</p>



<figure class="wp-block-image aligncenter size-large is-resized"><a href="https://imakat.com/rd.php?id=OsL1QDRF.png" target="_blank"><img decoding="async" src="https://imakat.com/rd.php?id=OsL1QDRF.png" alt="" style="aspect-ratio:1.2772277227722773;width:621px;height:auto"/></a></figure>



<p>その結果、以下のように浮動するアイコンが出来ます。</p>



<figure class="wp-block-image aligncenter size-large is-resized"><a href="https://imakat.com/rd.php?id=IlHkrODv.png" target="_blank"><img decoding="async" src="https://imakat.com/rd.php?id=IlHkrODv.png" alt="" style="width:631px;height:325px"/></a></figure>



<p>しかし、スクロールしても追いかけてきますので、個人的には煩わしく感じます。</p>



<h3 class="wp-block-heading">固定する方法</h3>



<p>固定する方法も、色々工夫ができると思います。サイドバーの上に設置してあるブログをよく目にしますが、レスポンシブ画面ですと隠されてしまうので、このプラグインの有無が分からなくなってしまいます。それでとりあえず、最上行を使う方法にしています。</p>



<p>ただまあ、これだけで最上行を一行使うのは、特にスマホの場合、勿体無い感じもあります。ブラウザー側で翻訳が可能なら、そっちの方が優れていますよね。だから暫定的。コンテンツの中の方に、深く埋め込むようなことをしたら、将来、改善のために取り除くのが大変になります。その意味でも、目立つ最上行にポツンと置くのが都合がいいです。</p>



<p>しばらく様子を見ることにします。</p>



<p>方法は、</p>



<p>＊プラグインの　Google Language Translator を有効化。<br>＊あまりカスタマイズはしたくないところですが、やむなく「テーマの編集」を行います。</p>



<p>Cocoon childの　header-insert.php</p>



<p>の中へ、以下の位置へコードを挿入しました。</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://i0.wp.com/imakat.com/wp-content/uploads/2021/10/%E3%83%86%E3%83%BC%E3%83%9E%E7%B7%A8%E9%9B%86_%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-12-26-07.53.20.png?ssl=1"><img data-recalc-dims="1" fetchpriority="high" decoding="async" width="680" height="552" src="https://i0.wp.com/imakat.com/wp-content/uploads/2021/10/%E3%83%86%E3%83%BC%E3%83%9E%E7%B7%A8%E9%9B%86_%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-12-26-07.53.20.png?resize=680%2C552&#038;ssl=1" alt="" class="wp-image-14240" srcset="https://i0.wp.com/imakat.com/wp-content/uploads/2021/10/%E3%83%86%E3%83%BC%E3%83%9E%E7%B7%A8%E9%9B%86_%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-12-26-07.53.20.png?resize=680%2C552&amp;ssl=1 680w, https://i0.wp.com/imakat.com/wp-content/uploads/2021/10/%E3%83%86%E3%83%BC%E3%83%9E%E7%B7%A8%E9%9B%86_%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-12-26-07.53.20.png?resize=500%2C406&amp;ssl=1 500w, https://i0.wp.com/imakat.com/wp-content/uploads/2021/10/%E3%83%86%E3%83%BC%E3%83%9E%E7%B7%A8%E9%9B%86_%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-12-26-07.53.20.png?w=975&amp;ssl=1 975w" sizes="(max-width: 680px) 100vw, 680px" /></a><figcaption class="wp-element-caption">「テーマの編集」</figcaption></figure>



<p>コピー＆ペーストするソースコードは以下です。</p>



<pre class="wp-block-code"><code>&lt;?php echo do_shortcode('&#91;google-translator]'); ?&gt;</code></pre>



<p>これにより以下のように、MacおよびiPhoneのブラウザの最上行にて、Google自動翻訳言語の選択を復活させました。</p>



<p> <strong>※注意：<br>Google Translatorは、どんどん勝手に翻訳します。</strong><br><strong>例えば、プログラミング記述などを、英語と認識して、別の言語に翻訳します。変換禁止の文字列がある場合は、必ずソースコードで記述すること！</strong></p>



<figure class="wp-block-image aligncenter size-large"><img data-recalc-dims="1" decoding="async" width="680" height="570" src="https://i0.wp.com/imakat.com/wp-content/uploads/2021/10/mac%E7%94%BB%E9%9D%A2_%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-12-26-07.55.57.png?resize=680%2C570&#038;ssl=1" alt="" class="wp-image-14242" srcset="https://i0.wp.com/imakat.com/wp-content/uploads/2021/10/mac%E7%94%BB%E9%9D%A2_%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-12-26-07.55.57.png?resize=680%2C570&amp;ssl=1 680w, https://i0.wp.com/imakat.com/wp-content/uploads/2021/10/mac%E7%94%BB%E9%9D%A2_%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-12-26-07.55.57.png?resize=500%2C419&amp;ssl=1 500w, https://i0.wp.com/imakat.com/wp-content/uploads/2021/10/mac%E7%94%BB%E9%9D%A2_%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-12-26-07.55.57.png?resize=1536%2C1287&amp;ssl=1 1536w, https://i0.wp.com/imakat.com/wp-content/uploads/2021/10/mac%E7%94%BB%E9%9D%A2_%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-12-26-07.55.57.png?w=1652&amp;ssl=1 1652w" sizes="(max-width: 680px) 100vw, 680px" /><figcaption class="wp-element-caption">MacのSafariの例</figcaption></figure>



<figure class="wp-block-image aligncenter size-large is-resized"><img data-recalc-dims="1" decoding="async" width="680" height="1209" src="https://i0.wp.com/imakat.com/wp-content/uploads/2021/10/iPhone%E3%81%AE%E7%94%BB%E9%9D%A2_2019-12-26-07.56.21.png?resize=680%2C1209&#038;ssl=1" alt="" class="wp-image-14243" style="width:310px;height:548px" srcset="https://i0.wp.com/imakat.com/wp-content/uploads/2021/10/iPhone%E3%81%AE%E7%94%BB%E9%9D%A2_2019-12-26-07.56.21.png?resize=680%2C1209&amp;ssl=1 680w, https://i0.wp.com/imakat.com/wp-content/uploads/2021/10/iPhone%E3%81%AE%E7%94%BB%E9%9D%A2_2019-12-26-07.56.21.png?resize=281%2C500&amp;ssl=1 281w, https://i0.wp.com/imakat.com/wp-content/uploads/2021/10/iPhone%E3%81%AE%E7%94%BB%E9%9D%A2_2019-12-26-07.56.21.png?w=750&amp;ssl=1 750w" sizes="(max-width: 680px) 100vw, 680px" /><figcaption class="wp-element-caption">iPhoneのSafariの例</figcaption></figure>



<hr class="wp-block-separator has-css-opacity"/>



<p>◆経過</p>



<p>2019.5? &nbsp; &nbsp; <a rel="noopener" target="_blank" href="https://www.akindo2000.net/blog/google-翻訳のウェブサイト翻訳ツールが終了？！まだ/">&nbsp;Googleウエブサイト翻訳ツールが終了？<span class="fa fa-external-link external-icon anchor-icon"></span></a></p>



<p>2016.6.15 &nbsp; &nbsp;使用を中止。<br>＜理由＞Google翻訳にウエブサイト翻訳ツール、があり、それが普及し出していたから。</p>



<p>2015.12.08 【Simplicity1 phpカスタマイズ】Google Language Translatorの挿入、を投稿。</p>



<figure class="wp-block-image aligncenter"><a href="https://i0.wp.com/imakat.com/wp-content/uploads/2015/12/12301226_1524584674519278_1869851719_n.jpg?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" width="640" height="640" src="https://i0.wp.com/imakat.com/wp-content/uploads/2015/12/12301226_1524584674519278_1869851719_n.jpg?resize=640%2C640&#038;ssl=1" alt="12301226_1524584674519278_1869851719_n" class="wp-image-1094" srcset="https://i0.wp.com/imakat.com/wp-content/uploads/2015/12/12301226_1524584674519278_1869851719_n.jpg?w=640&amp;ssl=1 640w, https://i0.wp.com/imakat.com/wp-content/uploads/2015/12/12301226_1524584674519278_1869851719_n.jpg?resize=150%2C150&amp;ssl=1 150w, https://i0.wp.com/imakat.com/wp-content/uploads/2015/12/12301226_1524584674519278_1869851719_n.jpg?resize=100%2C100&amp;ssl=1 100w" sizes="(max-width: 640px) 100vw, 640px" /></a><figcaption class="wp-element-caption">&lt; Instagram by kawaiicharms &gt;</figcaption></figure>



<hr class="wp-block-separator has-css-opacity is-style-dots"/>



<p><span style="color: #ff0000;">2016年6月15日にて、使用するのを中止しました。</span></p>



<hr class="wp-block-separator has-css-opacity is-style-dots"/>



<p>利用しているテーマ（テンプレートのことをWordPressではテーマと呼んでいる）はSimplicityです。今のところ、スクリプト書き換えは、この一つだけ。</p>



<p>◆まず、プラグインの「Google Language Translator」を新規追加。翻訳を行いたい言語を選択。</p>



<p>◆次に「テーマの編集」からSimplicityの子テーマ、Simplicity childの</p>



<p>header-insert.php</p>



<p>の中へ、プラグインでジェネレートされるコードを、以下の位置へ挿入した。</p>



<figure class="wp-block-image"><a href="https://i0.wp.com/imakat.com/wp-content/uploads/2015/12/6f44445202a41b08a59e72a9d270f8b1-1.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1256" height="845" src="https://i0.wp.com/imakat.com/wp-content/uploads/2015/12/6f44445202a41b08a59e72a9d270f8b1-1.png?resize=1256%2C845&#038;ssl=1" alt="スクリーンショット 2015-12-13 21.40.07" class="wp-image-1153" srcset="https://i0.wp.com/imakat.com/wp-content/uploads/2015/12/6f44445202a41b08a59e72a9d270f8b1-1.png?w=1802&amp;ssl=1 1802w, https://i0.wp.com/imakat.com/wp-content/uploads/2015/12/6f44445202a41b08a59e72a9d270f8b1-1.png?resize=1300%2C874&amp;ssl=1 1300w, https://i0.wp.com/imakat.com/wp-content/uploads/2015/12/6f44445202a41b08a59e72a9d270f8b1-1.png?resize=768%2C517&amp;ssl=1 768w" sizes="(max-width: 1256px) 100vw, 1256px" /></a></figure>



<p>◆それにより、Google Translatorを最上行へ表示した。</p>



<p>なお、<strong>言語選択のメニュー表示は日本語に固定されているわけではありません。閲覧者の端末に設定されているデフォルトの言語で表示されます</strong>。最初に読み込み表示した時は、デフォルトの言語は、選択肢の中には、含まれていません。別の言語を選択した以降、デフォルトの言語が選択肢の中に現れます。デフォルトの言語を選択した後、ブラウザーの再読み込みを行うと、元の内容に戻ります。</p>



<figure class="wp-block-image"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1256" height="1069" src="https://i0.wp.com/imakat.com/wp-content/uploads/2015/12/efd5140318719bd369d00fc9ec1894e3.png?resize=1256%2C1069&#038;ssl=1" alt="スクリーンショット 2015-12-13 22.29.46" class="wp-image-1156" srcset="https://i0.wp.com/imakat.com/wp-content/uploads/2015/12/efd5140318719bd369d00fc9ec1894e3.png?w=1488&amp;ssl=1 1488w, https://i0.wp.com/imakat.com/wp-content/uploads/2015/12/efd5140318719bd369d00fc9ec1894e3.png?resize=1300%2C1106&amp;ssl=1 1300w, https://i0.wp.com/imakat.com/wp-content/uploads/2015/12/efd5140318719bd369d00fc9ec1894e3.png?resize=768%2C653&amp;ssl=1 768w" sizes="(max-width: 1256px) 100vw, 1256px" /></figure>



<p>以上</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1020</post-id>	</item>
	</channel>
</rss>
