From 7c94cda80ce6d8e4cabd8ec75b459aee4bb5b976 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Tue, 17 Sep 2013 13:38:02 +0200 Subject: [PATCH] Add '_' language separator management. --- .../devinsy/xidyn/presenters/TranslatorPresenter.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/fr/devinsy/xidyn/presenters/TranslatorPresenter.java b/src/fr/devinsy/xidyn/presenters/TranslatorPresenter.java index c21a980..e569f8d 100644 --- a/src/fr/devinsy/xidyn/presenters/TranslatorPresenter.java +++ b/src/fr/devinsy/xidyn/presenters/TranslatorPresenter.java @@ -216,7 +216,16 @@ public class TranslatorPresenter implements Presenter } else { - result = getPresenter((String) null); + adaptedSource = FileTools.addBeforeExtension(defaultSource, "_" + language); + + if (result.isAvailable()) + { + this.presenters.put(language, result); + } + else + { + result = getPresenter((String) null); + } } } }