Administration shell never reports missing translations: its language-coverage scan fetches gen/<app>/admin/js/config.js, which no generated application has
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- java
- Área
- internationalization
Línea de trabajo
Lee resources-admin/admin/js/appShell.js y sigue loadLanguageCoverage() desde la ruta de perspectiva hasta la URL de configuración generada. Compárala con la copia del shell de la aplicación en resources-application/.../application/js/appShell.js y con las rutas generadas descritas en el issue. El trabajo estará terminado cuando el análisis lea el gen/<app>/js/config.js de cada aplicación e informe de las aplicaciones a las que les faltan idiomas de la plataforma, como bg.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Generate and publish an intent application whose intent declares only
languages: [en](or none), e.g. projectcustomers. GET /services/platform/extensions/perspectives?extensionPoints=application-admin-perspectives-> its admin perspective,"path":"/services/web/customers/gen/customers/admin/index.html".- 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).
- Lenguaje dominante
- Java
- Estrellas
- 278
- Forks
- 97
- Merge medio
- 15 h 42 min
- PR fusionados (30 d)
- 299
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de eclipse-dirigible/dirigible
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
eclipse-dirigible/dirigible#8291 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
eclipse-dirigible/dirigible#8240 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
eclipse-dirigible/dirigible#8232 ·
Los mantenedores suelen responder en 1 día
-
Under a 1 GiB container limit the default image exhausts its 256 MB heap on the first publish, poisons its H2 store and keeps running while answering 401 to every loginPosiblemente ocupada @d-velev la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eclipse-dirigible/dirigible#8231 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
eclipse-dirigible/dirigible#8226 ·
Los mantenedores suelen responder en 1 día
Todos los issues de eclipse-dirigible/dirigible
Issues similares
-
Preventions: a dose saved without a unit reopens blank, and an unchanged save then erases itAbiertopriority: medium Review effort [1-5]: 3 status: needs-triage type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
carlos-emr/carlos#5431 ·
Los mantenedores suelen responder en 1 día
-
Integration tests: jetty:run fails with WELD-001408 for CountryJpaServicePosiblemente ocupada @viniciusmachak la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
primefaces/primefaces#15431 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
OpenAPITools/openapi-generator#25454 ·
Los mantenedores suelen responder en 1 día
-
Component - Build
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Update the Russian localizationAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100