[kcms/scripts] Make plugin id and translation domain match
KQuickAddons::ConfigModule sets the translation domain based on the plugin id That is kcm_kwin_scripts. However the translation domain is kcm-kwin-scripts, which breaks loading translations Also fix Messages.sh to extract from QML BUG: 458438
This commit is contained in:
parent
4696bdaa05
commit
fdb40395f0
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
# KI18N Translation Domain for this library
|
||||
add_definitions(-DTRANSLATION_DOMAIN=\"kcm-kwin-scripts\")
|
||||
add_definitions(-DTRANSLATION_DOMAIN=\"kcm_kwin_scripts\")
|
||||
|
||||
kcoreaddons_add_plugin(kcm_kwin_scripts INSTALL_NAMESPACE plasma/kcms/systemsettings)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!bin/sh
|
||||
$EXTRACTRC `find . -name \*.rc -o -name \*.ui -o -name \*.kcfg` >> rc.cpp
|
||||
$XGETTEXT `find . -name \*.cc -o -name \*.cpp -o -name \*.h` -o $podir/kcm-kwin-scripts.pot
|
||||
$XGETTEXT `find . -name \*.cc -o -name \*.cpp -o -name \*.h -o -name \*.qml` -o $podir/kcm_kwin_scripts.pot
|
||||
rm -f rc.cpp
|
||||
|
|
Loading…
Reference in a new issue