Translation make targets point at a directory that does not exist
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- git, python
- Lĩnh vực
- build-system, localization
Hướng nghiên cứu
Bắt đầu trong backend-plugin-sample/Makefile và kiểm tra các target bản địa hóa được liệt kê, bao gồm branch atlas của pull_translations và install_transifex_client. Xác minh các đường dẫn package và locale bên dưới src/openedx_plugin_sample, sau đó chạy các target bị ảnh hưởng. Công việc được xem là hoàn tất khi các target không còn thất bại do thiếu thư mục hoặc LICENSE.txt, và quyết định của issue về việc thực thi hay xóa phần khung hỗ trợ bản dịch đã được xử lý.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Every localization target in backend-plugin-sample/Makefile does cd sample_plugin, but there is no sample_plugin/ directory. The package lives at backend-plugin-sample/src/openedx_plugin_sample/. The path predates the renames in a9f4b8d (platform-plugin-sample -> backend-plugin-sample / openedx_plugin_sample).
So all of these fail immediately with cd: no such file or directory:
extract_translationscompile_translationsdetect_changed_source_translationsdummy_translationspull_translations(the atlas branch, which also referencessample_plugin/conf/locale)- and therefore
build_dummy_translationsandvalidate_translations
Nothing in CI runs these targets, which is why the breakage has gone unnoticed.
Also in scope
install_transifex_client ends with:
git checkout -- LICENSE README.md ## overwritten by Transifex installer
There is no LICENSE in that directory either -- the file is LICENSE.txt.
Suggested fix
Point the targets at src/openedx_plugin_sample, fix the atlas locale paths to match, and correct the LICENSE.txt filename. Worth considering whether validate_translations should run in CI so this cannot silently rot again.
Note that the plugin does not currently mark any strings for translation, so part of this work is deciding whether the i18n scaffolding should be exercised as a demonstration (this repo is meant to be an example of the plugin interfaces) or removed until there is something to translate.
- Ngôn ngữ chính
- Python
- Star
- 1
- Fork
- 4
- Merge trung bình
- 3 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 8
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 openedx/sample-plugin
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
openedx/sample-plugin#46 · 1 reaction ·
-
Add logos, etc. to brand-sample Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
openedx/sample-plugin#51 · 1 bình luận ·
-
Add fonts to brand-sample Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
openedx/sample-plugin#50 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
openedx/sample-plugin#33 ·
-
openedx/sample-plugin#30 · 1 người được giao ·
Tất cả issue của openedx/sample-plugin
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
huggingface/Repo2RLEnv#163 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
NousResearch/hermes-agent#121143 ·