correct "de"-query

This commit is contained in:
sonora 2013-08-28 12:11:34 +02:00
parent 517825d3ec
commit 5171a1b026

View file

@ -438,7 +438,7 @@ public class VoiceRouter {
if(pn != null) {
pn = pn.replace('-', ' ');
pn = pn.replace(':', ' ');
if (!AbstractPrologCommandPlayer.getLanguage().equals("de")){
if (player != null && "de".equals(player.getLanguage())){
pn = pn.replace("\u00df", "ss"); // helps non-German tts voices to pronounce German Strasse (=street)
}
}