Debian Codegraph @

project/bundles/3rdparty/ext_kf6/ki18n-disable-isocodes.patch

raw
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 96130a4..b4f728c 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
5 @@ -51,10 +51,12 @@ set_package_properties(LibIntl PROPERTIES TYPE REQUIRED
6 PURPOSE "Needed for building KI18n unless glibc is the system libc implementation"
7 )
8
9 -find_package(IsoCodes)
10 -set_package_properties(IsoCodes PROPERTIES TYPE RUNTIME
11 - PURPOSE "Translation catalogs for countries, country subdivisions, languages and currencies"
12 -)
13 +if(NOT MSVC)
14 + find_package(IsoCodes)
15 + set_package_properties(IsoCodes PROPERTIES TYPE RUNTIME
16 + PURPOSE "Translation catalogs for countries, country subdivisions, languages and currencies"
17 + )
18 +endif()
19
20 # KF6I18nMacros.cmake only needs to know the python executable path.
21 # Due to CMake caching the variables, and KF6I18nMacros being included by KF6I18nConfig,
22 diff --git a/src/i18n/klocalizedcontext.h b/src/i18n/klocalizedcontext.h
23 index e895bc3..083f5e7 100644
24 --- a/src/i18n/klocalizedcontext.h
25 +++ b/src/i18n/klocalizedcontext.h
26 @@ -42,7 +42,7 @@
27 * Use KLocalizedQmlContext or KLocalization::setupLocalizedContext
28 * instead.
29 */
30 -KI18N_DEPRECATED_VERSION(6, 8, "use KLocalizedQmlContext or KLocalization::setupLocalizedContext() from KF6::I18nQml instead")
31 +//KI18N_DEPRECATED_VERSION(6, 8, "use KLocalizedQmlContext or KLocalization::setupLocalizedContext() from KF6::I18nQml instead")
32 class KI18N_EXPORT KLocalizedContext : public QObject
33 {
34 Q_OBJECT