diff --git a/lms/lms/utils.py b/lms/lms/utils.py index 3a2a693e..9a39b4a9 100644 --- a/lms/lms/utils.py +++ b/lms/lms/utils.py @@ -8,7 +8,6 @@ import requests from frappe import _ from frappe.desk.doctype.dashboard_chart.dashboard_chart import get_result from frappe.desk.doctype.notification_log.notification_log import make_notification_logs -from frappe.desk.search import get_user_groups from frappe.desk.notifications import extract_mentions from frappe.utils import ( add_months, @@ -20,7 +19,6 @@ from frappe.utils import ( format_date, get_datetime, getdate, - validate_phone_number, get_fullname, pretty_date, get_time_str, @@ -1390,6 +1388,13 @@ def get_batch_details(batch): batch_details.instructors = get_instructors(batch) batch_details.accept_enrollments = batch_details.start_date > getdate() + if ( + not batch_details.accept_enrollments + and batch_details.start_date == getdate() + and get_time_str(batch_details.start_time) > nowtime() + ): + batch_details.accept_enrollments = True + batch_details.courses = frappe.get_all( "Batch Course", filters={"parent": batch}, fields=["course", "title", "evaluator"] ) diff --git a/lms/locale/bs.po b/lms/locale/bs.po index 53f07632..175bec6f 100644 --- a/lms/locale/bs.po +++ b/lms/locale/bs.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: frappe\n" "Report-Msgid-Bugs-To: jannat@frappe.io\n" "POT-Creation-Date: 2025-04-11 16:04+0000\n" -"PO-Revision-Date: 2025-04-14 06:01\n" +"PO-Revision-Date: 2025-04-15 06:20\n" "Last-Translator: jannat@frappe.io\n" "Language-Team: Bosnian\n" "MIME-Version: 1.0\n" @@ -465,7 +465,7 @@ msgstr "Šablon Podnošenja Zadatka" #: frontend/src/pages/AssignmentSubmissionList.vue:223 msgid "Assignment Submissions" -msgstr "" +msgstr "Podnošenje Zadataka" #. Label of the assignment_title (Data) field in DocType 'LMS Assignment #. Submission' @@ -1671,7 +1671,7 @@ msgstr "Onemogući Samoučenje" #. Label of the disable_signup (Check) field in DocType 'LMS Settings' #: lms/lms/doctype/lms_settings/lms_settings.json msgid "Disable Signup" -msgstr "" +msgstr "Onemogući Prijavu" #. Label of the disabled (Check) field in DocType 'Job Opportunity' #: lms/job/doctype/job_opportunity/job_opportunity.json @@ -2400,7 +2400,7 @@ msgstr "Ikona" #. Label of the user_category (Check) field in DocType 'LMS Settings' #: lms/lms/doctype/lms_settings/lms_settings.json msgid "Identify User Persona" -msgstr "" +msgstr "Identificiraj Korisnika" #: frontend/src/components/LessonHelp.vue:11 msgid "If Include in Preview is enabled for a lesson then the lesson will also be accessible to non logged in users." @@ -2578,7 +2578,7 @@ msgstr "Nevažeći ID Kviza" #: lms/lms/doctype/course_lesson/course_lesson.py:33 msgid "Invalid Quiz ID in content" -msgstr "" +msgstr "Nevažeći ID Kviza" #. Label of the invite_code (Data) field in DocType 'Cohort Subgroup' #. Label of the invite_code (Data) field in DocType 'Invite Request' @@ -3610,7 +3610,7 @@ msgstr "Nema Uvoda" #: frontend/src/pages/Jobs.vue:80 msgid "No jobs found" -msgstr "" +msgstr "Nema pronađenih poslova" #: frontend/src/components/LiveClass.vue:71 msgid "No live classes scheduled" @@ -3626,7 +3626,7 @@ msgstr "Nije pronađen nijedan program" #: frontend/src/pages/QuizSubmissionList.vue:52 msgid "No quiz submissions found. Please check again later." -msgstr "" +msgstr "Nije pronađen nijedan podnešeni kviz. Provjeri ponovo kasnije." #: frontend/src/pages/Quizzes.vue:61 msgid "No quizzes found" @@ -4288,7 +4288,7 @@ msgstr "Članovi Programa" #: frontend/src/pages/Programs.vue:219 lms/www/lms.py:273 msgid "Programs" -msgstr "" +msgstr "Programi" #. Label of the progress (Float) field in DocType 'LMS Enrollment' #. Label of the progress (Int) field in DocType 'LMS Program Member' @@ -4652,7 +4652,7 @@ msgstr "SCORM Paket Put" #. Label of the seo_tab (Tab Break) field in DocType 'LMS Settings' #: lms/lms/doctype/lms_settings/lms_settings.json msgid "SEO" -msgstr "" +msgstr "SEO" #. Option for the 'Day' (Select) field in DocType 'Evaluator Schedule' #. Option for the 'Day' (Select) field in DocType 'LMS Certificate Request' @@ -5347,7 +5347,7 @@ msgstr "Nema kurseva koji odgovaraju kriterijumima. Pazite, nova iskustva učenj #: frontend/src/pages/Jobs.vue:84 msgid "There are no jobs available at the moment. Open a job opportunity or check here again later." -msgstr "" +msgstr "Trenutno nema slobodnih poslova. Otvori priliku za posao ili provjeri ovdje ponovo kasnije." #: frontend/src/pages/CertifiedParticipants.vue:92 msgid "There are no participants matching this criteria." @@ -5412,7 +5412,7 @@ msgstr "Ovaj kurs je besplatan." #. Settings' #: lms/lms/doctype/lms_settings/lms_settings.json msgid "This description will be shown on lists and pages without meta description" -msgstr "" +msgstr "Ovaj opis će biti prikazan na listama i stranicama bez meta opisa" #: frontend/src/pages/Lesson.vue:16 msgid "This lesson is not available for preview. Please enroll in the course to access it." @@ -5806,7 +5806,7 @@ msgstr "Posjeti Grupu" #: frontend/src/pages/JobDetail.vue:38 msgid "Visit Website" -msgstr "" +msgstr "Posjeti Web Stranicu" #: lms/templates/emails/batch_confirmation.html:23 msgid "Visit the following link to view your " diff --git a/lms/locale/hr.po b/lms/locale/hr.po index f31e5fd7..52ef10de 100644 --- a/lms/locale/hr.po +++ b/lms/locale/hr.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: frappe\n" "Report-Msgid-Bugs-To: jannat@frappe.io\n" "POT-Creation-Date: 2025-04-11 16:04+0000\n" -"PO-Revision-Date: 2025-04-14 06:01\n" +"PO-Revision-Date: 2025-04-15 06:20\n" "Last-Translator: jannat@frappe.io\n" "Language-Team: Croatian\n" "MIME-Version: 1.0\n" @@ -465,7 +465,7 @@ msgstr "" #: frontend/src/pages/AssignmentSubmissionList.vue:223 msgid "Assignment Submissions" -msgstr "" +msgstr "Podnošenje Zadataka" #. Label of the assignment_title (Data) field in DocType 'LMS Assignment #. Submission' @@ -1671,7 +1671,7 @@ msgstr "" #. Label of the disable_signup (Check) field in DocType 'LMS Settings' #: lms/lms/doctype/lms_settings/lms_settings.json msgid "Disable Signup" -msgstr "" +msgstr "Onemogući Prijavu" #. Label of the disabled (Check) field in DocType 'Job Opportunity' #: lms/job/doctype/job_opportunity/job_opportunity.json @@ -3610,7 +3610,7 @@ msgstr "" #: frontend/src/pages/Jobs.vue:80 msgid "No jobs found" -msgstr "" +msgstr "Nema pronađenih poslova" #: frontend/src/components/LiveClass.vue:71 msgid "No live classes scheduled" @@ -4288,7 +4288,7 @@ msgstr "" #: frontend/src/pages/Programs.vue:219 lms/www/lms.py:273 msgid "Programs" -msgstr "" +msgstr "Programi" #. Label of the progress (Float) field in DocType 'LMS Enrollment' #. Label of the progress (Int) field in DocType 'LMS Program Member' @@ -4652,7 +4652,7 @@ msgstr "" #. Label of the seo_tab (Tab Break) field in DocType 'LMS Settings' #: lms/lms/doctype/lms_settings/lms_settings.json msgid "SEO" -msgstr "" +msgstr "SEO" #. Option for the 'Day' (Select) field in DocType 'Evaluator Schedule' #. Option for the 'Day' (Select) field in DocType 'LMS Certificate Request' @@ -5806,7 +5806,7 @@ msgstr "" #: frontend/src/pages/JobDetail.vue:38 msgid "Visit Website" -msgstr "" +msgstr "Posjeti Web Stranicu" #: lms/templates/emails/batch_confirmation.html:23 msgid "Visit the following link to view your " diff --git a/lms/locale/pt.po b/lms/locale/pt.po index 18632a23..6f8f15c0 100644 --- a/lms/locale/pt.po +++ b/lms/locale/pt.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: frappe\n" "Report-Msgid-Bugs-To: jannat@frappe.io\n" "POT-Creation-Date: 2025-04-11 16:04+0000\n" -"PO-Revision-Date: 2025-04-14 06:01\n" +"PO-Revision-Date: 2025-04-16 06:20\n" "Last-Translator: jannat@frappe.io\n" "Language-Team: Portuguese\n" "MIME-Version: 1.0\n" @@ -105,7 +105,7 @@ msgstr "" #. Option for the 'Status' (Select) field in DocType 'LMS Batch Old' #: lms/lms/doctype/lms_batch_old/lms_batch_old.json msgid "Active" -msgstr "Ativo" +msgstr "" #: frontend/src/components/Assessments.vue:11 #: frontend/src/components/BatchCourses.vue:11 @@ -116,7 +116,7 @@ msgstr "Ativo" #: frontend/src/components/Members.vue:43 frontend/src/pages/ProgramForm.vue:30 #: frontend/src/pages/ProgramForm.vue:92 frontend/src/pages/ProgramForm.vue:137 msgid "Add" -msgstr "Adicionar" +msgstr "" #: frontend/src/components/CourseOutline.vue:18 #: frontend/src/components/CreateOutline.vue:18 @@ -213,11 +213,11 @@ msgstr "" #: frontend/src/pages/Billing.vue:64 #: lms/lms/doctype/lms_payment/lms_payment.json msgid "Address" -msgstr "Endereço" +msgstr "" #: frontend/src/pages/Billing.vue:74 msgid "Address Line 1" -msgstr "Endereço Linha 1" +msgstr "" #: frontend/src/pages/Billing.vue:78 msgid "Address Line 2" @@ -235,7 +235,7 @@ msgstr "" #. Name of a role #: frontend/src/pages/Batches.vue:284 lms/lms/doctype/lms_badge/lms_badge.json msgid "All" -msgstr "Todos" +msgstr "" #: frontend/src/pages/Batches.vue:26 msgid "All Batches" @@ -298,7 +298,7 @@ msgstr "" #: lms/lms/doctype/lms_payment/lms_payment.json #: lms/public/js/common_functions.js:379 msgid "Amount" -msgstr "Montante" +msgstr "" #. Label of the amount_usd (Currency) field in DocType 'LMS Batch' #. Label of the amount_usd (Currency) field in DocType 'LMS Course' @@ -557,7 +557,7 @@ msgstr "" #: lms/lms/doctype/lms_certificate_request/lms_certificate_request.json #: lms/lms/doctype/lms_live_class/lms_live_class.json msgid "Batch" -msgstr "Lote" +msgstr "" #. Label of the batch_confirmation_template (Link) field in DocType 'LMS #. Settings' @@ -701,7 +701,7 @@ msgstr "" #. Label of the branch (Data) field in DocType 'User' #: lms/fixtures/custom_field.json msgid "Branch" -msgstr "Filial" +msgstr "" #. Option for the 'User Category' (Select) field in DocType 'User' #: lms/fixtures/custom_field.json lms/templates/signup-form.html:23 @@ -737,7 +737,7 @@ msgstr "" #: lms/lms/doctype/lms_batch_old/lms_batch_old.json #: lms/lms/doctype/lms_certificate_request/lms_certificate_request.json msgid "Cancelled" -msgstr "Cancelado" +msgstr "" #. Label of the carrer_preference_details (Section Break) field in DocType #. 'User' @@ -1034,7 +1034,7 @@ msgstr "" #: lms/lms/doctype/lms_assignment_submission/lms_assignment_submission.json #: lms/lms/doctype/lms_mentor_request/lms_mentor_request.json msgid "Comments" -msgstr "Comentários" +msgstr "" #: frontend/src/components/Assignment.vue:142 msgid "Comments by Evaluator" @@ -1045,7 +1045,7 @@ msgstr "" #: lms/job/doctype/lms_job_application/lms_job_application.json #: lms/lms/doctype/work_experience/work_experience.json msgid "Company" -msgstr "Empresa" +msgstr "" #. Label of the company_details_section (Section Break) field in DocType 'Job #. Opportunity' @@ -1088,7 +1088,7 @@ msgstr "" #: lms/lms/doctype/lms_course_progress/lms_course_progress.json #: lms/lms/widgets/CourseCard.html:75 lms/templates/reviews.html:48 msgid "Complete" -msgstr "Concluído" +msgstr "" #: lms/templates/emails/lms_invite_request_approved.html:7 msgid "Complete Sign Up" @@ -1110,7 +1110,7 @@ msgstr "" #: lms/lms/doctype/lms_certificate_request/lms_certificate_request.json #: lms/lms/widgets/CourseCard.html:78 msgid "Completed" -msgstr "Concluído" +msgstr "" #: frontend/src/components/BatchStudents.vue:370 msgid "Completed by Students" @@ -1182,7 +1182,7 @@ msgstr "" #: frontend/src/pages/Jobs.vue:163 #: lms/job/doctype/job_opportunity/job_opportunity.json msgid "Contract" -msgstr "Contrato" +msgstr "" #: lms/lms/utils.py:438 msgid "Cookie Policy" @@ -1215,7 +1215,7 @@ msgstr "" #: frontend/src/pages/Billing.vue:92 lms/fixtures/custom_field.json #: lms/lms/doctype/payment_country/payment_country.json msgid "Country" -msgstr "País" +msgstr "" #. Label of the course (Link) field in DocType 'Batch Course' #. Label of the course (Link) field in DocType 'Cohort' @@ -1426,7 +1426,7 @@ msgstr "" #: frontend/src/components/Modals/ChapterModal.vue:9 #: frontend/src/pages/Programs.vue:108 msgid "Create" -msgstr "Criar" +msgstr "" #: lms/lms/doctype/lms_certificate_evaluation/lms_certificate_evaluation.js:7 msgid "Create Certificate" @@ -1489,7 +1489,7 @@ msgstr "" #: lms/lms/doctype/lms_payment/lms_payment.json #: lms/public/js/common_functions.js:387 msgid "Currency" -msgstr "Moeda" +msgstr "" #. Label of the current_lesson (Link) field in DocType 'LMS Enrollment' #: lms/lms/doctype/lms_enrollment/lms_enrollment.json @@ -1541,7 +1541,7 @@ msgstr "" #: lms/lms/doctype/scheduled_flow/scheduled_flow.json #: lms/templates/quiz/quiz.html:149 msgid "Date" -msgstr "Data" +msgstr "" #. Label of the section_break_glxh (Section Break) field in DocType 'LMS Live #. Class' @@ -1567,7 +1567,7 @@ msgstr "" #: lms/templates/emails/mentor_request_creation_email.html:2 #: lms/templates/emails/mentor_request_status_update_email.html:2 msgid "Dear" -msgstr "Caro" +msgstr "" #: lms/templates/emails/batch_confirmation.html:2 #: lms/templates/emails/batch_start_reminder.html:2 @@ -1590,7 +1590,7 @@ msgstr "" #: frontend/src/components/CourseOutline.vue:306 #: frontend/src/pages/CourseForm.vue:483 msgid "Delete" -msgstr "Eliminar" +msgstr "" #: frontend/src/components/CourseOutline.vue:59 msgid "Delete Chapter" @@ -1647,7 +1647,7 @@ msgstr "" #: lms/lms/doctype/work_experience/work_experience.json #: lms/public/js/common_functions.js:342 msgid "Description" -msgstr "Descrição" +msgstr "" #: frontend/src/components/Apps.vue:51 msgid "Desk" @@ -1676,7 +1676,7 @@ msgstr "" #. Label of the disabled (Check) field in DocType 'Job Opportunity' #: lms/job/doctype/job_opportunity/job_opportunity.json msgid "Disabled" -msgstr "Desativado" +msgstr "" #: frontend/src/components/DiscussionReplies.vue:55 #: lms/lms/widgets/NoPreviewModal.html:25 lms/templates/reviews.html:159 @@ -1807,7 +1807,7 @@ msgstr "" #. Option for the 'User Category' (Select) field in DocType 'User' #: lms/fixtures/custom_field.json lms/templates/signup-form.html:25 msgid "Employee" -msgstr "Funcionário" +msgstr "" #. Label of the enable (Check) field in DocType 'Zoom Settings' #: lms/lms/doctype/zoom_settings/zoom_settings.json @@ -1842,7 +1842,7 @@ msgstr "" #: lms/lms/doctype/lms_batch/lms_batch.json #: lms/public/js/common_functions.js:282 msgid "End Date" -msgstr "Data de Término" +msgstr "" #. Label of the end_date (Date) field in DocType 'Education Detail' #: lms/lms/doctype/education_detail/education_detail.json @@ -1941,7 +1941,7 @@ msgstr "" #: frontend/src/pages/QuizForm.vue:349 frontend/src/pages/QuizForm.vue:364 #: frontend/src/pages/QuizSubmission.vue:150 msgid "Error" -msgstr "Erro" +msgstr "" #: lms/lms/doctype/lms_batch/lms_batch.py:180 msgid "Error creating live class. Please try again. {0}" @@ -2196,7 +2196,7 @@ msgstr "" #. Label of the from_date (Date) field in DocType 'Work Experience' #: lms/lms/doctype/work_experience/work_experience.json msgid "From Date" -msgstr "Data De" +msgstr "" #. Label of the full_name (Data) field in DocType 'Course Evaluator' #. Label of the full_name (Data) field in DocType 'Invite Request' @@ -2315,7 +2315,7 @@ msgstr "" #: frontend/src/components/AppSidebar.vue:80 msgid "Help" -msgstr "Ajuda" +msgstr "" #: frontend/src/components/BatchFeedback.vue:11 msgid "Help Us Improve" @@ -2471,7 +2471,7 @@ msgstr "" #: lms/lms/doctype/lms_certificate_evaluation/lms_certificate_evaluation.json #: lms/lms/doctype/lms_course/lms_course.json msgid "In Progress" -msgstr "Em progresso" +msgstr "" #. Option for the 'Status' (Select) field in DocType 'LMS Batch Old' #: lms/lms/doctype/lms_batch_old/lms_batch_old.json @@ -3205,7 +3205,7 @@ msgstr "" #: lms/lms/doctype/lms_batch/lms_batch.json #: lms/public/js/common_functions.js:309 msgid "Medium" -msgstr "Médio" +msgstr "" #. Label of the medium (Data) field in DocType 'User' #: lms/fixtures/custom_field.json @@ -3470,7 +3470,7 @@ msgstr "" #: frontend/src/pages/Courses.vue:17 frontend/src/pages/Courses.vue:284 #: frontend/src/pages/Programs.vue:14 lms/lms/doctype/lms_badge/lms_badge.json msgid "New" -msgstr "Novo" +msgstr "" #: frontend/src/pages/AssignmentForm.vue:181 #: frontend/src/pages/AssignmentForm.vue:197 @@ -3651,7 +3651,7 @@ msgstr "" #: lms/lms/user.py:29 msgid "Not Allowed" -msgstr "Não Desejados" +msgstr "" #. Option for the 'Status' (Select) field in DocType 'LMS Assignment #. Submission' @@ -3675,7 +3675,7 @@ msgstr "" #: frontend/src/components/NoPermission.vue:7 frontend/src/pages/Batch.vue:156 msgid "Not Permitted" -msgstr "Não Permitido" +msgstr "" #: frontend/src/components/Assignment.vue:36 #: frontend/src/components/BrandSettings.vue:10 @@ -3752,7 +3752,7 @@ msgstr "" #: lms/job/doctype/job_opportunity/job_opportunity.json #: lms/lms/doctype/lms_batch_old/lms_batch_old.json msgid "Open" -msgstr "Abrir" +msgstr "" #: lms/templates/emails/assignment_submission.html:8 msgid "Open Assignment" @@ -3807,7 +3807,7 @@ msgstr "" #. Label of the organization (Data) field in DocType 'Certification' #: lms/lms/doctype/certification/certification.json msgid "Organization" -msgstr "Organização" +msgstr "" #: frontend/src/pages/Billing.vue:32 msgid "Original Amount" @@ -3820,7 +3820,7 @@ msgstr "" #: lms/lms/doctype/lms_badge/lms_badge.js:39 msgid "Owner" -msgstr "Dono" +msgstr "" #. Label of the pan (Data) field in DocType 'LMS Payment' #: lms/lms/doctype/lms_payment/lms_payment.json @@ -3912,7 +3912,7 @@ msgstr "" #: lms/lms/doctype/lms_batch_enrollment/lms_batch_enrollment.json #: lms/lms/doctype/lms_enrollment/lms_enrollment.json msgid "Payment" -msgstr "Pagamento" +msgstr "" #. Name of a DocType #: lms/lms/doctype/payment_country/payment_country.json @@ -3938,7 +3938,7 @@ msgstr "" #. Label of the payment_received (Check) field in DocType 'LMS Payment' #: lms/lms/doctype/lms_payment/lms_payment.json msgid "Payment Received" -msgstr "Pagamento recebido" +msgstr "" #. Label of the payment_reminder_template (Link) field in DocType 'LMS #. Settings' @@ -4010,7 +4010,7 @@ msgstr "" #: frontend/src/pages/Billing.vue:99 msgid "Phone Number" -msgstr "Número de telefone" +msgstr "" #: frontend/src/components/CourseCardOverlay.vue:169 msgid "Please Login" @@ -4565,7 +4565,7 @@ msgstr "" #. Label of the resume (Attach) field in DocType 'LMS Job Application' #: lms/job/doctype/lms_job_application/lms_job_application.json msgid "Resume" -msgstr "Currículo" +msgstr "" #. Label of the review (Small Text) field in DocType 'LMS Course Review' #. Label of a Link in the LMS Workspace @@ -4672,7 +4672,7 @@ msgstr "" #: frontend/src/pages/QuizForm.vue:34 frontend/src/pages/QuizSubmission.vue:14 #: lms/public/js/common_functions.js:405 msgid "Save" -msgstr "Salvar" +msgstr "" #. Label of the schedule (Table) field in DocType 'Course Evaluator' #: lms/lms/doctype/course_evaluator/course_evaluator.json @@ -4710,7 +4710,7 @@ msgstr "" #: frontend/src/components/Evaluators.vue:15 #: frontend/src/components/Members.vue:15 frontend/src/pages/Jobs.vue:38 msgid "Search" -msgstr "Pesquisar" +msgstr "" #: frontend/src/pages/CertifiedParticipants.vue:25 msgid "Search by Name" @@ -4793,7 +4793,7 @@ msgstr "" #: frontend/src/pages/BatchForm.vue:148 frontend/src/pages/CourseForm.vue:158 #: frontend/src/pages/ProfileRoles.vue:4 frontend/src/pages/QuizForm.vue:79 msgid "Settings" -msgstr "Configurações" +msgstr "" #: frontend/src/pages/ProfileAbout.vue:62 msgid "Share on" @@ -4947,7 +4947,7 @@ msgstr "" #: lms/lms/doctype/lms_payment/lms_payment.json #: lms/lms/doctype/lms_source/lms_source.json msgid "Source" -msgstr "Fonte" +msgstr "" #. Option for the 'Role' (Select) field in DocType 'Cohort Staff' #. Option for the 'Member Type' (Select) field in DocType 'LMS Enrollment' @@ -4975,7 +4975,7 @@ msgstr "" #: lms/lms/doctype/lms_batch_old/lms_batch_old.json #: lms/public/js/common_functions.js:275 msgid "Start Date" -msgstr "Data de Início" +msgstr "" #: lms/templates/emails/batch_start_reminder.html:13 msgid "Start Date:" @@ -5111,7 +5111,7 @@ msgstr "" #: frontend/src/components/Modals/AnnouncementModal.vue:20 msgid "Subject" -msgstr "Assunto" +msgstr "" #: frontend/src/components/Assignment.vue:32 msgid "Submission" @@ -5168,7 +5168,7 @@ msgstr "" #: frontend/src/pages/ProgramForm.vue:301 frontend/src/pages/QuizForm.vue:342 #: frontend/src/pages/QuizForm.vue:361 frontend/src/pages/QuizForm.vue:430 msgid "Success" -msgstr "Sucesso" +msgstr "" #. Label of the summary (Small Text) field in DocType 'LMS Certificate #. Evaluation' @@ -5531,7 +5531,7 @@ msgstr "" #: lms/lms/doctype/work_experience/work_experience.json #: lms/public/js/common_functions.js:259 msgid "Title" -msgstr "Título" +msgstr "" #: frontend/src/components/Modals/ChapterModal.vue:175 msgid "Title is required" @@ -5546,7 +5546,7 @@ msgstr "" #. Label of the to_date (Date) field in DocType 'Work Experience' #: lms/lms/doctype/work_experience/work_experience.json msgid "To Date" -msgstr "Até à Data" +msgstr "" #: lms/lms/utils.py:1784 msgid "To join this batch, please contact the Administrator." @@ -5692,7 +5692,7 @@ msgstr "" #: frontend/src/components/PaymentSettings.vue:27 #: frontend/src/components/SettingDetails.vue:23 msgid "Update" -msgstr "Atualizar" +msgstr "" #: lms/templates/emails/community_course_membership.html:11 msgid "Update Password" @@ -5717,7 +5717,7 @@ msgstr "" #: lms/lms/doctype/cohort_staff/cohort_staff.json #: lms/lms/doctype/lms_course_interest/lms_course_interest.json msgid "User" -msgstr "Do utilizador" +msgstr "" #. Label of the user_category (Select) field in DocType 'User' #: lms/fixtures/custom_field.json lms/templates/signup-form.html:17 @@ -5774,7 +5774,7 @@ msgstr "" #. Label of the value (Rating) field in DocType 'LMS Batch Feedback' #: lms/lms/doctype/lms_batch_feedback/lms_batch_feedback.json msgid "Value" -msgstr "Valor" +msgstr "" #. Option for the 'Event' (Select) field in DocType 'LMS Badge' #: lms/lms/doctype/lms_badge/lms_badge.json diff --git a/lms/locale/sv.po b/lms/locale/sv.po index 802306e0..4e378f4c 100644 --- a/lms/locale/sv.po +++ b/lms/locale/sv.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: frappe\n" "Report-Msgid-Bugs-To: jannat@frappe.io\n" "POT-Creation-Date: 2025-04-11 16:04+0000\n" -"PO-Revision-Date: 2025-04-14 06:01\n" +"PO-Revision-Date: 2025-04-15 06:20\n" "Last-Translator: jannat@frappe.io\n" "Language-Team: Swedish\n" "MIME-Version: 1.0\n" @@ -465,7 +465,7 @@ msgstr "Uppgift Inlämning Mall" #: frontend/src/pages/AssignmentSubmissionList.vue:223 msgid "Assignment Submissions" -msgstr "" +msgstr "Uppgift Inlämningar" #. Label of the assignment_title (Data) field in DocType 'LMS Assignment #. Submission' @@ -1671,7 +1671,7 @@ msgstr "Inaktivera självlärande" #. Label of the disable_signup (Check) field in DocType 'LMS Settings' #: lms/lms/doctype/lms_settings/lms_settings.json msgid "Disable Signup" -msgstr "" +msgstr "Inaktivera Registrering" #. Label of the disabled (Check) field in DocType 'Job Opportunity' #: lms/job/doctype/job_opportunity/job_opportunity.json @@ -2400,7 +2400,7 @@ msgstr "Ikon" #. Label of the user_category (Check) field in DocType 'LMS Settings' #: lms/lms/doctype/lms_settings/lms_settings.json msgid "Identify User Persona" -msgstr "" +msgstr "Identifiera Användare" #: frontend/src/components/LessonHelp.vue:11 msgid "If Include in Preview is enabled for a lesson then the lesson will also be accessible to non logged in users." @@ -2578,7 +2578,7 @@ msgstr "Ogiltigt Frågesport ID" #: lms/lms/doctype/course_lesson/course_lesson.py:33 msgid "Invalid Quiz ID in content" -msgstr "" +msgstr "Ogiltigt Frågesport ID" #. Label of the invite_code (Data) field in DocType 'Cohort Subgroup' #. Label of the invite_code (Data) field in DocType 'Invite Request' @@ -3610,7 +3610,7 @@ msgstr "Ingen introduktion" #: frontend/src/pages/Jobs.vue:80 msgid "No jobs found" -msgstr "" +msgstr "Inga jobb hittades" #: frontend/src/components/LiveClass.vue:71 msgid "No live classes scheduled" @@ -3626,7 +3626,7 @@ msgstr "Inga program hittades" #: frontend/src/pages/QuizSubmissionList.vue:52 msgid "No quiz submissions found. Please check again later." -msgstr "" +msgstr "Inga frågesport inlämningar hittades. Kontrollera igen senare." #: frontend/src/pages/Quizzes.vue:61 msgid "No quizzes found" @@ -4288,7 +4288,7 @@ msgstr "Program Medlemmar" #: frontend/src/pages/Programs.vue:219 lms/www/lms.py:273 msgid "Programs" -msgstr "" +msgstr "Program" #. Label of the progress (Float) field in DocType 'LMS Enrollment' #. Label of the progress (Int) field in DocType 'LMS Program Member' @@ -4652,7 +4652,7 @@ msgstr "SCORM App Sökväg" #. Label of the seo_tab (Tab Break) field in DocType 'LMS Settings' #: lms/lms/doctype/lms_settings/lms_settings.json msgid "SEO" -msgstr "" +msgstr "SEO" #. Option for the 'Day' (Select) field in DocType 'Evaluator Schedule' #. Option for the 'Day' (Select) field in DocType 'LMS Certificate Request' @@ -5347,7 +5347,7 @@ msgstr "Det finns inga kurser som stämmer med kriterierna. Håll utkik, nya inl #: frontend/src/pages/Jobs.vue:84 msgid "There are no jobs available at the moment. Open a job opportunity or check here again later." -msgstr "" +msgstr "Det finns inga lediga jobb för tillfället. Öppna jobbmöjlighet eller titta in här igen senare." #: frontend/src/pages/CertifiedParticipants.vue:92 msgid "There are no participants matching this criteria." @@ -5412,7 +5412,7 @@ msgstr "Denna kurs är gratis." #. Settings' #: lms/lms/doctype/lms_settings/lms_settings.json msgid "This description will be shown on lists and pages without meta description" -msgstr "" +msgstr "Denna beskrivning kommer att visas på listor och sidor utan metabeskrivning" #: frontend/src/pages/Lesson.vue:16 msgid "This lesson is not available for preview. Please enroll in the course to access it." @@ -5806,7 +5806,7 @@ msgstr "Besök Omgång" #: frontend/src/pages/JobDetail.vue:38 msgid "Visit Website" -msgstr "" +msgstr "Besök Webbplats" #: lms/templates/emails/batch_confirmation.html:23 msgid "Visit the following link to view your " diff --git a/lms/www/lms.py b/lms/www/lms.py index f0ef2277..6e76c58b 100644 --- a/lms/www/lms.py +++ b/lms/www/lms.py @@ -46,13 +46,19 @@ def get_meta(app_path, title, favicon, description): meta["keywords"] = f"{meta.get('keywords', '')} {row.value}" elif row.key == "link": meta["link"] = row.value - print(meta) + + if not meta.get("title"): + meta["title"] = title + if not meta.get("description"): meta["description"] = description if not meta.get("image"): meta["image"] = favicon + if not meta.get("keywords"): + meta["keywords"] = "" + if not meta: meta = { "title": title,