Commit 146c7bb6 authored by Bruno Coudoin's avatar Bruno Coudoin
Browse files

main, fix a bug in the download of long locale

Long locales like zh_TW where downloaded as 'zh' only when the
user accept to download the voices on first run.
parent 2288dbdc
......@@ -124,14 +124,14 @@ Window {
+ qsTr("Have Fun!")
+ "\n"
+ qsTr("Your current language is %1 (%2).")
.arg(Qt.locale(ApplicationInfo.localeShort).nativeLanguageName)
.arg(ApplicationInfo.localeShort)
.arg(Qt.locale(ApplicationInfo.getVoicesLocale(ApplicationSettings.locale)).nativeLanguageName)
.arg(ApplicationInfo.getVoicesLocale(ApplicationSettings.locale))
+ "\n"
+ qsTr("Do you want to download the corresponding sound files now?"),
qsTr("Yes"),
function() {
if (DownloadManager.downloadResource(
DownloadManager.getVoicesResourceForLocale(ApplicationInfo.localeShort)))
DownloadManager.getVoicesResourceForLocale(ApplicationSettings.locale)))
var downloadDialog = Core.showDownloadDialog(pageView.currentItem, {});
},
qsTr("No"), null,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment