<?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>ロケール &#8211; WordPress Memo</title>
	<atom:link href="https://blog.riverforest-wp.info/tag/%E3%83%AD%E3%82%B1%E3%83%BC%E3%83%AB/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.riverforest-wp.info</link>
	<description>WordPress に関する覚え書き</description>
	<lastBuildDate>Fri, 09 May 2025 12:48:53 +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://blog.riverforest-wp.info/wp-content/uploads/2018/05/cropped-icon-256x256-1-32x32.png</url>
	<title>ロケール &#8211; WordPress Memo</title>
	<link>https://blog.riverforest-wp.info</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>ブラウザの言語設定でWordPressの言語を自動で切り替えるプラグイン</title>
		<link>https://blog.riverforest-wp.info/locale-auto-switch/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Fri, 29 Jun 2018 16:10:04 +0000</pubDate>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[ブラウザ]]></category>
		<category><![CDATA[プラグイン]]></category>
		<category><![CDATA[ロケール]]></category>
		<category><![CDATA[言語切り替え]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=291</guid>

					<description><![CDATA[はじめに ブラウザの言語設定で自動でWordPressの言語に切り替えるようにしたものを公開しました。 Locale Auto Switch の特徴 WordPress の言語の対応状況を調べてみましたら、180ありまし [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">はじめに</h2>



<p>ブラウザの言語設定で自動でWordPressの言語に切り替えるようにしたものを公開しました。</p>



<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/locale-auto-switch/assets/icon-256x256.png?rev=1901321" alt="Locale Auto Switch のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/locale-auto-switch/" class="pluginstatsview-astyle">Locale Auto Switch</a></div>
			<div class="pluginstatsview-small">ブラウザのロケールに応じてロケールを自動的に切り替えます。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/locale-auto-switch/#reviews" title="0.0(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span>
			</span>
	</a>(0)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">30以上サイトで有効化中</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/locale-auto-switch.1.22.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2018-06-29</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:30 時点の統計	</div>
</div>



<h2 class="wp-block-heading">Locale Auto Switch の特徴</h2>



<ul class="wp-block-list">
<li>複数のロケールを指定できる
<ul class="wp-block-list">
<li>ja|ja-jp|ja-JP の様に複数のブラウザのロケールを”|”で区切って指定できます。</li>
</ul>
</li>



<li>ブラウザのロケールと WordPress のロケール設定ファイルを CSV 形式でインポートおよびエクスポートできます。</li>
</ul>



<p>WordPress の言語の対応状況を調べてみましたら、180ありました。</p>



<style>
.simpleblogcard_img_block3f97da17b94972ca322b0264a8aba789 {
  float: right;
  padding: 10px;
}
.simpleblogcard_border3f97da17b94972ca322b0264a8aba789 {
  border-left: solid 8px #cd162c;
  padding: 0.25em 0.25em;
  background: transparent;
}
.simpleblogcard_title3f97da17b94972ca322b0264a8aba789 {
  line-height: 155%;
  font-weight: bold;
  display: block;
}
.simpleblogcard_description3f97da17b94972ca322b0264a8aba789 {
  line-height: 155%;
  color: #333;
}
</style>
<div class="simpleblogcard_wrap">
			<a style="text-decoration: none;" href=https://make.wordpress.org/polyglots/teams/>
				<figure class="simpleblogcard_img_block3f97da17b94972ca322b0264a8aba789">
			<img decoding="async" style="border-radius: 5px; width: 100px; height: 56px;" src="https://s.w.org/images/home/wordpress-default-ogimage.png" alt="Translation Teams – Translate WordPress" />
		</figure>
		<div class="simpleblogcard_inner">
		<div class="simpleblogcard_border3f97da17b94972ca322b0264a8aba789">
			make.wordpress.org			<div class="simpleblogcard_title3f97da17b94972ca322b0264a8aba789">
				Translation Teams – Translate WordPress			</div>
							<div class="simpleblogcard_description3f97da17b94972ca322b0264a8aba789">
					Below is a list of languages WordPress supports and their translation status of the core p&#8230;				</div>
					</div>
	</div>
	<div style="clear: both;"></div>
	</a>
</div>



<p>WordPress のロケールとブラウザのロケールを比較してみたところ微妙に違い、ブラウザのロケールもモバイル端末と PC ではこれもまた微妙に違い、正規表現だけでは対応できないものもあったので、どうせなら対照表をデータベースに入れてしまおうと思いました。180は新規にデータベースを作成するほどの数ではないので、オプションテーブル上に作成しました。</p>



<h2 class="wp-block-heading">おわりに</h2>



<p>このプラグインは多言語化されているサイトでのみ有用です。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
