Adjust effects_builtins for new ki18n
* Use ki18n_wrap_ui for ui files * define TRANSLATION_DOMAIN in CMakeLists.txt
This commit is contained in:
parent
c961eb1bf0
commit
5e7d1d586c
22 changed files with 25 additions and 22 deletions
|
@ -1,3 +1,6 @@
|
|||
# KI18N Translation Domain for this library
|
||||
add_definitions(-DTRANSLATION_DOMAIN=\"kwin_effects\")
|
||||
|
||||
include_directories(${KWIN_SOURCE_DIR}) # for xcbutils.h
|
||||
|
||||
set(kwin_effect_OWN_LIBS
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_blur_config_SRCS blur_config.cpp)
|
||||
qt5_wrap_ui(kwin_blur_config_SRCS blur_config.ui)
|
||||
ki18n_wrap_ui(kwin_blur_config_SRCS blur_config.ui)
|
||||
qt5_add_dbus_interface(kwin_blur_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_blur_config_SRCS blurconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ install( FILES
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_coverswitch_config_SRCS coverswitch_config.cpp)
|
||||
qt5_wrap_ui(kwin_coverswitch_config_SRCS coverswitch_config.ui)
|
||||
ki18n_wrap_ui(kwin_coverswitch_config_SRCS coverswitch_config.ui)
|
||||
qt5_add_dbus_interface(kwin_coverswitch_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_coverswitch_config_SRCS coverswitchconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ install( FILES
|
|||
|
||||
# cube
|
||||
set(kwin_cube_config_SRCS cube_config.cpp)
|
||||
qt5_wrap_ui(kwin_cube_config_SRCS cube_config.ui)
|
||||
ki18n_wrap_ui(kwin_cube_config_SRCS cube_config.ui)
|
||||
qt5_add_dbus_interface(kwin_cube_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_cube_config_SRCS cubeconfig.kcfgc)
|
||||
|
||||
|
@ -46,7 +46,7 @@ kservice_desktop_to_json(kwin_cube_config cube_config.desktop)
|
|||
|
||||
# cube slide
|
||||
set(kwin_cubeslide_config_SRCS cubeslide_config.cpp)
|
||||
qt5_wrap_ui(kwin_cubeslide_config_SRCS cubeslide_config.ui)
|
||||
ki18n_wrap_ui(kwin_cubeslide_config_SRCS cubeslide_config.ui)
|
||||
qt5_add_dbus_interface(kwin_cubeslide_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_cubeslide_config_SRCS cubeslideconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_dashboard_config_SRCS dashboard_config.cpp)
|
||||
qt5_wrap_ui(kwin_dashboard_config_SRCS dashboard_config.ui)
|
||||
ki18n_wrap_ui(kwin_dashboard_config_SRCS dashboard_config.ui)
|
||||
qt5_add_dbus_interface(kwin_dashboard_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_dashboard_config_SRCS dashboardconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ install( FILES
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_desktopgrid_config_SRCS desktopgrid_config.cpp)
|
||||
qt5_wrap_ui(kwin_desktopgrid_config_SRCS desktopgrid_config.ui)
|
||||
ki18n_wrap_ui(kwin_desktopgrid_config_SRCS desktopgrid_config.ui)
|
||||
qt5_add_dbus_interface(kwin_desktopgrid_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_desktopgrid_config_SRCS desktopgridconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_diminactive_config_SRCS diminactive_config.cpp)
|
||||
qt5_wrap_ui(kwin_diminactive_config_SRCS diminactive_config.ui)
|
||||
ki18n_wrap_ui(kwin_diminactive_config_SRCS diminactive_config.ui)
|
||||
qt5_add_dbus_interface(kwin_diminactive_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_diminactive_config_SRCS diminactiveconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_flipswitch_config_SRCS flipswitch_config.cpp)
|
||||
qt5_wrap_ui(kwin_flipswitch_config_SRCS flipswitch_config.ui)
|
||||
ki18n_wrap_ui(kwin_flipswitch_config_SRCS flipswitch_config.ui)
|
||||
qt5_add_dbus_interface(kwin_flipswitch_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_flipswitch_config_SRCS flipswitchconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_glide_config_SRCS glide_config.cpp)
|
||||
qt5_wrap_ui(kwin_glide_config_SRCS glide_config.ui)
|
||||
ki18n_wrap_ui(kwin_glide_config_SRCS glide_config.ui)
|
||||
qt5_add_dbus_interface(kwin_glide_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_glide_config_SRCS glideconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ install( FILES
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_lookingglass_config_SRCS lookingglass_config.cpp)
|
||||
qt5_wrap_ui(kwin_lookingglass_config_SRCS lookingglass_config.ui)
|
||||
ki18n_wrap_ui(kwin_lookingglass_config_SRCS lookingglass_config.ui)
|
||||
qt5_add_dbus_interface(kwin_lookingglass_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_lookingglass_config_SRCS lookingglassconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_magiclamp_config_SRCS magiclamp_config.cpp)
|
||||
qt5_wrap_ui(kwin_magiclamp_config_SRCS magiclamp_config.ui)
|
||||
ki18n_wrap_ui(kwin_magiclamp_config_SRCS magiclamp_config.ui)
|
||||
qt5_add_dbus_interface(kwin_magiclamp_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_magiclamp_config_SRCS magiclampconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_magnifier_config_SRCS magnifier_config.cpp)
|
||||
qt5_wrap_ui(kwin_magnifier_config_SRCS magnifier_config.ui)
|
||||
ki18n_wrap_ui(kwin_magnifier_config_SRCS magnifier_config.ui)
|
||||
qt5_add_dbus_interface(kwin_magnifier_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_magnifier_config_SRCS magnifierconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
## configurtion dialog
|
||||
##########################
|
||||
set(kwin_mouseclick_config_SRCS mouseclick_config.cpp)
|
||||
qt5_wrap_ui(kwin_mouseclick_config_SRCS mouseclick_config.ui)
|
||||
ki18n_wrap_ui(kwin_mouseclick_config_SRCS mouseclick_config.ui)
|
||||
qt5_add_dbus_interface(kwin_mouseclick_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_mouseclick_config_SRCS mouseclickconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_mousemark_config_SRCS mousemark_config.cpp)
|
||||
qt5_wrap_ui(kwin_mousemark_config_SRCS mousemark_config.ui)
|
||||
ki18n_wrap_ui(kwin_mousemark_config_SRCS mousemark_config.ui)
|
||||
qt5_add_dbus_interface(kwin_mousemark_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_mousemark_config_SRCS mousemarkconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ install( FILES
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_presentwindows_config_SRCS presentwindows_config.cpp)
|
||||
qt5_wrap_ui(kwin_presentwindows_config_SRCS presentwindows_config.ui)
|
||||
ki18n_wrap_ui(kwin_presentwindows_config_SRCS presentwindows_config.ui)
|
||||
qt5_add_dbus_interface(kwin_presentwindows_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_presentwindows_config_SRCS presentwindowsconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_resize_config_SRCS resize_config.cpp)
|
||||
qt5_wrap_ui(kwin_resize_config_SRCS resize_config.ui)
|
||||
ki18n_wrap_ui(kwin_resize_config_SRCS resize_config.ui)
|
||||
qt5_add_dbus_interface(kwin_resize_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_resize_config_SRCS resizeconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_showfps_config_SRCS showfps_config.cpp)
|
||||
qt5_wrap_ui(kwin_showfps_config_SRCS showfps_config.ui)
|
||||
ki18n_wrap_ui(kwin_showfps_config_SRCS showfps_config.ui)
|
||||
qt5_add_dbus_interface(kwin_showfps_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_showfps_config_SRCS showfpsconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_thumbnailaside_config_SRCS thumbnailaside_config.cpp)
|
||||
qt5_wrap_ui(kwin_thumbnailaside_config_SRCS thumbnailaside_config.ui)
|
||||
ki18n_wrap_ui(kwin_thumbnailaside_config_SRCS thumbnailaside_config.ui)
|
||||
qt5_add_dbus_interface(kwin_thumbnailaside_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_thumbnailaside_config_SRCS thumbnailasideconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ install( FILES
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_trackmouse_config_SRCS trackmouse_config.cpp)
|
||||
qt5_wrap_ui(kwin_trackmouse_config_SRCS trackmouse_config.ui)
|
||||
ki18n_wrap_ui(kwin_trackmouse_config_SRCS trackmouse_config.ui)
|
||||
qt5_add_dbus_interface(kwin_trackmouse_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_trackmouse_config_SRCS trackmouseconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_windowgeometry_config_SRCS windowgeometry_config.cpp)
|
||||
qt5_wrap_ui(kwin_windowgeometry_config_SRCS windowgeometry_config.ui)
|
||||
ki18n_wrap_ui(kwin_windowgeometry_config_SRCS windowgeometry_config.ui)
|
||||
qt5_add_dbus_interface(kwin_windowgeometry_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_windowgeometry_config_SRCS windowgeometryconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_wobblywindows_config_SRCS wobblywindows_config.cpp)
|
||||
qt5_wrap_ui(kwin_wobblywindows_config_SRCS wobblywindows_config.ui)
|
||||
ki18n_wrap_ui(kwin_wobblywindows_config_SRCS wobblywindows_config.ui)
|
||||
qt5_add_dbus_interface(kwin_wobblywindows_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_wobblywindows_config_SRCS wobblywindowsconfig.kcfgc)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#######################################
|
||||
# Config
|
||||
set(kwin_zoom_config_SRCS zoom_config.cpp)
|
||||
qt5_wrap_ui(kwin_zoom_config_SRCS zoom_config.ui)
|
||||
ki18n_wrap_ui(kwin_zoom_config_SRCS zoom_config.ui)
|
||||
qt5_add_dbus_interface(kwin_zoom_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||
kconfig_add_kcfg_files(kwin_zoom_config_SRCS zoomconfig.kcfgc)
|
||||
|
||||
|
|
Loading…
Reference in a new issue