Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@ if(${KWin_VERSION} VERSION_LESS 6.4)
endif()

add_subdirectory(src)
add_subdirectory(po)

feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
1 change: 1 addition & 0 deletions po/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ki18n_install(.)
7 changes: 7 additions & 0 deletions po/Messages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extractrc ../src/kcm/*.ui >/tmp/rc.cpp

xgettext --from-code=UTF-8 -C -kde \
-ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 \
-x /dev/null \
-o kwin_better_blur_dx.pot \
/tmp/rc.cpp ../src/kcm/*.cpp
203 changes: 203 additions & 0 deletions po/zh_CN/kwin_better_blur_dx.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
# Chinese translations for kwin_better_blur_dx package
# kwin_better_blur_dx 软件包的简体中文翻译.
# Copyright (C) 2026 THE kwin_better_blur_dx'S COPYRIGHT HOLDER
# This file is distributed under the same license as the kwin_better_blur_dx package.
# Cedar <hauseowo@outlook.com>, 2026.
#
msgid ""
msgstr ""
"Project-Id-Version: kwin_better_blur_dx\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-07-24 11:28+0800\n"
"PO-Revision-Date: 2026-07-24 11:31+0800\n"
"Last-Translator: Cedar <hauseowo@outlook.com>\n"
"Language-Team: Chinese (simplified) <i18n-zh@googlegroups.com>\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: rc.cpp:3
msgid "General"
msgstr "常规"

#: rc.cpp:6
msgid "Blur strength:"
msgstr "模糊强度:"

#: rc.cpp:9 rc.cpp:18
msgid "Light"
msgstr "弱"

#: rc.cpp:12 rc.cpp:21 rc.cpp:30 rc.cpp:43 rc.cpp:56 rc.cpp:99 rc.cpp:144
msgid "Strong"
msgstr "强"

#: rc.cpp:15
msgid "Noise strength:"
msgstr "噪点强度:"

#: rc.cpp:24
msgid "Brightness:"
msgstr "亮度:"

#: rc.cpp:27 rc.cpp:40 rc.cpp:53
msgid "None"
msgstr "无"

#: rc.cpp:34 rc.cpp:47 rc.cpp:60
#, no-c-format
msgid " %"
msgstr " %"

#: rc.cpp:37
msgid "Saturation:"
msgstr "饱和度:"

#: rc.cpp:50
msgid "Contrast:"
msgstr "对比度:"

#: rc.cpp:63
msgid "Force Contrast Parameters:"
msgstr "强制对比度参数:"

#: rc.cpp:66
msgid "Corner Radius:"
msgstr "圆角半径:"

#: rc.cpp:69
msgid "Force blur"
msgstr "强制模糊"

#: rc.cpp:72
msgid "Classes of windows to force blur:"
msgstr "强制模糊的窗口类:"

#: rc.cpp:75
msgid "Blur only matching"
msgstr "仅模糊匹配窗口"

#: rc.cpp:78
msgid "Blur all except matching"
msgstr "模糊所有非匹配窗口"

#: rc.cpp:81
msgid "Blur window decorations as well"
msgstr "同时模糊窗口装饰"

#: rc.cpp:84
msgid "Blur menus"
msgstr "模糊菜单"

#: rc.cpp:87
msgid "Blur docks"
msgstr "模糊停靠窗口"

#: rc.cpp:90
msgid "Refraction"
msgstr "折射"

#: rc.cpp:93
msgid "Refraction Strength:"
msgstr "折射强度:"

#: rc.cpp:96 rc.cpp:141
msgid "Off"
msgstr "关"

#: rc.cpp:102
msgid "Refraction Mode:"
msgstr "折射模式:"

#: rc.cpp:105
msgid "Basic (Bulge)"
msgstr "基本 (凸起)"

#: rc.cpp:108
msgid "Concave (Lens)"
msgstr "凹面 (透镜)"

#: rc.cpp:111
msgid "Refraction Edge Size:"
msgstr "折射边缘大小:"

#: rc.cpp:114
msgid "Small"
msgstr "窄"

#: rc.cpp:117
msgid "Wide"
msgstr "宽"

#: rc.cpp:120
msgid "Refraction Falloff:"
msgstr "折射衰减:"

#: rc.cpp:123
msgid "Linear"
msgstr "线性"

#: rc.cpp:126 rc.cpp:135
msgid "Round"
msgstr "圆形"

#: rc.cpp:129
msgid "Refraction Corner Radius:"
msgstr "折射圆角半径:"

#: rc.cpp:132
msgid "Square"
msgstr "方形"

#: rc.cpp:138
msgid "RGB Fringing Strength:"
msgstr "RGB 色边强度:"

#: rc.cpp:147
msgid "Edge Behavior:"
msgstr "边缘行为:"

#: rc.cpp:150
msgid "Clamp (extend edge pixels)"
msgstr "钳制 (延伸边缘像素)"

#: rc.cpp:153
msgid "Flip (mirror texture)"
msgstr "翻转 (镜像纹理)"

#: rc.cpp:156
msgid "Performance"
msgstr "性能"

#: rc.cpp:159
msgid "Blur Source Mode:"
msgstr "模糊源模式:"

#: rc.cpp:162
msgid "Full"
msgstr "完整"

#: rc.cpp:165
msgid "Wallpaper [EXPERIMENTAL]"
msgstr "壁纸 [实验性]"

#: rc.cpp:168
msgid "Ignore Cache:"
msgstr "忽略缓存:"

#: rc.cpp:171
msgid "Cache Rate Limit:"
msgstr "缓存速率限制:"

#: rc.cpp:174
msgid " ms"
msgstr " ms"

#: rc.cpp:177
msgid "About"
msgstr "关于"

#: rc.cpp:180
msgid "Failed to load about.html"
msgstr "加载 about.html 失败"
2 changes: 2 additions & 0 deletions src/kcm/blur_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "kwineffects_interface.h"
#include "settings.hpp"

#include <KLocalizedString>
#include <QFileDialog>
#include <QPushButton>

Expand All @@ -24,6 +25,7 @@ K_PLUGIN_CLASS(BlurEffectConfig)
BlurEffectConfig::BlurEffectConfig(QObject *parent, const KPluginMetaData &data)
: KCModule(parent, data)
{
KLocalizedString::setApplicationDomain("kwin_better_blur_dx");
ui.setupUi(widget());
BlurConfig::instance("kwinrc");
addConfig(BlurConfig::self(), widget());
Expand Down
4 changes: 3 additions & 1 deletion src/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@
],
"Category": "Appearance",
"Description": "Fork of the KWin Blur effect for KDE Plasma 6 with force blur and more",
"Description[zh_CN]": "KDE Plasma 6的KWin模糊效果的分支,增加了强制模糊以及更多",
"EnabledByDefault": false,
"License": "GPL",
"Name": "Better Blur DX"
"Name": "Better Blur DX",
"Name[zh_CN]": "更好的模糊DX"
},
"X-KDE-ConfigModule": "kwin_better_blur_dx_config"
}