diff options
author | Max Brazhnikov <makc@FreeBSD.org> | 2025-04-17 14:57:49 +0300 |
---|---|---|
committer | Max Brazhnikov <makc@FreeBSD.org> | 2025-04-17 14:57:49 +0300 |
commit | 9ead4b6918b8978bf7f35fc4ef49bced9f0447b6 (patch) | |
tree | ed6fb3a7b185e1f9dc1ba1bf66670ab3d7e73443 /games/khangman/files/patch-nonLatin | |
parent | print/miktex: Update to 25.3 (diff) |
KDE: Update KDE Gear to 25.04.0
Announcement: https://kde.org/announcements/gear/25.04.0/
Ports changes:
kde.mk:
- Simplify KDE_APPS_BASED_PATCHLEVEL definition and generalize
it for unstable branch.
devel/kopeninghours:
- Use custom PLIST_SUB to reduce churn on updates.
editors/ghostwriter:
- Drop upstreamed patch.
games/khangman:
- Drop upstreamed patch.
math/kcalc:
- Depend on math/mpc.
multimedia/kdenlive:
- Prevent fetching during build.
- Depends on KF6 Purpose unconditionally and remove no-op OPTIONS_SUB.
- Depend on OpenTimelineIO.
net/krdc:
- Switch to freerdp3.
x11-fm/dolphin:
- Fix abuse of PLIST_SUB.
*/*:
- Add missing and update KF6 dependencies and Qt components.
Diffstat (limited to 'games/khangman/files/patch-nonLatin')
-rw-r--r-- | games/khangman/files/patch-nonLatin | 173 |
1 files changed, 0 insertions, 173 deletions
diff --git a/games/khangman/files/patch-nonLatin b/games/khangman/files/patch-nonLatin deleted file mode 100644 index 16ee8888f032..000000000000 --- a/games/khangman/files/patch-nonLatin +++ /dev/null @@ -1,173 +0,0 @@ -diff --git a/languages/CMakeLists.txt b/languages/CMakeLists.txt -index 5543653..d2cee8b 100644 ---- a/languages/CMakeLists.txt -+++ b/languages/CMakeLists.txt -@@ -16,6 +16,7 @@ add_subdirectory(nn) - add_subdirectory(pl) - add_subdirectory(pt) - add_subdirectory(pt_BR) -+add_subdirectory(ru) - add_subdirectory(sk) - add_subdirectory(sl) - add_subdirectory(sr@ijekavianlatin) -@@ -23,3 +24,4 @@ add_subdirectory(sr@latin) - add_subdirectory(sv) - add_subdirectory(tg) - add_subdirectory(tr) -+add_subdirectory(uk) -diff --git a/languages/ru/CMakeLists.txt b/languages/ru/CMakeLists.txt -new file mode 100644 -index 0000000..15e506a ---- /dev/null -+++ b/languages/ru/CMakeLists.txt -@@ -0,0 +1 @@ -+install(FILES ru.txt DESTINATION ${KDE_INSTALL_DATADIR}/khangman) -diff --git a/languages/ru/ru.txt b/languages/ru/ru.txt -new file mode 100644 -index 0000000..eec9993 ---- /dev/null -+++ b/languages/ru/ru.txt -@@ -0,0 +1,33 @@ -+а -+б -+в -+г -+д -+е -+ё -+ж -+з -+и -+й -+к -+л -+м -+н -+о -+п -+р -+с -+т -+у -+ф -+х -+ц -+ч -+ш -+щ -+ъ -+ы -+ь -+э -+ю -+я -diff --git a/languages/uk/CMakeLists.txt b/languages/uk/CMakeLists.txt -new file mode 100644 -index 0000000..d617e99 ---- /dev/null -+++ b/languages/uk/CMakeLists.txt -@@ -0,0 +1 @@ -+install(FILES uk.txt DESTINATION ${KDE_INSTALL_DATADIR}/khangman) -diff --git a/languages/uk/uk.txt b/languages/uk/uk.txt -new file mode 100644 -index 0000000..344dc8a ---- /dev/null -+++ b/languages/uk/uk.txt -@@ -0,0 +1,33 @@ -+а -+б -+в -+г -+ґ -+д -+е -+є -+ж -+з -+и -+і -+ї -+й -+к -+л -+м -+н -+о -+п -+р -+с -+т -+у -+ф -+х -+ц -+ч -+ш -+щ -+ь -+ю -+я -diff --git a/src/khangman.cpp b/src/khangman.cpp -index dc1ab37..d778c21 100644 ---- a/src/khangman.cpp -+++ b/src/khangman.cpp -@@ -368,8 +368,12 @@ QString KHangMan::getCurrentHint() const - QStringList KHangMan::alphabet() const - { - QStringList letterList; -- for (char c = 'A'; c <= 'Z'; ++c) { -- letterList.append(QChar::fromLatin1(c)); -+ -+ QString lang = Prefs::selectedLanguage(); -+ if (LangUtils::isLatinAlphabet(lang)) { -+ for (char c = 'A'; c <= 'Z'; ++c) { -+ letterList.append(QChar::fromLatin1(c)); -+ } - } - - letterList.append(m_specialCharacters); -diff --git a/src/langutils.cpp b/src/langutils.cpp -index bef0369..820b14b 100644 ---- a/src/langutils.cpp -+++ b/src/langutils.cpp -@@ -4,15 +4,26 @@ - //project headers - #include "langutils.h" - -+bool LangUtils::isLatinAlphabet(const QString& lang) -+{ -+ if (lang == QLatin1String("ru") -+ || lang == QLatin1String("uk")) -+ { -+ return false; -+ } -+ return true; -+} -+ - bool LangUtils::hasSpecialChars(const QString& lang) - { -+ if (!LangUtils::isLatinAlphabet(lang)) { -+ return true; -+ } - if (lang == QLatin1String("en") - || lang == QLatin1String("en_GB") - || lang == QLatin1String("it") - || lang == QLatin1String("nl") -- || lang == QLatin1String("ru") - || lang == QLatin1String("bg") -- || lang == QLatin1String("uk") - || lang == QLatin1String("el") - || lang == QLatin1String("ro")) - { -diff --git a/src/langutils.h b/src/langutils.h -index 2fbecca..3f76537 100644 ---- a/src/langutils.h -+++ b/src/langutils.h -@@ -9,6 +9,7 @@ - class LangUtils - { - public: -+ static bool isLatinAlphabet(const QString& lang); - static bool hasSpecialChars(const QString& lang); - static QFont fontForLanguage(const QString& lang); - static QString capitalize(const QString& str, const QString& lang); |