-
Notifications
You must be signed in to change notification settings - Fork 55
feat: add i18n support for notification clear button #1268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ import QtQuick.Layouts | |
| import org.deepin.dtk 1.0 | ||
| import org.deepin.dtk.style 1.0 as DStyle | ||
| import org.deepin.ds.notification | ||
| import org.deepin.ds.notificationcenter | ||
|
|
||
| NotifyItem { | ||
| id: root | ||
|
|
@@ -60,11 +61,13 @@ NotifyItem { | |
|
|
||
| Loader { | ||
| focus: true | ||
| anchors.right: parent.right | ||
| active: !(root.strongInteractive && root.actions.length > 0) && (root.closeVisible || closePlaceHolder.hovered || activeFocus) | ||
| sourceComponent: SettingActionButton { | ||
| sourceComponent: AnimationSettingButton { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AnimationSettingButton 应该可以移动到plugin中,
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 是的 |
||
| id: closeBtn | ||
| objectName: "closeNotify-" + root.appName | ||
| icon.name: "clean-alone" | ||
| text: qsTr("Clear alone") | ||
sourcery-ai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| padding: 2 | ||
| forcusBorderVisible: visualFocus | ||
| onClicked: function () { | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 新资源需要加到 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation type="unfinished"></translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1" language="zh_CN"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation>清除单个</translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1" language="zh_HK"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation>清除單個</translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!DOCTYPE TS> | ||
| <TS version="2.1" language="zh_TW"> | ||
| <context> | ||
| <name>NotifyItemContent</name> | ||
| <message> | ||
| <source>Clear alone</source> | ||
| <translation>清除單個</translation> | ||
| </message> | ||
| </context> | ||
| </TS> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里获取所有的文件吧,免得之后要单个加需要翻译的文件,