Open lolodomo opened 1 year ago
Given that this part of the settings page is generated based on the API response from core, see:
I’d say this is some core issue. You can check what the API returns for /rest/services
.
Result of GET /services
All services are translated except one. So you are right, the problem is in core framework, not in MainUI.
Okay, let‘s move this to core.
@kaikreuzer Can you please transfer this to core?
I am not sure but the problem could be that the files addons.properties and addons_*.properties are in org.openhab.core bundle and not in the bundle containing the service. I don't know why they are in this bundle. The code is searching the translation in the bundle of the service: https://github.com/openhab/openhab-core/blob/main/bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/service/ConfigurableServiceResource.java#L310
In settings page, all system services are correctly translated except "Add-on Management".
The translation seems to be correctly defined: https://github.com/openhab/openhab-core/blob/main/bundles/org.openhab.core/src/main/resources/OH-INF/i18n/addons_fr.properties#L6
Now, when I open this page, the parameters are properly translated except the title "Add-on Management":