Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Administration shell never reports missing translations: its language-coverage scan fetches gen/<app>/admin/js/config.js, which no generated application has

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

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

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

評価

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

調査の方向性

resources-admin/admin/js/appShell.jsを読み、パースペクティブのパスから生成された設定URLまでloadLanguageCoverage()を追います。resources-application/.../application/js/appShell.jsにあるApplication Shellのコピー、およびissueで説明されている生成パスと比較します。スキャンが各Applicationのgen/<app>/js/config.jsを読み込み、bgなどのプラットフォーム言語が不足しているアプリを報告すれば完了です。

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

説明

Image: dirigiblelabs/dirigible:15.1.0-java (sha256:dac354be94f21f222e88b81fd7fc6e68d9616ee7b4e12bcb1e9eef0465bd213f)
Reference: dirigiblelabs/dirigible:15.1.0 (sha256:449b8c948738a2bd7a4294a7bec1000a08bc1da1cd20f312f0e54383a7af325d)
Basic auth admin:admin, default H2, DIRIGIBLE_APPLICATION_LANGUAGES=en,bg.

Same behaviour on both editions.

Steps

  1. Generate and publish an intent application whose intent declares only languages: [en] (or none), e.g. project customers.
  2. GET /services/platform/extensions/perspectives?extensionPoints=application-admin-perspectives -> its admin perspective, "path":"/services/web/customers/gen/customers/admin/index.html".
  3. Open the administration shell /services/web/admin/index.html, go to Settings > Region & Language.

Observed

The shell requests GET /services/web/customers/gen/customers/admin/js/config.js -> 404 (once per generated application; the console shows Failed to load resource: the server responded with a status of 404). The generated config lives one level up: GET /services/web/customers/gen/customers/js/config.js -> 200 with its languages: [...].

Every application is therefore treated as a platform surface and dropped from the scan. The shell state after load is appLanguages: [], languageWarnings(): [] with platform languages ["en","bg"] - so an application providing only en is never listed as missing bg. The administration shell's missing-translation warning can never appear.

Expected

loadLanguageCoverage() reads each generated application's gen/<app>/js/config.js and lists the applications whose declared languages do not cover the platform set, as the comment above it describes (the application shell's copy of the same function in resources-application/.../application/js/appShell.js does this, see #8137 for its wording).

Where

resources-admin admin/js/appShell.js, loadLanguageCoverage() (v15.1.0, ~line 189): the base is derived from the perspective path with ^/services/web/([^/]+)/([^#?]*/)?index\.html, and every admin perspective generated by template-application-ui-harmonia-java (ui/admin/admin-perspective.*) points at gen/<app>/admin/index.html, so the base ends in /admin/, where no js/config.js is generated (only ui/shell/js/config.js.template exists).

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

環境構築

はじめの一歩

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

eclipse-dirigible/dirigible のほかの issue

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

似ている issue

Java の issue をもっと見る

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

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