AI false-positive summary is not translatable and doubles punctuation
Maintainer thường phản hồi trong vòng 1 ngày
Một pull request liên quan đã được merge.
- #1505 của @ekamran — đã merge
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, php, wordpress
- Lĩnh vực
- backend, frontend, internationalization
Hướng nghiên cứu
Start with the message assembly in assets/js/plugin-check-admin.js, where the AI summary is built from hard-coded English and a . is appended unless the text ends in ., ! or ?. Then check includes/CLI/Plugin_Check_Command.php, where ' AI detected %1$d %2$s' is appended to "Checks complete. No errors found." and the count sits outside the _n() plural string. Done when each part is a translatable sentence with its own punctuation and plural forms follow locale rules. A pull request (#1505) is already open against this issue, so check it before starting.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
When AI analysis runs, the summary of possible false positives cannot be translated correctly, and it can end up with doubled punctuation.
Admin screen. assets/js/plugin-check-admin.js builds the AI part of the results message from hard-coded English ("AI detected … possible false positives", "Input tokens:", "Output tokens:", "Tokens spent:", "Model:"), so it stays in English on a translated site. It then adds . after the localized message unless that message ends in ., ! or ?. A Hindi message ending in । therefore gets a second stop: कोई त्रुटि नहीं मिली।. AI detected 5 possible false positives. …
WP-CLI. When a run with --ai has no errors or warnings left to show (for example with --ignore-errors), includes/CLI/Plugin_Check_Command.php appends . plus ' AI detected %1$d %2$s' to "Checks complete. No errors found.", so the line reads:
Success: Checks complete. No errors found.. AI detected 3 possible false positives (Tokens spent: 1,234)
The number also sits outside the plural string (' AI detected %1$d %2$s' with a separate _n( 'possible false positive', 'possible false positives', … )), which cannot be translated correctly in languages where the whole phrase changes with the count.
The CLI string was flagged by polyglots lint (https://github.com/emreerkan/polyglots) as plural-without-count.
Expected
Each part of the summary is a complete translatable sentence with its own punctuation, plural forms follow the locale's plural rules, and the parts are joined with a space.
AI Assisted: Claude Code helped find and reproduce this.
- Ngôn ngữ chính
- PHP
- Star
- 366
- Fork
- 128
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của WordPress/plugin-check
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
WordPress/plugin-check#1509 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
False positive: native auto_update_plugins option triggers update_modification_detectedCó thể đã có người làm @KhushalSainS đã nhận 3 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
WordPress/plugin-check#1506 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Accept PolyFillsCó thể đã có người làm @sanketio đã nhận 9 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
WordPress/plugin-check#1496 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Question about a PCP WarningĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
WordPress/plugin-check#1475 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
WordPress/plugin-check#1474 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của WordPress/plugin-check
Issue tương tự
-
good first issue ux
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 89/100
alleyinteractive/wp-curate#498 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
mollie/PrestaShop#1593 ·
Maintainer thường phản hồi trong vòng 7 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
升级 PHP 8.5 后报错Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Update Support Monitor URL to monitor.fueled.devCó thể đã có người làm @claytoncollie đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
10up/10up-experience#241 ·