Multi Device Switcher - Version 1.8.3

Version Description

  • update japanese translation
  • update pot
  • add composer script
  • change makepot from php script to wp cli
  • change plugin initialization to plugins_loaded hook
  • replace assert from assertEquals to assertSame
Download this release

Release Info

Developer thingsym
Plugin Icon wp plugin Multi Device Switcher
Version 1.8.3
Comparing to
See all releases

Code changes from version 1.8.2 to 1.8.3

languages/multi-device-switcher-ja.mo CHANGED
Binary file
languages/multi-device-switcher-ja.po CHANGED
@@ -1,32 +1,53 @@
1
- # Copyright (C) 2021 Multi Device Switcher
2
- # This file is distributed under the same license as the Multi Device Switcher package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Multi Device Switcher 1.8.2n"
6
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/multi-device-"
7
- "switcher\n"
8
- "POT-Creation-Date: 2021-12-26 08:37:47+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n"
13
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
- "Language-Team: LANGUAGE <LL@li.org>\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
- #: multi-device-switcher.php:532 multi-device-switcher.php:538
 
 
 
 
 
 
 
 
 
17
  msgid "Mobile"
18
  msgstr "モバイル"
19
 
20
- #: multi-device-switcher.php:532 multi-device-switcher.php:538
 
21
  msgid "PC"
22
  msgstr "PC"
23
 
24
- #. #-#-#-#-# multi-device-switcher.pot (Multi Device Switcher 1.8.2) #-#-#-#-#
25
- #. Plugin Name of the plugin/theme
26
- #: multi-device-switcher.php:755 multi-device-switcher.php:756
27
- #: multi-device-switcher.php:939 multi-device-switcher.php:1394
28
- msgid "Multi Device Switcher"
29
- msgstr "Multi Device Switcher"
30
 
31
  #: multi-device-switcher.php:801
32
  msgid "Settings"
@@ -40,28 +61,38 @@ msgstr "スポンサーになる"
40
  msgid "Theme"
41
  msgstr "テーマ"
42
 
43
- #: multi-device-switcher.php:963 multi-device-switcher.php:1385
 
44
  msgid "Smart Phone Theme"
45
  msgstr "スマートフォン用テーマ"
46
 
47
- #: multi-device-switcher.php:972 multi-device-switcher.php:975
48
- #: multi-device-switcher.php:1005 multi-device-switcher.php:1008
49
- #: multi-device-switcher.php:1038 multi-device-switcher.php:1041
50
- #: multi-device-switcher.php:1071 multi-device-switcher.php:1074
51
- #: multi-device-switcher.php:1118 multi-device-switcher.php:1121
52
- #: multi-device-switcher.php:1375 multi-device-switcher.php:1430
 
 
 
 
 
 
53
  msgid "None"
54
  msgstr "なし"
55
 
56
- #: multi-device-switcher.php:997 multi-device-switcher.php:1386
 
57
  msgid "Tablet PC Theme"
58
  msgstr "タブレット端末用テーマ"
59
 
60
- #: multi-device-switcher.php:1030 multi-device-switcher.php:1387
 
61
  msgid "Mobile Phone Theme"
62
  msgstr "携帯モバイル端末用テーマ"
63
 
64
- #: multi-device-switcher.php:1063 multi-device-switcher.php:1388
 
65
  msgid "Game Platforms Theme"
66
  msgstr "ゲームプラットフォーム用テーマ"
67
 
@@ -69,114 +100,102 @@ msgstr "ゲームプラットフォーム用テーマ"
69
  msgid "Custom Switcher Theme"
70
  msgstr "Custom Switcher用テーマ"
71
 
72
- #: multi-device-switcher.php:1136
 
73
  msgid "Delete"
74
  msgstr "削除"
75
 
76
- #: multi-device-switcher.php:1136
 
77
  msgid "Are you sure you want to delete %1$s ?"
78
  msgstr "%1$s を削除してよろしいですか?"
79
 
80
- #: multi-device-switcher.php:1148 multi-device-switcher.php:1150
 
81
  msgid "Add Custom Switcher"
82
  msgstr "Custom Switcher を追加"
83
 
84
- #: multi-device-switcher.php:1152
85
  msgid "Add"
86
  msgstr "追加"
87
 
88
- #: multi-device-switcher.php:1153
89
  msgid "20 characters max, alphanumeric"
90
  msgstr "半角英数字 20 文字以内"
91
 
92
- #: multi-device-switcher.php:1161
93
  msgid "UserAgent"
94
  msgstr "ユーザーエージェント"
95
 
96
- #: multi-device-switcher.php:1162
97
  msgid "Enter Comma-separated values (csv) format."
98
  msgstr "csv 形式で入力してください。"
99
 
100
- #: multi-device-switcher.php:1165
101
  msgid "Smart Phone"
102
  msgstr "スマートフォン"
103
 
104
- #: multi-device-switcher.php:1168
105
  msgid "Tablet PC"
106
  msgstr "タブレット端末"
107
 
108
- #: multi-device-switcher.php:1171
109
  msgid "Mobile Phone"
110
  msgstr "携帯モバイル端末"
111
 
112
- #: multi-device-switcher.php:1174
113
  msgid "Game Platforms"
114
  msgstr "ゲームプラットフォーム"
115
 
116
- #: multi-device-switcher.php:1178
117
  msgid "Reset Settings to Default UserAgent"
118
  msgstr "ユーザーエージェントをデフォルトにもどす"
119
 
120
- #: multi-device-switcher.php:1183
121
  msgid "Custom Switcher UserAgent"
122
  msgstr "Custom Switcher用ユーザーエージェント"
123
 
124
- #: multi-device-switcher.php:1205 pc-switcher-widget.php:57
 
125
  msgid "PC Switcher"
126
  msgstr "PC Switcher"
127
 
128
- #: multi-device-switcher.php:1208 multi-device-switcher.php:1210
 
129
  msgid "Add PC Switcher"
130
  msgstr "PC Switcher を追加"
131
 
132
- #: multi-device-switcher.php:1211
133
  msgid "Add a PC Switcher to the footer."
134
  msgstr "PC Switcher をフッターに追加する"
135
 
136
- #: multi-device-switcher.php:1214 multi-device-switcher.php:1216
 
137
  msgid "Add default CSS"
138
  msgstr "デフォルトCSSを追加"
139
 
140
- #: multi-device-switcher.php:1217
141
  msgid "Add a default CSS."
142
  msgstr "デフォルトCSSを追加"
143
 
144
- #: multi-device-switcher.php:1224
145
  msgid "Disable Switcher"
146
  msgstr "切り替え無効"
147
 
148
- #: multi-device-switcher.php:1227 multi-device-switcher.php:1229
 
149
  msgid "Path"
150
  msgstr "パス"
151
 
152
- #: multi-device-switcher.php:1234 multi-device-switcher.php:1236
 
153
  msgid "Regex mode"
154
  msgstr "正規表現モード"
155
 
156
- #: multi-device-switcher.php:1237
157
  msgid "Enable Regex"
158
  msgstr "正規表現を有効化"
159
 
160
  #: pc-switcher-widget.php:54
161
  msgid "Add the PC Switcher to a widget."
162
  msgstr "PC Switcher をウィジェットに追加"
163
-
164
- #. Plugin URI of the plugin/theme
165
- msgid "https://github.com/thingsym/multi-device-switcher"
166
- msgstr "https://github.com/thingsym/multi-device-switcher"
167
-
168
- #. Description of the plugin/theme
169
- msgid ""
170
- "This WordPress plugin allows you to set a separate theme for device (Smart "
171
- "Phone, Tablet PC, Mobile Phone, Game and custom)."
172
- msgstr ""
173
- "This WordPress plugin allows you to set a separate theme for device (Smart "
174
- "Phone, Tablet PC, Mobile Phone, Game and custom)."
175
-
176
- #. Author of the plugin/theme
177
- msgid "thingsym"
178
- msgstr "thingsym"
179
-
180
- #. Author URI of the plugin/theme
181
- msgid "https://www.thingslabo.com/"
182
- msgstr "https://www.thingslabo.com/"
1
+ # Copyright (C) 2022 thingsym
2
+ # This file is distributed under the GPL2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Multi Device Switcher 1.8.3\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/multi-device-switcher\n"
7
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
+ "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-02-28T07:21:41+00:00\n"
13
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
+ "X-Generator: WP-CLI 2.5.0\n"
15
+ "X-Domain: multi-device-switcher\n"
16
+
17
+ #. Plugin Name of the plugin
18
+ #: multi-device-switcher.php:755
19
+ #: multi-device-switcher.php:756
20
+ #: multi-device-switcher.php:939
21
+ #: multi-device-switcher.php:1395
22
+ msgid "Multi Device Switcher"
23
+ msgstr "Multi Device Switcher"
24
+
25
+ #. Plugin URI of the plugin
26
+ msgid "https://github.com/thingsym/multi-device-switcher"
27
+ msgstr "https://github.com/thingsym/multi-device-switcher"
28
+
29
+ #. Description of the plugin
30
+ msgid "This WordPress plugin allows you to set a separate theme for device (Smart Phone, Tablet PC, Mobile Phone, Game and custom)."
31
+ msgstr "This WordPress plugin allows you to set a separate theme for device (Smart Phone, Tablet PC, Mobile Phone, Game and custom)."
32
 
33
+ #. Author of the plugin
34
+ msgid "thingsym"
35
+ msgstr "thingsym"
36
+
37
+ #. Author URI of the plugin
38
+ msgid "https://www.thingslabo.com/"
39
+ msgstr "https://www.thingslabo.com/"
40
+
41
+ #: multi-device-switcher.php:532
42
+ #: multi-device-switcher.php:538
43
  msgid "Mobile"
44
  msgstr "モバイル"
45
 
46
+ #: multi-device-switcher.php:532
47
+ #: multi-device-switcher.php:538
48
  msgid "PC"
49
  msgstr "PC"
50
 
 
 
 
 
 
 
51
 
52
  #: multi-device-switcher.php:801
53
  msgid "Settings"
61
  msgid "Theme"
62
  msgstr "テーマ"
63
 
64
+ #: multi-device-switcher.php:963
65
+ #: multi-device-switcher.php:1386
66
  msgid "Smart Phone Theme"
67
  msgstr "スマートフォン用テーマ"
68
 
69
+ #: multi-device-switcher.php:972
70
+ #: multi-device-switcher.php:975
71
+ #: multi-device-switcher.php:1005
72
+ #: multi-device-switcher.php:1008
73
+ #: multi-device-switcher.php:1038
74
+ #: multi-device-switcher.php:1041
75
+ #: multi-device-switcher.php:1071
76
+ #: multi-device-switcher.php:1074
77
+ #: multi-device-switcher.php:1118
78
+ #: multi-device-switcher.php:1121
79
+ #: multi-device-switcher.php:1376
80
+ #: multi-device-switcher.php:1431
81
  msgid "None"
82
  msgstr "なし"
83
 
84
+ #: multi-device-switcher.php:997
85
+ #: multi-device-switcher.php:1387
86
  msgid "Tablet PC Theme"
87
  msgstr "タブレット端末用テーマ"
88
 
89
+ #: multi-device-switcher.php:1030
90
+ #: multi-device-switcher.php:1388
91
  msgid "Mobile Phone Theme"
92
  msgstr "携帯モバイル端末用テーマ"
93
 
94
+ #: multi-device-switcher.php:1063
95
+ #: multi-device-switcher.php:1389
96
  msgid "Game Platforms Theme"
97
  msgstr "ゲームプラットフォーム用テーマ"
98
 
100
  msgid "Custom Switcher Theme"
101
  msgstr "Custom Switcher用テーマ"
102
 
103
+ #. translators: confirm: 1: custom switcher name
104
+ #: multi-device-switcher.php:1137
105
  msgid "Delete"
106
  msgstr "削除"
107
 
108
+ #. translators: confirm: 1: custom switcher name
109
+ #: multi-device-switcher.php:1137
110
  msgid "Are you sure you want to delete %1$s ?"
111
  msgstr "%1$s を削除してよろしいですか?"
112
 
113
+ #: multi-device-switcher.php:1149
114
+ #: multi-device-switcher.php:1151
115
  msgid "Add Custom Switcher"
116
  msgstr "Custom Switcher を追加"
117
 
118
+ #: multi-device-switcher.php:1153
119
  msgid "Add"
120
  msgstr "追加"
121
 
122
+ #: multi-device-switcher.php:1154
123
  msgid "20 characters max, alphanumeric"
124
  msgstr "半角英数字 20 文字以内"
125
 
126
+ #: multi-device-switcher.php:1162
127
  msgid "UserAgent"
128
  msgstr "ユーザーエージェント"
129
 
130
+ #: multi-device-switcher.php:1163
131
  msgid "Enter Comma-separated values (csv) format."
132
  msgstr "csv 形式で入力してください。"
133
 
134
+ #: multi-device-switcher.php:1166
135
  msgid "Smart Phone"
136
  msgstr "スマートフォン"
137
 
138
+ #: multi-device-switcher.php:1169
139
  msgid "Tablet PC"
140
  msgstr "タブレット端末"
141
 
142
+ #: multi-device-switcher.php:1172
143
  msgid "Mobile Phone"
144
  msgstr "携帯モバイル端末"
145
 
146
+ #: multi-device-switcher.php:1175
147
  msgid "Game Platforms"
148
  msgstr "ゲームプラットフォーム"
149
 
150
+ #: multi-device-switcher.php:1179
151
  msgid "Reset Settings to Default UserAgent"
152
  msgstr "ユーザーエージェントをデフォルトにもどす"
153
 
154
+ #: multi-device-switcher.php:1184
155
  msgid "Custom Switcher UserAgent"
156
  msgstr "Custom Switcher用ユーザーエージェント"
157
 
158
+ #: multi-device-switcher.php:1206
159
+ #: pc-switcher-widget.php:57
160
  msgid "PC Switcher"
161
  msgstr "PC Switcher"
162
 
163
+ #: multi-device-switcher.php:1209
164
+ #: multi-device-switcher.php:1211
165
  msgid "Add PC Switcher"
166
  msgstr "PC Switcher を追加"
167
 
168
+ #: multi-device-switcher.php:1212
169
  msgid "Add a PC Switcher to the footer."
170
  msgstr "PC Switcher をフッターに追加する"
171
 
172
+ #: multi-device-switcher.php:1215
173
+ #: multi-device-switcher.php:1217
174
  msgid "Add default CSS"
175
  msgstr "デフォルトCSSを追加"
176
 
177
+ #: multi-device-switcher.php:1218
178
  msgid "Add a default CSS."
179
  msgstr "デフォルトCSSを追加"
180
 
181
+ #: multi-device-switcher.php:1225
182
  msgid "Disable Switcher"
183
  msgstr "切り替え無効"
184
 
185
+ #: multi-device-switcher.php:1228
186
+ #: multi-device-switcher.php:1230
187
  msgid "Path"
188
  msgstr "パス"
189
 
190
+ #: multi-device-switcher.php:1235
191
+ #: multi-device-switcher.php:1237
192
  msgid "Regex mode"
193
  msgstr "正規表現モード"
194
 
195
+ #: multi-device-switcher.php:1238
196
  msgid "Enable Regex"
197
  msgstr "正規表現を有効化"
198
 
199
  #: pc-switcher-widget.php:54
200
  msgid "Add the PC Switcher to a widget."
201
  msgstr "PC Switcher をウィジェットに追加"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/multi-device-switcher.pot CHANGED
@@ -1,31 +1,51 @@
1
- # Copyright (C) 2021 Multi Device Switcher
2
- # This file is distributed under the same license as the Multi Device Switcher package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Multi Device Switcher 1.8.2\n"
6
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/multi-device-"
7
- "switcher\n"
8
- "POT-Creation-Date: 2021-12-26 08:37:47+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n"
13
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
- "Language-Team: LANGUAGE <LL@li.org>\n"
 
 
 
 
 
 
 
 
 
15
 
16
- #: multi-device-switcher.php:532 multi-device-switcher.php:538
17
- msgid "Mobile"
18
  msgstr ""
19
 
20
- #: multi-device-switcher.php:532 multi-device-switcher.php:538
21
- msgid "PC"
22
  msgstr ""
23
 
24
- #. #-#-#-#-# multi-device-switcher.pot (Multi Device Switcher 1.8.2) #-#-#-#-#
25
- #. Plugin Name of the plugin/theme
26
- #: multi-device-switcher.php:755 multi-device-switcher.php:756
27
- #: multi-device-switcher.php:939 multi-device-switcher.php:1394
28
- msgid "Multi Device Switcher"
 
 
 
 
 
 
 
 
 
 
 
29
  msgstr ""
30
 
31
  #: multi-device-switcher.php:801
@@ -40,28 +60,38 @@ msgstr ""
40
  msgid "Theme"
41
  msgstr ""
42
 
43
- #: multi-device-switcher.php:963 multi-device-switcher.php:1385
 
44
  msgid "Smart Phone Theme"
45
  msgstr ""
46
 
47
- #: multi-device-switcher.php:972 multi-device-switcher.php:975
48
- #: multi-device-switcher.php:1005 multi-device-switcher.php:1008
49
- #: multi-device-switcher.php:1038 multi-device-switcher.php:1041
50
- #: multi-device-switcher.php:1071 multi-device-switcher.php:1074
51
- #: multi-device-switcher.php:1118 multi-device-switcher.php:1121
52
- #: multi-device-switcher.php:1375 multi-device-switcher.php:1430
 
 
 
 
 
 
53
  msgid "None"
54
  msgstr ""
55
 
56
- #: multi-device-switcher.php:997 multi-device-switcher.php:1386
 
57
  msgid "Tablet PC Theme"
58
  msgstr ""
59
 
60
- #: multi-device-switcher.php:1030 multi-device-switcher.php:1387
 
61
  msgid "Mobile Phone Theme"
62
  msgstr ""
63
 
64
- #: multi-device-switcher.php:1063 multi-device-switcher.php:1388
 
65
  msgid "Game Platforms Theme"
66
  msgstr ""
67
 
@@ -69,112 +99,102 @@ msgstr ""
69
  msgid "Custom Switcher Theme"
70
  msgstr ""
71
 
72
- #: multi-device-switcher.php:1136
 
73
  msgid "Delete"
74
  msgstr ""
75
 
76
- #: multi-device-switcher.php:1136
 
77
  msgid "Are you sure you want to delete %1$s ?"
78
  msgstr ""
79
 
80
- #: multi-device-switcher.php:1148 multi-device-switcher.php:1150
 
81
  msgid "Add Custom Switcher"
82
  msgstr ""
83
 
84
- #: multi-device-switcher.php:1152
85
  msgid "Add"
86
  msgstr ""
87
 
88
- #: multi-device-switcher.php:1153
89
  msgid "20 characters max, alphanumeric"
90
  msgstr ""
91
 
92
- #: multi-device-switcher.php:1161
93
  msgid "UserAgent"
94
  msgstr ""
95
 
96
- #: multi-device-switcher.php:1162
97
  msgid "Enter Comma-separated values (csv) format."
98
  msgstr ""
99
 
100
- #: multi-device-switcher.php:1165
101
  msgid "Smart Phone"
102
  msgstr ""
103
 
104
- #: multi-device-switcher.php:1168
105
  msgid "Tablet PC"
106
  msgstr ""
107
 
108
- #: multi-device-switcher.php:1171
109
  msgid "Mobile Phone"
110
  msgstr ""
111
 
112
- #: multi-device-switcher.php:1174
113
  msgid "Game Platforms"
114
  msgstr ""
115
 
116
- #: multi-device-switcher.php:1178
117
  msgid "Reset Settings to Default UserAgent"
118
  msgstr ""
119
 
120
- #: multi-device-switcher.php:1183
121
  msgid "Custom Switcher UserAgent"
122
  msgstr ""
123
 
124
- #: multi-device-switcher.php:1205 pc-switcher-widget.php:57
 
125
  msgid "PC Switcher"
126
  msgstr ""
127
 
128
- #: multi-device-switcher.php:1208 multi-device-switcher.php:1210
 
129
  msgid "Add PC Switcher"
130
  msgstr ""
131
 
132
- #: multi-device-switcher.php:1211
133
  msgid "Add a PC Switcher to the footer."
134
  msgstr ""
135
 
136
- #: multi-device-switcher.php:1214 multi-device-switcher.php:1216
 
137
  msgid "Add default CSS"
138
  msgstr ""
139
 
140
- #: multi-device-switcher.php:1217
141
  msgid "Add a default CSS."
142
  msgstr ""
143
 
144
- #: multi-device-switcher.php:1224
145
  msgid "Disable Switcher"
146
  msgstr ""
147
 
148
- #: multi-device-switcher.php:1227 multi-device-switcher.php:1229
 
149
  msgid "Path"
150
  msgstr ""
151
 
152
- #: multi-device-switcher.php:1234 multi-device-switcher.php:1236
 
153
  msgid "Regex mode"
154
  msgstr ""
155
 
156
- #: multi-device-switcher.php:1237
157
  msgid "Enable Regex"
158
  msgstr ""
159
 
160
  #: pc-switcher-widget.php:54
161
  msgid "Add the PC Switcher to a widget."
162
  msgstr ""
163
-
164
- #. Plugin URI of the plugin/theme
165
- msgid "https://github.com/thingsym/multi-device-switcher"
166
- msgstr ""
167
-
168
- #. Description of the plugin/theme
169
- msgid ""
170
- "This WordPress plugin allows you to set a separate theme for device (Smart "
171
- "Phone, Tablet PC, Mobile Phone, Game and custom)."
172
- msgstr ""
173
-
174
- #. Author of the plugin/theme
175
- msgid "thingsym"
176
- msgstr ""
177
-
178
- #. Author URI of the plugin/theme
179
- msgid "https://www.thingslabo.com/"
180
- msgstr ""
1
+ # Copyright (C) 2022 thingsym
2
+ # This file is distributed under the GPL2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Multi Device Switcher 1.8.3\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/multi-device-switcher\n"
7
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
+ "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-02-28T07:21:41+00:00\n"
13
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
+ "X-Generator: WP-CLI 2.5.0\n"
15
+ "X-Domain: multi-device-switcher\n"
16
+
17
+ #. Plugin Name of the plugin
18
+ #: multi-device-switcher.php:755
19
+ #: multi-device-switcher.php:756
20
+ #: multi-device-switcher.php:939
21
+ #: multi-device-switcher.php:1395
22
+ msgid "Multi Device Switcher"
23
+ msgstr ""
24
 
25
+ #. Plugin URI of the plugin
26
+ msgid "https://github.com/thingsym/multi-device-switcher"
27
  msgstr ""
28
 
29
+ #. Description of the plugin
30
+ msgid "This WordPress plugin allows you to set a separate theme for device (Smart Phone, Tablet PC, Mobile Phone, Game and custom)."
31
  msgstr ""
32
 
33
+ #. Author of the plugin
34
+ msgid "thingsym"
35
+ msgstr ""
36
+
37
+ #. Author URI of the plugin
38
+ msgid "https://www.thingslabo.com/"
39
+ msgstr ""
40
+
41
+ #: multi-device-switcher.php:532
42
+ #: multi-device-switcher.php:538
43
+ msgid "Mobile"
44
+ msgstr ""
45
+
46
+ #: multi-device-switcher.php:532
47
+ #: multi-device-switcher.php:538
48
+ msgid "PC"
49
  msgstr ""
50
 
51
  #: multi-device-switcher.php:801
60
  msgid "Theme"
61
  msgstr ""
62
 
63
+ #: multi-device-switcher.php:963
64
+ #: multi-device-switcher.php:1386
65
  msgid "Smart Phone Theme"
66
  msgstr ""
67
 
68
+ #: multi-device-switcher.php:972
69
+ #: multi-device-switcher.php:975
70
+ #: multi-device-switcher.php:1005
71
+ #: multi-device-switcher.php:1008
72
+ #: multi-device-switcher.php:1038
73
+ #: multi-device-switcher.php:1041
74
+ #: multi-device-switcher.php:1071
75
+ #: multi-device-switcher.php:1074
76
+ #: multi-device-switcher.php:1118
77
+ #: multi-device-switcher.php:1121
78
+ #: multi-device-switcher.php:1376
79
+ #: multi-device-switcher.php:1431
80
  msgid "None"
81
  msgstr ""
82
 
83
+ #: multi-device-switcher.php:997
84
+ #: multi-device-switcher.php:1387
85
  msgid "Tablet PC Theme"
86
  msgstr ""
87
 
88
+ #: multi-device-switcher.php:1030
89
+ #: multi-device-switcher.php:1388
90
  msgid "Mobile Phone Theme"
91
  msgstr ""
92
 
93
+ #: multi-device-switcher.php:1063
94
+ #: multi-device-switcher.php:1389
95
  msgid "Game Platforms Theme"
96
  msgstr ""
97
 
99
  msgid "Custom Switcher Theme"
100
  msgstr ""
101
 
102
+ #. translators: confirm: 1: custom switcher name
103
+ #: multi-device-switcher.php:1137
104
  msgid "Delete"
105
  msgstr ""
106
 
107
+ #. translators: confirm: 1: custom switcher name
108
+ #: multi-device-switcher.php:1137
109
  msgid "Are you sure you want to delete %1$s ?"
110
  msgstr ""
111
 
112
+ #: multi-device-switcher.php:1149
113
+ #: multi-device-switcher.php:1151
114
  msgid "Add Custom Switcher"
115
  msgstr ""
116
 
117
+ #: multi-device-switcher.php:1153
118
  msgid "Add"
119
  msgstr ""
120
 
121
+ #: multi-device-switcher.php:1154
122
  msgid "20 characters max, alphanumeric"
123
  msgstr ""
124
 
125
+ #: multi-device-switcher.php:1162
126
  msgid "UserAgent"
127
  msgstr ""
128
 
129
+ #: multi-device-switcher.php:1163
130
  msgid "Enter Comma-separated values (csv) format."
131
  msgstr ""
132
 
133
+ #: multi-device-switcher.php:1166
134
  msgid "Smart Phone"
135
  msgstr ""
136
 
137
+ #: multi-device-switcher.php:1169
138
  msgid "Tablet PC"
139
  msgstr ""
140
 
141
+ #: multi-device-switcher.php:1172
142
  msgid "Mobile Phone"
143
  msgstr ""
144
 
145
+ #: multi-device-switcher.php:1175
146
  msgid "Game Platforms"
147
  msgstr ""
148
 
149
+ #: multi-device-switcher.php:1179
150
  msgid "Reset Settings to Default UserAgent"
151
  msgstr ""
152
 
153
+ #: multi-device-switcher.php:1184
154
  msgid "Custom Switcher UserAgent"
155
  msgstr ""
156
 
157
+ #: multi-device-switcher.php:1206
158
+ #: pc-switcher-widget.php:57
159
  msgid "PC Switcher"
160
  msgstr ""
161
 
162
+ #: multi-device-switcher.php:1209
163
+ #: multi-device-switcher.php:1211
164
  msgid "Add PC Switcher"
165
  msgstr ""
166
 
167
+ #: multi-device-switcher.php:1212
168
  msgid "Add a PC Switcher to the footer."
169
  msgstr ""
170
 
171
+ #: multi-device-switcher.php:1215
172
+ #: multi-device-switcher.php:1217
173
  msgid "Add default CSS"
174
  msgstr ""
175
 
176
+ #: multi-device-switcher.php:1218
177
  msgid "Add a default CSS."
178
  msgstr ""
179
 
180
+ #: multi-device-switcher.php:1225
181
  msgid "Disable Switcher"
182
  msgstr ""
183
 
184
+ #: multi-device-switcher.php:1228
185
+ #: multi-device-switcher.php:1230
186
  msgid "Path"
187
  msgstr ""
188
 
189
+ #: multi-device-switcher.php:1235
190
+ #: multi-device-switcher.php:1237
191
  msgid "Regex mode"
192
  msgstr ""
193
 
194
+ #: multi-device-switcher.php:1238
195
  msgid "Enable Regex"
196
  msgstr ""
197
 
198
  #: pc-switcher-widget.php:54
199
  msgid "Add the PC Switcher to a widget."
200
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
multi-device-switcher.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Multi Device Switcher
4
  * Plugin URI: https://github.com/thingsym/multi-device-switcher
5
  * Description: This WordPress plugin allows you to set a separate theme for device (Smart Phone, Tablet PC, Mobile Phone, Game and custom).
6
- * Version: 1.8.2
7
  * Author: thingsym
8
  * Author URI: https://www.thingslabo.com/
9
  * License: GPL2 or later
@@ -144,9 +144,9 @@ class Multi_Device_Switcher {
144
  * @since 1.0.0
145
  */
146
  public function __construct() {
147
- add_action( 'init', array( $this, 'load_plugin_data' ) );
148
- add_action( 'init', array( $this, 'load_textdomain' ) );
149
- add_action( 'init', array( $this, 'init' ) );
150
 
151
  if ( ! is_admin() ) {
152
  add_filter( 'wp_headers', array( $this, 'add_header_vary' ) );
@@ -163,7 +163,7 @@ class Multi_Device_Switcher {
163
  /**
164
  * Initialize.
165
  *
166
- * Hooks to init
167
  *
168
  * @access public
169
  *
@@ -1132,6 +1132,7 @@ class Multi_Device_Switcher {
1132
  }
1133
  }
1134
  $html .= '</select>';
 
1135
  $html .= ' <span class="submit"><input type="submit" name="multi_device_switcher_options[delete_custom_switcher_' . $custom_switcher_name . ']" value="' . __( 'Delete', 'multi-device-switcher' ) . '" onclick="return confirm(\'' . esc_html( sprintf( __( 'Are you sure you want to delete %1$s ?', 'multi-device-switcher' ), $custom_switcher_name ) ) . '\');" class="button"></span>';
1136
  }
1137
  // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
3
  * Plugin Name: Multi Device Switcher
4
  * Plugin URI: https://github.com/thingsym/multi-device-switcher
5
  * Description: This WordPress plugin allows you to set a separate theme for device (Smart Phone, Tablet PC, Mobile Phone, Game and custom).
6
+ * Version: 1.8.3
7
  * Author: thingsym
8
  * Author URI: https://www.thingslabo.com/
9
  * License: GPL2 or later
144
  * @since 1.0.0
145
  */
146
  public function __construct() {
147
+ add_action( 'plugins_loaded', array( $this, 'load_plugin_data' ) );
148
+ add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
149
+ add_action( 'plugins_loaded', array( $this, 'init' ) );
150
 
151
  if ( ! is_admin() ) {
152
  add_filter( 'wp_headers', array( $this, 'add_header_vary' ) );
163
  /**
164
  * Initialize.
165
  *
166
+ * Hooks to plugins_loaded
167
  *
168
  * @access public
169
  *
1132
  }
1133
  }
1134
  $html .= '</select>';
1135
+ /* translators: confirm: 1: custom switcher name */
1136
  $html .= ' <span class="submit"><input type="submit" name="multi_device_switcher_options[delete_custom_switcher_' . $custom_switcher_name . ']" value="' . __( 'Delete', 'multi-device-switcher' ) . '" onclick="return confirm(\'' . esc_html( sprintf( __( 'Are you sure you want to delete %1$s ?', 'multi-device-switcher' ), $custom_switcher_name ) ) . '\');" class="button"></span>';
1137
  }
1138
  // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
pc-switcher-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Widget Name: PC Switcher Widget
4
  * Plugin URI: https://github.com/thingsym/multi-device-switcher
5
  * Description: PC Switcher Widget add-on for the Multi Device Switcher. Use this widget to add the PC Switcher to a widget.
6
- * Version: 1.8.2
7
  * Author: thingsym
8
  * Author URI: https://www.thingslabo.com/
9
  * License: GPL2 or later
3
  * Widget Name: PC Switcher Widget
4
  * Plugin URI: https://github.com/thingsym/multi-device-switcher
5
  * Description: PC Switcher Widget add-on for the Multi Device Switcher. Use this widget to add the PC Switcher to a widget.
6
+ * Version: 1.8.3
7
  * Author: thingsym
8
  * Author URI: https://www.thingslabo.com/
9
  * License: GPL2 or later
readme.txt CHANGED
@@ -4,8 +4,8 @@ Contributors: thingsym
4
  Link: https://github.com/thingsym/multi-device-switcher
5
  Donate link: https://github.com/sponsors/thingsym
6
  Tags: switcher, theme, ipad, iphone, android, tablet, mobile, game
7
- Stable tag: 1.8.2
8
- Tested up to: 5.9.0
9
  Requires at least: 4.9
10
  Requires PHP: 5.6
11
  License: GPL2 or later
@@ -365,6 +365,14 @@ For more information about the Multi Device Switcher Command, see `wp help multi
365
 
366
  == Changelog ==
367
 
 
 
 
 
 
 
 
 
368
  = 1.8.2 =
369
  * change requires at least to wordpress 4.9
370
  * change requires to PHP 5.6
4
  Link: https://github.com/thingsym/multi-device-switcher
5
  Donate link: https://github.com/sponsors/thingsym
6
  Tags: switcher, theme, ipad, iphone, android, tablet, mobile, game
7
+ Stable tag: 1.8.3
8
+ Tested up to: 6.0.0
9
  Requires at least: 4.9
10
  Requires PHP: 5.6
11
  License: GPL2 or later
365
 
366
  == Changelog ==
367
 
368
+ = 1.8.3 =
369
+ * update japanese translation
370
+ * update pot
371
+ * add composer script
372
+ * change makepot from php script to wp cli
373
+ * change plugin initialization to plugins_loaded hook
374
+ * replace assert from assertEquals to assertSame
375
+
376
  = 1.8.2 =
377
  * change requires at least to wordpress 4.9
378
  * change requires to PHP 5.6