SUMMARY I have a .ts file I want to translate, in Qt Linguist I can see the string status whether it's translated or missing etc. Opening the same file in Lokalize shows a gray box with X inside (missing) for all the strings regardless of their statuses. Changing the status to 'Approved' doesn't change the status of the string. STEPS TO REPRODUCE 1. Download any ts file from here (Better have translations): https://github.com/qt/qttranslations/tree/dev/translations 2. Load this file into Lokalize. 3. Observe the missing strings which are actually there. OBSERVED RESULT All the translated strings appear as missing. EXPECTED RESULT I should be able to control the status of the strings from withing Lokalize. SOFTWARE/OS VERSIONS Operating System: Manjaro Linux rolling KDE Plasma Version: 6.2.4 KDE Frameworks Version: 6.8.0 Qt Version: 6.8.0 Kernel Version: 6.12.1-4-MANJARO (64-bit) Graphics Platform: X11 ADDITIONAL INFORMATION The same results in Qt Linguist look completely different.
A possibly relevant merge request was started @ https://invent.kde.org/sdk/lokalize/-/merge_requests/189
Git commit 3c294d0b504f8c15a476213d15d900be0ec9d676 by Albert Astals Cid. Committed on 03/12/2024 at 18:54. Pushed by aacid into branch 'master'. Make TsStorage/XliffStorage::isEmpty work again In e7f783daddd813128aed9ef8c4fd6c092d56096d the condition - || (!result.isEmpty() && data && data->actionType == ContentEditingData::CheckLength)) was changed to + || (data && data->actionType == ContentEditingData::CheckLength)) on the basis that result.isEmpty was always false Well then then correct change is to remove the || altogether not to remove the code that is turning that check into false M +1 -1 src/catalog/ts/tsstorage.cpp M +1 -1 src/catalog/xliff/xliffstorage.cpp https://invent.kde.org/sdk/lokalize/-/commit/3c294d0b504f8c15a476213d15d900be0ec9d676
Git commit 56cfc8f0a938a000cf36bc74e43ef3830e5152dc by Albert Astals Cid. Committed on 03/12/2024 at 19:01. Pushed by aacid into branch 'release/24.12'. Make TsStorage/XliffStorage::isEmpty work again In e7f783daddd813128aed9ef8c4fd6c092d56096d the condition - || (!result.isEmpty() && data && data->actionType == ContentEditingData::CheckLength)) was changed to + || (data && data->actionType == ContentEditingData::CheckLength)) on the basis that result.isEmpty was always false Well then then correct change is to remove the || altogether not to remove the code that is turning that check into false (cherry picked from commit 3c294d0b504f8c15a476213d15d900be0ec9d676) M +1 -1 src/catalog/ts/tsstorage.cpp M +1 -1 src/catalog/xliff/xliffstorage.cpp https://invent.kde.org/sdk/lokalize/-/commit/56cfc8f0a938a000cf36bc74e43ef3830e5152dc