Skip to content

Conversation

@mkouba
Copy link
Contributor

@mkouba mkouba commented Nov 4, 2025

@quarkus-bot quarkus-bot bot added area/documentation area/qute The template engine labels Nov 4, 2025
@mkouba
Copy link
Contributor Author

mkouba commented Nov 4, 2025

@ia3andy Could pls test this PR with the roq use case you talked about?

@mkouba mkouba marked this pull request as ready for review November 4, 2025 13:03
@quarkus-bot

This comment has been minimized.

@ia3andy
Copy link
Contributor

ia3andy commented Nov 4, 2025

Thanks @mkouba :) I 'll have a look!

@quarkus-bot

This comment has been minimized.

@quarkus-bot
Copy link

quarkus-bot bot commented Nov 4, 2025

Status for workflow Quarkus Documentation CI

This is the status report for running Quarkus Documentation CI on commit 550074e.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

🙈 The PR is closed and the preview is expired.

Localized files from the application root have higher priority and take precedence over localized files from dependencies.
If multiple files of the same priority exist, then the build fails.
For example, if the default bundle locale is `en` and the files `msg.properties` and `msg_en.properties` are found in the application root, then an exception is thrown and the build fails.
Or another example - if there are two dependencies and both contain the `msg_en.properties` file, then the build fails again.
Copy link
Member

@michalvavrik michalvavrik Nov 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it is quite natural that there will be 2 dependencies with msg_en.properties, each with localized messages for their own messages. They do not need to overlap, unless they define the same localizations. Wouldn't it be smarter to merge them and only fail build if there are any conflicts in defined messages (like they define the same localization and with different value)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I am just missing something?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I don't think it's very common. You still need a message bundle interface. The main use case is Roq which provides a message bundle interface + default message files (dependency) but the user can override messages in localized files in the app (application root).

Wouldn't it be smarter to merge them and only fail build if there are any conflicts in defined messages (like they define the same localization and with different value)?

It would be smarter but also even more complex to implement and more difficult to understand, i.e. sometimes the message can be overriden, but sometimes it's a conflict 🤷.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, let's go with your version and wait for possible user change request.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For sure, we can always make it smarted later 😉.

@quarkus-bot
Copy link

quarkus-bot bot commented Nov 4, 2025

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit 550074e.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

You can consult the Develocity build scans.

@ia3andy
Copy link
Contributor

ia3andy commented Nov 4, 2025

I am currently trying it, I had a few issue build issues (as you saw on zulip)

@ia3andy
Copy link
Contributor

ia3andy commented Nov 4, 2025

Awesommmme it works like a charm!!!

Copy link
Contributor

@ia3andy ia3andy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ia3andy ia3andy merged commit 4eeb571 into quarkusio:main Nov 4, 2025
77 of 78 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.30 - main milestone Nov 4, 2025
@quarkus-bot quarkus-bot bot added the kind/enhancement New feature or request label Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation area/qute The template engine kind/enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow to define Qute i18n default values as properties

3 participants