From 98e4c95a75da470e8cdfd33c1add2fc60d83e849 Mon Sep 17 00:00:00 2001
From: Luc Maisonobe <luc@orekit.org>
Date: Thu, 13 Dec 2018 15:51:07 +0100
Subject: [PATCH] Fixed locale for identification of non-translated messages.

---
 src/main/java/org/orekit/rugged/errors/RuggedMessages.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/orekit/rugged/errors/RuggedMessages.java b/src/main/java/org/orekit/rugged/errors/RuggedMessages.java
index da289541..972b11f3 100644
--- a/src/main/java/org/orekit/rugged/errors/RuggedMessages.java
+++ b/src/main/java/org/orekit/rugged/errors/RuggedMessages.java
@@ -116,7 +116,7 @@ public enum RuggedMessages implements Localizable {
                 final String translated = bundle.getString(name());
                 if ((translated != null) &&
                     (translated.length() > 0) &&
-                    (!translated.toLowerCase().contains("missing translation"))) {
+                    (!translated.toLowerCase(locale).contains("missing translation"))) {
                     // the value of the resource is the translated format
                     return translated;
                 }
-- 
GitLab