Amendment detail view uses the Motion translation key
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- angular, typescript
- 領域
- frontend, localization
調査の方向性
motion のビューモデルにある ViewMotion.isAmendment() から始め、次に、見出しを翻訳キー Motion 経由で取得している amendment/motion 詳細コンポーネントのテンプレートを見つけ、そのキーをフラグに応じて条件付きにして、会議固有の翻訳が引き続き適用されるようにします。motion 詳細テンプレートで Motion キーを grep し、すでに正しく選択している amendment リストと比較します。完了とは、リストから開いた amendment が、デフォルトおよびカスタムの会議翻訳の下で amendment ラベルを表示することです。既存の motion 詳細コンポーネントのテストを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Amendments are sometimes displayed with the label "Motion" instead of "Amendment" in the motion detail view.
This is particularly noticeable when custom translations are configured for a meeting. The amendment list correctly uses the amendment terminology, but the detail view can fall back to the Motion translation key.
The ViewMotion model already distinguishes amendments via isAmendment(), but the motion detail view appears to use the Motion translation key unconditionally.
How to Reproduce
Steps to reproduce the behavior: preferably on the demo.
- Open a meeting.
- Open Motions.
- Create a motion.
- Create an amendment for this motion.
- Open the amendment from the amendment list.
- Observe the heading/label in the amendment detail view.
Current behavior
The amendment detail view uses the Motion translation key.
With the default German translations, this results in:
- Motion → Antrag
- Amendment → Änderungsantrag
Therefore, an amendment can be shown as "Antrag" in the detail view, although it is correctly identified as an amendment elsewhere.
Expected behavior
The displayed label should depend on the actual type of the object:
- Motion →
Motion - Amendment →
Amendment
The selected translation key should then be processed by the normal translation system, including meeting-specific custom translations.
Additional information
The ViewMotion model already provides:
public isAmendment(): boolean {
return this.lead_motion_id && this.lead_motion_id > 0;
}
- 主要言語
- Shell
- スター
- 666
- フォーク
- 189
- 平均マージ
- 3時間 48分
- マージ済み PR(30日)
- 6
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenSlides/OpenSlides のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
OpenSlides/OpenSlides#7211 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
OpenSlides/OpenSlides#7205 ·
-
Workflow export is missing some rows対応中かも @bastianjoel が 10 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
OpenSlides/OpenSlides#7195 · 担当者 1 名 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
OpenSlides/OpenSlides#7175 ·
-
bug waiting
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
OpenSlides/OpenSlides#7162 · コメント 1 件 ·
OpenSlides/OpenSlides の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
docker/sbx-releases#911 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pingcap/monitoring#1284 ·
メンテナーはふだん 1 日以内に返信
-
hermes-queue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
chrisalunlloyd2-sudo/mindpalace#430 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ultravideo/kvazaar#453 ·
-
security
難易度 1/5 1時間未満 初心者へのやさしさ 64/100
IBM/bob-oic-tutorials#34 ·
メンテナーはふだん 1 日以内に返信