diff --git a/notification-ukcc-plugin/CMakeLists.txt b/notification-ukcc-plugin/CMakeLists.txt index 34d8367..d267f47 100644 --- a/notification-ukcc-plugin/CMakeLists.txt +++ b/notification-ukcc-plugin/CMakeLists.txt @@ -24,11 +24,8 @@ include_directories(${Qt5Core_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS}) include_directories(../libukui-notification/notification-settings) include_directories(../libukui-notification) - -file(GLOB TS_FILES "${PROJECT_SOURCE_DIR}/notification-ukcc-plugin/translations/*.ts") -qt5_add_translation(QM_FILES ${TS_FILES}) -#set(QM_FILES ${QM_FILES} PARENT_SCOPE) -add_custom_target(translations ALL DEPENDS ${QM_FILES}) +file(GLOB TS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/translations/*.ts) +qt5_create_translation(QM_FILES ${CMAKE_CURRENT_SOURCE_DIR} ${TS_FILES}) add_library(notification-ukcc-plugin SHARED ${notification-ukcc-plugin_LIB_SRCS} diff --git a/notification-ukcc-plugin/notification-ukcc-plugin.cpp b/notification-ukcc-plugin/notification-ukcc-plugin.cpp index 755ccf4..3c60e45 100644 --- a/notification-ukcc-plugin/notification-ukcc-plugin.cpp +++ b/notification-ukcc-plugin/notification-ukcc-plugin.cpp @@ -145,7 +145,8 @@ void Notice::initUi(QWidget *widget) m_noticeLabel = new TitleLabel(Noticewidget); m_notFazeLabel = new TitleLabel(); - m_notFazeLabel->setText(tr("NotFaze Mode")); + //~ contents_path /Notice/Do not disturb mode Mode + m_notFazeLabel->setText(tr("Do not disturb mode")); LightLabel *notFazeLabel = new LightLabel(tr("(Notification banners, prompts will be hidden, and notification sounds will be muted)")); QFrame *distrubFrame = new QFrame(widget); @@ -221,6 +222,7 @@ void Notice::initNotFaze(QFrame *frame) autoOpenFrame->setMaximumSize(16777215, 60); QHBoxLayout *autoLyt = new QHBoxLayout(autoOpenFrame); autoLyt->setContentsMargins(16, 0, 16, 0); + //~ contents_path /Notice/Do not disturb mode Mode/Automatically turn on QLabel *autoOpenLabel = new QLabel(tr("Automatically turn on"), autoOpenFrame); m_openTimeHComboBox = new QComboBox(autoOpenFrame); m_openTimeHComboBox->setObjectName("opentimehour"); @@ -271,16 +273,19 @@ void Notice::initNotFaze(QFrame *frame) QFrame *multiScreenFrame = new QFrame(frame); m_multiScreenSwitchBtn= new KSwitchButton(); m_multiScreenSwitchBtn->setObjectName("multiscreen"); + //~ contents_path /Notice/Do not disturb mode/Automatically turn on when multiple screens are connected setFrame(multiScreenFrame, m_multiScreenSwitchBtn, tr("Automatically turn on when multiple screens are connected")); QFrame *fullScreenFrame = new QFrame(frame); m_fullScreenSwitchBtn= new KSwitchButton(); m_fullScreenSwitchBtn->setObjectName("fullscreen"); + //~ contents_path /Notice/Do not disturb mode/Automatically open in full screen mode setFrame(fullScreenFrame, m_fullScreenSwitchBtn, tr("Automatically open in full screen mode")); QFrame *allowAlarmrRemindersFrame = new QFrame(frame); m_allowAlarmSwitchBtn= new KSwitchButton(); m_allowAlarmSwitchBtn->setObjectName("allowAlarmr"); + //~ contents_path /Notice/Do not disturb mode/Allow automatic alarm reminders in Do Not Disturb mode setFrame(allowAlarmrRemindersFrame, m_allowAlarmSwitchBtn, tr("Allow automatic alarm reminders in Do Not Disturb mode")); notFazeLyt->addWidget(autoOpenFrame); diff --git a/notification-ukcc-plugin/translations/bo_CN.ts b/notification-ukcc-plugin/translations/bo_CN.ts index be1a4e5..e3f0d2a 100644 --- a/notification-ukcc-plugin/translations/bo_CN.ts +++ b/notification-ukcc-plugin/translations/bo_CN.ts @@ -4,52 +4,61 @@ Notice - + Notice བརྡ་ཐོ། - NotFaze Mode - མི་དམངས་ཀྱི་དཔེ་དབྱིབས་མིན་པ། + མི་དམངས་ཀྱི་དཔེ་དབྱིབས་མིན་པ། - + + Do not disturb mode + མི་དམངས་ཀྱི་དཔེ་དབྱིབས་མིན་པ། + /Notice/Do not disturb mode Mode + + + (Notification banners, prompts will be hidden, and notification sounds will be muted) (བརྡ་ཐོ་གཏོང་བའི་འཕྲེད་འགེལ་སྦྱར་ཡིག་དང་། བརྡ་གཏོང་ཡི་གེ་སྦས་སྐུང་བྱས་ནས་བརྡ་ཁྱབ་ཀྱི་སྒྲ་གྲགས་ཡོང་། ) - + Automatically turn on རང་འགུལ་གྱིས་ཁ་ཕྱེ་བ། + /Notice/Do not disturb mode Mode/Automatically turn on - + to དེ་ལྟར་བྱས་ན་ - + Automatically turn on when multiple screens are connected བརྙན་ཤེལ་མང་པོ་སྦྲེལ་མཐུད་བྱེད་སྐབས་རང་འགུལ་གྱིས་ཁ་ཕྱེ་བ། + /Notice/Do not disturb mode/Automatically turn on when multiple screens are connected - + Automatically open in full screen mode བརྙན་ཤེལ་ཧྲིལ་པོའི་རྣམ་པའི་ཐོག་ནས་རང་འགུལ་གྱིས་སྒོ་ + /Notice/Do not disturb mode/Automatically open in full screen mode - + Allow automatic alarm reminders in Do Not Disturb mode རང་འགུལ་གྱིས་ཉེན་བརྡ་གཏོང་བའི་དྲན་སྐུལ་བྱེད་སྟངས་ལ་སུན་པོ་བཟོ་མི་རུང་། + /Notice/Do not disturb mode/Allow automatic alarm reminders in Do Not Disturb mode - + Notice Settings བརྡ་ཐོའི་སྒྲིག་བཀོད། - + Get notifications from the app ཉེར་སྤྱོད་གོ་རིམ་ཁྲོད་ནས་བརྡ་ཐོ་གཏོང་དགོས། /notice/Get notifications from the app @@ -58,39 +67,35 @@ NoticeMenu - + Beep sound when notified བརྡ་ཐོ་གཏོང་སྐབས་སྐད་ཅོར་རྒྱག་པ། - + Show message on screenlock བརྙན་ཤེལ་སྟེང་ནས་ཆ་འཕྲིན་མངོན་པ། - + Show noticfication on screenlock བརྙན་ཤེལ་སྟེང་ནས་དོ་སྣང་བྱེད་པ། - Notification Style - བརྡ་ཐོ་གཏོང་སྟངས། + བརྡ་ཐོ་གཏོང་སྟངས། - Banner: Appears in the upper right corner of the screen, and disappears automatically - འཕྲེད་འགེལ་ཡི་གེ། བརྙན་ཤེལ་གྱི་གཡས་ཟུར་དུ་མངོན་པ་མ་ཟད། རང་འགུལ་གྱིས་མེད་པར་གྱུར་པ། + འཕྲེད་འགེལ་ཡི་གེ། བརྙན་ཤེལ་གྱི་གཡས་ཟུར་དུ་མངོན་པ་མ་ཟད། རང་འགུལ་གྱིས་མེད་པར་གྱུར་པ། - Tip:It will be kept on the screen until it is closed - རྩེ་མོ། འཆར་ངོས་སུ་ཉར་ཚགས་བྱས་ནས་སྒོ་མ་བརྒྱབ་གོང་ལ་ཉར་ཚགས་བྱེད་དགོས། + རྩེ་མོ། འཆར་ངོས་སུ་ཉར་ཚགས་བྱས་ནས་སྒོ་མ་བརྒྱབ་གོང་ལ་ཉར་ཚགས་བྱེད་དགོས། - None:Notifications will not be displayed on the screen, but will go to the notification center - གཅིག་ཀྱང་མ་ལུས་པར་འཆར་ངོས་སུ་བརྡ་ཐོ་མི་མངོན་པར་བརྡ་ཁྱབ་ལྟེ་གནས་སུ་འགྲོ་རྒྱུ་རེད། + གཅིག་ཀྱང་མ་ལུས་པར་འཆར་ངོས་སུ་བརྡ་ཐོ་མི་མངོན་པར་བརྡ་ཁྱབ་ལྟེ་གནས་སུ་འགྲོ་རྒྱུ་རེད། diff --git a/notification-ukcc-plugin/translations/en_US.ts b/notification-ukcc-plugin/translations/en_US.ts index eee95e1..d65fdb5 100644 --- a/notification-ukcc-plugin/translations/en_US.ts +++ b/notification-ukcc-plugin/translations/en_US.ts @@ -4,52 +4,61 @@ Notice - + Notice Notice - NotFaze Mode - NotFaze Mode + NotFaze Mode - + + Do not disturb mode + + /Notice/Do not disturb mode Mode + + + (Notification banners, prompts will be hidden, and notification sounds will be muted) (Notification banners, prompts will be hidden, and notification sounds will be muted) - + Automatically turn on Automatically turn on + /Notice/Do not disturb mode Mode/Automatically turn on - + to to - + Automatically turn on when multiple screens are connected Automatically turn on when multiple screens are connected + /Notice/Do not disturb mode/Automatically turn on when multiple screens are connected - + Automatically open in full screen mode Automatically open in full screen mode + /Notice/Do not disturb mode/Automatically open in full screen mode - + Allow automatic alarm reminders in Do Not Disturb mode Allow automatic alarm reminders in Do Not Disturb mode + /Notice/Do not disturb mode/Allow automatic alarm reminders in Do Not Disturb mode - + Notice Settings Notice Settings - + Get notifications from the app Get notifications from the app /notice/Get notifications from the app @@ -58,39 +67,35 @@ NoticeMenu - + Beep sound when notified Beep sound when notified - + Show message on screenlock Show message on screenlock - + Show noticfication on screenlock Show noticfication on screenlock - Notification Style - Notification Style + Notification Style - Banner: Appears in the upper right corner of the screen, and disappears automatically - Banner: Appears in the upper right corner of the screen, and disappears automatically + Banner: Appears in the upper right corner of the screen, and disappears automatically - Tip:It will be kept on the screen until it is closed - Tip:It will be kept on the screen until it is closed + Tip:It will be kept on the screen until it is closed - None:Notifications will not be displayed on the screen, but will go to the notification center - None:Notifications will not be displayed on the screen, but will go to the notification center + None:Notifications will not be displayed on the screen, but will go to the notification center diff --git a/notification-ukcc-plugin/translations/zh_CN.ts b/notification-ukcc-plugin/translations/zh_CN.ts index e4dcd86..db4c315 100644 --- a/notification-ukcc-plugin/translations/zh_CN.ts +++ b/notification-ukcc-plugin/translations/zh_CN.ts @@ -4,52 +4,61 @@ Notice - + Notice 通知 - NotFaze Mode - 勿扰模式 + 勿扰模式 - + + Do not disturb mode + 勿扰模式 + /Notice/Do not disturb mode Mode + + + (Notification banners, prompts will be hidden, and notification sounds will be muted) (通知横幅、提示将会隐藏,通知声音将会静音) - + Automatically turn on 自动开启 + /Notice/Do not disturb mode Mode/Automatically turn on - + to - + Automatically turn on when multiple screens are connected 多屏连接时自动开启 + /Notice/Do not disturb mode/Automatically turn on when multiple screens are connected - + Automatically open in full screen mode 全屏模式下自动开启 + /Notice/Do not disturb mode/Automatically open in full screen mode - + Allow automatic alarm reminders in Do Not Disturb mode 勿扰模式下允许闹钟提示 + /Notice/Do not disturb mode/Allow automatic alarm reminders in Do Not Disturb mode - + Notice Settings 通知 - + Get notifications from the app 获取来自应用的通知 /notice/Get notifications from the app @@ -58,39 +67,35 @@ NoticeMenu - + Beep sound when notified 通知时提示声音 - + Show message on screenlock 在锁屏界面显示消息内容 - + Show noticfication on screenlock 在锁屏界面显示通知 - Notification Style - 通知样式 + 通知样式 - Banner: Appears in the upper right corner of the screen, and disappears automatically - 横幅:显示在屏幕右上角,会自动消失 + 横幅:显示在屏幕右上角,会自动消失 - Tip:It will be kept on the screen until it is closed - 提示:会保留在屏幕上,直到被关闭 + 提示:会保留在屏幕上,直到被关闭 - None:Notifications will not be displayed on the screen, but will go to the notification center - 无:通知不会显示在屏幕上,但会进入通知中心 + 无:通知不会显示在屏幕上,但会进入通知中心