Localization support
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- java
调研方向
首先检查现有的 i18n 分支以及 issue 中提到的 ParametricBuilder 和 CommandGraph 入口点,然后追踪硬编码的运行时消息以及命令注解的描述和帮助文本。将提议的 Java ResourceBundle 方案与当前行为以及九条评论中的讨论进行比较。完成的要求是形成一套已达成共识且灵活的本地化设计,覆盖内部消息和外部命令文本。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Java
- 星标
- 102
- 派生
- 18
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
EngineHub/Intake 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
documentation
难度 2/5 1-3 小时 新手友好度 65/100
inu-appcenter/memorIN-backend#288 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
-
frontend maui-pilot pilot-ask question
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
area/plugin
难度 2/5 1-3 小时 新手友好度 75/100
kestra-io/plugin-kestra#190 ·