summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/voicefile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/base/voicefile.cpp')
-rw-r--r--rbutil/rbutilqt/base/voicefile.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/base/voicefile.cpp b/rbutil/rbutilqt/base/voicefile.cpp
index a3950ca950..ce4596828f 100644
--- a/rbutil/rbutilqt/base/voicefile.cpp
+++ b/rbutil/rbutilqt/base/voicefile.cpp
@@ -63,9 +63,12 @@ bool VoiceFileCreator::createVoiceFile()
version = version.left(version.indexOf("-")).remove("r");
//prepare download url
- QUrl genlangUrl = SystemInfo::value(SystemInfo::GenlangUrl).toString()
- +"?lang=" + m_lang + "&t=" + target + "&rev=" + version + "&f=" + features;
-
+ QString genlang = SystemInfo::value(SystemInfo::GenlangUrl).toString();
+ genlang.replace("%LANG%", m_lang);
+ genlang.replace("%TARGET%", target);
+ genlang.replace("%REVISION%", version);
+ genlang.replace("%FEATURES%", features);
+ QUrl genlangUrl(genlang);
qDebug() << "[VoiceFileCreator] downloading " << genlangUrl;
//download the correct genlang output