All Questions
Tagged with internationalization java
1,177 questions
0
votes
0
answers
31
views
Custom FieldError error message is not translated and i18n key is shown instead in Thymeleaf / SpringBoot application
Summary
My app performs custom field validation and adds a FieldError, whose message key does not properly get translated. Instead the plain i18n key is shown.
Details
As other parts of the ...
1
vote
1
answer
161
views
Change java.locale.providers via System.setProperty has no effect
To change the locale providers in java 9+ (I am using 21 right now) I can start java with:
-Djava.locale.providers=COMPAT,SPI
However I tried to set this property programmatically via:
System....
-1
votes
1
answer
82
views
How can I provide localized Qute MessageBundle values at runtime?
Using Qute Message Bundles, how can I provide message values at runtime?
For example, I have values stored in a database that can be changed at any time. Whenever my application obtains a message from ...
2
votes
2
answers
84
views
How to find a mongodb document then apply localization?
I have a collection of a few thousand characters. Each character has eight localized fields and nine different supported languages. Below is an example of the schema I am using populated with sample ...
-1
votes
2
answers
151
views
How to set the value attribute for select items in vaadin
I am using a login form (LoginOverlay) from vaadin to login to my application.
I use the custom form area to add a language select box where the language can be selected
The form is then posted to a ...
0
votes
1
answer
73
views
i18n with messages file on configmap k8s
i'm trying to mount my messages files for various languages on a configMap on kubernetes but for some reason i can't reach the variables inside the configmap.
This is basename in cluster-prop: spring....
1
vote
1
answer
257
views
LocalizedTextUtil Alternative in Struts2 6.1.2.1
I am trying to migrate from Struts2 2.3.36 to Struts2 6.1.2.1 for a legacy multi-module web application.
In every module's init file we register the locale message properties file like so -
//inside ...
0
votes
1
answer
210
views
Java .properties file not found in directory
I am pretty new developer in Java and so I am a little bit confused with the .properties file. I know how JVM looks for them during the runtime but I have a slightly different problem.
I have a ...
0
votes
1
answer
45
views
Spring Boot Validation Message resolve during compile
I have set up Spring Boot Validation Message for i18n with the various annotations and beans necessary and have it all working for example
SomePOJO
@NotEmpty(message = "{user.lastname_required}&...
3
votes
2
answers
239
views
JavaFX dialog internationalization in java module based project
I would like to ask for a help with internationalization of buttons in JavaFX built in dialogs.
Translations for buttons are available in https://github.com/openjdk/jfx/tree/master/modules/javafx....
0
votes
1
answer
139
views
What is the best way to support parsing multiple languages in ANTLR?
I have written an application in Java that allows the user to enter a statement like:
show photos with tag "..."
I use ANTLR to write a lexer/parser to parse the above input which is in ...
1
vote
2
answers
463
views
Struts 2 and JDK 17 numbers in locale
With struts 6.3.0.1 and jdk 8 the below generates 1, 2, 3,
<s:iterator begin="1" end="3">
<s:property value="top"/>,
</s:iterator&...
0
votes
1
answer
206
views
Prevent swagger from using MessageSource
I'm using OpenApi generator https://openapi-generator.tech/ to generate the REST API interfaces that will be used in a SpringBoot 6 based service.
Below is an excerpt from an API definition (...
0
votes
1
answer
242
views
MessageSource not using the same locale as Thymeleaf
I set user locale based on the session attribute.
@SpringBootApplication
@ServletComponentScan
@Configuration
public class Webapp {
// Thymeleaf
@Bean
public LayoutDialect layoutDialect() ...
0
votes
1
answer
630
views
SpringBoot override I18N messages.properties for jar
I have a spring boot project which should use default values for application.properties and the language resource bundle message.properties. Overriding application.properties is easy and well ...