Use full version string for voicefile version.

Change-Id: If9a179b0fcb707efb32590c8914eccdb81ee27df
This commit is contained in:
Dominik Riebeling 2012-05-23 22:59:56 +02:00
parent 6de59442a5
commit 9b5d6679b8

View file

@ -57,15 +57,16 @@ bool VoiceFileCreator::createVoiceFile()
QString target = info.target(); QString target = info.target();
QString features = info.features(); QString features = info.features();
QString version = info.version();
m_targetid = info.targetID().toInt(); m_targetid = info.targetID().toInt();
m_versionstring = version.left(version.indexOf("-")).remove("r"); m_versionstring = info.version();
QString version = m_versionstring.left(m_versionstring.indexOf("-")).remove("r");
qDebug() << m_versionstring;
//prepare download url //prepare download url
QString genlang = SystemInfo::value(SystemInfo::GenlangUrl).toString(); QString genlang = SystemInfo::value(SystemInfo::GenlangUrl).toString();
genlang.replace("%LANG%", m_lang); genlang.replace("%LANG%", m_lang);
genlang.replace("%TARGET%", target); genlang.replace("%TARGET%", target);
genlang.replace("%REVISION%", m_versionstring); genlang.replace("%REVISION%", version);
genlang.replace("%FEATURES%", features); genlang.replace("%FEATURES%", features);
QUrl genlangUrl(genlang); QUrl genlangUrl(genlang);
qDebug() << "[VoiceFileCreator] downloading " << genlangUrl; qDebug() << "[VoiceFileCreator] downloading " << genlangUrl;