| Summary: | Translation of tags and resources only happen when creating the database | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Tiar <tamtamy.tymona> |
| Component: | Translation | Assignee: | Halla Rempt <halla> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | alvin, halla, raghu |
| Priority: | NOR | ||
| Version First Reported In: | git master (please specify the git hash!) | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/graphics/krita/commit/8504f5764fefcfe34534b4a784a3af50828c43c3 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Bug Depends on: | |||
| Bug Blocks: | 439760 | ||
|
Description
Tiar
2021-06-29 13:00:31 UTC
*** Bug 440949 has been marked as a duplicate of this bug. *** Note: we do not translate resource names at the moment. A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/1227 Git commit 4a9a54ffef7f5cbedfd53eb322852889c96a2fa5 by Halla Rempt. Committed on 15/12/2021 at 11:39. Pushed by rempt into branch 'master'. Make tags dynamically translatable This adds a new table to the db scheme, removes the kconfig* backend for reading ini files in favour of a hand-coded parser which can give us all translated texts and handles getting the translated texts in the tag model. Note that this completely breaks saving tags from older database schema's, so good thing we're still in beta. M +7 -11 libs/brush/KisAbrStorage.cpp M +0 -5 libs/global/kis_debug.cpp M +0 -3 libs/global/kis_debug.h M +2 -7 libs/image/KisAslStorage.cpp M +0 -4 libs/resources/CMakeLists.txt M +0 -6 libs/resources/KisBundleStorage.cpp M +0 -5 libs/resources/KisFolderStorage.cpp M +0 -6 libs/resources/KisMemoryStorage.cpp M +66 -25 libs/resources/KisResourceCacheDb.cpp M +1 -1 libs/resources/KisResourceCacheDb.h M +117 -63 libs/resources/KisResourceLocator.cpp M +8 -0 libs/resources/KisResourceLocator.h M +2 -13 libs/resources/KisResourceModel.cpp M +0 -12 libs/resources/KisResourceStorage.h M +124 -59 libs/resources/KisTag.cpp M +20 -13 libs/resources/KisTag.h M +57 -73 libs/resources/KisTagModel.cpp M +4 -14 libs/resources/KisTagResourceModel.cpp D +0 -202 libs/resources/bufferfragment_p.h D +0 -69 libs/resources/kconfigbackend.cpp D +0 -192 libs/resources/kconfigbackend_p.h D +0 -320 libs/resources/kconfigdata.cpp D +0 -231 libs/resources/kconfigdata.h D +0 -810 libs/resources/kconfigini.cpp D +0 -78 libs/resources/kconfigini_p.h M +1 -4 libs/resources/sql.qrc A +9 -0 libs/resources/sql/create_tag_translations.sql M +2 -2 libs/resources/sql/create_tags.sql M +1 -1 libs/resources/tests/TestFolderStorage.cpp https://invent.kde.org/graphics/krita/commit/4a9a54ffef7f5cbedfd53eb322852889c96a2fa5 Git commit 8504f5764fefcfe34534b4a784a3af50828c43c3 by Halla Rempt. Committed on 15/12/2021 at 12:58. Pushed by rempt into branch 'krita/5.0'. Make tags dynamically translatable This adds a new table to the db scheme, removes the kconfig* backend for reading ini files in favour of a hand-coded parser which can give us all translated texts and handles getting the translated texts in the tag model. Note that this completely breaks saving tags from older database schema's, so good thing we're still in beta. (cherry picked from commit 4a9a54ffef7f5cbedfd53eb322852889c96a2fa5) M +7 -11 libs/brush/KisAbrStorage.cpp M +0 -5 libs/global/kis_debug.cpp M +0 -3 libs/global/kis_debug.h M +2 -7 libs/image/KisAslStorage.cpp M +0 -4 libs/resources/CMakeLists.txt M +0 -6 libs/resources/KisBundleStorage.cpp M +0 -5 libs/resources/KisFolderStorage.cpp M +0 -6 libs/resources/KisMemoryStorage.cpp M +66 -25 libs/resources/KisResourceCacheDb.cpp M +1 -1 libs/resources/KisResourceCacheDb.h M +117 -63 libs/resources/KisResourceLocator.cpp M +8 -0 libs/resources/KisResourceLocator.h M +2 -13 libs/resources/KisResourceModel.cpp M +0 -12 libs/resources/KisResourceStorage.h M +124 -59 libs/resources/KisTag.cpp M +20 -13 libs/resources/KisTag.h M +57 -73 libs/resources/KisTagModel.cpp M +4 -14 libs/resources/KisTagResourceModel.cpp D +0 -202 libs/resources/bufferfragment_p.h D +0 -69 libs/resources/kconfigbackend.cpp D +0 -192 libs/resources/kconfigbackend_p.h D +0 -320 libs/resources/kconfigdata.cpp D +0 -231 libs/resources/kconfigdata.h D +0 -810 libs/resources/kconfigini.cpp D +0 -78 libs/resources/kconfigini_p.h M +1 -4 libs/resources/sql.qrc A +9 -0 libs/resources/sql/create_tag_translations.sql M +2 -2 libs/resources/sql/create_tags.sql M +1 -1 libs/resources/tests/TestFolderStorage.cpp https://invent.kde.org/graphics/krita/commit/8504f5764fefcfe34534b4a784a3af50828c43c3 |