Add '_' language separator management.

This commit is contained in:
Christian P. MOMON 2013-09-17 13:38:02 +02:00
parent eb6d24d913
commit 7c94cda80c

View file

@ -210,6 +210,14 @@ public class TranslatorPresenter implements Presenter
String adaptedSource = FileTools.addBeforeExtension(defaultSource, "-" + language);
result = PresenterFactory.get(adaptedSource);
if (result.isAvailable())
{
this.presenters.put(language, result);
}
else
{
adaptedSource = FileTools.addBeforeExtension(defaultSource, "_" + language);
if (result.isAvailable())
{
this.presenters.put(language, result);
@ -220,6 +228,7 @@ public class TranslatorPresenter implements Presenter
}
}
}
}
//
return result;