Flag component description "Command flags" is hardcoded English

オープン 初心者向け
#820 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
半日
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
localization

調査の方向性

cloud-core/src/main/java/org/incendo/cloud/Command.java から始めます。Command.Builder#build() は、説明が "Command flags" とハードコードされたフラグコンポーネントを作成します。cloud-translations にキャプション_supportedな説明を追加するか使用し、翻訳されたヘルプメニューがローカライズされたフラグ説明を表示することを確認してください。

索引モデルが issue の本文から書いたものです。

説明

Command.Builder#build() adds the flag component with a hardcoded description:

.description(Description.of("Command flags"))

(Command.java, cloud-core 2.1.0)

Help menus show it for any command with flags (e.g. MinecraftHelp's argument list). Since it isn't a caption, cloud-translations can't translate it, so non-English players see English in an otherwise translated help menu.

Suggested fix: add a standard caption key (e.g. argument.flags.description) and use a caption-backed description for the flag component, with translations added to cloud-translations. Alternatively, let the builder override the flag component's description.

主要言語
Java
スター
546
フォーク
61
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Incendo/cloud のほかの issue

Incendo/cloud の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。