diff --git a/src/lib/downloads/downloaditem.cpp b/src/lib/downloads/downloaditem.cpp index 6e3a98d88..9de921689 100644 --- a/src/lib/downloads/downloaditem.cpp +++ b/src/lib/downloads/downloaditem.cpp @@ -255,13 +255,13 @@ QString DownloadItem::remaingTimeToString(QTime time) return tr("few seconds"); } else if (time < QTime(0, 1)) { - return time.toString("s") + QLatin1String(" ") + tr("seconds", "", time.second()); + return tr("%n seconds", "", time.second()); } else if (time < QTime(1, 0)) { - return time.toString("m") + QLatin1String(" ") + tr("minutes", "", time.minute()); + return tr("%n minutes", "", time.minute()); } else { - return time.toString("h") + QLatin1String(" ") + tr("hours", "", time.hour()); + return tr("%n hours", "", time.hour()); } } diff --git a/src/lib/tools/qztools.cpp b/src/lib/tools/qztools.cpp index decd5cc05..338af0faa 100644 --- a/src/lib/tools/qztools.cpp +++ b/src/lib/tools/qztools.cpp @@ -288,19 +288,18 @@ QString QzTools::fileSizeToString(qint64 size) double _size = size / 1024.0; // KB if (_size < 1000) { - return QString::number(_size > 1 ? _size : 1, 'f', 0) + " KB"; + return QString::number(_size > 1 ? _size : 1, 'f', 0) + " " + QObject::tr("KB"); } _size /= 1024; // MB if (_size < 1000) { - return QString::number(_size, 'f', 1) + " MB"; + return QString::number(_size, 'f', 1) + " " + QObject::tr("MB"); } _size /= 1024; // GB - return QString::number(_size, 'f', 2) + " GB"; + return QString::number(_size, 'f', 2) + " " + QObject::tr("GB"); } - QPixmap QzTools::createPixmapForSite(const QIcon &icon, const QString &title, const QString &url) { const QFontMetrics fontMetrics = QApplication::fontMetrics(); diff --git a/translations/ar.ts b/translations/ar.ts index 5bd557906..cf27a44a3 100644 --- a/translations/ar.ts +++ b/translations/ar.ts @@ -1579,26 +1579,62 @@ Please install latest version of QupZilla. few seconds بضع ثوانٍ - + - seconds - ثا + %n seconds + + ثانية + ثانية واحدة + ثانيتان + %n ثوانٍ + %n ثانيةً + %n ثانيةٍ + - + - minutes - د + %n minutes + + دقيقة + دقيقة واحدة + دقيقتان + %n دقائق + %n دقيقةً + %n دقيقةٍ + - + - hours - سا + %n hours + + ساعة + ساعة واحدة + ساعتان + %n ساعات + %n ساعةً + %n ساعةٍ + Unknown speed لا تُعرف السرعة + + + kB/s + ك.ب/ثا + + + + MB/s + م.ب/ثا + + + + GB/s + ج.ب/ثا + Unknown size @@ -1612,7 +1648,7 @@ Please install latest version of QupZilla. Remaining %1 - %2 of %3 (%4) - تبقى %1 - %2 من %3 (%4) + تبقت %1 - %2 من %3 (%4) @@ -1700,7 +1736,7 @@ Please install latest version of QupZilla. %1% of %2 files (%3) %4 remaining - %1% من %2 (%3) - تبقى %4 + %1% من %2 (%3) - تبقت %4 @@ -3824,6 +3860,21 @@ Please install latest version of QupZilla. Unknown size لا يُعرف الحجم + + + KB + كيلوبايت + + + + MB + ميغابايت + + + + GB + جيجابايت + Executable: