Wide coverage demo web app improvements

+ Adapt language selection menus to the languages supported by the grammar.
+ Add translation quality colors to the links to alternative translations.
+ Also added more country codes in langcode.js (needed for speech synthesis
  voice selection).
This commit is contained in:
hallgren
2014-03-28 14:56:56 +00:00
parent 12448ef4f0
commit 75011c8efa
3 changed files with 59 additions and 17 deletions

View File

@@ -36,6 +36,16 @@ function add_country(code) {
case "fi": return "fi-FI"
case "zh": return "zh-CN"
case "hi": return "hi-IN"
case "es": return "es-ES"
case "it": return "it-IT"
case "bg": return "bg-BG" // ?
case "da": return "da-DK"
case "nb": return "nb-NO"
case "nl": return "nl-NL"
case "ja": return "ja-JP"
case "ro": return "ja-RO"
case "el": return "el-GR"
// ...
default: return code
}
}