Hi rooster, I just looked at my app-search-widget code again, because it seems only the Name but not the comment entry is localized (translatable). The comment entry for the browser is weba_ap_web_browser_thumb but I can not find any translated text for this name... nicolai
QString Dialog::getComment(QString xTextDomain, QString execPath) { QString retComment = ""; QStringList execList = execPath.split("/"); QString execName = execList[execList.length() - 1]; bool isFound = false; QProcess apt; apt.start("sh -c \"apt-cache show " + xTextDomain.replace("_", "-") + " | grep 'Description:' | tail -1\""); apt.waitForFinished(); while(apt.canReadLine()) { QString outData = apt.readLine(); if (outData.startsWith("Description:")) { //qDebug() << outData; QStringList tmpSplit = outData.split(":"); if (tmpSplit.length() >= 2) { retComment = tmpSplit[tmpSplit.length() - 1]; isFound = true; } } } apt.close(); if (!isFound) { apt.start("sh -c \"apt-cache show " + execName.replace("_", "-") + " | grep 'Description:' | tail -1\""); apt.waitForFinished(); while(apt.canReadLine()) { QString outData = apt.readLine(); if (outData.startsWith("Description:")) { //qDebug() << outData; QStringList tmpSplit = outData.split(":"); if (tmpSplit.length() >= 2) { retComment = tmpSplit[tmpSplit.length() - 1]; isFound = true; } } } apt.close(); } return retComment.trimmed(); }