diff --git a/libsearch/index/file-search-plugin.cpp b/libsearch/index/file-search-plugin.cpp index f7fbd26..df23f76 100644 --- a/libsearch/index/file-search-plugin.cpp +++ b/libsearch/index/file-search-plugin.cpp @@ -572,6 +572,14 @@ void FileContengSearchPlugin::openAction(int actionkey, QString key, int type) QWidget *FileContengSearchPlugin::detailPage(const ResultInfo &ri) { + //因为需要更新时间格式所以每次调用detailpage需要先设置时间文本 20230916@bjj + QString modTimeText = ri.description.at(2).value; + if (!DateFormat::getInstance().format().isEmpty()) { + QDateTime modTime = QDateTime::fromString(modTimeText, DEFAULT_DATETIME_FORMAT); + modTimeText = modTime.toString(DateFormat::getInstance().format()); + } + m_timeLabel2->setText(modTimeText); + if(ri.actionKey == m_currentActionKey) { return m_detailPage; } @@ -615,12 +623,6 @@ QWidget *FileContengSearchPlugin::detailPage(const ResultInfo &ri) m_pathLabel2->setText(m_pathLabel2->fontMetrics().elidedText(m_currentActionKey, Qt::ElideRight, m_pathLabel2->width())); m_pathLabel2->setToolTip(m_currentActionKey); - QString modTimeText = ri.description.at(2).value; - if (!DateFormat::getInstance().format().isEmpty()) { - QDateTime modTime = QDateTime::fromString(modTimeText, DEFAULT_DATETIME_FORMAT); - modTimeText = modTime.toString(DateFormat::getInstance().format()); - } - m_timeLabel2->setText(modTimeText); return m_detailPage; } diff --git a/translations/libukui-search/libukui-search_bo_CN.ts b/translations/libukui-search/libukui-search_bo_CN.ts index 28a66be..ba8b024 100644 --- a/translations/libukui-search/libukui-search_bo_CN.ts +++ b/translations/libukui-search/libukui-search_bo_CN.ts @@ -131,13 +131,13 @@ UkuiSearch::FileContengSearchPlugin - + Open སྒོ་ཕྱེ་བ། - + Open path ཡིག་ཆའི་ཐབས་ལམ་འབྱེད་དགོས། @@ -157,27 +157,27 @@ ཡིག་ཆའི་ནང་དོན་འཚོལ་ཞིབ་ - + OCR OCR - + File ཡིག་ཆ། - + Path ལམ་ཐིག - + Last time modified ཐེངས་སྔ་མའི་བཟོ་བཅོས་དུས་ཚོད། - + Copy path ཡིག་ཆའི་ལམ་ཐིག་དཔར་བ། diff --git a/translations/libukui-search/libukui-search_de_DE.ts b/translations/libukui-search/libukui-search_de_DE.ts index 1816a94..7c049de 100644 --- a/translations/libukui-search/libukui-search_de_DE.ts +++ b/translations/libukui-search/libukui-search_de_DE.ts @@ -142,13 +142,13 @@ UkuiSearch::FileContengSearchPlugin - + Open Offen - + Open path Offener Pfad @@ -172,27 +172,27 @@ Suche nach Dateiinhalten - + OCR OCR - + File Datei - + Path Pfad - + Last time modified Zuletzt geändert - + Copy path Pfad kopieren diff --git a/translations/libukui-search/libukui-search_es_ES.ts b/translations/libukui-search/libukui-search_es_ES.ts index cccd789..b70a82f 100644 --- a/translations/libukui-search/libukui-search_es_ES.ts +++ b/translations/libukui-search/libukui-search_es_ES.ts @@ -142,13 +142,13 @@ UkuiSearch::FileContengSearchPlugin - + Open Abrir - + Open path Ruta abierta @@ -172,27 +172,27 @@ Búsqueda de contenido de archivos - + OCR OCR - + File Archivo - + Path Camino - + Last time modified Última modificación - + Copy path Ruta de copia diff --git a/translations/libukui-search/libukui-search_fr_FR.ts b/translations/libukui-search/libukui-search_fr_FR.ts index 6439a1b..49318a4 100644 --- a/translations/libukui-search/libukui-search_fr_FR.ts +++ b/translations/libukui-search/libukui-search_fr_FR.ts @@ -142,13 +142,13 @@ UkuiSearch::FileContengSearchPlugin - + Open Ouvrir - + Open path Chemin ouvert @@ -172,27 +172,27 @@ Recherche dans le contenu d’un fichier - + OCR OCR - + File Lime - + Path Chemin - + Last time modified Dernière modification - + Copy path Copier le chemin d’accès diff --git a/translations/libukui-search/libukui-search_kk_KZ.ts b/translations/libukui-search/libukui-search_kk_KZ.ts index 823b7a8..8e5c39d 100644 --- a/translations/libukui-search/libukui-search_kk_KZ.ts +++ b/translations/libukui-search/libukui-search_kk_KZ.ts @@ -142,13 +142,13 @@ UkuiSearch::FileContengSearchPlugin - + Open Ашу - + Open path Жолды ашу @@ -172,27 +172,27 @@ Файл мазмұнын іздеу - + OCR OCR - + File Файл - + Path Жол - + Last time modified Соңғы рет өзгертілген - + Copy path Көшіру жолы diff --git a/translations/libukui-search/libukui-search_ky.ts b/translations/libukui-search/libukui-search_ky.ts index 987db6f..15c300b 100644 --- a/translations/libukui-search/libukui-search_ky.ts +++ b/translations/libukui-search/libukui-search_ky.ts @@ -142,13 +142,13 @@ UkuiSearch::FileContengSearchPlugin - + Open Ачуу - + Open path Ачык жол @@ -172,27 +172,27 @@ Файлдын мазмунун издөө - + OCR ОКР - + File Файл - + Path Жол - + Last time modified Акыркы жолу өзгөртүлүп берилди - + Copy path Көчүрмө жолу diff --git a/translations/libukui-search/libukui-search_mn.ts b/translations/libukui-search/libukui-search_mn.ts index 2f793b3..6a26068 100644 --- a/translations/libukui-search/libukui-search_mn.ts +++ b/translations/libukui-search/libukui-search_mn.ts @@ -142,13 +142,13 @@ UkuiSearch::FileContengSearchPlugin - + Open ᠨᠡᠬᠡᠬᠡᠬᠦ᠌ - + Open path ᠹᠠᠢᠯ᠎ᠤᠨ ᠪᠠᠢᠭ᠎ᠠ ᠵᠠᠮ᠎ᠢ ᠨᠡᠬᠡᠬᠡᠬᠦ᠌ @@ -172,27 +172,27 @@ ᠲᠸᠺᠰᠲ᠎ᠦᠨ ᠠᠭᠤᠯᠭ᠎ᠠ - + OCR OCR - + File ᠹᠠᠢᠯ - + Path ᠵᠠᠮ - + Last time modified ᠳᠡᠭᠡᠷ᠎ᠡ ᠤᠳᠠᠭ᠎ᠠ᠎ᠶᠢᠨ ᠵᠠᠰᠠᠭᠰᠠᠨ ᠴᠠᠭ - + Copy path ᠹᠠᠢᠯ᠎ᠤᠨ ᠵᠠᠮ᠎ᠢ ᠬᠠᠭᠤᠯᠪᠤᠷᠢᠯᠠᠬᠤ diff --git a/translations/libukui-search/libukui-search_tr.ts b/translations/libukui-search/libukui-search_tr.ts index 25d4c44..d9f86d4 100644 --- a/translations/libukui-search/libukui-search_tr.ts +++ b/translations/libukui-search/libukui-search_tr.ts @@ -142,13 +142,13 @@ UkuiSearch::FileContengSearchPlugin - + Open 打开 - + Open path @@ -172,27 +172,27 @@ - + OCR - + File - + Path - + Last time modified - + Copy path diff --git a/translations/libukui-search/libukui-search_ug.ts b/translations/libukui-search/libukui-search_ug.ts index 6142545..6510cb5 100644 --- a/translations/libukui-search/libukui-search_ug.ts +++ b/translations/libukui-search/libukui-search_ug.ts @@ -142,13 +142,13 @@ UkuiSearch::FileContengSearchPlugin - + Open ئېچىش - + Open path ئوچۇق يول @@ -172,27 +172,27 @@ ھۆججەت مەزمۇنىنى ئىزدەش - + OCR OCR - + File ھۆججەت - + Path يول - + Last time modified ئاخىرقى قېتىم ئۆزگەرتىلگەن - + Copy path كۆچۈرۈش يولى diff --git a/translations/libukui-search/libukui-search_zh_CN.ts b/translations/libukui-search/libukui-search_zh_CN.ts index 169f0d6..8db13e1 100644 --- a/translations/libukui-search/libukui-search_zh_CN.ts +++ b/translations/libukui-search/libukui-search_zh_CN.ts @@ -142,13 +142,13 @@ UkuiSearch::FileContengSearchPlugin - + Open 打开 - + Open path 打开文件所在路径 @@ -172,27 +172,27 @@ 文本内容 - + OCR OCR - + File 文件 - + Path 路径 - + Last time modified 上次修改时间 - + Copy path 复制路径 diff --git a/translations/libukui-search/libukui-search_zh_HK.ts b/translations/libukui-search/libukui-search_zh_HK.ts index b68a757..b29875b 100644 --- a/translations/libukui-search/libukui-search_zh_HK.ts +++ b/translations/libukui-search/libukui-search_zh_HK.ts @@ -124,13 +124,13 @@ UkuiSearch::FileContengSearchPlugin - + Open 打開 - + Open path 打開檔所在路徑 @@ -150,27 +150,27 @@ 文字內容搜索 - + OCR 光學字元辨識 - + File - + Path 路徑 - + Last time modified 上次修改時間 - + Copy path 複製路徑