https://bugs.kde.org/show_bug.cgi?id=413123

Jure Repinc <j...@holodeck1.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aa...@kde.org,
                   |                            |j...@holodeck1.com,
                   |                            |kdelibs-b...@kde.org

--- Comment #1 from Jure Repinc <j...@holodeck1.com> ---
I get the same problem here. Every place where you can select a language (also
when creating a new translation memory) only US English (en_US) is available
but no other language. This is with Lokalize 22.12.0, openSUSE Tumbleweed
20221206, Plasma 5.26.4, Frameworks 5.100.0, Qt 5.15.7, X11.

I have been trying to find what the problem is and if I correctly figured it
out, the languages list is retrieved by KLanguageName::allLanguageCodes() in
src/common/languagelistmodel.cpp
https://invent.kde.org/sdk/lokalize/-/blob/master/src/common/languagelistmodel.cpp#L53

What this function does (part of KConfigWidgets from Frameworks)
https://invent.kde.org/frameworks/kconfigwidgets/-/blob/master/src/klanguagename.cpp#L72
it searches through all the locale directories, e.g. in /usr/share/locale/* and
looks for locale subdirectories which contain kf5_entry.desktop (containing all
translations of specific locale).

What I can see is that on my OpenSUSE, Kubuntu 22.10 and Gentoo systems, only
the en_US locale directory contains this kf5_entry.desktop file. All others so
not, so only this locale is in the end available for selection.

I would expect at least Slovenian (sl) to have this file, since I also have
Slovenian locales/translations installed on these computers. It looks like the
package responsible for providing this should be kconfigwidgets but there is
only one provided for en_US. It looks like there is also some code in
CMakeLists.txt of KConfigWidgets that should install those files but yeah they
appear not to be there so they are not installed
https://invent.kde.org/frameworks/kconfigwidgets/-/blob/master/CMakeLists.txt#L83

So to sum it up the lack of languages is probably because
/usr/share/locale/*/kf5_entry.desktop are missing. To me it looks like the
scripts that process translations in SVN and update/add the relevant files in
the sources of KConfigWidgets are not working properly so these files are
missing.

Maybe this bug report should be moved to frameworks-kconfigwidgets/general or 
i18n/general product?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to