Add '_' language separator management.
This commit is contained in:
parent
eb6d24d913
commit
7c94cda80c
1 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue