From: Nik Okuntseff Date: Wed, 21 Nov 2018 21:51:56 +0000 (+0000) Subject: Using error.object_exists instead of error.task_exists to streamline error messages. X-Git-Tag: timetracker_1.19-1~580 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=04565403a39edd462f6f7d2ef737366cdc40acf1;p=timetracker.git Using error.object_exists instead of error.task_exists to streamline error messages. --- diff --git a/WEB-INF/resources/ca.lang.php b/WEB-INF/resources/ca.lang.php index dc1e2070..e8c81189 100644 --- a/WEB-INF/resources/ca.lang.php +++ b/WEB-INF/resources/ca.lang.php @@ -99,7 +99,6 @@ $i18n_key_words = array( // TODO: translate the following. // 'error.user_exists' => 'User with this login already exists.', // 'error.object_exists' => 'Object with this name already exists.', -// 'error.task_exists' => 'Task with this name already exists.', // 'error.client_exists' => 'Client with this name already exists.', // 'error.invoice_exists' => 'Invoice with this number already exists.', // 'error.role_exists' => 'Role with this rank already exists.', diff --git a/WEB-INF/resources/cs.lang.php b/WEB-INF/resources/cs.lang.php index 529e8020..d80ebf09 100644 --- a/WEB-INF/resources/cs.lang.php +++ b/WEB-INF/resources/cs.lang.php @@ -101,7 +101,6 @@ $i18n_key_words = array( // TODO: translate the following. // 'error.user_exists' => 'User with this login already exists.', // 'error.object_exists' => 'Object with this name already exists.', -// 'error.task_exists' => 'Task with this name already exists.', // 'error.client_exists' => 'Client with this name already exists.', // 'error.invoice_exists' => 'Invoice with this number already exists.', // 'error.role_exists' => 'Role with this rank already exists.', diff --git a/WEB-INF/resources/da.lang.php b/WEB-INF/resources/da.lang.php index 995ce5e0..fc165df4 100644 --- a/WEB-INF/resources/da.lang.php +++ b/WEB-INF/resources/da.lang.php @@ -90,7 +90,6 @@ $i18n_key_words = array( 'error.user_exists' => 'Brugernavn eksistere allerede.', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -'error.task_exists' => 'Opgavenavn eksistere allerede.', 'error.client_exists' => 'Der eksistere allerede en klient med dette navn.', 'error.invoice_exists' => 'Fakturanummer eksistere allerede.', // TODO: translate the following. diff --git a/WEB-INF/resources/de.lang.php b/WEB-INF/resources/de.lang.php index 425f1fcf..940ca1d8 100644 --- a/WEB-INF/resources/de.lang.php +++ b/WEB-INF/resources/de.lang.php @@ -85,7 +85,6 @@ $i18n_key_words = array( 'error.auth' => 'Benutzername oder Passwort ungültig.', 'error.user_exists' => 'Benutzer mit diesem Konto ist bereits vorhanden.', 'error.object_exists' => 'Objekt mit diesem Namen ist bereits vorhanden.', -'error.task_exists' => 'Task mit diesem Namen existiert bereits.', 'error.client_exists' => 'Der Kunde mit dem Namen existiert schon.', 'error.invoice_exists' => 'Rechnung mit dieser Nummer existiert bereits.', 'error.role_exists' => 'Rolle mit diesem Rang existiert bereits.', diff --git a/WEB-INF/resources/en.lang.php b/WEB-INF/resources/en.lang.php index 6282874c..ad1aabf9 100644 --- a/WEB-INF/resources/en.lang.php +++ b/WEB-INF/resources/en.lang.php @@ -85,7 +85,6 @@ $i18n_key_words = array( 'error.auth' => 'Incorrect login or password.', 'error.user_exists' => 'User with this login already exists.', 'error.object_exists' => 'Object with this name already exists.', -'error.task_exists' => 'Task with this name already exists.', 'error.client_exists' => 'Client with this name already exists.', 'error.invoice_exists' => 'Invoice with this number already exists.', 'error.role_exists' => 'Role with this rank already exists.', diff --git a/WEB-INF/resources/es.lang.php b/WEB-INF/resources/es.lang.php index 94d50637..e19eb4a8 100644 --- a/WEB-INF/resources/es.lang.php +++ b/WEB-INF/resources/es.lang.php @@ -97,7 +97,6 @@ $i18n_key_words = array( // TODO: translate the following. // 'error.user_exists' => 'User with this login already exists.', // 'error.object_exists' => 'Object with this name already exists.', -// 'error.task_exists' => 'Task with this name already exists.', // 'error.client_exists' => 'Client with this name already exists.', // 'error.invoice_exists' => 'Invoice with this number already exists.', // 'error.role_exists' => 'Role with this rank already exists.', diff --git a/WEB-INF/resources/et.lang.php b/WEB-INF/resources/et.lang.php index 5ab3de4a..f5a580bf 100644 --- a/WEB-INF/resources/et.lang.php +++ b/WEB-INF/resources/et.lang.php @@ -101,7 +101,6 @@ $i18n_key_words = array( // TODO: translate the following. // 'error.user_exists' => 'User with this login already exists.', // 'error.object_exists' => 'Object with this name already exists.', -// 'error.task_exists' => 'Task with this name already exists.', // 'error.client_exists' => 'Client with this name already exists.', // 'error.invoice_exists' => 'Invoice with this number already exists.', // 'error.role_exists' => 'Role with this rank already exists.', diff --git a/WEB-INF/resources/fa.lang.php b/WEB-INF/resources/fa.lang.php index 4e5b011a..ef7a5706 100644 --- a/WEB-INF/resources/fa.lang.php +++ b/WEB-INF/resources/fa.lang.php @@ -95,7 +95,6 @@ $i18n_key_words = array( 'error.user_exists' => 'کاربری با این نام کاربری موجود است.', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -'error.task_exists' => 'وظیفه ای با این نام هم اکنون وجود دارد.', 'error.client_exists' => 'مشتری با این نام هم اکنون وجود دارد.', 'error.invoice_exists' => 'فاکتوری با این شماره هم اکنون موجود است.', // TODO: translate the following. diff --git a/WEB-INF/resources/fi.lang.php b/WEB-INF/resources/fi.lang.php index f4ac6c4e..0aab4182 100644 --- a/WEB-INF/resources/fi.lang.php +++ b/WEB-INF/resources/fi.lang.php @@ -92,7 +92,6 @@ $i18n_key_words = array( 'error.user_exists' => 'Tämä käyttäjänimi on jo olemassa.', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -'error.task_exists' => 'Tämän niminen tehtävä on jo olemassa.', 'error.client_exists' => 'Tämän niminen asiakas on jo olemassa.', 'error.invoice_exists' => 'Tällä numerolla oleva lasku on jo olemassa.', // TODO: translate the following. diff --git a/WEB-INF/resources/fr.lang.php b/WEB-INF/resources/fr.lang.php index 47dc7f79..d0ca0fa2 100644 --- a/WEB-INF/resources/fr.lang.php +++ b/WEB-INF/resources/fr.lang.php @@ -90,7 +90,6 @@ $i18n_key_words = array( 'error.user_exists' => 'Un utilisateur avec cet identifiant existe déjà.', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -'error.task_exists' => 'Une tâche avec ce nom existe déjà.', 'error.client_exists' => 'Un client avec ce nom existe déjà.', 'error.invoice_exists' => 'Une facture avec ce numéro existe déjà.', // TODO: translate the following. diff --git a/WEB-INF/resources/gr.lang.php b/WEB-INF/resources/gr.lang.php index a85c30e9..d4bca60c 100644 --- a/WEB-INF/resources/gr.lang.php +++ b/WEB-INF/resources/gr.lang.php @@ -86,7 +86,6 @@ $i18n_key_words = array( 'error.auth' => 'Λανθασμένο όνομα εισόδου ή κωδικός.', 'error.user_exists' => 'Ο χρήστης με αυτήν τη σύνδεση υπάρχει ήδη.', 'error.object_exists' => 'Το αντικείμενο με αυτό το όνομα υπάρχει ήδη.', -'error.task_exists' => 'Η εργασία με αυτό το όνομα υπάρχει ήδη.', 'error.client_exists' => 'Ο πελάτης με αυτό το όνομα υπάρχει ήδη.', 'error.invoice_exists' => 'Το τιμολόγιο με αυτόν τον αριθμό υπάρχει ήδη.', 'error.role_exists' => 'Ο ρόλος σε αυτή τη σειρά υπάρχει ήδη.', diff --git a/WEB-INF/resources/he.lang.php b/WEB-INF/resources/he.lang.php index cfa471e6..e9e9dd70 100644 --- a/WEB-INF/resources/he.lang.php +++ b/WEB-INF/resources/he.lang.php @@ -106,7 +106,6 @@ $i18n_key_words = array( 'error.user_exists' => 'שם משתמש כבר קיים', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -'error.task_exists' => 'קיימת משימה עם שם דומה', 'error.client_exists' => 'שם לקוח כבר קיים', 'error.invoice_exists' => 'קיימת חשבונית עם מספר זה', // TODO: translate the following. diff --git a/WEB-INF/resources/hu.lang.php b/WEB-INF/resources/hu.lang.php index beea7ac4..0c8dc240 100644 --- a/WEB-INF/resources/hu.lang.php +++ b/WEB-INF/resources/hu.lang.php @@ -99,7 +99,6 @@ $i18n_key_words = array( // 'error.auth' => 'Incorrect login or password.', // 'error.user_exists' => 'User with this login already exists.', // 'error.object_exists' => 'Object with this name already exists.', -// 'error.task_exists' => 'Task with this name already exists.', // 'error.client_exists' => 'Client with this name already exists.', // 'error.invoice_exists' => 'Invoice with this number already exists.', // 'error.role_exists' => 'Role with this rank already exists.', diff --git a/WEB-INF/resources/it.lang.php b/WEB-INF/resources/it.lang.php index 063318eb..476b1000 100644 --- a/WEB-INF/resources/it.lang.php +++ b/WEB-INF/resources/it.lang.php @@ -89,7 +89,6 @@ $i18n_key_words = array( 'error.user_exists' => 'Esiste già un utente con questo username.', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -'error.task_exists' => 'Esiste già un compito con questo nome.', 'error.client_exists' => 'Esiste già un cliente con questo nome.', 'error.invoice_exists' => 'Esiste già una fattura con questo numero.', // TODO: translate the following. diff --git a/WEB-INF/resources/ja.lang.php b/WEB-INF/resources/ja.lang.php index f0c52121..08ca910f 100644 --- a/WEB-INF/resources/ja.lang.php +++ b/WEB-INF/resources/ja.lang.php @@ -99,7 +99,6 @@ $i18n_key_words = array( 'error.user_exists' => 'このログインと関連されたユーザーは既に存在します。', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -// 'error.task_exists' => 'Task with this name already exists.', // 'error.client_exists' => 'Client with this name already exists.', // 'error.invoice_exists' => 'Invoice with this number already exists.', // TODO: translate the following. diff --git a/WEB-INF/resources/ko.lang.php b/WEB-INF/resources/ko.lang.php index a426f24d..91bbf5be 100644 --- a/WEB-INF/resources/ko.lang.php +++ b/WEB-INF/resources/ko.lang.php @@ -99,7 +99,6 @@ $i18n_key_words = array( 'error.user_exists' => '본 로그인과 연계된 사용자가 이미 있습니다.', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -// 'error.task_exists' => 'Task with this name already exists.', // 'error.client_exists' => 'Client with this name already exists.', // 'error.invoice_exists' => 'Invoice with this number already exists.', // 'error.role_exists' => 'Role with this rank already exists.', diff --git a/WEB-INF/resources/nl.lang.php b/WEB-INF/resources/nl.lang.php index d30caf44..434ec9e7 100644 --- a/WEB-INF/resources/nl.lang.php +++ b/WEB-INF/resources/nl.lang.php @@ -85,7 +85,6 @@ $i18n_key_words = array( 'error.auth' => 'Onjuiste inlognaam of wachtwoord.', 'error.user_exists' => 'Een gebruiker met deze inlognaam bestaat al.', 'error.object_exists' => 'Een object met deze naam bestaat al.', -'error.task_exists' => 'Er bestaat al een taak met deze naam.', 'error.client_exists' => 'Een klant met deze naam bestaat al.', 'error.invoice_exists' => 'Dit nummer is al eens toegekend aan een factuur.', 'error.role_exists' => 'Een rol met deze rangorde bestaat al.', diff --git a/WEB-INF/resources/no.lang.php b/WEB-INF/resources/no.lang.php index a8cdd34a..16a9d83a 100644 --- a/WEB-INF/resources/no.lang.php +++ b/WEB-INF/resources/no.lang.php @@ -99,7 +99,6 @@ $i18n_key_words = array( 'error.user_exists' => 'Bruker med et slikt brukernavn eksisterer allerede.', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -// 'error.task_exists' => 'Task with this name already exists.', 'error.client_exists' => 'En klient med dette navnet er allerede opprettet.', // TODO: translate the following. // 'error.invoice_exists' => 'Invoice with this number already exists.', diff --git a/WEB-INF/resources/pl.lang.php b/WEB-INF/resources/pl.lang.php index b2bf0e15..8e07da86 100644 --- a/WEB-INF/resources/pl.lang.php +++ b/WEB-INF/resources/pl.lang.php @@ -93,7 +93,6 @@ $i18n_key_words = array( 'error.user_exists' => 'Użytkownik o takiej nazwie już istnieje.', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -'error.task_exists' => 'Zadanie o takiej nazwie już istnieje.', 'error.client_exists' => 'Klient o takiej nazwie już istnieje.', 'error.invoice_exists' => 'Faktura o tym numerze już istnieje.', // TODO: translate the following. diff --git a/WEB-INF/resources/pt-br.lang.php b/WEB-INF/resources/pt-br.lang.php index 7077f2e1..566c654b 100644 --- a/WEB-INF/resources/pt-br.lang.php +++ b/WEB-INF/resources/pt-br.lang.php @@ -91,7 +91,6 @@ $i18n_key_words = array( 'error.user_exists' => 'Já existe usuário com este login.', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -'error.task_exists' => 'Já existe tarefa com este nome.', 'error.client_exists' => 'Já existe cliente com este nome.', 'error.invoice_exists' => 'Já existe fatura com este número.', // TODO: translate the following. diff --git a/WEB-INF/resources/pt.lang.php b/WEB-INF/resources/pt.lang.php index 595e9c0f..5a05d16c 100644 --- a/WEB-INF/resources/pt.lang.php +++ b/WEB-INF/resources/pt.lang.php @@ -97,7 +97,6 @@ $i18n_key_words = array( // 'error.auth' => 'Incorrect login or password.', // 'error.user_exists' => 'User with this login already exists.', // 'error.object_exists' => 'Object with this name already exists.', -// 'error.task_exists' => 'Task with this name already exists.', // 'error.client_exists' => 'Client with this name already exists.', // 'error.invoice_exists' => 'Invoice with this number already exists.', // 'error.role_exists' => 'Role with this rank already exists.', diff --git a/WEB-INF/resources/ro.lang.php b/WEB-INF/resources/ro.lang.php index 1e5eb55c..783219ff 100644 --- a/WEB-INF/resources/ro.lang.php +++ b/WEB-INF/resources/ro.lang.php @@ -103,7 +103,6 @@ $i18n_key_words = array( // TODO: translate the following. // 'error.user_exists' => 'User with this login already exists.', // 'error.object_exists' => 'Object with this name already exists.', -// 'error.task_exists' => 'Task with this name already exists.', // 'error.client_exists' => 'Client with this name already exists.', // 'error.invoice_exists' => 'Invoice with this number already exists.', // 'error.role_exists' => 'Role with this rank already exists.', diff --git a/WEB-INF/resources/ru.lang.php b/WEB-INF/resources/ru.lang.php index 4b2a9ca7..0d57fe1d 100644 --- a/WEB-INF/resources/ru.lang.php +++ b/WEB-INF/resources/ru.lang.php @@ -84,7 +84,6 @@ $i18n_key_words = array( 'error.auth' => 'Неправильно введен логин или пароль.', 'error.user_exists' => 'Пользователь с таким логином уже существует.', 'error.object_exists' => 'Объект с таким именем уже есть.', -'error.task_exists' => 'Задача с таким названием уже есть.', 'error.client_exists' => 'Клиент с таким именем уже есть.', 'error.invoice_exists' => 'Счёт с таким номером уже есть.', 'error.role_exists' => 'Роль с таким рангом уже есть.', diff --git a/WEB-INF/resources/sk.lang.php b/WEB-INF/resources/sk.lang.php index a2ae001b..40e67179 100644 --- a/WEB-INF/resources/sk.lang.php +++ b/WEB-INF/resources/sk.lang.php @@ -95,7 +95,6 @@ $i18n_key_words = array( 'error.user_exists' => 'Používateľ s týmto prihlasovacím menom už existuje.', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -'error.task_exists' => 'Úloha s týmto názvom už existuje.', 'error.client_exists' => 'Klient s týmto menom už existuje.', 'error.invoice_exists' => 'Faktúra s týmto číslom už existuje.', // TODO: translate the following. diff --git a/WEB-INF/resources/sl.lang.php b/WEB-INF/resources/sl.lang.php index 490677a2..ebbe4f30 100644 --- a/WEB-INF/resources/sl.lang.php +++ b/WEB-INF/resources/sl.lang.php @@ -94,7 +94,6 @@ $i18n_key_words = array( // 'error.auth' => 'Incorrect login or password.', // 'error.user_exists' => 'User with this login already exists.', // 'error.object_exists' => 'Object with this name already exists.', -// 'error.task_exists' => 'Task with this name already exists.', // 'error.client_exists' => 'Client with this name already exists.', // 'error.invoice_exists' => 'Invoice with this number already exists.', // 'error.role_exists' => 'Role with this rank already exists.', diff --git a/WEB-INF/resources/sr.lang.php b/WEB-INF/resources/sr.lang.php index 39aa0b33..fe9a47ea 100644 --- a/WEB-INF/resources/sr.lang.php +++ b/WEB-INF/resources/sr.lang.php @@ -90,7 +90,6 @@ $i18n_key_words = array( 'error.user_exists' => 'Korisnik pod ovim imenom već postoji.', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -'error.task_exists' => 'Zadatak pod ovim nazivom već postoji.', 'error.client_exists' => 'Klijent pod ovim imenom već postoji.', 'error.invoice_exists' => 'Račun pod ovim brojem već postoji.', // TODO: translate the following. diff --git a/WEB-INF/resources/sv.lang.php b/WEB-INF/resources/sv.lang.php index 3861f8d4..60afbfc8 100644 --- a/WEB-INF/resources/sv.lang.php +++ b/WEB-INF/resources/sv.lang.php @@ -89,7 +89,6 @@ $i18n_key_words = array( 'error.user_exists' => 'Det finns redan en användare med det här användarnamnet.', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -'error.task_exists' => 'Det finns redan en arbetsuppgift med det här namnet.', 'error.client_exists' => 'Det finns redan en kund med det här namnet.', 'error.invoice_exists' => 'Det finns redan en faktura med det här numret.', // TODO: translate the following. diff --git a/WEB-INF/resources/tr.lang.php b/WEB-INF/resources/tr.lang.php index de1c41ae..7beba150 100644 --- a/WEB-INF/resources/tr.lang.php +++ b/WEB-INF/resources/tr.lang.php @@ -106,7 +106,6 @@ $i18n_key_words = array( // TODO: translate the following. // 'error.user_exists' => 'User with this login already exists.', // 'error.object_exists' => 'Object with this name already exists.', -// 'error.task_exists' => 'Task with this name already exists.', // 'error.client_exists' => 'Client with this name already exists.', // 'error.invoice_exists' => 'Invoice with this number already exists.', // 'error.role_exists' => 'Role with this rank already exists.', diff --git a/WEB-INF/resources/zh-cn.lang.php b/WEB-INF/resources/zh-cn.lang.php index 271ad93e..c5da9b5c 100644 --- a/WEB-INF/resources/zh-cn.lang.php +++ b/WEB-INF/resources/zh-cn.lang.php @@ -92,7 +92,6 @@ $i18n_key_words = array( 'error.user_exists' => '该用户登录信息已经存在。', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -// 'error.task_exists' => 'Task with this name already exists.', 'error.client_exists' => '具有此名称的客户端已经存在。', // TODO: translate the following. // 'error.invoice_exists' => 'Invoice with this number already exists.', diff --git a/WEB-INF/resources/zh-tw.lang.php b/WEB-INF/resources/zh-tw.lang.php index 81a90380..f48e154d 100644 --- a/WEB-INF/resources/zh-tw.lang.php +++ b/WEB-INF/resources/zh-tw.lang.php @@ -97,7 +97,6 @@ $i18n_key_words = array( 'error.user_exists' => '該使用者登錄資訊已經存在。', // TODO: translate the following. // 'error.object_exists' => 'Object with this name already exists.', -// 'error.task_exists' => 'Task with this name already exists.', // 'error.client_exists' => 'Client with this name already exists.', // 'error.invoice_exists' => 'Invoice with this number already exists.', // 'error.role_exists' => 'Role with this rank already exists.', diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index a6ffa537..01892fc8 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.26.4489 | Copyright © Anuko | +  Anuko Time Tracker 1.18.26.4490 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/mobile/task_add.php b/mobile/task_add.php index 796c725c..d1eab74b 100644 --- a/mobile/task_add.php +++ b/mobile/task_add.php @@ -79,7 +79,7 @@ if ($request->isPost()) { } else $err->add($i18n->get('error.db')); } else - $err->add($i18n->get('error.task_exists')); + $err->add($i18n->get('error.object_exists')); } } // isPost diff --git a/mobile/task_edit.php b/mobile/task_edit.php index 030cacd1..784028ee 100644 --- a/mobile/task_edit.php +++ b/mobile/task_edit.php @@ -97,7 +97,7 @@ if ($request->isPost()) { } else $err->add($i18n->get('error.db')); } else - $err->add($i18n->get('error.task_exists')); + $err->add($i18n->get('error.object_exists')); } if ($request->getParameter('btn_copy')) { @@ -114,7 +114,7 @@ if ($request->isPost()) { } else $err->add($i18n->get('error.db')); } else - $err->add($i18n->get('error.task_exists')); + $err->add($i18n->get('error.object_exists')); } if ($request->getParameter('btn_delete')) { diff --git a/task_add.php b/task_add.php index 383a3935..a93c80e2 100644 --- a/task_add.php +++ b/task_add.php @@ -79,7 +79,7 @@ if ($request->isPost()) { } else $err->add($i18n->get('error.db')); } else - $err->add($i18n->get('error.task_exists')); + $err->add($i18n->get('error.object_exists')); } } // isPost diff --git a/task_edit.php b/task_edit.php index e6381731..630a22cd 100644 --- a/task_edit.php +++ b/task_edit.php @@ -95,7 +95,7 @@ if ($request->isPost()) { } else $err->add($i18n->get('error.db')); } else - $err->add($i18n->get('error.task_exists')); + $err->add($i18n->get('error.object_exists')); } if ($request->getParameter('btn_copy')) { @@ -112,7 +112,7 @@ if ($request->isPost()) { } else $err->add($i18n->get('error.db')); } else - $err->add($i18n->get('error.task_exists')); + $err->add($i18n->get('error.object_exists')); } } } // isPost