I18n issues in frameworks + kf5

Burkhard Lück lueck at hube-lueck.de
Mon Oct 13 19:59:07 UTC 2014


Hi,

I have some serious issues/problems with translations in frameworks/kf5:

My System:
separate user for frameworks/kf5
with ~/Qt5.3.0/ binary/sources/translation
with ~/kf5/ up to date build from sources
switch in konsole to kf5 user and launch app via commandline or plasmashell -w

My ~/.config5/kdeglobals has:
[Translations]
LANGUAGE=de

use any locale except en_US + x-test (partly broken in kf5) eg ca, de, it, uk 
to check these problems, install a locale via
https://techbase.kde.org/Development/Tutorials/Localization/Building_KDE's_l10n_Module
(replace l10n-kde4 with l10n-kf5 + use LANGUAGE instead of KDE_LANG)

1)
$ kdebugdialog5 
"Search:" from kitemviews5_qt not translated
Help, OK, Apply, Cancel (via KDialog->QDialog from Qt translations) not 
translated

2)
$ kcmshell5 spellchecking all msgs from sonnet5_qt not translated 

conclusion: catalogs *_qt.po are apparently loaded, but translations from 
these catalogs are not displayed at runtime

3)
$ kcmshell5
kcmshell commandline options translated (general option suntranslated see 
BR#339569)
$ kcmshell5 --help
kcmshell commandline options *untranslated*
??? Why translated/untranslated? different code paths catalog loading too late 
when untranslated

4)
KWrite 
kwrite.po not loaded, so added add_definitions(-DTRANSLATION_DOMAIN=\"kwrite\") 
in CMakeLists.txt, but still these i18n issues:
Find Variants, Go To, Word Wrap, Borders, Code Folding, Word Completition, 
Spelling (from ktexteditor5.po data/katepartui.rc)
Show Toolbar (from kconfig5_qt.po)
DrClash involved here? all mags except "Code Folding" have no clash in po file, 
but in the gui via DrClash

5)
Kate 
kate.po not loaded, so added add_definitions(-DTRANSLATION_DOMAIN=\"kate\") in 
CMakeLists.txt, but still these i18n issues:
same as KWrite + Split View, Sessions (from kate.po data/kateui.rc)
DrClash?

applications/kate/ has 26 translation catalogs, but only 8 are loaded, even 
the main catalogs kate.po + kwrite.po are NOT loaded

6)
Print dialog launched from Kate/Kwrite -> no strings from Qt translated
Print dialog launched from designer -> everything translated

7)
all shortcuts Ctrl+Shift untranslated in menu items

For me l10n/i18n in frameworks/kf5 is heavily broken :-(

-- 
Burkhard Lück



More information about the Kde-frameworks-devel mailing list