SpeechSynthesis.Voice.toString should report the language code (not the voice name), so the correct language name is displayed

This commit is contained in:
Reece H. Dunn
2012-12-17 18:54:44 +00:00
parent 54b9cb161b
commit 0a69c19112
3 changed files with 40 additions and 15 deletions
@@ -274,7 +274,7 @@ public class SpeechSynthesis {
@Override
public String toString() {
return name;
return locale.toString().replace('_', '-');
}
}
}