diff --git a/asset/css/front.css b/asset/css/front.css index f0de45a..ab56120 100644 --- a/asset/css/front.css +++ b/asset/css/front.css @@ -13,4 +13,24 @@ margin: 0; } -.question-single .question-single-time {} \ No newline at end of file +.question-single .question-single-time {} + +.project-list-single { + padding-bottom: 5px; + margin-bottom: 5px; + border-bottom: 1px solid #ddd; +} + +.answer-single { + padding-bottom: 5px; + margin-bottom: 5px; + border-bottom: 1px solid #ddd; +} + +.question-is-manager { + background: #DFF0D8; +} + +.question-vote { + text-align: left !important; +} \ No newline at end of file diff --git a/locale/en/admin.mo b/locale/en/admin.mo index ccd1eec..0c57482 100644 Binary files a/locale/en/admin.mo and b/locale/en/admin.mo differ diff --git a/locale/en/admin.po b/locale/en/admin.po index e0b6fdb..36fecdb 100644 --- a/locale/en/admin.po +++ b/locale/en/admin.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: 2015-03-29 11:13+0330\n" +"POT-Creation-Date: 2017-08-06 12:35+0430\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" @@ -9,141 +9,145 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.7.5\n" +"X-Generator: Poedit 1.8.12\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-KeywordsList: _a;_t\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: /var/www/html/local/pi/pi-2.5.0/usr/module/ask\n" +"X-Poedit-Basepath: ../..\n" +"X-Poedit-SearchPath-0: .\n" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/comment.php:15 -msgid "Ask comments" +#: config/config.php:16 +msgid "Admin" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:16 -msgid "Admin" +#: config/config.php:20 +msgid "Show" +msgstr "" + +#: config/config.php:24 config/page.php:53 +msgid "Question" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:20 -msgid "Front" +#: config/config.php:28 +msgid "Project" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:24 +#: config/config.php:32 msgid "Feed" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:28 +#: config/config.php:36 msgid "Vote" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:36 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:45 +#: config/config.php:44 config/config.php:53 msgid "Perpage" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:46 +#: config/config.php:54 msgid "Number of questions in each page" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:53 +#: config/config.php:61 +msgid "Show information" +msgstr "" + +#: config/config.php:69 msgid "Tags" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:54 +#: config/config.php:70 msgid "Number of tags in tag controller" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:60 +#: config/config.php:77 +msgid "Show breadcrumbs" +msgstr "" + +#: config/config.php:86 +msgid "Active project system" +msgstr "" + +#: config/config.php:95 +msgid "Can ask" +msgstr "" + +#: config/config.php:103 +msgid "Can answer" +msgstr "" + +#: config/config.php:110 msgid "Automatic approval" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:66 +#: config/config.php:116 msgid "All questions and answers need admin review before publish" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:67 +#: config/config.php:117 msgid "Automatic approval all questions and answers" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:78 +#: config/config.php:128 msgid "Show feed icon" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:86 +#: config/config.php:136 msgid "Feed number" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:95 +#: config/config.php:145 msgid "Use vote system" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/module.php:15 +#: config/module.php:15 msgid "Ask" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/module.php:16 +#: config/module.php:16 msgid "Ask and Answer" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/navigation.php:16 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/page.php:17 +#: config/navigation.php:16 config/page.php:17 config/permission.php:39 msgid "List of Questions" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/navigation.php:26 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/page.php:22 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/permission.php:76 +#: config/navigation.php:26 config/navigation.php:36 config/page.php:22 +#: config/permission.php:45 +msgid "projects" +msgstr "" + +#: config/navigation.php:46 +msgid "New project" +msgstr "" + +#: config/navigation.php:58 config/page.php:27 config/permission.php:51 msgid "Tools" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/page.php:30 +#: config/page.php:35 msgid "Index page" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/page.php:36 -msgid "Answer" +#: config/page.php:41 +msgid "Project page" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/page.php:42 -msgid "Question" +#: config/page.php:47 config/permission.php:30 +msgid "Answer" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/page.php:48 +#: config/page.php:59 msgid "Submit question" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/page.php:54 +#: config/page.php:65 msgid "Tag" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/permission.php:17 +#: config/permission.php:17 msgid "Global public resource" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/permission.php:24 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/permission.php:46 -msgid "Authors" -msgstr "" - -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/permission.php:31 -msgid "Favourite" -msgstr "" - -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/permission.php:40 -msgid "Attach" -msgstr "" - -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/permission.php:52 -msgid "Extra" -msgstr "" - -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/permission.php:58 -msgid "Spotlight" -msgstr "" - -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/permission.php:64 -msgid "Story" -msgstr "" - -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/permission.php:70 -msgid "Topic" +#: config/permission.php:24 +msgid "Submit" msgstr "" diff --git a/locale/en/default.mo b/locale/en/default.mo index 60f371a..6d9b8c4 100644 Binary files a/locale/en/default.mo and b/locale/en/default.mo differ diff --git a/locale/en/default.po b/locale/en/default.po index d28eafd..1e43996 100644 --- a/locale/en/default.po +++ b/locale/en/default.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: 2015-03-29 11:13+0330\n" +"POT-Creation-Date: 2017-08-06 12:35+0430\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" @@ -9,189 +9,389 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.7.5\n" +"X-Generator: Poedit 1.8.12\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: /var/www/html/local/pi/pi-2.5.0/usr/module/ask\n" +"X-Poedit-Basepath: ../..\n" +"X-Poedit-SearchPath-0: .\n" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Admin/QuestionController.php:102 +#: src/Api/Breadcrumbs.php:66 src/Api/Breadcrumbs.php:77 +#: template/front/tag_list.phtml:4 +msgid "Tag list" +msgstr "" + +#: src/Api/Breadcrumbs.php:118 +msgid "Answer to question" +msgstr "" + +#: src/Api/Breadcrumbs.php:135 src/Controller/Front/SubmitController.php:120 +msgid "Ask a new Question" +msgstr "" + +#: src/Controller/Admin/ProjectController.php:89 +msgid "Project data saved successfully." +msgstr "" + +#: src/Controller/Admin/ProjectController.php:101 +msgid "Add project" +msgstr "" + +#: src/Controller/Admin/QuestionController.php:85 #, php-format msgid "%s question accept successfully" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Admin/QuestionController.php:107 +#: src/Controller/Admin/QuestionController.php:90 #, php-format msgid "Error in accept %s question" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Admin/QuestionController.php:113 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Admin/QuestionController.php:176 +#: src/Controller/Admin/QuestionController.php:96 +#: src/Controller/Admin/QuestionController.php:185 msgid "Please select question" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Admin/QuestionController.php:153 +#: src/Controller/Admin/QuestionController.php:154 msgid "Your selected item edit successfully" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Admin/QuestionController.php:174 +#: src/Controller/Admin/QuestionController.php:183 msgid "Your selected question deleted" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Feed/IndexController.php:25 +#: src/Controller/Feed/IndexController.php:25 msgid "Ask feed" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Feed/IndexController.php:26 +#: src/Controller/Feed/IndexController.php:26 msgid "Recent Questions." msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/AnswerController.php:42 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/QuestionController.php:33 +#: src/Controller/Front/AnswerController.php:33 +msgid "Answer question not active" +msgstr "" + +#: src/Controller/Front/AnswerController.php:41 +#: src/Controller/Front/QuestionController.php:33 msgid "The question not found." msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/AnswerController.php:65 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/AnswerController.php:95 +#: src/Controller/Front/AnswerController.php:54 +#: src/Controller/Front/AnswerController.php:101 #, php-format msgid "Answer to %s" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/AnswerController.php:83 +#: src/Controller/Front/AnswerController.php:89 msgid "" "Your new answer to this question save successfully, and show under question" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/AnswerController.php:85 +#: src/Controller/Front/AnswerController.php:91 msgid "" "Your new answer to this question save successfully, But it need review and " "publish by website admin" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/IndexController.php:69 -msgid "Ask index seo title" +#: src/Controller/Front/IndexController.php:35 +msgid "List of all projects" +msgstr "" + +#: src/Controller/Front/IndexController.php:53 +#: src/Controller/Front/ProjectController.php:55 +msgid "List of all questions" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/IndexController.php:70 -msgid "ask index seo description" +#: src/Controller/Front/ProjectController.php:34 +#: src/Controller/Front/SubmitController.php:45 +msgid "Project not set." msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/IndexController.php:71 -msgid "ask index seo keywords" +#: src/Controller/Front/SubmitController.php:34 +msgid "Ask question not active" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/SubmitController.php:64 +#: src/Controller/Front/SubmitController.php:51 +msgid "Please select project for ask question" +msgstr "" + +#: src/Controller/Front/SubmitController.php:104 msgid "Your ask new question successfully, Other users can view and answer it" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/SubmitController.php:66 +#: src/Controller/Front/SubmitController.php:106 msgid "" "Your ask new question successfully, But it need review and publish by " "website admin" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/SubmitController.php:73 -msgid "Ask a new Question" +#: src/Controller/Front/SubmitController.php:118 +#, php-format +msgid "Ask a new Question on %s project" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/TagController.php:37 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/TagController.php:54 -msgid "The tag not found." +#: src/Controller/Front/TagController.php:29 +msgid "Tag module not installed." msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/TagController.php:96 -msgid "Back to question list" +#: src/Controller/Front/TagController.php:61 +#, php-format +msgid "All questions from %s" +msgstr "" + +#: src/Controller/Front/TagController.php:102 +msgid "List of all used tags" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/AnswerForm.php:48 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:31 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/front/question_index.phtml:28 +#: src/Form/AnswerForm.php:49 template/admin/question-index.phtml:32 +#: template/front/question-index.phtml:104 +#: template/front/question-index.phtml:108 +#: template/front/question-list.phtml:73 msgid "Answer" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/AnswerForm.php:62 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/AskForm.php:80 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/UpdateForm.php:80 +#: src/Form/AnswerForm.php:63 src/Form/AskForm.php:107 +#: src/Form/ProjectForm.php:180 src/Form/UpdateForm.php:81 msgid "Submit" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/AskForm.php:42 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/UpdateForm.php:42 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:14 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_update.phtml:3 +#: src/Form/AskForm.php:42 src/Form/ProjectForm.php:42 +#: src/Form/UpdateForm.php:42 template/admin/project-index.phtml:8 +#: template/admin/question-index.phtml:15 +#: template/admin/question-update.phtml:3 msgid "Title" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/AskForm.php:53 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:28 +#: src/Form/AskForm.php:53 src/Form/UpdateForm.php:53 +#: template/admin/question-index.phtml:29 msgid "Question" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/AskForm.php:67 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/UpdateForm.php:67 +#: src/Form/AskForm.php:67 src/Form/ProjectForm.php:78 +msgid "Main image" +msgstr "" + +#: src/Form/AskForm.php:94 src/Form/UpdateForm.php:68 msgid "Tags" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/UpdateForm.php:53 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_update.phtml:5 -msgid "Content" +#: src/Form/AskForm.php:98 src/Form/UpdateForm.php:72 +msgid "Use `|` as delimiter to separate tag terms" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:10 -msgid "List of questions and answers" +#: src/Form/ProjectForm.php:53 +msgid "slug" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:13 -msgid "ID" +#: src/Form/ProjectForm.php:57 +msgid "Used on URL value : must be unique, short, and user oriented" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:15 -msgid "Type" +#: src/Form/ProjectForm.php:64 template/admin/question-update.phtml:5 +msgid "Description" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:16 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_update.phtml:6 -msgid "Create" +#: src/Form/ProjectForm.php:91 +msgid "Additional images" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:17 -msgid "Action" +#: src/Form/ProjectForm.php:104 +msgid "Status" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:49 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:74 -msgid "Reject" +#: src/Form/ProjectForm.php:106 template/admin/project-index.phtml:34 +#: template/admin/question-index.phtml:62 +msgid "Published" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:51 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:79 -msgid "Accept" +#: src/Form/ProjectForm.php:107 template/admin/project-index.phtml:35 +#: template/admin/question-index.phtml:63 +msgid "Pending review" +msgstr "" + +#: src/Form/ProjectForm.php:108 +msgid "Draft" +msgstr "" + +#: src/Form/ProjectForm.php:109 +msgid "Private" +msgstr "" + +#: src/Form/ProjectForm.php:110 +msgid "Remove" +msgstr "" + +#: src/Form/ProjectForm.php:121 +msgid "Manager" +msgstr "" + +#: src/Form/ProjectForm.php:125 +msgid "Project manager user id" +msgstr "" + +#: src/Form/ProjectForm.php:133 +msgid "SEO options" +msgstr "" + +#: src/Form/ProjectForm.php:140 +msgid "Meta Title" +msgstr "" + +#: src/Form/ProjectForm.php:146 +msgid "" +"Displayed in search Engine result pages as Title : between 10 to 70 " +"character. If empty, will be popuated automaticaly by main title value" +msgstr "" + +#: src/Form/ProjectForm.php:153 +msgid "Meta Keywords" +msgstr "" + +#: src/Form/ProjectForm.php:159 +msgid "" +"Not used anymore by search engines : between 5 to 12 words / left it empty, " +"it will be automaticaly populated with main title values" +msgstr "" + +#: src/Form/ProjectForm.php:166 +msgid "Meta Description" +msgstr "" + +#: src/Form/ProjectForm.php:172 +msgid "" +"Displayed in search Engine result pages : quick summary to incitate user to " +"click, between 80 to 160 character" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:53 +#: template/admin/project-index.phtml:4 +msgid "List of projects" +msgstr "" + +#: template/admin/project-index.phtml:7 template/admin/question-index.phtml:14 +msgid "ID" +msgstr "" + +#: template/admin/project-index.phtml:9 template/admin/question-index.phtml:18 +msgid "Action" +msgstr "" + +#: template/admin/project-index.phtml:25 template/front/question-list.phtml:78 +msgid "View" +msgstr "" + +#: template/admin/project-index.phtml:26 template/admin/project-index.phtml:28 +#: template/admin/question-index.phtml:54 msgid "Edit" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:54 -msgid "Delete" +#: template/admin/project-index.phtml:39 +msgid "No project create yet" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:61 -msgid "Published" +#: template/admin/question-index.phtml:11 +msgid "List of questions and answers" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:62 -msgid "Pending review" +#: template/admin/question-index.phtml:16 +msgid "Type" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:68 +#: template/admin/question-index.phtml:17 +#: template/admin/question-update.phtml:6 +msgid "Create" +msgstr "" + +#: template/admin/question-index.phtml:50 +#: template/admin/question-index.phtml:78 +msgid "Reject" +msgstr "" + +#: template/admin/question-index.phtml:52 +#: template/admin/question-index.phtml:83 +msgid "Accept" +msgstr "" + +#: template/admin/question-index.phtml:55 +msgid "Delete" +msgstr "" + +#: template/admin/question-index.phtml:66 +msgid "No question submit yet" +msgstr "" + +#: template/admin/question-index.phtml:72 msgid "Accept in process" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_update.phtml:4 +#: template/admin/question-update.phtml:4 msgid "Slug" msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/front/question_list.phtml:3 +#: template/front/answer-index.phtml:19 template/front/question-index.phtml:27 +#: template/front/question-index.phtml:82 +msgid "Time" +msgstr "" + +#: template/front/answer-index.phtml:20 template/front/question-index.phtml:28 +msgid "Read" +msgstr "" + +#: template/front/answer-index.phtml:20 template/front/question-index.phtml:28 +msgid "Times" +msgstr "" + +#: template/front/question-index.phtml:13 +#: template/front/question-index.phtml:76 +msgid "View profile" +msgstr "" + +#: template/front/question-index.phtml:62 +msgid "Answers" +msgstr "" + +#: template/front/question-list.phtml:20 +msgid "Contact to manager" +msgstr "" + +#: template/front/question-list.phtml:34 template/front/question-list.phtml:38 +#: template/front/question-list.phtml:53 template/front/question-list.phtml:56 msgid "Ask question" msgstr "" + +#: template/front/question-list.phtml:63 +msgid "List of questions" +msgstr "" + +#: template/front/question-list.phtml:84 +msgid "Vote" +msgstr "" + +#: template/front/question-list.phtml:100 +msgid "On" +msgstr "" + +#: template/front/question-list.phtml:102 +msgid "By" +msgstr "" + +#: template/front/submit-index.phtml:11 +msgid "Roles to ask question" +msgstr "" + +#: template/front/submit-index.phtml:13 +msgid "Please check website roles before ask question" +msgstr "" + +#: template/front/submit-index.phtml:14 +msgid "Please dont submit duplicate question" +msgstr "" + +#: template/front/submit-index.phtml:15 +msgid "All questions will review by admin or project manager" +msgstr "" + +#: template/front/tag_list.phtml:18 +msgid "" +"No keyword has been used as tag on this part yet. please check this page " +"later" +msgstr "" diff --git a/locale/fa/admin.mo b/locale/fa/admin.mo index 790b0c8..7f7c27f 100644 Binary files a/locale/fa/admin.mo and b/locale/fa/admin.mo differ diff --git a/locale/fa/admin.po b/locale/fa/admin.po index b25f5cc..8d7de1e 100644 --- a/locale/fa/admin.po +++ b/locale/fa/admin.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: 2015-03-30 11:04+0330\n" +"POT-Creation-Date: 2017-08-06 12:07+0430\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" @@ -9,132 +9,146 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.7.5\n" +"X-Generator: Poedit 1.8.12\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-KeywordsList: _a;_t\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: /var/www/html/local/pi/pi-2.5.0/usr/module/ask\n" +"X-Poedit-Basepath: ../..\n" +"X-Poedit-SearchPath-0: .\n" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:16 +#: config/config.php:16 msgid "Admin" msgstr "مدیریت" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:20 +#: config/config.php:20 msgid "Show" msgstr "نمایش" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:24 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/page.php:42 +#: config/config.php:24 config/page.php:53 msgid "Question" msgstr "سوال" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:28 +#: config/config.php:28 +msgid "Project" +msgstr "پروژه" + +#: config/config.php:32 msgid "Feed" msgstr "خوراک" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:32 +#: config/config.php:36 msgid "Vote" msgstr "رای" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:40 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:49 +#: config/config.php:44 config/config.php:53 msgid "Perpage" msgstr "تعداد هر هر صفحه" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:50 +#: config/config.php:54 msgid "Number of questions in each page" msgstr "تعداد سوالات در هر صفحه" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:57 +#: config/config.php:61 msgid "Show information" msgstr "نمایش اطلاعات" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:65 +#: config/config.php:69 msgid "Tags" msgstr "برچسب ها" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:66 +#: config/config.php:70 msgid "Number of tags in tag controller" msgstr "تعداد برچسب ها" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:73 +#: config/config.php:77 msgid "Show breadcrumbs" msgstr "نمایش ناوبری" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:82 +#: config/config.php:86 +msgid "Active project system" +msgstr "فعال کردن سیستم پروژه" + +#: config/config.php:95 msgid "Can ask" msgstr "امکان پرسیدن سوال" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:90 +#: config/config.php:103 msgid "Can answer" msgstr "امکان پاسخ به سوال" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:97 +#: config/config.php:110 msgid "Automatic approval" msgstr "تایید خودکار" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:103 +#: config/config.php:116 msgid "All questions and answers need admin review before publish" msgstr "تمام سوالات و پاسخ خا به تایید مدیر برای انتشار نیاز دارند" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:104 +#: config/config.php:117 msgid "Automatic approval all questions and answers" msgstr "تایید خودکار پرسش و پاسخ های ارسالی" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:115 +#: config/config.php:128 msgid "Show feed icon" msgstr "نمایش آیکن خوارک" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:123 +#: config/config.php:136 msgid "Feed number" msgstr "تعداد خوراک" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/config.php:132 +#: config/config.php:145 msgid "Use vote system" msgstr "استفاده از سیستم رای" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/module.php:15 +#: config/module.php:15 msgid "Ask" msgstr "پرسش و پاسخ" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/module.php:16 +#: config/module.php:16 msgid "Ask and Answer" msgstr "سیستم ارسال پرسش و درج پاسخ" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/navigation.php:16 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/page.php:17 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/permission.php:39 +#: config/navigation.php:16 config/page.php:17 config/permission.php:39 msgid "List of Questions" msgstr "فهرست سوالات" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/navigation.php:26 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/page.php:22 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/permission.php:45 +#: config/navigation.php:26 config/navigation.php:36 config/page.php:22 +#: config/permission.php:45 +msgid "projects" +msgstr "پروژه ها" + +#: config/navigation.php:46 +msgid "New project" +msgstr "پروژه جدید" + +#: config/navigation.php:58 config/page.php:27 config/permission.php:51 msgid "Tools" msgstr "ابزار" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/page.php:30 +#: config/page.php:35 msgid "Index page" msgstr "صفحه اول" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/page.php:36 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/permission.php:30 +#: config/page.php:41 +msgid "Project page" +msgstr "صفحه پروژه" + +#: config/page.php:47 config/permission.php:30 msgid "Answer" msgstr "پاسخ" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/page.php:48 +#: config/page.php:59 msgid "Submit question" msgstr "ارسال سوال" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/page.php:54 +#: config/page.php:65 msgid "Tag" msgstr "برچسب" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/permission.php:17 +#: config/permission.php:17 msgid "Global public resource" msgstr "دسترسی های عمومی" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/config/permission.php:24 +#: config/permission.php:24 msgid "Submit" msgstr "ارسال" diff --git a/locale/fa/default.mo b/locale/fa/default.mo index ac708da..82f559d 100644 Binary files a/locale/fa/default.mo and b/locale/fa/default.mo differ diff --git a/locale/fa/default.po b/locale/fa/default.po index 91cb987..1a09acb 100644 --- a/locale/fa/default.po +++ b/locale/fa/default.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: 2015-03-30 11:09+0330\n" +"POT-Creation-Date: 2017-08-06 12:09+0430\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" @@ -9,79 +9,85 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.7.5\n" +"X-Generator: Poedit 1.8.12\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-KeywordsList: __;_e\n" -"X-Poedit-Basepath: .\n" -"X-Poedit-SearchPath-0: /var/www/html/local/pi/pi-2.5.0/usr/module/ask\n" +"X-Poedit-Basepath: ../..\n" +"X-Poedit-SearchPath-0: .\n" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Api/Breadcrumbs.php:55 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Api/Breadcrumbs.php:66 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/front/tag_list.phtml:4 +#: src/Api/Breadcrumbs.php:66 src/Api/Breadcrumbs.php:77 +#: template/front/tag_list.phtml:4 msgid "Tag list" msgstr "فهرست برچسب ها" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Api/Breadcrumbs.php:93 +#: src/Api/Breadcrumbs.php:118 msgid "Answer to question" msgstr "پاسخ به سوال" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Api/Breadcrumbs.php:103 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/SubmitController.php:91 +#: src/Api/Breadcrumbs.php:135 src/Controller/Front/SubmitController.php:120 msgid "Ask a new Question" msgstr "پرسیدن سوال جدید" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Admin/QuestionController.php:86 +#: src/Controller/Admin/ProjectController.php:89 +msgid "Project data saved successfully." +msgstr "اطلاعات پروژه با موفقیت ذخیره شد" + +#: src/Controller/Admin/ProjectController.php:101 +msgid "Add project" +msgstr "پروژه جدید" + +#: src/Controller/Admin/QuestionController.php:85 #, php-format msgid "%s question accept successfully" msgstr "%s با موفقیت تایید شد" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Admin/QuestionController.php:91 +#: src/Controller/Admin/QuestionController.php:90 #, php-format msgid "Error in accept %s question" msgstr "خطا در تایید %s" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Admin/QuestionController.php:97 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Admin/QuestionController.php:186 +#: src/Controller/Admin/QuestionController.php:96 +#: src/Controller/Admin/QuestionController.php:185 msgid "Please select question" msgstr "لطفا یک سوال انتخاب کنید" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Admin/QuestionController.php:155 +#: src/Controller/Admin/QuestionController.php:154 msgid "Your selected item edit successfully" msgstr "آیتم انتخابی شما با موفقیت ویرایش شد" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Admin/QuestionController.php:184 +#: src/Controller/Admin/QuestionController.php:183 msgid "Your selected question deleted" msgstr "سوال انتخابی شما حذف شد" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Feed/IndexController.php:25 +#: src/Controller/Feed/IndexController.php:25 msgid "Ask feed" msgstr "خوراک سوالات" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Feed/IndexController.php:26 +#: src/Controller/Feed/IndexController.php:26 msgid "Recent Questions." msgstr "آخرین سوالات ارسال شده" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/AnswerController.php:33 +#: src/Controller/Front/AnswerController.php:33 msgid "Answer question not active" msgstr "امکان پاسخ به سوال فعال نیست" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/AnswerController.php:41 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/QuestionController.php:33 +#: src/Controller/Front/AnswerController.php:41 +#: src/Controller/Front/QuestionController.php:33 msgid "The question not found." msgstr "سوال یافت نشد" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/AnswerController.php:54 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/AnswerController.php:97 +#: src/Controller/Front/AnswerController.php:54 +#: src/Controller/Front/AnswerController.php:99 #, php-format msgid "Answer to %s" msgstr "پاسخ به %s" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/AnswerController.php:85 +#: src/Controller/Front/AnswerController.php:87 msgid "" "Your new answer to this question save successfully, and show under question" msgstr "پاسخ شما به این پرسش با موفقیت ثبت شد، و در زیر سوال نمایش داده می شود" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/AnswerController.php:87 +#: src/Controller/Front/AnswerController.php:89 msgid "" "Your new answer to this question save successfully, But it need review and " "publish by website admin" @@ -89,20 +95,34 @@ msgstr "" "پاسخ شما به این پرسش با موفقیت ثبت شد، بعد از بررسی و تایید مدیر نمایش داده " "می شود" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/IndexController.php:44 +#: src/Controller/Front/IndexController.php:35 +msgid "List of all projects" +msgstr "فهرست پروژه ها" + +#: src/Controller/Front/IndexController.php:53 +#: src/Controller/Front/ProjectController.php:55 msgid "List of all questions" msgstr "فهرست تمام سوالات" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/SubmitController.php:33 +#: src/Controller/Front/ProjectController.php:34 +#: src/Controller/Front/SubmitController.php:45 +msgid "Project not set." +msgstr "پروژه تنظیم نشده است" + +#: src/Controller/Front/SubmitController.php:34 msgid "Ask question not active" msgstr "امکان پرسیدن سوال فعال نیست" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/SubmitController.php:82 +#: src/Controller/Front/SubmitController.php:51 +msgid "Please select project for ask question" +msgstr "لطفا یک پروژه برای ارسال سوال انتخاب نمایید" + +#: src/Controller/Front/SubmitController.php:104 msgid "Your ask new question successfully, Other users can view and answer it" msgstr "" "پرسش شما با موفقیت ارسال شد، کاربران دیگر می توانند آن را بخوانند و پاسخ دهند" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/SubmitController.php:84 +#: src/Controller/Front/SubmitController.php:106 msgid "" "Your ask new question successfully, But it need review and publish by " "website admin" @@ -110,142 +130,272 @@ msgstr "" "پرسش شما با موفقیت ارسال شد، بعد از بررسی و تایید مدیر در وب سایت منتشر می " "شود" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/TagController.php:29 +#: src/Controller/Front/SubmitController.php:118 +#, php-format +msgid "Ask a new Question on %s project" +msgstr "ارسال سوال جدید در پروژه %s" + +#: src/Controller/Front/TagController.php:29 msgid "Tag module not installed." msgstr "ماژول برچسب نصب نشده است" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/TagController.php:36 -msgid "The tag not set." -msgstr "برچسب یافت نشد" - -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/TagController.php:47 -msgid "The tag not found." -msgstr "برچسب یافت نشد" - -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/TagController.php:61 +#: src/Controller/Front/TagController.php:61 #, php-format msgid "All questions from %s" msgstr "همه سوالات در مورد %s" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Controller/Front/TagController.php:102 +#: src/Controller/Front/TagController.php:102 msgid "List of all used tags" msgstr "فهرست تمام برچسب های استفاده شده" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/AnswerForm.php:48 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:32 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/front/question_index.phtml:44 +#: src/Form/AnswerForm.php:49 template/admin/question-index.phtml:32 +#: template/front/question-index.phtml:104 +#: template/front/question-index.phtml:108 +#: template/front/question-list.phtml:73 msgid "Answer" msgstr "پاسخ" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/AnswerForm.php:62 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/AskForm.php:81 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/UpdateForm.php:81 +#: src/Form/AnswerForm.php:63 src/Form/AskForm.php:107 +#: src/Form/ProjectForm.php:180 src/Form/UpdateForm.php:81 msgid "Submit" msgstr "ارسال" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/AskForm.php:42 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/UpdateForm.php:42 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:15 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_update.phtml:3 +#: src/Form/AskForm.php:42 src/Form/ProjectForm.php:42 +#: src/Form/UpdateForm.php:42 template/admin/project-index.phtml:8 +#: template/admin/question-index.phtml:15 +#: template/admin/question-update.phtml:3 msgid "Title" msgstr "عنوان" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/AskForm.php:53 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/UpdateForm.php:53 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:29 +#: src/Form/AskForm.php:53 src/Form/UpdateForm.php:53 +#: template/admin/question-index.phtml:29 msgid "Question" msgstr "سوال" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/AskForm.php:68 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/UpdateForm.php:68 +#: src/Form/AskForm.php:67 src/Form/ProjectForm.php:78 +msgid "Main image" +msgstr "تصویر اصلی" + +#: src/Form/AskForm.php:94 src/Form/UpdateForm.php:68 msgid "Tags" msgstr "برچسب ها" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/AskForm.php:72 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/src/Form/UpdateForm.php:72 +#: src/Form/AskForm.php:98 src/Form/UpdateForm.php:72 msgid "Use `|` as delimiter to separate tag terms" msgstr "با استفاده از `|` کلمات را از هم جدا کنید" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:11 -msgid "List of questions and answers" -msgstr "فهرست سوالات و پاسخ ها" +#: src/Form/ProjectForm.php:53 +msgid "slug" +msgstr "اسلاگ" + +#: src/Form/ProjectForm.php:57 +msgid "Used on URL value : must be unique, short, and user oriented" +msgstr "در آدرس URL صفحه استفاده می شود، باید یکتا، کوتاه و مفید باشد" + +#: src/Form/ProjectForm.php:64 template/admin/question-update.phtml:5 +msgid "Description" +msgstr "توضیحات" + +#: src/Form/ProjectForm.php:91 +msgid "Additional images" +msgstr "تصاویر اضافی" + +#: src/Form/ProjectForm.php:104 +msgid "Status" +msgstr "وضعیت" + +#: src/Form/ProjectForm.php:106 template/admin/project-index.phtml:34 +#: template/admin/question-index.phtml:62 +msgid "Published" +msgstr "منتشر شده" + +#: src/Form/ProjectForm.php:107 template/admin/project-index.phtml:35 +#: template/admin/question-index.phtml:63 +msgid "Pending review" +msgstr "در انتظار تایید" + +#: src/Form/ProjectForm.php:108 +msgid "Draft" +msgstr "پیش نویس" + +#: src/Form/ProjectForm.php:109 +msgid "Private" +msgstr "خصوصی" + +#: src/Form/ProjectForm.php:110 +msgid "Remove" +msgstr "حذف شده" + +#: src/Form/ProjectForm.php:121 +msgid "Manager" +msgstr "مدیر" + +#: src/Form/ProjectForm.php:125 +msgid "Project manager user id" +msgstr "شناسه کاربری مدیر پروژه" + +#: src/Form/ProjectForm.php:133 +msgid "SEO options" +msgstr "گزینه های سئو" + +#: src/Form/ProjectForm.php:140 +msgid "Meta Title" +msgstr "عنوان متا ( Meta Title )" + +#: src/Form/ProjectForm.php:146 +msgid "" +"Displayed in search Engine result pages as Title : between 10 to 70 " +"character. If empty, will be popuated automaticaly by main title value" +msgstr "" + +#: src/Form/ProjectForm.php:153 +msgid "Meta Keywords" +msgstr "کلمات کلیدی متا ( Meta Keywords )" + +#: src/Form/ProjectForm.php:159 +msgid "" +"Not used anymore by search engines : between 5 to 12 words / left it empty, " +"it will be automaticaly populated with main title values" +msgstr "" + +#: src/Form/ProjectForm.php:166 +msgid "Meta Description" +msgstr "توضیحات متا (Meta Keywords )" + +#: src/Form/ProjectForm.php:172 +msgid "" +"Displayed in search Engine result pages : quick summary to incitate user to " +"click, between 80 to 160 character" +msgstr "" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:14 +#: template/admin/project-index.phtml:4 +msgid "List of projects" +msgstr "فهرست پروژه ها" + +#: template/admin/project-index.phtml:7 template/admin/question-index.phtml:14 msgid "ID" msgstr "شناسه" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:16 +#: template/admin/project-index.phtml:9 template/admin/question-index.phtml:18 +msgid "Action" +msgstr "عملکرد" + +#: template/admin/project-index.phtml:25 template/front/question-list.phtml:78 +msgid "View" +msgstr "نمایش" + +#: template/admin/project-index.phtml:26 template/admin/project-index.phtml:28 +#: template/admin/question-index.phtml:54 +msgid "Edit" +msgstr "ویرایش" + +#: template/admin/project-index.phtml:39 +msgid "No project create yet" +msgstr "هنوز هیچ پروژه ای ایجاد نشده است" + +#: template/admin/question-index.phtml:11 +msgid "List of questions and answers" +msgstr "فهرست سوالات و پاسخ ها" + +#: template/admin/question-index.phtml:16 msgid "Type" msgstr "نوع" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:17 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_update.phtml:6 +#: template/admin/question-index.phtml:17 +#: template/admin/question-update.phtml:6 msgid "Create" msgstr "ایجاد" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:18 -msgid "Action" -msgstr "عملکرد" - -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:50 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:78 +#: template/admin/question-index.phtml:50 +#: template/admin/question-index.phtml:78 msgid "Reject" msgstr "رد کردن" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:52 -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:83 +#: template/admin/question-index.phtml:52 +#: template/admin/question-index.phtml:83 msgid "Accept" msgstr "تایید" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:54 -msgid "Edit" -msgstr "ویرایش" - -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:55 +#: template/admin/question-index.phtml:55 msgid "Delete" msgstr "حذف" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:62 -msgid "Published" -msgstr "منتشر شده" - -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:63 -msgid "Pending review" -msgstr "در انتظار تایید" - -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:66 +#: template/admin/question-index.phtml:66 msgid "No question submit yet" msgstr "هنوز هیچ سوالی ارسال نشده است" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_index.phtml:72 +#: template/admin/question-index.phtml:72 msgid "Accept in process" msgstr "تایید در حال انجام است" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_update.phtml:4 +#: template/admin/question-update.phtml:4 msgid "Slug" msgstr "اسلاگ" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/admin/question_update.phtml:5 -msgid "Content" -msgstr "متن" - -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/front/question_index.phtml:10 +#: template/front/answer-index.phtml:19 template/front/question-index.phtml:27 +#: template/front/question-index.phtml:82 msgid "Time" msgstr "زمان ارسال" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/front/question_index.phtml:11 +#: template/front/answer-index.phtml:20 template/front/question-index.phtml:28 msgid "Read" msgstr "نمایش" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/front/question_index.phtml:11 +#: template/front/answer-index.phtml:20 template/front/question-index.phtml:28 msgid "Times" msgstr "بار" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/front/question_list.phtml:7 +#: template/front/question-index.phtml:13 +#: template/front/question-index.phtml:76 +msgid "View profile" +msgstr "نمایش پروفایل" + +#: template/front/question-index.phtml:62 +msgid "Answers" +msgstr "فهرست پاسخ ها" + +#: template/front/question-list.phtml:20 +msgid "Contact to manager" +msgstr "تماس با مدیر پروژه" + +#: template/front/question-list.phtml:34 template/front/question-list.phtml:38 +#: template/front/question-list.phtml:53 template/front/question-list.phtml:56 msgid "Ask question" msgstr "پرسیدن سوال" -#: /var/www/html/local/pi/pi-2.5.0/usr/module/ask/template/front/tag_list.phtml:18 +#: template/front/question-list.phtml:63 +msgid "List of questions" +msgstr "فهرست سوالات" + +#: template/front/question-list.phtml:84 +msgid "Vote" +msgstr "رای" + +#: template/front/question-list.phtml:100 +msgid "On" +msgstr "در" + +#: template/front/question-list.phtml:102 +msgid "By" +msgstr "به وسیله" + +#: template/front/submit-index.phtml:11 +msgid "Roles to ask question" +msgstr "قوانی ارسال سوال" + +#: template/front/submit-index.phtml:13 +msgid "Please check website roles before ask question" +msgstr "لطفا قوانین وب سایت را مطالعه بفرمایید" + +#: template/front/submit-index.phtml:14 +msgid "Please dont submit duplicate question" +msgstr "لطفا سوال تکراری ارسال نفرمایید" + +#: template/front/submit-index.phtml:15 +msgid "All questions will review by admin or project manager" +msgstr "تمام سوالات توسط مدیر وب سایت یا مدیر پروژه بررسی می شود" + +#: template/front/tag_list.phtml:18 msgid "" "No keyword has been used as tag on this part yet. please check this page " "later" @@ -253,6 +403,15 @@ msgstr "" "هیچ اطلاعاتی از کلمات کلیدی به عنوان برچسب هنوز در سیستم درج نشده است. لطفا " "بعدا از این صفحه را بررسی فرمایید. " +#~ msgid "The tag not set." +#~ msgstr "برچسب یافت نشد" + +#~ msgid "The tag not found." +#~ msgstr "برچسب یافت نشد" + +#~ msgid "Content" +#~ msgstr "متن" + #~ msgid "Ask index seo title" #~ msgstr "فهرست پرسش و پاسخ های ارسالی" @@ -280,9 +439,6 @@ msgstr "" #~ msgid "Feed" #~ msgstr "خوراک" -#~ msgid "Vote" -#~ msgstr "رای" - #~ msgid "Perpage" #~ msgstr "تعداد هر هر صفحه" diff --git a/src/Api/Breadcrumbs.php b/src/Api/Breadcrumbs.php index 295e382..068948d 100644 --- a/src/Api/Breadcrumbs.php +++ b/src/Api/Breadcrumbs.php @@ -44,6 +44,17 @@ public function load() ); break; + case 'project': + $project = Pi::api('project', 'ask')->getProject($params['slug'], 'slug'); + $result[] = array( + 'href' => $moduleData['moduleUrl'], + 'label' => $moduleData['title'], + ); + $result[] = array( + 'label' => $project['title'], + ); + break; + case 'tag': $result[] = array( 'href' => $moduleData['moduleUrl'], @@ -74,6 +85,13 @@ public function load() 'href' => $moduleData['moduleUrl'], 'label' => $moduleData['title'], ); + if ($question['project_id'] > 0) { + $project = Pi::api('project', 'ask')->getProject($question['project_id']); + $result[] = array( + 'href' => $project['projectUrl'], + 'label' => $project['title'], + ); + } $result[] = array( 'label' => $question['title'], ); @@ -85,9 +103,16 @@ public function load() 'href' => $moduleData['moduleUrl'], 'label' => $moduleData['title'], ); + if ($question['project_id'] > 0) { + $project = Pi::api('project', 'ask')->getProject($question['project_id']); + $result[] = array( + 'href' => $project['projectUrl'], + 'label' => $project['title'], + ); + } $result[] = array( 'href' => $question['questionUrl'], - 'label' => $question['title'], + 'label' => mb_substr(strip_tags($question['title']), 0, 50, 'utf-8' ) . "...", ); $result[] = array( 'label' => __('Answer to question'), @@ -99,6 +124,13 @@ public function load() 'href' => $moduleData['moduleUrl'], 'label' => $moduleData['title'], ); + if (!empty($params['slug'])) { + $project = Pi::api('project', 'ask')->getProject($params['slug'], 'slug'); + $result[] = array( + 'href' => $project['projectUrl'], + 'label' => $project['title'], + ); + } $result[] = array( 'label' => __('Ask a new Question'), ); diff --git a/src/Api/Project.php b/src/Api/Project.php index f2c3202..9e88d81 100644 --- a/src/Api/Project.php +++ b/src/Api/Project.php @@ -63,6 +63,19 @@ public function canonizeProject($project) 'controller' => 'project', 'slug' => $project['slug'], ))); + // Set project manager + if ($project['manager'] > 0) { + $project['user'] = Pi::user()->get($project['manager'], array( + 'id', 'identity', 'name', 'email' + )); + $project['user']['avatar'] = Pi::service('user')->avatar($project['user']['id'], 'large', array( + 'alt' => $project['user']['name'], + 'class' => 'img-responsive img-circle', + )); + $project['user']['profileUrl'] = Pi::url(Pi::service('user')->getUrl('profile', array( + 'id' => $project['user']['id'], + ))); + } // return question return $project; } diff --git a/src/Api/Question.php b/src/Api/Question.php index 8d35ba4..111da4a 100644 --- a/src/Api/Question.php +++ b/src/Api/Question.php @@ -76,18 +76,18 @@ public function canonizeQuestion($question) $question['user'] = Pi::user()->get($question['uid'], array( 'id', 'identity', 'name', 'email' )); - /* $question['user']['avatar'] = Pi::service('user')->avatar($question['user']['id'], 'large', array( + $question['user']['avatar'] = Pi::service('user')->avatar($question['user']['id'], 'large', array( 'alt' => $question['user']['name'], - 'class' => 'img-circle', + 'class' => 'img-responsive img-circle', )); $question['user']['profileUrl'] = Pi::url(Pi::service('user')->getUrl('profile', array( 'id' => $question['user']['id'], - ))); */ + ))); // Set info for Q and A switch ($question['type']) { case 'Q': // Set text_description - $question['text_description'] = Pi::service('markup')->render($question['text_description'], 'html', 'html'); + $question['text_description'] = Pi::service('markup')->render($question['text_description'], 'html', 'text'); // Set question url $question['questionUrl'] = Pi::url(Pi::service('url')->assemble('ask', array( 'module' => $this->getModule(), diff --git a/src/Controller/Front/AnswerController.php b/src/Controller/Front/AnswerController.php index 71fd844..017b31d 100644 --- a/src/Controller/Front/AnswerController.php +++ b/src/Controller/Front/AnswerController.php @@ -59,7 +59,6 @@ public function indexAction() $filter = new Filter\Slug; $slug = sprintf('%s-%s', $values['title'], _date($values['time_create'])); $values['slug'] = $filter($slug); - // Set seo_title $filter = new Filter\HeadTitle; $values['seo_title'] = $filter($values['title']); @@ -77,7 +76,10 @@ public function indexAction() $values['status'] = $this->config('auto_approval'); $values['type'] = 'A'; // Update answer - $this->getModel('question')->update(array('answer' => $question['answer'] + 1), array('id' => $question['id'])); + $this->getModel('question')->update( + array('answer' => $question['answer'] + 1), + array('id' => $question['id']) + ); // Save values $row = $this->getModel('question')->createRow(); $row->assign($values); @@ -107,9 +109,10 @@ public function indexAction() $this->view()->headTitle($title); $this->view()->headDescription($title, 'set'); $this->view()->headKeywords($seoKeywords, 'set'); - $this->view()->setTemplate('answer_index'); + $this->view()->setTemplate('answer-index'); $this->view()->assign('form', $form); $this->view()->assign('title', $title); $this->view()->assign('question', $question); + $this->view()->assign('config', $config); } } \ No newline at end of file diff --git a/src/Controller/Front/QuestionController.php b/src/Controller/Front/QuestionController.php index c792592..bdea648 100644 --- a/src/Controller/Front/QuestionController.php +++ b/src/Controller/Front/QuestionController.php @@ -34,19 +34,25 @@ public function indexAction() } // Update Hits $this->getModel('question')->increment('hits', array('id' => $question['id'])); - // Update Hits - $this->getModel('question')->update(array('hits' => $question['hits'] + 1), array('id' => $question['id'])); // Set vote - if (Pi::service('module')->isActive('vote')) { - $vote = array( + if (Pi::service('module')->isActive('vote') && $config['vote_bar']) { + $question['vote'] = array( 'point' => $question['point'], 'count' => $question['count'], 'item' => $question['id'], 'table' => 'question', 'module' => $module, 'type' => 'plus', + 'class' => 'btn-group-vertical', ); - $this->view()->assign('vote', $vote); + } + // Get project + $question['is_manager'] = false; + if ($question['project_id'] > 0) { + $question['project'] = Pi::api('project', 'ask')->getProject($question['project_id']); + if ($question['project']['user']['id'] == $question['user']['id']) { + $question['is_manager'] = true; + } } // Get answers if ($question['answer'] > 0) { @@ -57,7 +63,13 @@ public function indexAction() $rowset = $this->getModel('question')->selectWith($select); foreach ($rowset as $row) { $answers[$row->id] = Pi::api('question', 'ask')->canonizeQuestion($row); - if (Pi::service('module')->isActive('vote')) { + + $answers[$row->id]['is_manager'] = false; + if ($question['project']['user']['id'] == $answers[$row->id]['user']['id']) { + $answers[$row->id]['is_manager'] = true; + } + + if (Pi::service('module')->isActive('vote') && $config['vote_bar']) { $answers[$row->id]['vote'] = array( 'point' => $answers[$row->id]['point'], 'count' => $answers[$row->id]['count'], @@ -65,6 +77,7 @@ public function indexAction() 'table' => 'question', 'module' => $module, 'type' => 'plus', + 'class' => 'btn-group-vertical', ); } } @@ -74,7 +87,7 @@ public function indexAction() $this->view()->headTitle($question['seo_title']); $this->view()->headDescription($question['seo_keywords'], 'set'); $this->view()->headKeywords($question['seo_description'], 'set'); - $this->view()->setTemplate('question_index'); + $this->view()->setTemplate('question-index'); $this->view()->assign('question', $question); $this->view()->assign('config', $config); } diff --git a/src/Form/AskForm.php b/src/Form/AskForm.php index 0291f39..cb84b8d 100644 --- a/src/Form/AskForm.php +++ b/src/Form/AskForm.php @@ -51,11 +51,11 @@ public function init() 'name' => 'text_description', 'options' => array( 'label' => __('Question'), - 'editor' => 'html', - 'set' => '', ), 'attributes' => array( - 'type' => 'editor', + 'type' => 'textarea', + 'rows' => '10', + 'cols' => '40', 'description' => '', ) )); diff --git a/src/Form/ProjectForm.php b/src/Form/ProjectForm.php index 8e0abfc..cc295bd 100644 --- a/src/Form/ProjectForm.php +++ b/src/Form/ProjectForm.php @@ -54,7 +54,7 @@ public function init() ), 'attributes' => array( 'type' => 'text', - 'description' => __('Used as story URL value : must be unique, short, and user oriented'), + 'description' => __('Used on URL value : must be unique, short, and user oriented'), ) )); // text_description diff --git a/template/front/answer-index.phtml b/template/front/answer-index.phtml new file mode 100644 index 0000000..306bb1d --- /dev/null +++ b/template/front/answer-index.phtml @@ -0,0 +1,34 @@ +css($this->assetModule('css/front.css')); ?> +
+
+
+ +
+
+ +
+
+ +
+
+ + +
    +
  • : escape($question['time_create_view']); ?>
  • +
  • : escape($question['hits'])); ?>
  • +
+ +
+
+
+ +
+
+
+
+
+ form($form, 'vertical'); ?> +
+
\ No newline at end of file diff --git a/template/front/answer_index.phtml b/template/front/answer_index.phtml deleted file mode 100644 index 41e1db6..0000000 --- a/template/front/answer_index.phtml +++ /dev/null @@ -1,10 +0,0 @@ -css($this->assetModule('css/front.css')); ?> -
-
-

escape($title); ?>

-
- -
-
- form($form); ?> -
\ No newline at end of file diff --git a/template/front/project-list.phtml b/template/front/project-list.phtml index 426ae55..e4d8ed7 100644 --- a/template/front/project-list.phtml +++ b/template/front/project-list.phtml @@ -4,12 +4,26 @@

escape($title); ?>

-
- - - escape($project['title']); ?> - - -
+ +
+ +
+
\ No newline at end of file diff --git a/template/front/question-index.phtml b/template/front/question-index.phtml new file mode 100644 index 0000000..0fbf9d6 --- /dev/null +++ b/template/front/question-index.phtml @@ -0,0 +1,111 @@ +css($this->assetModule('css/front.css')); ?> +
+
+
+
+
+ +
+
+
escape($question['user']['name']); ?>
+
+ + + +
+
+
+ +
+
+ +
+
+ + +
    +
  • : escape($question['time_create_view']); ?>
  • +
  • : escape($question['hits'])); ?>
  • +
+ +
+
+ +
+ +
+ + + +
+
+
+ template('votebar', 'front', 'vote'); + } ?> +
+
+
+ + +
+ +
+
+
+
+ +
+
+
escape($answer['user']['name']); ?>
+
+ + + +
+
+
+
    +
  • : escape($answer['time_create_view']); ?>
  • +
+
+
+
+ +
+
+
+
+ template('votebar', 'front', 'vote'); + } ?> +
+
+
+ +
+ + +
+ +
+ +
\ No newline at end of file diff --git a/template/front/question-list.phtml b/template/front/question-list.phtml index 1658b6f..4a7c4e8 100644 --- a/template/front/question-list.phtml +++ b/template/front/question-list.phtml @@ -1,22 +1,50 @@ css($this->assetModule('css/front.css')); ?>
- - getSingleLinkUrl($project['main_image'])->thumb('thumbnail'); ?> +
+
@@ -56,7 +87,7 @@
-