Hard-coded English in the language selector, the image and file index and the text page digest
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- php
- Lĩnh vực
- internationalization
Hướng nghiên cứu
The affected entry points are system/core/language.php, system/datatypes/index.php, system/datatypes/text.php, and system/core/communication.php; the issue links pull request #611, which contains a suggested fix. Review that pull request and the listed reproduction steps for the expected behavior. Done means the Dutch interface uses dictionary text and each digest translation shows its own page name.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
A few texts of the interface are written in English in the code instead of taken from the dictionaries, so a Dutch interface shows them in English. One of them also shows the wrong page name.
| Where | Text on a Dutch interface | Code |
|---|---|---|
| language selector of translate and new page (group labels) | in use, add new |
system/core/language.php:48,61 |
index/images, index/files |
image index is not yet implemented |
system/datatypes/index.php:24,29 |
| digest e-mail, text page section | update (last version ...), new translation, new page |
system/datatypes/text.php:341 |
| digest e-mail, every entry with changes | view changes |
system/core/communication.php:163 |
In the same digest section every translation is listed under the page name of the current content language: a change of en/Home appears as Start (en), because textpage::digest() uses $this->pagename for every language (text.php:337).
Not included: the keys of #557 (page index and tag index titles, festival, settings) and the datatype names of #575; and the choice of the digest language (it is the language of whoever triggers it, see #181).
Steps to reproduce (fictional site, PHP 8.2 container of docs/container): log in, open nl/Start/translate: the language list has the groups in use and add new. Open index/images: image index is not yet implemented.
Suggested fix. Add the keys languages-in-use, languages-add-new, index-not-implemented, digest-update, digest-new-translation, digest-new-page and digest-view-changes to en.php and nl.php and use them; take the name of each translation in the digest from the page list node. The linked pull request does that.
Tested in the PHP 8.2 and 8.5 containers of docs/container with a fictional test site: reproduces on main (d97ab7b), gone with the linked pull request, which is offered as a suggestion and a starting point.
🤖 Generated with Claude Code
- Ngôn ngữ chính
- JavaScript
- Star
- 5
- Fork
- 9
- Merge trung bình
- 18 giờ 7 phút
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 PlanBCode/hypha
-
Component: User interface Impact: Low Level: Easy Pagetype: Peer reviewed article Type: Bug Value: Visitors
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Impact: Medium Level: Easy Type: Bug Value: Users
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Impact: Low Level: Easy Pagetype: Festival Type: Bug Value: Coders
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Impact: Medium Level: Easy Pagetype: Mailinglist Type: Bug Value: Users
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Impact: Low Level: Easy Type: Bug Value: Coders
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
PlanBCode/hypha#586 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của PlanBCode/hypha
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
feimacode/open-design-agent-kit#66 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
xojs/eslint-config-xo#134 ·
-
FEATURE REQUEST
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
linuxmint/cinnamon-spices-extensions#1193 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
huggingface/transformers.js#1839 ·
Maintainer thường phản hồi trong vòng 1 ngày