Version Description
- Bug fix:
- Added : CSV
- Added : mwform_admin_mail_from_
- Added : mwform_admin_mail_sender_
- Added : mwform_auto_mail_from_
- Added : mwform_auto_mail_sender_
Download this release
Release Info
Developer | inc2734 |
Plugin | MW WP Form |
Version | 0.9.6 |
Comparing to | |
See all releases |
Code changes from version 0.9.5 to 0.9.6
- css/admin.css +14 -0
- languages/mw-wp-form-ja.mo +0 -0
- languages/mw-wp-form-ja.po +87 -80
- languages/mw-wp-form.pot +82 -78
- mw-wp-form.php +39 -7
- readme.txt +9 -1
- system/mw_form.php +3 -3
- system/mw_validation.php +8 -3
- system/mw_wp_form_admin_page.php +99 -3
css/admin.css
CHANGED
@@ -196,3 +196,17 @@ span#formkey_field {
|
|
196 |
font-size: 93%;
|
197 |
}
|
198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
font-size: 93%;
|
197 |
}
|
198 |
|
199 |
+
/**
|
200 |
+
* CSVダウンロードボタン
|
201 |
+
*/
|
202 |
+
#wpbody-content {
|
203 |
+
padding-bottom: 85px; /* default: 65px */;
|
204 |
+
}
|
205 |
+
#mw-wp-form_csv {
|
206 |
+
position: absolute;
|
207 |
+
left: 0;
|
208 |
+
top: -34px;
|
209 |
+
}
|
210 |
+
#mw-wp-form_csv .button-primary {
|
211 |
+
}
|
212 |
+
|
languages/mw-wp-form-ja.mo
CHANGED
Binary file
|
languages/mw-wp-form-ja.po
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: MW WP Form 0.9.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
-
"POT-Creation-Date: 2013-08-
|
8 |
-
"PO-Revision-Date: 2013-08-
|
9 |
"Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
11 |
"MIME-Version: 1.0\n"
|
@@ -14,7 +14,7 @@ msgstr ""
|
|
14 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
"X-Poedit-Basepath: .\n"
|
17 |
-
"X-Generator: Poedit 1.5.
|
18 |
"X-Poedit-KeywordsList: __;_e;_x\n"
|
19 |
"X-Poedit-SearchPath-0: ..\n"
|
20 |
|
@@ -31,7 +31,7 @@ msgstr "戻る"
|
|
31 |
msgid "Button"
|
32 |
msgstr "ボタン"
|
33 |
|
34 |
-
#: form_fields/mw_form_field_checkbox.php:
|
35 |
msgid "Checkbox"
|
36 |
msgstr "チェックボックス"
|
37 |
|
@@ -72,7 +72,7 @@ msgstr "確認画面へ"
|
|
72 |
msgid "Confirm Button"
|
73 |
msgstr "確認ボタン"
|
74 |
|
75 |
-
#: form_fields/mw_form_field_radio.php:
|
76 |
msgid "Radio"
|
77 |
msgstr "ラジオボタン"
|
78 |
|
@@ -93,7 +93,7 @@ msgstr "送信ボタン"
|
|
93 |
msgid "Confirm & Submit"
|
94 |
msgstr "確認・送信"
|
95 |
|
96 |
-
#: form_fields/mw_form_field_tel.php:81 system/mw_wp_form_admin_page.php:
|
97 |
msgid "Tel"
|
98 |
msgstr "電話番号"
|
99 |
|
@@ -105,15 +105,15 @@ msgstr "テキストフィールド"
|
|
105 |
msgid "Textarea"
|
106 |
msgstr "テキストエリア"
|
107 |
|
108 |
-
#: form_fields/mw_form_field_zip.php:81
|
109 |
msgid "Zip Code"
|
110 |
msgstr "郵便番号"
|
111 |
|
112 |
-
#: mw-wp-form.php:
|
113 |
msgid "Validation Object is not a MW Validation Class."
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: mw-wp-form.php:
|
117 |
msgid "Uploaded from "
|
118 |
msgstr ""
|
119 |
|
@@ -145,135 +145,143 @@ msgstr "郵便番号の形式ではありません。"
|
|
145 |
msgid "This is not the format of a tel number."
|
146 |
msgstr "電話番号の形式ではありません。"
|
147 |
|
148 |
-
#: system/mw_validation.php:
|
149 |
msgid "This is not the format of a mail address."
|
150 |
msgstr "メールアドレスの形式ではありません。"
|
151 |
|
152 |
-
#: system/mw_validation.php:
|
153 |
msgid "This is not the format of a url."
|
154 |
msgstr "URLの形式ではありません。"
|
155 |
|
156 |
-
#: system/mw_validation.php:
|
157 |
msgid "This is not in agreement."
|
158 |
msgstr "一致しません。"
|
159 |
|
160 |
-
#: system/mw_validation.php:
|
161 |
msgid "The number of characters is invalid."
|
162 |
msgstr "文字数が正しくありません。"
|
163 |
|
164 |
-
#: system/mw_validation.php:
|
165 |
msgid "The number of characters is a few."
|
166 |
msgstr "文字数が足りません。"
|
167 |
|
168 |
-
#: system/mw_validation.php:
|
169 |
msgid "This value is invalid."
|
170 |
msgstr "値が不正です。"
|
171 |
|
172 |
-
#: system/mw_validation.php:
|
173 |
msgid "This is not the format of a date."
|
174 |
msgstr "日付の形式ではありません。"
|
175 |
|
176 |
-
#: system/mw_validation.php:
|
177 |
msgid "This file is invalid."
|
178 |
msgstr "許可されたファイルではありません。"
|
179 |
|
180 |
-
#: system/mw_validation.php:
|
181 |
msgid "This file size is too big."
|
182 |
msgstr "ファイルサイズが大きすぎます。"
|
183 |
|
184 |
-
#: system/mw_validation.php:
|
185 |
msgid "The contents which you input were judged with spam."
|
186 |
msgstr "あなたの入力した内容はスパムと判定されました。"
|
187 |
|
188 |
-
#: system/mw_wp_form_admin_page.php:
|
|
|
|
|
|
|
|
|
189 |
msgid "Add New Form"
|
190 |
msgstr "フォームを追加"
|
191 |
|
192 |
-
#: system/mw_wp_form_admin_page.php:
|
193 |
msgid "Edit Form"
|
194 |
msgstr "フォームを編集"
|
195 |
|
196 |
-
#: system/mw_wp_form_admin_page.php:
|
197 |
msgid "New Form"
|
198 |
msgstr "新しいフォーム"
|
199 |
|
200 |
-
#: system/mw_wp_form_admin_page.php:
|
201 |
msgid "View Form"
|
202 |
msgstr "フォームを表示"
|
203 |
|
204 |
-
#: system/mw_wp_form_admin_page.php:
|
205 |
msgid "Search Forms"
|
206 |
msgstr "フォームを検索"
|
207 |
|
208 |
-
#: system/mw_wp_form_admin_page.php:
|
209 |
msgid "No Forms found"
|
210 |
msgstr "フォームがありません"
|
211 |
|
212 |
-
#: system/mw_wp_form_admin_page.php:
|
213 |
msgid "No Forms found in Trash"
|
214 |
msgstr "ゴミ箱にフォームはありません"
|
215 |
|
216 |
-
#: system/mw_wp_form_admin_page.php:
|
217 |
msgid "Edit "
|
218 |
msgstr "編集"
|
219 |
|
220 |
-
#: system/mw_wp_form_admin_page.php:
|
221 |
msgid "View"
|
222 |
msgstr "表示"
|
223 |
|
224 |
-
#: system/mw_wp_form_admin_page.php:
|
225 |
msgid "Search"
|
226 |
msgstr "検索"
|
227 |
|
228 |
-
#: system/mw_wp_form_admin_page.php:
|
229 |
msgid "No data found"
|
230 |
msgstr "データがありません"
|
231 |
|
232 |
-
#: system/mw_wp_form_admin_page.php:
|
233 |
msgid "No data found in Trash"
|
234 |
msgstr "ゴミ箱にデータはありません"
|
235 |
|
236 |
-
#: system/mw_wp_form_admin_page.php:
|
237 |
msgid "Complete Message"
|
238 |
msgstr "完了画面メッセージ"
|
239 |
|
240 |
-
#: system/mw_wp_form_admin_page.php:
|
241 |
msgid "URL Options"
|
242 |
msgstr "URL設定"
|
243 |
|
244 |
-
#: system/mw_wp_form_admin_page.php:
|
245 |
msgid "Validation Rule"
|
246 |
msgstr "バリデーションルール"
|
247 |
|
248 |
-
#: system/mw_wp_form_admin_page.php:
|
249 |
msgid "Form Key"
|
250 |
msgstr "フォーム識別子"
|
251 |
|
252 |
-
#: system/mw_wp_form_admin_page.php:
|
253 |
msgid "Automatic Reply Email Options"
|
254 |
msgstr "自動返信メール設定"
|
255 |
|
256 |
-
#: system/mw_wp_form_admin_page.php:
|
257 |
msgid "Admin Email Options"
|
258 |
msgstr "管理者宛メール設定"
|
259 |
|
260 |
-
#: system/mw_wp_form_admin_page.php:
|
261 |
msgid "settings"
|
262 |
msgstr "設定"
|
263 |
|
264 |
-
#: system/mw_wp_form_admin_page.php:
|
265 |
msgid "Custom Fields"
|
266 |
msgstr "カスタムフィールド"
|
267 |
|
268 |
-
#: system/mw_wp_form_admin_page.php:
|
269 |
msgid "Copy and Paste this shortcode."
|
270 |
msgstr "このショートコードをコピー&ペーストしてください。"
|
271 |
|
272 |
-
#: system/mw_wp_form_admin_page.php:
|
|
|
|
|
|
|
|
|
273 |
msgid "Activate Query string of post"
|
274 |
msgstr "URL引数を有効にする"
|
275 |
|
276 |
-
#: system/mw_wp_form_admin_page.php:
|
277 |
msgid ""
|
278 |
"If this field is active, MW WP Form get the post as query string \"post_id\" "
|
279 |
"and you can use $post's property in editor"
|
@@ -281,43 +289,43 @@ msgstr ""
|
|
281 |
"有効にした場合、MW WP FormはURL引数 ”post_id\" をもとに投稿を取得して、その投"
|
282 |
"稿($post) のプロパティを使用できるようになります。"
|
283 |
|
284 |
-
#: system/mw_wp_form_admin_page.php:
|
285 |
msgid "Example: {ID}, {post_title}, {post_meta} etc..."
|
286 |
msgstr "例:{ID}、{post_title}、{post_meta}など…"
|
287 |
|
288 |
-
#: system/mw_wp_form_admin_page.php:
|
289 |
msgid "Saving contact data in database"
|
290 |
msgstr "問い合わせデータをデータベースに保存"
|
291 |
|
292 |
-
#: system/mw_wp_form_admin_page.php:
|
293 |
msgid "Akismet Setting"
|
294 |
msgstr "Akismet 設定"
|
295 |
|
296 |
-
#: system/mw_wp_form_admin_page.php:
|
297 |
msgid "Input the key to use Akismet."
|
298 |
msgstr "Akismetを使用する項目のキーを入力してください。"
|
299 |
|
300 |
-
#: system/mw_wp_form_admin_page.php:
|
301 |
msgid "Subject"
|
302 |
msgstr "件名"
|
303 |
|
304 |
-
#: system/mw_wp_form_admin_page.php:
|
305 |
msgid "Ccontent"
|
306 |
msgstr "本文"
|
307 |
|
308 |
-
#: system/mw_wp_form_admin_page.php:
|
309 |
msgid "{key} is converted form data."
|
310 |
msgstr "{キー}でそのフォーム項目に変換されます。"
|
311 |
|
312 |
-
#: system/mw_wp_form_admin_page.php:
|
313 |
msgid "Automatic reply email"
|
314 |
msgstr "自動返信メール"
|
315 |
|
316 |
-
#: system/mw_wp_form_admin_page.php:
|
317 |
msgid "Input the key to use as transmission to automatic reply email."
|
318 |
msgstr "自動返信メールに使用する項目のキーを入力してください。"
|
319 |
|
320 |
-
#: system/mw_wp_form_admin_page.php:
|
321 |
msgid ""
|
322 |
"If Admin Email Options is a blank, Automatic Replay Email Options is used as "
|
323 |
"Admin Email Options."
|
@@ -325,99 +333,95 @@ msgstr ""
|
|
325 |
"管理者宛メール設定が空のときは自動返信メール設定が管理者宛メール設定が使用さ"
|
326 |
"れます。"
|
327 |
|
328 |
-
#: system/mw_wp_form_admin_page.php:
|
329 |
msgid "To ( E-mail address )"
|
330 |
msgstr "送信先(E-mailアドレス)"
|
331 |
|
332 |
-
#: system/mw_wp_form_admin_page.php:
|
333 |
msgid "If empty: Using admin E-mail address."
|
334 |
msgstr "未入力の場合:管理者のE-mailアドレスを使用します。"
|
335 |
|
336 |
-
#: system/mw_wp_form_admin_page.php:
|
337 |
msgid "Input Page URL"
|
338 |
msgstr "入力画面URL"
|
339 |
|
340 |
-
#: system/mw_wp_form_admin_page.php:
|
341 |
msgid "Confirmation Page URL"
|
342 |
msgstr "確認画面URL"
|
343 |
|
344 |
-
#: system/mw_wp_form_admin_page.php:
|
345 |
msgid "Complete Page URL"
|
346 |
msgstr "完了画面URL"
|
347 |
|
348 |
-
#: system/mw_wp_form_admin_page.php:
|
349 |
msgid "Validation Error Page URL"
|
350 |
msgstr "エラー画面URL"
|
351 |
|
352 |
-
#: system/mw_wp_form_admin_page.php:
|
353 |
msgid "Add Validation rule"
|
354 |
msgstr "バリデーションルールを追加"
|
355 |
|
356 |
-
#: system/mw_wp_form_admin_page.php:
|
357 |
msgid "The key which applies validation"
|
358 |
msgstr "バリデーションを適用する項目"
|
359 |
|
360 |
-
#: system/mw_wp_form_admin_page.php:
|
361 |
msgid "No empty"
|
362 |
msgstr "必須項目"
|
363 |
|
364 |
-
#: system/mw_wp_form_admin_page.php:
|
365 |
msgid "No empty( with checkbox )"
|
366 |
msgstr "必須項目(チェックボックス)"
|
367 |
|
368 |
-
#: system/mw_wp_form_admin_page.php:
|
369 |
msgid "Numeric"
|
370 |
msgstr "半角数字"
|
371 |
|
372 |
-
#: system/mw_wp_form_admin_page.php:
|
373 |
msgid "Alphabet"
|
374 |
msgstr "半角英字"
|
375 |
|
376 |
-
#: system/mw_wp_form_admin_page.php:
|
377 |
msgid "Alphabet and Numeric"
|
378 |
msgstr "半角英数字"
|
379 |
|
380 |
-
#: system/mw_wp_form_admin_page.php:
|
381 |
-
msgid "Zip code"
|
382 |
-
msgstr "郵便番号"
|
383 |
-
|
384 |
-
#: system/mw_wp_form_admin_page.php:535
|
385 |
msgid "E-mail"
|
386 |
msgstr "メールアドレス"
|
387 |
|
388 |
-
#: system/mw_wp_form_admin_page.php:
|
389 |
msgid "Date"
|
390 |
msgstr "日付"
|
391 |
|
392 |
-
#: system/mw_wp_form_admin_page.php:
|
393 |
msgid "The key at same value"
|
394 |
msgstr "一致する項目"
|
395 |
|
396 |
-
#: system/mw_wp_form_admin_page.php:
|
397 |
msgid "The range of the number of characters"
|
398 |
msgstr "文字数の範囲"
|
399 |
|
400 |
-
#: system/mw_wp_form_admin_page.php:
|
401 |
msgid "The number of the minimum characters"
|
402 |
msgstr "最小文字数"
|
403 |
|
404 |
-
#: system/mw_wp_form_admin_page.php:
|
405 |
msgid "Permitted Extension"
|
406 |
msgstr "拡張子制限"
|
407 |
|
408 |
-
#: system/mw_wp_form_admin_page.php:
|
409 |
msgid "Example:jpg or jpg,txt,…"
|
410 |
msgstr "例:jpg もしくは jpg,txt…"
|
411 |
|
412 |
-
#: system/mw_wp_form_admin_page.php:
|
413 |
msgid "Permitted file size"
|
414 |
msgstr "サイズ制限"
|
415 |
|
416 |
-
#: system/mw_wp_form_admin_page.php:
|
417 |
msgid "bytes"
|
418 |
msgstr ""
|
419 |
|
420 |
-
#: system/mw_wp_form_admin_page.php:
|
421 |
msgid "Registed Date"
|
422 |
msgstr "登録日時"
|
423 |
|
@@ -442,6 +446,9 @@ msgstr ""
|
|
442 |
msgid "http://2inc.org"
|
443 |
msgstr ""
|
444 |
|
|
|
|
|
|
|
445 |
#~ msgid "Submit"
|
446 |
#~ msgstr "送信"
|
447 |
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: MW WP Form 0.9.6\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2013-08-30 15:25:51+00:00\n"
|
8 |
+
"PO-Revision-Date: 2013-08-31 00:27+0900\n"
|
9 |
"Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
11 |
"MIME-Version: 1.0\n"
|
14 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
"X-Poedit-Basepath: .\n"
|
17 |
+
"X-Generator: Poedit 1.5.7\n"
|
18 |
"X-Poedit-KeywordsList: __;_e;_x\n"
|
19 |
"X-Poedit-SearchPath-0: ..\n"
|
20 |
|
31 |
msgid "Button"
|
32 |
msgstr "ボタン"
|
33 |
|
34 |
+
#: form_fields/mw_form_field_checkbox.php:89
|
35 |
msgid "Checkbox"
|
36 |
msgstr "チェックボックス"
|
37 |
|
72 |
msgid "Confirm Button"
|
73 |
msgstr "確認ボタン"
|
74 |
|
75 |
+
#: form_fields/mw_form_field_radio.php:87
|
76 |
msgid "Radio"
|
77 |
msgstr "ラジオボタン"
|
78 |
|
93 |
msgid "Confirm & Submit"
|
94 |
msgstr "確認・送信"
|
95 |
|
96 |
+
#: form_fields/mw_form_field_tel.php:81 system/mw_wp_form_admin_page.php:630
|
97 |
msgid "Tel"
|
98 |
msgstr "電話番号"
|
99 |
|
105 |
msgid "Textarea"
|
106 |
msgstr "テキストエリア"
|
107 |
|
108 |
+
#: form_fields/mw_form_field_zip.php:81 system/mw_wp_form_admin_page.php:629
|
109 |
msgid "Zip Code"
|
110 |
msgstr "郵便番号"
|
111 |
|
112 |
+
#: mw-wp-form.php:357
|
113 |
msgid "Validation Object is not a MW Validation Class."
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: mw-wp-form.php:552
|
117 |
msgid "Uploaded from "
|
118 |
msgstr ""
|
119 |
|
145 |
msgid "This is not the format of a tel number."
|
146 |
msgstr "電話番号の形式ではありません。"
|
147 |
|
148 |
+
#: system/mw_validation.php:256
|
149 |
msgid "This is not the format of a mail address."
|
150 |
msgstr "メールアドレスの形式ではありません。"
|
151 |
|
152 |
+
#: system/mw_validation.php:276
|
153 |
msgid "This is not the format of a url."
|
154 |
msgstr "URLの形式ではありません。"
|
155 |
|
156 |
+
#: system/mw_validation.php:297
|
157 |
msgid "This is not in agreement."
|
158 |
msgstr "一致しません。"
|
159 |
|
160 |
+
#: system/mw_validation.php:321
|
161 |
msgid "The number of characters is invalid."
|
162 |
msgstr "文字数が正しくありません。"
|
163 |
|
164 |
+
#: system/mw_validation.php:357
|
165 |
msgid "The number of characters is a few."
|
166 |
msgstr "文字数が足りません。"
|
167 |
|
168 |
+
#: system/mw_validation.php:381
|
169 |
msgid "This value is invalid."
|
170 |
msgstr "値が不正です。"
|
171 |
|
172 |
+
#: system/mw_validation.php:403
|
173 |
msgid "This is not the format of a date."
|
174 |
msgstr "日付の形式ではありません。"
|
175 |
|
176 |
+
#: system/mw_validation.php:431
|
177 |
msgid "This file is invalid."
|
178 |
msgstr "許可されたファイルではありません。"
|
179 |
|
180 |
+
#: system/mw_validation.php:461
|
181 |
msgid "This file size is too big."
|
182 |
msgstr "ファイルサイズが大きすぎます。"
|
183 |
|
184 |
+
#: system/mw_validation.php:481
|
185 |
msgid "The contents which you input were judged with spam."
|
186 |
msgstr "あなたの入力した内容はスパムと判定されました。"
|
187 |
|
188 |
+
#: system/mw_wp_form_admin_page.php:62
|
189 |
+
msgid "CSV Download"
|
190 |
+
msgstr "CSVダウンロード"
|
191 |
+
|
192 |
+
#: system/mw_wp_form_admin_page.php:159
|
193 |
msgid "Add New Form"
|
194 |
msgstr "フォームを追加"
|
195 |
|
196 |
+
#: system/mw_wp_form_admin_page.php:160
|
197 |
msgid "Edit Form"
|
198 |
msgstr "フォームを編集"
|
199 |
|
200 |
+
#: system/mw_wp_form_admin_page.php:161
|
201 |
msgid "New Form"
|
202 |
msgstr "新しいフォーム"
|
203 |
|
204 |
+
#: system/mw_wp_form_admin_page.php:162
|
205 |
msgid "View Form"
|
206 |
msgstr "フォームを表示"
|
207 |
|
208 |
+
#: system/mw_wp_form_admin_page.php:163
|
209 |
msgid "Search Forms"
|
210 |
msgstr "フォームを検索"
|
211 |
|
212 |
+
#: system/mw_wp_form_admin_page.php:164
|
213 |
msgid "No Forms found"
|
214 |
msgstr "フォームがありません"
|
215 |
|
216 |
+
#: system/mw_wp_form_admin_page.php:165
|
217 |
msgid "No Forms found in Trash"
|
218 |
msgstr "ゴミ箱にフォームはありません"
|
219 |
|
220 |
+
#: system/mw_wp_form_admin_page.php:186
|
221 |
msgid "Edit "
|
222 |
msgstr "編集"
|
223 |
|
224 |
+
#: system/mw_wp_form_admin_page.php:187
|
225 |
msgid "View"
|
226 |
msgstr "表示"
|
227 |
|
228 |
+
#: system/mw_wp_form_admin_page.php:188
|
229 |
msgid "Search"
|
230 |
msgstr "検索"
|
231 |
|
232 |
+
#: system/mw_wp_form_admin_page.php:189
|
233 |
msgid "No data found"
|
234 |
msgstr "データがありません"
|
235 |
|
236 |
+
#: system/mw_wp_form_admin_page.php:190
|
237 |
msgid "No data found in Trash"
|
238 |
msgstr "ゴミ箱にデータはありません"
|
239 |
|
240 |
+
#: system/mw_wp_form_admin_page.php:228
|
241 |
msgid "Complete Message"
|
242 |
msgstr "完了画面メッセージ"
|
243 |
|
244 |
+
#: system/mw_wp_form_admin_page.php:235
|
245 |
msgid "URL Options"
|
246 |
msgstr "URL設定"
|
247 |
|
248 |
+
#: system/mw_wp_form_admin_page.php:242
|
249 |
msgid "Validation Rule"
|
250 |
msgstr "バリデーションルール"
|
251 |
|
252 |
+
#: system/mw_wp_form_admin_page.php:249
|
253 |
msgid "Form Key"
|
254 |
msgstr "フォーム識別子"
|
255 |
|
256 |
+
#: system/mw_wp_form_admin_page.php:256
|
257 |
msgid "Automatic Reply Email Options"
|
258 |
msgstr "自動返信メール設定"
|
259 |
|
260 |
+
#: system/mw_wp_form_admin_page.php:263
|
261 |
msgid "Admin Email Options"
|
262 |
msgstr "管理者宛メール設定"
|
263 |
|
264 |
+
#: system/mw_wp_form_admin_page.php:270
|
265 |
msgid "settings"
|
266 |
msgstr "設定"
|
267 |
|
268 |
+
#: system/mw_wp_form_admin_page.php:277
|
269 |
msgid "Custom Fields"
|
270 |
msgstr "カスタムフィールド"
|
271 |
|
272 |
+
#: system/mw_wp_form_admin_page.php:442
|
273 |
msgid "Copy and Paste this shortcode."
|
274 |
msgstr "このショートコードをコピー&ペーストしてください。"
|
275 |
|
276 |
+
#: system/mw_wp_form_admin_page.php:443
|
277 |
+
msgid "The key to use with hook is "
|
278 |
+
msgstr "各フックで使用する修飾子は"
|
279 |
+
|
280 |
+
#: system/mw_wp_form_admin_page.php:457
|
281 |
msgid "Activate Query string of post"
|
282 |
msgstr "URL引数を有効にする"
|
283 |
|
284 |
+
#: system/mw_wp_form_admin_page.php:458
|
285 |
msgid ""
|
286 |
"If this field is active, MW WP Form get the post as query string \"post_id\" "
|
287 |
"and you can use $post's property in editor"
|
289 |
"有効にした場合、MW WP FormはURL引数 ”post_id\" をもとに投稿を取得して、その投"
|
290 |
"稿($post) のプロパティを使用できるようになります。"
|
291 |
|
292 |
+
#: system/mw_wp_form_admin_page.php:459
|
293 |
msgid "Example: {ID}, {post_title}, {post_meta} etc..."
|
294 |
msgstr "例:{ID}、{post_title}、{post_meta}など…"
|
295 |
|
296 |
+
#: system/mw_wp_form_admin_page.php:462
|
297 |
msgid "Saving contact data in database"
|
298 |
msgstr "問い合わせデータをデータベースに保存"
|
299 |
|
300 |
+
#: system/mw_wp_form_admin_page.php:466
|
301 |
msgid "Akismet Setting"
|
302 |
msgstr "Akismet 設定"
|
303 |
|
304 |
+
#: system/mw_wp_form_admin_page.php:481
|
305 |
msgid "Input the key to use Akismet."
|
306 |
msgstr "Akismetを使用する項目のキーを入力してください。"
|
307 |
|
308 |
+
#: system/mw_wp_form_admin_page.php:506 system/mw_wp_form_admin_page.php:538
|
309 |
msgid "Subject"
|
310 |
msgstr "件名"
|
311 |
|
312 |
+
#: system/mw_wp_form_admin_page.php:510 system/mw_wp_form_admin_page.php:542
|
313 |
msgid "Ccontent"
|
314 |
msgstr "本文"
|
315 |
|
316 |
+
#: system/mw_wp_form_admin_page.php:512 system/mw_wp_form_admin_page.php:544
|
317 |
msgid "{key} is converted form data."
|
318 |
msgstr "{キー}でそのフォーム項目に変換されます。"
|
319 |
|
320 |
+
#: system/mw_wp_form_admin_page.php:515
|
321 |
msgid "Automatic reply email"
|
322 |
msgstr "自動返信メール"
|
323 |
|
324 |
+
#: system/mw_wp_form_admin_page.php:517
|
325 |
msgid "Input the key to use as transmission to automatic reply email."
|
326 |
msgstr "自動返信メールに使用する項目のキーを入力してください。"
|
327 |
|
328 |
+
#: system/mw_wp_form_admin_page.php:530
|
329 |
msgid ""
|
330 |
"If Admin Email Options is a blank, Automatic Replay Email Options is used as "
|
331 |
"Admin Email Options."
|
333 |
"管理者宛メール設定が空のときは自動返信メール設定が管理者宛メール設定が使用さ"
|
334 |
"れます。"
|
335 |
|
336 |
+
#: system/mw_wp_form_admin_page.php:533
|
337 |
msgid "To ( E-mail address )"
|
338 |
msgstr "送信先(E-mailアドレス)"
|
339 |
|
340 |
+
#: system/mw_wp_form_admin_page.php:535
|
341 |
msgid "If empty: Using admin E-mail address."
|
342 |
msgstr "未入力の場合:管理者のE-mailアドレスを使用します。"
|
343 |
|
344 |
+
#: system/mw_wp_form_admin_page.php:559
|
345 |
msgid "Input Page URL"
|
346 |
msgstr "入力画面URL"
|
347 |
|
348 |
+
#: system/mw_wp_form_admin_page.php:565
|
349 |
msgid "Confirmation Page URL"
|
350 |
msgstr "確認画面URL"
|
351 |
|
352 |
+
#: system/mw_wp_form_admin_page.php:571
|
353 |
msgid "Complete Page URL"
|
354 |
msgstr "完了画面URL"
|
355 |
|
356 |
+
#: system/mw_wp_form_admin_page.php:577
|
357 |
msgid "Validation Error Page URL"
|
358 |
msgstr "エラー画面URL"
|
359 |
|
360 |
+
#: system/mw_wp_form_admin_page.php:614
|
361 |
msgid "Add Validation rule"
|
362 |
msgstr "バリデーションルールを追加"
|
363 |
|
364 |
+
#: system/mw_wp_form_admin_page.php:620
|
365 |
msgid "The key which applies validation"
|
366 |
msgstr "バリデーションを適用する項目"
|
367 |
|
368 |
+
#: system/mw_wp_form_admin_page.php:624
|
369 |
msgid "No empty"
|
370 |
msgstr "必須項目"
|
371 |
|
372 |
+
#: system/mw_wp_form_admin_page.php:625
|
373 |
msgid "No empty( with checkbox )"
|
374 |
msgstr "必須項目(チェックボックス)"
|
375 |
|
376 |
+
#: system/mw_wp_form_admin_page.php:626
|
377 |
msgid "Numeric"
|
378 |
msgstr "半角数字"
|
379 |
|
380 |
+
#: system/mw_wp_form_admin_page.php:627
|
381 |
msgid "Alphabet"
|
382 |
msgstr "半角英字"
|
383 |
|
384 |
+
#: system/mw_wp_form_admin_page.php:628
|
385 |
msgid "Alphabet and Numeric"
|
386 |
msgstr "半角英数字"
|
387 |
|
388 |
+
#: system/mw_wp_form_admin_page.php:631
|
|
|
|
|
|
|
|
|
389 |
msgid "E-mail"
|
390 |
msgstr "メールアドレス"
|
391 |
|
392 |
+
#: system/mw_wp_form_admin_page.php:632
|
393 |
msgid "Date"
|
394 |
msgstr "日付"
|
395 |
|
396 |
+
#: system/mw_wp_form_admin_page.php:636
|
397 |
msgid "The key at same value"
|
398 |
msgstr "一致する項目"
|
399 |
|
400 |
+
#: system/mw_wp_form_admin_page.php:640
|
401 |
msgid "The range of the number of characters"
|
402 |
msgstr "文字数の範囲"
|
403 |
|
404 |
+
#: system/mw_wp_form_admin_page.php:648
|
405 |
msgid "The number of the minimum characters"
|
406 |
msgstr "最小文字数"
|
407 |
|
408 |
+
#: system/mw_wp_form_admin_page.php:652
|
409 |
msgid "Permitted Extension"
|
410 |
msgstr "拡張子制限"
|
411 |
|
412 |
+
#: system/mw_wp_form_admin_page.php:653
|
413 |
msgid "Example:jpg or jpg,txt,…"
|
414 |
msgstr "例:jpg もしくは jpg,txt…"
|
415 |
|
416 |
+
#: system/mw_wp_form_admin_page.php:656
|
417 |
msgid "Permitted file size"
|
418 |
msgstr "サイズ制限"
|
419 |
|
420 |
+
#: system/mw_wp_form_admin_page.php:657
|
421 |
msgid "bytes"
|
422 |
msgstr ""
|
423 |
|
424 |
+
#: system/mw_wp_form_admin_page.php:694
|
425 |
msgid "Registed Date"
|
426 |
msgstr "登録日時"
|
427 |
|
446 |
msgid "http://2inc.org"
|
447 |
msgstr ""
|
448 |
|
449 |
+
#~ msgid "Zip code"
|
450 |
+
#~ msgstr "郵便番号"
|
451 |
+
|
452 |
#~ msgid "Submit"
|
453 |
#~ msgstr "送信"
|
454 |
|
languages/mw-wp-form.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: MW WP Form 0.9.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
-
"POT-Creation-Date: 2013-08-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -31,7 +31,7 @@ msgstr ""
|
|
31 |
msgid "Button"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: form_fields/mw_form_field_checkbox.php:
|
35 |
msgid "Checkbox"
|
36 |
msgstr ""
|
37 |
|
@@ -72,7 +72,7 @@ msgstr ""
|
|
72 |
msgid "Confirm Button"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: form_fields/mw_form_field_radio.php:
|
76 |
msgid "Radio"
|
77 |
msgstr ""
|
78 |
|
@@ -93,7 +93,7 @@ msgstr ""
|
|
93 |
msgid "Confirm & Submit"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: form_fields/mw_form_field_tel.php:81 system/mw_wp_form_admin_page.php:
|
97 |
msgid "Tel"
|
98 |
msgstr ""
|
99 |
|
@@ -105,15 +105,15 @@ msgstr ""
|
|
105 |
msgid "Textarea"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: form_fields/mw_form_field_zip.php:81
|
109 |
msgid "Zip Code"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: mw-wp-form.php:
|
113 |
msgid "Validation Object is not a MW Validation Class."
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: mw-wp-form.php:
|
117 |
msgid "Uploaded from "
|
118 |
msgstr ""
|
119 |
|
@@ -145,275 +145,279 @@ msgstr ""
|
|
145 |
msgid "This is not the format of a tel number."
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: system/mw_validation.php:
|
149 |
msgid "This is not the format of a mail address."
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: system/mw_validation.php:
|
153 |
msgid "This is not the format of a url."
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: system/mw_validation.php:
|
157 |
msgid "This is not in agreement."
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: system/mw_validation.php:
|
161 |
msgid "The number of characters is invalid."
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: system/mw_validation.php:
|
165 |
msgid "The number of characters is a few."
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: system/mw_validation.php:
|
169 |
msgid "This value is invalid."
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: system/mw_validation.php:
|
173 |
msgid "This is not the format of a date."
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: system/mw_validation.php:
|
177 |
msgid "This file is invalid."
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: system/mw_validation.php:
|
181 |
msgid "This file size is too big."
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: system/mw_validation.php:
|
185 |
msgid "The contents which you input were judged with spam."
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: system/mw_wp_form_admin_page.php:
|
|
|
|
|
|
|
|
|
189 |
msgid "Add New Form"
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: system/mw_wp_form_admin_page.php:
|
193 |
msgid "Edit Form"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: system/mw_wp_form_admin_page.php:
|
197 |
msgid "New Form"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: system/mw_wp_form_admin_page.php:
|
201 |
msgid "View Form"
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: system/mw_wp_form_admin_page.php:
|
205 |
msgid "Search Forms"
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: system/mw_wp_form_admin_page.php:
|
209 |
msgid "No Forms found"
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: system/mw_wp_form_admin_page.php:
|
213 |
msgid "No Forms found in Trash"
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: system/mw_wp_form_admin_page.php:
|
217 |
msgid "Edit "
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: system/mw_wp_form_admin_page.php:
|
221 |
msgid "View"
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: system/mw_wp_form_admin_page.php:
|
225 |
msgid "Search"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: system/mw_wp_form_admin_page.php:
|
229 |
msgid "No data found"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: system/mw_wp_form_admin_page.php:
|
233 |
msgid "No data found in Trash"
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: system/mw_wp_form_admin_page.php:
|
237 |
msgid "Complete Message"
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: system/mw_wp_form_admin_page.php:
|
241 |
msgid "URL Options"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: system/mw_wp_form_admin_page.php:
|
245 |
msgid "Validation Rule"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: system/mw_wp_form_admin_page.php:
|
249 |
msgid "Form Key"
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: system/mw_wp_form_admin_page.php:
|
253 |
msgid "Automatic Reply Email Options"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: system/mw_wp_form_admin_page.php:
|
257 |
msgid "Admin Email Options"
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: system/mw_wp_form_admin_page.php:
|
261 |
msgid "settings"
|
262 |
msgstr ""
|
263 |
|
264 |
-
#: system/mw_wp_form_admin_page.php:
|
265 |
msgid "Custom Fields"
|
266 |
msgstr ""
|
267 |
|
268 |
-
#: system/mw_wp_form_admin_page.php:
|
269 |
msgid "Copy and Paste this shortcode."
|
270 |
msgstr ""
|
271 |
|
272 |
-
#: system/mw_wp_form_admin_page.php:
|
|
|
|
|
|
|
|
|
273 |
msgid "Activate Query string of post"
|
274 |
msgstr ""
|
275 |
|
276 |
-
#: system/mw_wp_form_admin_page.php:
|
277 |
msgid ""
|
278 |
"If this field is active, MW WP Form get the post as query string \"post_id\" "
|
279 |
"and you can use $post's property in editor"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: system/mw_wp_form_admin_page.php:
|
283 |
msgid "Example: {ID}, {post_title}, {post_meta} etc..."
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: system/mw_wp_form_admin_page.php:
|
287 |
msgid "Saving contact data in database"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: system/mw_wp_form_admin_page.php:
|
291 |
msgid "Akismet Setting"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: system/mw_wp_form_admin_page.php:
|
295 |
msgid "Input the key to use Akismet."
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: system/mw_wp_form_admin_page.php:
|
299 |
msgid "Subject"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: system/mw_wp_form_admin_page.php:
|
303 |
msgid "Ccontent"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: system/mw_wp_form_admin_page.php:
|
307 |
msgid "{key} is converted form data."
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: system/mw_wp_form_admin_page.php:
|
311 |
msgid "Automatic reply email"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: system/mw_wp_form_admin_page.php:
|
315 |
msgid "Input the key to use as transmission to automatic reply email."
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: system/mw_wp_form_admin_page.php:
|
319 |
msgid ""
|
320 |
"If Admin Email Options is a blank, Automatic Replay Email Options is used as "
|
321 |
"Admin Email Options."
|
322 |
msgstr ""
|
323 |
|
324 |
-
#: system/mw_wp_form_admin_page.php:
|
325 |
msgid "To ( E-mail address )"
|
326 |
msgstr ""
|
327 |
|
328 |
-
#: system/mw_wp_form_admin_page.php:
|
329 |
msgid "If empty: Using admin E-mail address."
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: system/mw_wp_form_admin_page.php:
|
333 |
msgid "Input Page URL"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: system/mw_wp_form_admin_page.php:
|
337 |
msgid "Confirmation Page URL"
|
338 |
msgstr ""
|
339 |
|
340 |
-
#: system/mw_wp_form_admin_page.php:
|
341 |
msgid "Complete Page URL"
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: system/mw_wp_form_admin_page.php:
|
345 |
msgid "Validation Error Page URL"
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: system/mw_wp_form_admin_page.php:
|
349 |
msgid "Add Validation rule"
|
350 |
msgstr ""
|
351 |
|
352 |
-
#: system/mw_wp_form_admin_page.php:
|
353 |
msgid "The key which applies validation"
|
354 |
msgstr ""
|
355 |
|
356 |
-
#: system/mw_wp_form_admin_page.php:
|
357 |
msgid "No empty"
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: system/mw_wp_form_admin_page.php:
|
361 |
msgid "No empty( with checkbox )"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: system/mw_wp_form_admin_page.php:
|
365 |
msgid "Numeric"
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: system/mw_wp_form_admin_page.php:
|
369 |
msgid "Alphabet"
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: system/mw_wp_form_admin_page.php:
|
373 |
msgid "Alphabet and Numeric"
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: system/mw_wp_form_admin_page.php:
|
377 |
-
msgid "Zip code"
|
378 |
-
msgstr ""
|
379 |
-
|
380 |
-
#: system/mw_wp_form_admin_page.php:535
|
381 |
msgid "E-mail"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: system/mw_wp_form_admin_page.php:
|
385 |
msgid "Date"
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: system/mw_wp_form_admin_page.php:
|
389 |
msgid "The key at same value"
|
390 |
msgstr ""
|
391 |
|
392 |
-
#: system/mw_wp_form_admin_page.php:
|
393 |
msgid "The range of the number of characters"
|
394 |
msgstr ""
|
395 |
|
396 |
-
#: system/mw_wp_form_admin_page.php:
|
397 |
msgid "The number of the minimum characters"
|
398 |
msgstr ""
|
399 |
|
400 |
-
#: system/mw_wp_form_admin_page.php:
|
401 |
msgid "Permitted Extension"
|
402 |
msgstr ""
|
403 |
|
404 |
-
#: system/mw_wp_form_admin_page.php:
|
405 |
msgid "Example:jpg or jpg,txt,…"
|
406 |
msgstr ""
|
407 |
|
408 |
-
#: system/mw_wp_form_admin_page.php:
|
409 |
msgid "Permitted file size"
|
410 |
msgstr ""
|
411 |
|
412 |
-
#: system/mw_wp_form_admin_page.php:
|
413 |
msgid "bytes"
|
414 |
msgstr ""
|
415 |
|
416 |
-
#: system/mw_wp_form_admin_page.php:
|
417 |
msgid "Registed Date"
|
418 |
msgstr ""
|
419 |
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: MW WP Form 0.9.6\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2013-08-30 15:25:51+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
31 |
msgid "Button"
|
32 |
msgstr ""
|
33 |
|
34 |
+
#: form_fields/mw_form_field_checkbox.php:89
|
35 |
msgid "Checkbox"
|
36 |
msgstr ""
|
37 |
|
72 |
msgid "Confirm Button"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: form_fields/mw_form_field_radio.php:87
|
76 |
msgid "Radio"
|
77 |
msgstr ""
|
78 |
|
93 |
msgid "Confirm & Submit"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: form_fields/mw_form_field_tel.php:81 system/mw_wp_form_admin_page.php:630
|
97 |
msgid "Tel"
|
98 |
msgstr ""
|
99 |
|
105 |
msgid "Textarea"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: form_fields/mw_form_field_zip.php:81 system/mw_wp_form_admin_page.php:629
|
109 |
msgid "Zip Code"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: mw-wp-form.php:357
|
113 |
msgid "Validation Object is not a MW Validation Class."
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: mw-wp-form.php:552
|
117 |
msgid "Uploaded from "
|
118 |
msgstr ""
|
119 |
|
145 |
msgid "This is not the format of a tel number."
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: system/mw_validation.php:256
|
149 |
msgid "This is not the format of a mail address."
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: system/mw_validation.php:276
|
153 |
msgid "This is not the format of a url."
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: system/mw_validation.php:297
|
157 |
msgid "This is not in agreement."
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: system/mw_validation.php:321
|
161 |
msgid "The number of characters is invalid."
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: system/mw_validation.php:357
|
165 |
msgid "The number of characters is a few."
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: system/mw_validation.php:381
|
169 |
msgid "This value is invalid."
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: system/mw_validation.php:403
|
173 |
msgid "This is not the format of a date."
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: system/mw_validation.php:431
|
177 |
msgid "This file is invalid."
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: system/mw_validation.php:461
|
181 |
msgid "This file size is too big."
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: system/mw_validation.php:481
|
185 |
msgid "The contents which you input were judged with spam."
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: system/mw_wp_form_admin_page.php:62
|
189 |
+
msgid "CSV Download"
|
190 |
+
msgstr ""
|
191 |
+
|
192 |
+
#: system/mw_wp_form_admin_page.php:159
|
193 |
msgid "Add New Form"
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: system/mw_wp_form_admin_page.php:160
|
197 |
msgid "Edit Form"
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: system/mw_wp_form_admin_page.php:161
|
201 |
msgid "New Form"
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: system/mw_wp_form_admin_page.php:162
|
205 |
msgid "View Form"
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: system/mw_wp_form_admin_page.php:163
|
209 |
msgid "Search Forms"
|
210 |
msgstr ""
|
211 |
|
212 |
+
#: system/mw_wp_form_admin_page.php:164
|
213 |
msgid "No Forms found"
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: system/mw_wp_form_admin_page.php:165
|
217 |
msgid "No Forms found in Trash"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: system/mw_wp_form_admin_page.php:186
|
221 |
msgid "Edit "
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: system/mw_wp_form_admin_page.php:187
|
225 |
msgid "View"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: system/mw_wp_form_admin_page.php:188
|
229 |
msgid "Search"
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: system/mw_wp_form_admin_page.php:189
|
233 |
msgid "No data found"
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: system/mw_wp_form_admin_page.php:190
|
237 |
msgid "No data found in Trash"
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: system/mw_wp_form_admin_page.php:228
|
241 |
msgid "Complete Message"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: system/mw_wp_form_admin_page.php:235
|
245 |
msgid "URL Options"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: system/mw_wp_form_admin_page.php:242
|
249 |
msgid "Validation Rule"
|
250 |
msgstr ""
|
251 |
|
252 |
+
#: system/mw_wp_form_admin_page.php:249
|
253 |
msgid "Form Key"
|
254 |
msgstr ""
|
255 |
|
256 |
+
#: system/mw_wp_form_admin_page.php:256
|
257 |
msgid "Automatic Reply Email Options"
|
258 |
msgstr ""
|
259 |
|
260 |
+
#: system/mw_wp_form_admin_page.php:263
|
261 |
msgid "Admin Email Options"
|
262 |
msgstr ""
|
263 |
|
264 |
+
#: system/mw_wp_form_admin_page.php:270
|
265 |
msgid "settings"
|
266 |
msgstr ""
|
267 |
|
268 |
+
#: system/mw_wp_form_admin_page.php:277
|
269 |
msgid "Custom Fields"
|
270 |
msgstr ""
|
271 |
|
272 |
+
#: system/mw_wp_form_admin_page.php:442
|
273 |
msgid "Copy and Paste this shortcode."
|
274 |
msgstr ""
|
275 |
|
276 |
+
#: system/mw_wp_form_admin_page.php:443
|
277 |
+
msgid "The key to use with hook is "
|
278 |
+
msgstr ""
|
279 |
+
|
280 |
+
#: system/mw_wp_form_admin_page.php:457
|
281 |
msgid "Activate Query string of post"
|
282 |
msgstr ""
|
283 |
|
284 |
+
#: system/mw_wp_form_admin_page.php:458
|
285 |
msgid ""
|
286 |
"If this field is active, MW WP Form get the post as query string \"post_id\" "
|
287 |
"and you can use $post's property in editor"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: system/mw_wp_form_admin_page.php:459
|
291 |
msgid "Example: {ID}, {post_title}, {post_meta} etc..."
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: system/mw_wp_form_admin_page.php:462
|
295 |
msgid "Saving contact data in database"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: system/mw_wp_form_admin_page.php:466
|
299 |
msgid "Akismet Setting"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: system/mw_wp_form_admin_page.php:481
|
303 |
msgid "Input the key to use Akismet."
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: system/mw_wp_form_admin_page.php:506 system/mw_wp_form_admin_page.php:538
|
307 |
msgid "Subject"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: system/mw_wp_form_admin_page.php:510 system/mw_wp_form_admin_page.php:542
|
311 |
msgid "Ccontent"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: system/mw_wp_form_admin_page.php:512 system/mw_wp_form_admin_page.php:544
|
315 |
msgid "{key} is converted form data."
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: system/mw_wp_form_admin_page.php:515
|
319 |
msgid "Automatic reply email"
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: system/mw_wp_form_admin_page.php:517
|
323 |
msgid "Input the key to use as transmission to automatic reply email."
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: system/mw_wp_form_admin_page.php:530
|
327 |
msgid ""
|
328 |
"If Admin Email Options is a blank, Automatic Replay Email Options is used as "
|
329 |
"Admin Email Options."
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: system/mw_wp_form_admin_page.php:533
|
333 |
msgid "To ( E-mail address )"
|
334 |
msgstr ""
|
335 |
|
336 |
+
#: system/mw_wp_form_admin_page.php:535
|
337 |
msgid "If empty: Using admin E-mail address."
|
338 |
msgstr ""
|
339 |
|
340 |
+
#: system/mw_wp_form_admin_page.php:559
|
341 |
msgid "Input Page URL"
|
342 |
msgstr ""
|
343 |
|
344 |
+
#: system/mw_wp_form_admin_page.php:565
|
345 |
msgid "Confirmation Page URL"
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: system/mw_wp_form_admin_page.php:571
|
349 |
msgid "Complete Page URL"
|
350 |
msgstr ""
|
351 |
|
352 |
+
#: system/mw_wp_form_admin_page.php:577
|
353 |
msgid "Validation Error Page URL"
|
354 |
msgstr ""
|
355 |
|
356 |
+
#: system/mw_wp_form_admin_page.php:614
|
357 |
msgid "Add Validation rule"
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: system/mw_wp_form_admin_page.php:620
|
361 |
msgid "The key which applies validation"
|
362 |
msgstr ""
|
363 |
|
364 |
+
#: system/mw_wp_form_admin_page.php:624
|
365 |
msgid "No empty"
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: system/mw_wp_form_admin_page.php:625
|
369 |
msgid "No empty( with checkbox )"
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: system/mw_wp_form_admin_page.php:626
|
373 |
msgid "Numeric"
|
374 |
msgstr ""
|
375 |
|
376 |
+
#: system/mw_wp_form_admin_page.php:627
|
377 |
msgid "Alphabet"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: system/mw_wp_form_admin_page.php:628
|
381 |
msgid "Alphabet and Numeric"
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: system/mw_wp_form_admin_page.php:631
|
|
|
|
|
|
|
|
|
385 |
msgid "E-mail"
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: system/mw_wp_form_admin_page.php:632
|
389 |
msgid "Date"
|
390 |
msgstr ""
|
391 |
|
392 |
+
#: system/mw_wp_form_admin_page.php:636
|
393 |
msgid "The key at same value"
|
394 |
msgstr ""
|
395 |
|
396 |
+
#: system/mw_wp_form_admin_page.php:640
|
397 |
msgid "The range of the number of characters"
|
398 |
msgstr ""
|
399 |
|
400 |
+
#: system/mw_wp_form_admin_page.php:648
|
401 |
msgid "The number of the minimum characters"
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: system/mw_wp_form_admin_page.php:652
|
405 |
msgid "Permitted Extension"
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: system/mw_wp_form_admin_page.php:653
|
409 |
msgid "Example:jpg or jpg,txt,…"
|
410 |
msgstr ""
|
411 |
|
412 |
+
#: system/mw_wp_form_admin_page.php:656
|
413 |
msgid "Permitted file size"
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: system/mw_wp_form_admin_page.php:657
|
417 |
msgid "bytes"
|
418 |
msgstr ""
|
419 |
|
420 |
+
#: system/mw_wp_form_admin_page.php:694
|
421 |
msgid "Registed Date"
|
422 |
msgstr ""
|
423 |
|
mw-wp-form.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Plugin Name: MW WP Form
|
4 |
* Plugin URI: http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
|
5 |
* Description: MW WP Form can create mail form with a confirmation screen.
|
6 |
-
* Version: 0.9.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: September 25, 2012
|
10 |
-
* Modified: August
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPL2
|
@@ -45,6 +45,25 @@ class mw_wp_form {
|
|
45 |
protected $MW_WP_Form_Admin_Page;
|
46 |
protected $options_by_formkey;
|
47 |
protected $insert_id;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
/**
|
50 |
* __construct
|
@@ -286,7 +305,10 @@ class mw_wp_form {
|
|
286 |
if ( !empty( $post ) ) {
|
287 |
setup_postdata( $post );
|
288 |
if ( get_post_type() === MWF_Config::NAME ) {
|
289 |
-
$this->options_by_formkey =
|
|
|
|
|
|
|
290 |
$this->options_by_formkey['post_id'] = $post->ID;
|
291 |
$this->key = MWF_Config::NAME.'-'.$atts['key'];
|
292 |
$this->input = $this->parse_url( $this->options_by_formkey['input_url'] );
|
@@ -448,9 +470,13 @@ class mw_wp_form {
|
|
448 |
$Mail->to = get_bloginfo( 'admin_email' );
|
449 |
}
|
450 |
// 送信元を指定
|
451 |
-
$
|
|
|
|
|
452 |
// 送信者を指定
|
453 |
-
$
|
|
|
|
|
454 |
// タイトルを指定
|
455 |
$Mail->subject = $admin_mail_subject;
|
456 |
// 本文を指定
|
@@ -461,8 +487,8 @@ class mw_wp_form {
|
|
461 |
);
|
462 |
}
|
463 |
|
464 |
-
$
|
465 |
-
$Mail = apply_filters( $
|
466 |
|
467 |
if ( $this->options_by_formkey && !empty( $Mail ) ) {
|
468 |
$Mail->send();
|
@@ -472,6 +498,12 @@ class mw_wp_form {
|
|
472 |
if ( $automatic_reply_email && !$this->Validation->mail( $automatic_reply_email ) ) {
|
473 |
// 送信先を指定
|
474 |
$Mail->to = $this->Data->getValue( $this->options_by_formkey['automatic_reply_email'] );
|
|
|
|
|
|
|
|
|
|
|
|
|
475 |
// タイトルを指定
|
476 |
$Mail->subject = $this->options_by_formkey['mail_subject'];
|
477 |
// 本文を指定
|
3 |
* Plugin Name: MW WP Form
|
4 |
* Plugin URI: http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
|
5 |
* Description: MW WP Form can create mail form with a confirmation screen.
|
6 |
+
* Version: 0.9.6
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: September 25, 2012
|
10 |
+
* Modified: August 31, 2013
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPL2
|
45 |
protected $MW_WP_Form_Admin_Page;
|
46 |
protected $options_by_formkey;
|
47 |
protected $insert_id;
|
48 |
+
private $defaults = array(
|
49 |
+
'mail_subject' => '',
|
50 |
+
'mail_content' => '',
|
51 |
+
'automatic_reply_email' => '',
|
52 |
+
'mail_to' => '',
|
53 |
+
'admin_mail_subject' => '',
|
54 |
+
'admin_mail_content' => '',
|
55 |
+
'querystring' => null,
|
56 |
+
'usedb' => null,
|
57 |
+
'akismet_author' => '',
|
58 |
+
'author_email' => '',
|
59 |
+
'author_url' => '',
|
60 |
+
'complete_message' => '',
|
61 |
+
'input_url' => '',
|
62 |
+
'confirmation_url' => '',
|
63 |
+
'complete_url' => '',
|
64 |
+
'validation_error_url' => '',
|
65 |
+
'validation' => array(),
|
66 |
+
);
|
67 |
|
68 |
/**
|
69 |
* __construct
|
305 |
if ( !empty( $post ) ) {
|
306 |
setup_postdata( $post );
|
307 |
if ( get_post_type() === MWF_Config::NAME ) {
|
308 |
+
$this->options_by_formkey = array_merge(
|
309 |
+
$this->defaults,
|
310 |
+
get_post_meta( $post->ID, MWF_Config::NAME, true )
|
311 |
+
);
|
312 |
$this->options_by_formkey['post_id'] = $post->ID;
|
313 |
$this->key = MWF_Config::NAME.'-'.$atts['key'];
|
314 |
$this->input = $this->parse_url( $this->options_by_formkey['input_url'] );
|
470 |
$Mail->to = get_bloginfo( 'admin_email' );
|
471 |
}
|
472 |
// 送信元を指定
|
473 |
+
$filter_admin_mail_from = 'mwform_admin_mail_from_' . $this->key;
|
474 |
+
$from = get_bloginfo( 'admin_email' );
|
475 |
+
$Mail->from = apply_filters( $filter_admin_mail_from, $from );
|
476 |
// 送信者を指定
|
477 |
+
$sender = get_bloginfo( 'name' );
|
478 |
+
$filter_admin_mail_sender = 'mwform_admin_mail_sender_' . $this->key;
|
479 |
+
$Mail->sender = apply_filters( $filter_admin_mail_sender, $sender );
|
480 |
// タイトルを指定
|
481 |
$Mail->subject = $admin_mail_subject;
|
482 |
// 本文を指定
|
487 |
);
|
488 |
}
|
489 |
|
490 |
+
$filter_name = 'mwform_mail_'.$this->key;
|
491 |
+
$Mail = apply_filters( $filter_name, $Mail, $this->Data->getValues() );
|
492 |
|
493 |
if ( $this->options_by_formkey && !empty( $Mail ) ) {
|
494 |
$Mail->send();
|
498 |
if ( $automatic_reply_email && !$this->Validation->mail( $automatic_reply_email ) ) {
|
499 |
// 送信先を指定
|
500 |
$Mail->to = $this->Data->getValue( $this->options_by_formkey['automatic_reply_email'] );
|
501 |
+
// 送信元を指定
|
502 |
+
$filter_auto_mail_from = 'mwform_auto_mail_from_' . $this->key;
|
503 |
+
$Mail->from = apply_filters( $filter_auto_mail_from, $from );
|
504 |
+
// 送信者を指定
|
505 |
+
$filter_auto_mail_sender = 'mwform_auto_mail_sender_' . $this->key;
|
506 |
+
$Mail->sender = apply_filters( $filter_auto_mail_sender, $sender );
|
507 |
// タイトルを指定
|
508 |
$Mail->subject = $this->options_by_formkey['mail_subject'];
|
509 |
// 本文を指定
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: plugin, form, confirm, preview
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 3.5
|
7 |
-
Stable tag: 0.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -37,6 +37,14 @@ http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
|
|
37 |
|
38 |
== Changelog ==
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
= 0.9.5 =
|
41 |
* Added : バリデーションエラー時に遷移するURLを設定可能に
|
42 |
* Cahged : 送信メールの Return-Path に「管理者宛メール設定の送信先」が利用されるように変更
|
4 |
Tags: plugin, form, confirm, preview
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 3.5
|
7 |
+
Stable tag: 0.9.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
+
= 0.9.6 =
|
41 |
+
* Bug fix: 電話番号のバリデーションチェックを修正
|
42 |
+
* Added : CSVダウンロード機能追加
|
43 |
+
* Added : mwform_admin_mail_from_識別子 フック追加
|
44 |
+
* Added : mwform_admin_mail_sender_識別子 フック追加
|
45 |
+
* Added : mwform_auto_mail_from_識別子 フック追加
|
46 |
+
* Added : mwform_auto_mail_sender_識別子 フック追加
|
47 |
+
|
48 |
= 0.9.5 =
|
49 |
* Added : バリデーションエラー時に遷移するURLを設定可能に
|
50 |
* Cahged : 送信メールの Return-Path に「管理者宛メール設定の送信先」が利用されるように変更
|
system/mw_form.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form
|
4 |
* URI: http://2inc.org
|
5 |
* Description: フォームクラス
|
6 |
-
* Version: 1.3.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: September 25, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -421,7 +421,7 @@ class MW_Form {
|
|
421 |
$value1 = ( isset( $value[1] ) )? $value[1] : '';
|
422 |
$value2 = ( isset( $value[2] ) )? $value[2] : '';
|
423 |
$_ret = '';
|
424 |
-
$_ret .= $this->text( $name.'[data][0]', array( 'size' =>
|
425 |
$_ret .= ' '.$separator.' ';
|
426 |
$_ret .= $this->text( $name.'[data][1]', array( 'size' => 5, 'maxlength' => 4, 'value' => $value1 ) );
|
427 |
$_ret .= ' '.$separator.' ';
|
3 |
* Name: MW Form
|
4 |
* URI: http://2inc.org
|
5 |
* Description: フォームクラス
|
6 |
+
* Version: 1.3.3
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: September 25, 2012
|
10 |
+
* Modified: August 28, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
421 |
$value1 = ( isset( $value[1] ) )? $value[1] : '';
|
422 |
$value2 = ( isset( $value[2] ) )? $value[2] : '';
|
423 |
$_ret = '';
|
424 |
+
$_ret .= $this->text( $name.'[data][0]', array( 'size' => 6, 'maxlength' => 5, 'value' => $value0 ) );
|
425 |
$_ret .= ' '.$separator.' ';
|
426 |
$_ret .= $this->text( $name.'[data][1]', array( 'size' => 5, 'maxlength' => 4, 'value' => $value1 ) );
|
427 |
$_ret .= ' '.$separator.' ';
|
system/mw_validation.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Validation
|
4 |
* URI: http://2inc.org
|
5 |
* Description: バリデーションクラス
|
6 |
-
* Version: 1.4
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: July 20, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -228,7 +228,12 @@ class MW_Validation {
|
|
228 |
if ( is_array( $value ) ) {
|
229 |
$value = implode( '-', $value );
|
230 |
}
|
231 |
-
if ( !
|
|
|
|
|
|
|
|
|
|
|
232 |
$_ret = $options['message'];
|
233 |
}
|
234 |
}
|
3 |
* Name: MW Validation
|
4 |
* URI: http://2inc.org
|
5 |
* Description: バリデーションクラス
|
6 |
+
* Version: 1.4.1
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: July 20, 2012
|
10 |
+
* Modified: August 28, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
228 |
if ( is_array( $value ) ) {
|
229 |
$value = implode( '-', $value );
|
230 |
}
|
231 |
+
if ( ! (
|
232 |
+
preg_match( '/^\d{2}-\d{4}-\d{4}$/', $value ) ||
|
233 |
+
preg_match( '/^\d{3}-\d{3,4}-\d{4}$/', $value ) ||
|
234 |
+
preg_match( '/^\d{4}-\d{2}-\d{4}$/', $value ) ||
|
235 |
+
preg_match( '/^\d{5}-\d{1}-\d{4}$/', $value )
|
236 |
+
) ) {
|
237 |
$_ret = $options['message'];
|
238 |
}
|
239 |
}
|
system/mw_wp_form_admin_page.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: February 21, 2013
|
10 |
-
* Modified: August
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -42,6 +42,99 @@ class MW_WP_Form_Admin_Page {
|
|
42 |
add_action( 'save_post', array( $this, 'save_post' ) );
|
43 |
// add_filter( 'user_can_richedit', array( $this, 'disable_visual_editor' ) );
|
44 |
add_action( 'admin_print_footer_scripts', array( $this, 'add_quicktag' ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
}
|
46 |
|
47 |
/**
|
@@ -344,8 +437,11 @@ class MW_WP_Form_Admin_Page {
|
|
344 |
global $post;
|
345 |
?>
|
346 |
<p>
|
347 |
-
<?php _e( 'Copy and Paste this shortcode.', MWF_Config::DOMAIN ); ?><br />
|
348 |
<span id="formkey_field">[mwform_formkey key="<?php the_ID(); ?>"]</span>
|
|
|
|
|
|
|
|
|
349 |
</p>
|
350 |
<?php
|
351 |
}
|
@@ -530,7 +626,7 @@ class MW_WP_Form_Admin_Page {
|
|
530 |
<label><input type="checkbox" <?php checked( $value['numeric'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][numeric]" value="1" /><?php _e( 'Numeric', MWF_Config::DOMAIN ); ?></label>
|
531 |
<label><input type="checkbox" <?php checked( $value['alpha'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][alpha]" value="1" /><?php _e( 'Alphabet', MWF_Config::DOMAIN ); ?></label>
|
532 |
<label><input type="checkbox" <?php checked( $value['alphanumeric'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][alphanumeric]" value="1" /><?php _e( 'Alphabet and Numeric', MWF_Config::DOMAIN ); ?></label>
|
533 |
-
<label><input type="checkbox" <?php checked( $value['zip'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][zip]" value="1" /><?php _e( 'Zip
|
534 |
<label><input type="checkbox" <?php checked( $value['tel'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][tel]" value="1" /><?php _e( 'Tel', MWF_Config::DOMAIN ); ?></label>
|
535 |
<label><input type="checkbox" <?php checked( $value['mail'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][mail]" value="1" /><?php _e( 'E-mail', MWF_Config::DOMAIN ); ?></label>
|
536 |
<label><input type="checkbox" <?php checked( $value['date'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][date]" value="1" /><?php _e( 'Date', MWF_Config::DOMAIN ); ?></label>
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: February 21, 2013
|
10 |
+
* Modified: August 26, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
42 |
add_action( 'save_post', array( $this, 'save_post' ) );
|
43 |
// add_filter( 'user_can_richedit', array( $this, 'disable_visual_editor' ) );
|
44 |
add_action( 'admin_print_footer_scripts', array( $this, 'add_quicktag' ) );
|
45 |
+
|
46 |
+
add_action( 'in_admin_footer', array( $this, 'add_csv_download_button' ) );
|
47 |
+
add_action( 'wp_loaded', array( $this, 'csv_download' ) );
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* add_csv_download_button
|
52 |
+
* CSVダウンロードボタンを表示
|
53 |
+
*/
|
54 |
+
public function add_csv_download_button() {
|
55 |
+
$post_type = get_post_type();
|
56 |
+
$page = ( basename( $_SERVER['PHP_SELF'] ) );
|
57 |
+
if ( in_array( $post_type, $this->form_post_type ) && $page == 'edit.php' ) {
|
58 |
+
$action = $_SERVER['REQUEST_URI'];
|
59 |
+
?>
|
60 |
+
<form id="mw-wp-form_csv" method="post" action="<?php echo esc_url( $action ); ?>">
|
61 |
+
<input type="hidden" name="test" value="hoge" />
|
62 |
+
<input type="submit" value="<?php _e( 'CSV Download', MWF_Config::DOMAIN ); ?>" class="button-primary" />
|
63 |
+
<?php wp_nonce_field( MWF_Config::NAME ); ?>
|
64 |
+
</form>
|
65 |
+
<?php
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
* csv_download
|
71 |
+
* CSVを生成、出力
|
72 |
+
*/
|
73 |
+
public function csv_download() {
|
74 |
+
if ( isset( $_GET['post_type'] ) ) {
|
75 |
+
$post_type = $_GET['post_type'];
|
76 |
+
if ( in_array( $post_type, $this->form_post_type ) && !empty( $_POST ) ) {
|
77 |
+
check_admin_referer( MWF_Config::NAME );
|
78 |
+
|
79 |
+
$posts_mwf = get_posts( array(
|
80 |
+
'post_type' => $post_type,
|
81 |
+
'pre_get_posts' => -1,
|
82 |
+
'post_status' => 'any',
|
83 |
+
) );
|
84 |
+
$csv = '';
|
85 |
+
|
86 |
+
// 見出しを追加
|
87 |
+
$rows[] = array( 'ID', 'post_date', 'post_modified', 'post_title' );
|
88 |
+
foreach ( $posts_mwf as $post ) {
|
89 |
+
setup_postdata( $post );
|
90 |
+
$columns = array();
|
91 |
+
foreach ( $posts_mwf as $post ) {
|
92 |
+
$post_custom_keys = get_post_custom_keys( $post->ID );
|
93 |
+
if ( ! empty( $post_custom_keys ) && is_array( $post_custom_keys ) ) {
|
94 |
+
foreach ( $post_custom_keys as $key ) {
|
95 |
+
if ( preg_match( '/^_/', $key ) )
|
96 |
+
continue;
|
97 |
+
$columns[] = $key;
|
98 |
+
}
|
99 |
+
}
|
100 |
+
}
|
101 |
+
$rows[0] = array_merge( $rows[0], $columns );
|
102 |
+
}
|
103 |
+
wp_reset_postdata();
|
104 |
+
|
105 |
+
// 各データを追加
|
106 |
+
foreach ( $posts_mwf as $post ) {
|
107 |
+
setup_postdata( $post );
|
108 |
+
$column = array();
|
109 |
+
foreach ( $rows[0] as $key => $value ) {
|
110 |
+
if ( isset( $post->$value ) ) {
|
111 |
+
$column[$key] = $this->escape_double_quote( $post->$value );
|
112 |
+
} else {
|
113 |
+
$post_meta = get_post_meta( $post->ID, $value, true );
|
114 |
+
$column[$key] = ( $post_meta ) ? $this->escape_double_quote( $post_meta ) : '';
|
115 |
+
}
|
116 |
+
}
|
117 |
+
$rows[] = $column;
|
118 |
+
}
|
119 |
+
wp_reset_postdata();
|
120 |
+
|
121 |
+
// エンコード
|
122 |
+
foreach ( $rows as $row ) {
|
123 |
+
$csv .= implode( ',', $row ) . "\r\n";
|
124 |
+
$csv = mb_convert_encoding( $csv, 'SJIS-win', get_option( 'blog_charset' ) );
|
125 |
+
}
|
126 |
+
|
127 |
+
$file_name = 'mw_wp_form_' . date( 'YmdHis' ) . '.csv';
|
128 |
+
header( 'Content-Type: application/octet-stream' );
|
129 |
+
header( 'Content-Disposition: attachment; filename=' . $file_name );
|
130 |
+
echo $csv;
|
131 |
+
exit;
|
132 |
+
}
|
133 |
+
}
|
134 |
+
}
|
135 |
+
private function escape_double_quote( $value ) {
|
136 |
+
$value = str_replace( '"', '""', $value );
|
137 |
+
return '"' . $value . '"';
|
138 |
}
|
139 |
|
140 |
/**
|
437 |
global $post;
|
438 |
?>
|
439 |
<p>
|
|
|
440 |
<span id="formkey_field">[mwform_formkey key="<?php the_ID(); ?>"]</span>
|
441 |
+
<span class="mwf_note">
|
442 |
+
<?php _e( 'Copy and Paste this shortcode.', MWF_Config::DOMAIN ); ?><br />
|
443 |
+
<?php _e( 'The key to use with hook is ', MWF_Config::DOMAIN ); ?><?php echo MWF_Config::NAME; ?>-<?php echo $post->ID; ?>
|
444 |
+
</span>
|
445 |
</p>
|
446 |
<?php
|
447 |
}
|
626 |
<label><input type="checkbox" <?php checked( $value['numeric'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][numeric]" value="1" /><?php _e( 'Numeric', MWF_Config::DOMAIN ); ?></label>
|
627 |
<label><input type="checkbox" <?php checked( $value['alpha'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][alpha]" value="1" /><?php _e( 'Alphabet', MWF_Config::DOMAIN ); ?></label>
|
628 |
<label><input type="checkbox" <?php checked( $value['alphanumeric'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][alphanumeric]" value="1" /><?php _e( 'Alphabet and Numeric', MWF_Config::DOMAIN ); ?></label>
|
629 |
+
<label><input type="checkbox" <?php checked( $value['zip'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][zip]" value="1" /><?php _e( 'Zip Code', MWF_Config::DOMAIN ); ?></label>
|
630 |
<label><input type="checkbox" <?php checked( $value['tel'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][tel]" value="1" /><?php _e( 'Tel', MWF_Config::DOMAIN ); ?></label>
|
631 |
<label><input type="checkbox" <?php checked( $value['mail'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][mail]" value="1" /><?php _e( 'E-mail', MWF_Config::DOMAIN ); ?></label>
|
632 |
<label><input type="checkbox" <?php checked( $value['date'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][date]" value="1" /><?php _e( 'Date', MWF_Config::DOMAIN ); ?></label>
|