Jul 13 - Optimize code 2

This commit is contained in:
2026-07-13 17:07:30 -04:00
parent 00a9ba7770
commit a5c800e87c
6 changed files with 182 additions and 161 deletions
Binary file not shown.
+75 -75
View File
@@ -20,313 +20,313 @@ msgstr ""
#: app/blueprints/auth/routes.py:28
msgid "Verify your email"
msgstr ""
msgstr "Xác minh email của bạn"
#: app/blueprints/auth/routes.py:29
#, python-format
msgid "Confirm your account: %(link)s"
msgstr ""
msgstr "Xác nhận tài khoản của bạn: %(link)s"
#: app/blueprints/auth/routes.py:40
msgid "Captcha verification failed."
msgstr ""
msgstr "Xác minh Captcha thất bại."
#: app/blueprints/auth/routes.py:45
msgid "An account with that email already exists."
msgstr ""
msgstr "Đã tồn tại tài khoản với email đó."
#: app/blueprints/auth/routes.py:59
msgid "Account created. Check your email to verify."
msgstr ""
msgstr "Đã tạo tài khoản. Kiểm tra email để xác minh."
#: app/blueprints/auth/routes.py:74
msgid "Invalid email or password."
msgstr ""
msgstr "Email hoặc mật khẩu không hợp lệ."
#: app/blueprints/auth/routes.py:77
msgid "This account is suspended."
msgstr ""
msgstr "Tài khoản này đã bị tạm khóa."
#: app/blueprints/auth/routes.py:93
msgid "Signed out."
msgstr ""
msgstr "Đã đăng xuất."
#: app/blueprints/auth/routes.py:102
msgid "Verification link is invalid or expired."
msgstr ""
msgstr "Liên kết xác minh không hợp lệ hoặc đã hết hạn."
#: app/blueprints/auth/routes.py:111
msgid "Email verified. You're all set."
msgstr ""
msgstr "Đã xác minh email. Bạn đã sẵn sàng."
#: app/blueprints/auth/routes.py:124
msgid "Reset your password"
msgstr ""
msgstr "Đặt lại mật khẩu của bạn"
#: app/blueprints/auth/routes.py:125
#, python-format
msgid "Reset link: %(link)s"
msgstr ""
msgstr "Liên kết đặt lại: %(link)s"
#: app/blueprints/auth/routes.py:127
msgid "If that email exists, a reset link has been sent."
msgstr ""
msgstr "Nếu email đó tồn tại, liên kết đặt lại đã được gửi."
#: app/blueprints/auth/routes.py:137
msgid "Reset link is invalid or expired."
msgstr ""
msgstr "Liên kết đặt lại không hợp lệ hoặc đã hết hạn."
#: app/blueprints/auth/routes.py:146
msgid "Password updated. Sign in."
msgstr ""
msgstr "Đã cập nhật mật khẩu. Đăng nhập."
#: app/blueprints/listings/routes.py:72
msgid "ZIP not found; showing all results."
msgstr ""
msgstr "Không tìm thấy mã ZIP; hiển thị tất cả kết quả."
#: app/blueprints/listings/routes.py:103
msgid "You've reached your plan's active-listing limit."
msgstr ""
msgstr "Bạn đã đạt đến giới hạn tin đang đăng của gói."
#: app/blueprints/listings/routes.py:125 app/blueprints/listings/routes.py:171
#, python-format
msgid "%(f)s: %(m)s"
msgstr ""
msgstr "%(f)s: %(m)s"
#: app/blueprints/listings/routes.py:133
msgid "Listing published."
msgstr ""
msgstr "Đã đăng tin."
#: app/blueprints/listings/routes.py:176
msgid "Listing updated."
msgstr ""
msgstr "Đã cập nhật tin."
#: app/blueprints/listings/routes.py:194
msgid "Listing deleted."
msgstr ""
msgstr "Đã xóa tin."
#: app/blueprints/listings/routes.py:207
msgid "Marked as sold."
msgstr ""
msgstr "Đã đánh dấu là đã bán."
#: app/blueprints/listings/routes.py:236
msgid "Photo removed."
msgstr ""
msgstr "Đã xóa ảnh."
#: app/blueprints/listings/routes.py:258
#, python-format
msgid "Photo limit (%(n)s) reached for your plan."
msgstr ""
msgstr "Đã đạt giới hạn ảnh (%(n)s) của gói."
#: app/blueprints/listings/routes.py:265
#, python-format
msgid "Image skipped: %(m)s"
msgstr ""
msgstr "Đã bỏ qua ảnh: %(m)s"
#: app/templates/base.html:15
msgid "Browse"
msgstr ""
msgstr "Duyệt"
#: app/templates/base.html:17
msgid "Post"
msgstr ""
msgstr "Đăng tin"
#: app/templates/base.html:18 app/templates/listings/mine.html:2
#: app/templates/listings/mine.html:6
msgid "My listings"
msgstr ""
msgstr "Tin của tôi"
#: app/templates/base.html:20
msgid "Sign out"
msgstr ""
msgstr "Đăng xuất"
#: app/templates/auth/login.html:3 app/templates/auth/login.html:6
#: app/templates/base.html:22
msgid "Sign in"
msgstr ""
msgstr "Đăng nhập"
#: app/templates/auth/register.html:3 app/templates/base.html:23
msgid "Register"
msgstr ""
msgstr "Đăng ký"
#: app/templates/index.html:2
msgid "Classifieds — Home"
msgstr ""
msgstr "Rao vặt — Trang chủ"
#: app/templates/index.html:5
msgid "Find what you need. Post what you offer."
msgstr ""
msgstr "Tìm thứ bạn cần. Đăng thứ bạn có."
#: app/templates/index.html:6
msgid "Buy, sell, request, hire, and connect across your community."
msgstr ""
msgstr "Mua, bán, yêu cầu, tuyển dụng và kết nối trong cộng đồng của bạn."
#: app/templates/index.html:7 app/templates/listings/browse.html:2
msgid "Browse listings"
msgstr ""
msgstr "Duyệt tin đăng"
#: app/templates/index.html:9
msgid "Get started"
msgstr ""
msgstr "Bắt đầu"
#: app/templates/auth/login.html:15
msgid "Forgot password?"
msgstr ""
msgstr "Quên mật khẩu?"
#: app/templates/auth/login.html:16 app/templates/auth/register.html:6
msgid "Create account"
msgstr ""
msgstr "Tạo tài khoản"
#: app/templates/auth/register.html:16
msgid "Already have an account? Sign in"
msgstr ""
msgstr "Đã có tài khoản? Đăng nhập"
#: app/templates/auth/reset.html:3 app/templates/auth/reset.html:6
msgid "Set new password"
msgstr ""
msgstr "Đặt mật khẩu mới"
#: app/templates/auth/reset_request.html:3
#: app/templates/auth/reset_request.html:6
msgid "Reset password"
msgstr ""
msgstr "Đặt lại mật khẩu"
#: app/templates/errors/403.html:3
msgid "Forbidden — you do not have access."
msgstr ""
msgstr "Bị cấm — bạn không có quyền truy cập."
#: app/templates/errors/403.html:3 app/templates/errors/404.html:3
#: app/templates/errors/500.html:3
msgid "Back home"
msgstr ""
msgstr "Về trang chủ"
#: app/templates/errors/404.html:3
msgid "Not found."
msgstr ""
msgstr "Không tìm thấy."
#: app/templates/errors/500.html:3
msgid "Something went wrong."
msgstr ""
msgstr "Đã xảy ra lỗi."
#: app/templates/listings/browse.html:6
msgid "Filter"
msgstr ""
msgstr "Lọc"
#: app/templates/listings/browse.html:9
msgid "Keyword"
msgstr ""
msgstr "Từ khóa"
#: app/templates/listings/browse.html:13
msgid "Category"
msgstr ""
msgstr "Danh mục"
#: app/templates/listings/browse.html:15
msgid "All"
msgstr ""
msgstr "Tất cả"
#: app/templates/listings/browse.html:21
msgid "State"
msgstr ""
msgstr "Tiểu bang"
#: app/templates/listings/browse.html:24
msgid "Min $"
msgstr ""
msgstr "Giá tối thiểu $"
#: app/templates/listings/browse.html:26
msgid "Max $"
msgstr ""
msgstr "Giá tối đa $"
#: app/templates/listings/browse.html:30
msgid "Near ZIP"
msgstr ""
msgstr "Gần mã ZIP"
#: app/templates/listings/browse.html:32
msgid "Radius (mi)"
msgstr ""
msgstr "Bán kính (dặm)"
#: app/templates/listings/browse.html:35
msgid "Apply"
msgstr ""
msgstr "Áp dụng"
#: app/templates/listings/browse.html:40
#, python-format
msgid "%(n)s results within %(r)s mi of %(z)s"
msgstr ""
msgstr "%(n)s kết quả trong vòng %(r)s dặm quanh %(z)s"
#: app/templates/listings/browse.html:41
msgid "No listings found."
msgstr ""
msgstr "Không tìm thấy tin đăng."
#: app/templates/listings/browse.html:46
msgid "No photo"
msgstr ""
msgstr "Không có ảnh"
#: app/templates/listings/browse.html:51
msgid "Featured"
msgstr ""
msgstr "Nổi bật"
#: app/templates/listings/browse.html:63
msgid "Prev"
msgstr ""
msgstr "Trước"
#: app/templates/listings/browse.html:64
msgid "Next"
msgstr ""
msgstr "Sau"
#: app/templates/listings/detail.html:14
#, python-format
msgid "%(n)s views"
msgstr ""
msgstr "%(n)s lượt xem"
#: app/templates/listings/detail.html:41
msgid "Verified"
msgstr ""
msgstr "Đã xác minh"
#: app/templates/listings/detail.html:44 app/templates/listings/mine.html:19
msgid "Edit"
msgstr ""
msgstr "Sửa"
#: app/templates/listings/detail.html:47
msgid "Mark sold"
msgstr ""
msgstr "Đánh dấu đã bán"
#: app/templates/listings/detail.html:51
msgid "Delete this listing?"
msgstr ""
msgstr "Xóa tin này?"
#: app/templates/listings/detail.html:52
msgid "Delete"
msgstr ""
msgstr "Xóa"
#: app/templates/listings/detail.html:55
msgid "Messaging arrives in Phase 3."
msgstr ""
msgstr "Tính năng nhắn tin sẽ có ở Giai đoạn 3."
#: app/templates/listings/form.html:3 app/templates/listings/form.html:6
msgid "Edit listing"
msgstr ""
msgstr "Sửa tin"
#: app/templates/listings/form.html:3 app/templates/listings/form.html:6
msgid "New listing"
msgstr ""
msgstr "Tin mới"
#: app/templates/listings/form.html:47
msgid "Current photos"
msgstr ""
msgstr "Ảnh hiện tại"
#: app/templates/listings/mine.html:7
#, python-format
msgid "Active: %(a)s"
msgstr ""
msgstr "Đang đăng: %(a)s"
#: app/templates/listings/mine.html:8
msgid "Post new"
msgstr ""
msgstr "Đăng tin mới"
#: app/templates/listings/mine.html:10
msgid "No listings yet."
msgstr ""
msgstr "Chưa có tin đăng."
#: app/templates/listings/mine.html:18
msgid "views"
msgstr ""
msgstr "lượt xem"