Localization support
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java
調査の方向性
まず既存の i18n ブランチと、Issue で言及されている ParametricBuilder および CommandGraph のエントリーポイントを確認し、ハードコードされたランタイムメッセージとコマンドアノテーションの説明およびヘルプを追跡します。提案されている Java ResourceBundle アプローチを、現在の動作および9件のコメントでの議論と比較します。内部メッセージと外部コマンドテキストを対象とする、合意済みで柔軟なローカライゼーション設計ができれば完了です。
索引モデルが 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
EngineHub/Intake のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
EngineHub/Intake の issue をすべて見る
似ている issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apache/flink-agents#1152 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
jenkinsci/blueocean-plugin#5417 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
objectionary/eo-graphs#75 ·