Localization support
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java
- Lĩnh vực
- cli, internationalization
Hướng nghiên cứu
Bắt đầu bằng việc xem xét branch i18n hiện có và các entry point ParametricBuilder và CommandGraph được đề cập trong issue, sau đó lần theo các thông báo runtime được hard-code cũng như phần mô tả và trợ giúp của các annotation lệnh. So sánh phương pháp Java ResourceBundle được đề xuất với hành vi hiện tại và phần thảo luận trong chín bình luận. Công việc được hoàn tất khi có một thiết kế bản địa hóa linh hoạt đã được thống nhất, bao quát các thông báo nội bộ và văn bản lệnh bên ngoài.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Intake should provide some sort of support for localizations. This affects two fields:
- Internal localization: All hard-coded strings should be externalized in a Java ResourceBundle and some behaviour might need to be updated in order to work as expected in an localized environment. Some points might need discussion:
- Intake has several internal runtime exceptions that the end-user should never see (e.g.
ParametricException). These might not need localization. - It might be a good idea to allow users to alter or replace the internal localization logic by providing custom translations. In that case the two entry points are
ParametricBuilderandCommandGraph.
- Intake has several internal runtime exceptions that the end-user should never see (e.g.
- External localization: The values in command annotations, specifically description and help, need localization support. The entry point here is the
ParametricBuilder.- If localizations use key -> value relationships, as enforced by Java resource bundles, description and help methods would need to return the key. This contradicts the current behaviour where both methods return the actual value, so a support for that old, non localised behaviour is needed.
On both fields, the support should be as flexible as possible and do not enforce any specific way of handling Locales on the user.
Since I need localization support in MyWarp, I have implemented a limited localization support in my own Intake fork (i18n branch). I would be happy to contribute these changes in a PR so there is something to discuss about, if the general direction fits.
- Ngôn ngữ chính
- Java
- Star
- 102
- Fork
- 18
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 EngineHub/Intake
-
Strange Authorizer behaviour Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Tất cả issue của EngineHub/Intake
Issue tương tự
-
executions.Query — startDate and timeRange filters are sent with inverted comparison operators Đang mởarea/plugin
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
kestra-io/plugin-kestra#190 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Add canonical URLs and a sitemap Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
apache/rocketmq-dashboard#5064 ·
-
Consent portal: creating a duplicate Purpose shows a generic error instead of "already exists" Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
wso2/dpdp-accelerator#287 ·