You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/main/asciidoc/qute-reference.adoc
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3042,7 +3042,14 @@ Message bundle files must be encoded in _UTF-8_.
3042
3042
The file name consists of the relevant bundle name (e.g. `msg`) and underscore followed by a language tag (IETF; e.g. `en-US`).
3043
3043
The language tag may be omitted, in which case the language tag of the default bundle locale is used.
3044
3044
For example, if bundle `msg` has default locale `en`, then `msg.properties` is going to be treated as `msg_en.properties`.
3045
-
If both `msg.properties` and `msg_en.properties` are detected, an exception is thrown and build fails.
3045
+
3046
+
If there are multiple files for a specific locale then Qute attempts to resolve the ambiguity.
3047
+
Localized files from the application root have higher priority and take precedence over localized files from dependencies.
3048
+
If multiple files of the same priority exist, then the build fails.
3049
+
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.
3050
+
Or another example - if there are two dependencies and both contain the `msg_en.properties` file, then the build fails again.
3051
+
On the other hand, if there is the `msg_en.properties` file in the application root and also the `msg_en.properties` file in a dependency, then messages from the application root take precedence and override the values from the dependency.
3052
+
3046
3053
The file format is very simple: each line represents either a key/value pair with the equals sign used as a separator or a comment (line starts with `#`).
3047
3054
Blank lines are ignored.
3048
3055
Keys are _mapped to method names_ from the corresponding message bundle interface.
0 commit comments