From eb6d24d91365e3de72f3ef343c26b00768b1c87b Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Tue, 17 Sep 2013 13:35:30 +0200 Subject: [PATCH] Fix Locale.ROOT case. --- src/fr/devinsy/xidyn/presenters/TranslatorPresenter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/devinsy/xidyn/presenters/TranslatorPresenter.java b/src/fr/devinsy/xidyn/presenters/TranslatorPresenter.java index afe2220..c21a980 100644 --- a/src/fr/devinsy/xidyn/presenters/TranslatorPresenter.java +++ b/src/fr/devinsy/xidyn/presenters/TranslatorPresenter.java @@ -161,7 +161,7 @@ public class TranslatorPresenter implements Presenter // String language; - if (locale == null) + if ((locale == null) || (locale.getLanguage().length() == 0)) { language = null; }