mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
Ensure English locale for English messages.
This commit is contained in:
parent
4438038f22
commit
5f32e1d3b7
1 changed files with 3 additions and 2 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
package de.kosit.validationtool.impl;
|
package de.kosit.validationtool.impl;
|
||||||
|
|
||||||
import java.text.MessageFormat;
|
import java.text.MessageFormat;
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper for {@link System Systems} printing capability.
|
* Wrapper for {@link System Systems} printing capability.
|
||||||
|
|
@ -37,7 +38,7 @@ public class Printer {
|
||||||
* @param params the params.
|
* @param params the params.
|
||||||
*/
|
*/
|
||||||
public static void writeOut(final String message, final Object... params) {
|
public static void writeOut(final String message, final Object... params) {
|
||||||
System.out.println(MessageFormat.format(message, params));
|
System.out.println(new MessageFormat(message, Locale.ENGLISH).format(params));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -47,6 +48,6 @@ public class Printer {
|
||||||
* @param params the params.
|
* @param params the params.
|
||||||
*/
|
*/
|
||||||
public static void writeErr(final String message, final Object... params) {
|
public static void writeErr(final String message, final Object... params) {
|
||||||
System.err.println(MessageFormat.format(message, params));
|
System.err.println(new MessageFormat(message, Locale.ENGLISH).format(params));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue