Amendment detail view uses the Motion translation key

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
angular, typescript

調査の方向性

motion のビューモデルにある ViewMotion.isAmendment() から始め、次に、見出しを翻訳キー Motion 経由で取得している amendment/motion 詳細コンポーネントのテンプレートを見つけ、そのキーをフラグに応じて条件付きにして、会議固有の翻訳が引き続き適用されるようにします。motion 詳細テンプレートで Motion キーを grep し、すでに正しく選択している amendment リストと比較します。完了とは、リストから開いた amendment が、デフォルトおよびカスタムの会議翻訳の下で amendment ラベルを表示することです。既存の motion 詳細コンポーネントのテストを確認してください。

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

説明

bug

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.

  1. Open a meeting.
  2. Open Motions.
  3. Create a motion.
  4. Create an amendment for this motion.
  5. Open the amendment from the amendment list.
  6. 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

OpenSlides/OpenSlides のほかの issue

OpenSlides/OpenSlides の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

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

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