print: the template language picker names every language in English - name each in itself (Български, English)

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

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

engine-document の PrintEndpoint.displayName と、各言語の code と name をシリアライズする GET /services/print/GoodsReceipt/languages エンドポイントを読んでください。displayName を変更して、Locale.forLanguageTag(code).getDisplayLanguage(thatLocale) で autonym を解決し、既存の空白からコードへのフォールバックを維持してください。言語エンドポイントに単体テストを追加し、bg -> "Български"、en -> "English"、未知のコード -> そのコードを検証してください。両方の UI で印刷ダイアログにこれらの名前が表示されたら完了です。

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

説明

Problem

The print dialog names its template languages in English whatever the UI language. In a Bulgarian UI, a generated document's "..." -> Print opens "Печат - Изберете език на шаблона." with the buttons "Bulgarian" and "English". Everything else in the dialog is Bulgarian.

The name comes from the server:

GET /services/print/GoodsReceipt/languages
-> [{"code":"bg","name":"Bulgarian",...},{"code":"en","name":"English",...}]

PrintEndpoint.displayName (engine-document) fixes the display locale to English:

private static String displayName(String code) {
    String name = Locale.forLanguageTag(code)
                        .getDisplayLanguage(Locale.ENGLISH);
    return name.isBlank() ? code : name;
}

Seen on 2026-11-23 (16.0.0-SNAPSHOT 3cd1a4a499, BusinessIntents inventory 1.39.0, Goods Receipt print), store test section 7, GR-29.

Ask

Name each language in itself (its autonym): Locale.forLanguageTag(code).getDisplayLanguage(thatLocale), capitalized in that locale - "Български", "English", "Deutsch". It is how language pickers name languages: a reader always recognizes their own language, and the name needs no translation catalog. #8774 derives the label of an auto-registered locale the same way, so the print dialog and the language picker would name a language identically.

Keep falling back to the code when the JDK has no name for it.

Acceptance

A unit test on the languages endpoint: bg is named "Български", en "English", an unknown code its code. The print dialog of a generated document lists "Български" / "English" in both the Bulgarian and the English UI.

主要言語
Java
スター
278
フォーク
97
平均マージ
15時間 3分
マージ済み PR(30日)
320

環境構築

はじめの一歩

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

eclipse-dirigible/dirigible のほかの issue

eclipse-dirigible/dirigible の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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