Skip to content
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

feat: cweekwidget uses locale to replace tr #193

Merged
merged 2 commits into from
Nov 14, 2024
Merged

Conversation

myml
Copy link
Member

@myml myml commented Sep 27, 2024

cweekwidget组件使用locale.toString替换tr手动翻译
一来可以使用qt自己的翻译支持的语言更广泛, 且能减少翻译工作量
二来避免翻译人员在不知道显示场景下使用长翻译而不是缩写

Bug: https://pms.uniontech.com/bug-view-271483.html

Copy link

  • 敏感词检查失败, 检测到14个文件存在敏感词
详情
{
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-service/src/calendarDataManager/daccountmanagemodule.cpp": [
        {
            "line": "const QString firstDayOfWeek_key = \"firstDayOfWeek\";",
            "line_number": 12,
            "rule": "S106",
            "reason": "Var naming | dc5ba3cd3f"
        },
        {
            "line": "const QString shortTimeFormat_key = \"shortTimeFormat\";",
            "line_number": 13,
            "rule": "S106",
            "reason": "Var naming | 7e44ab71d7"
        },
        {
            "line": "const QString firstDayOfWeekSource_key = \"firstDayOfWeekSource\";",
            "line_number": 14,
            "rule": "S106",
            "reason": "Var naming | 615e50c973"
        },
        {
            "line": "const QString shortTimeFormatSource_key = \"shortTimeFormatSource\";",
            "line_number": 15,
            "rule": "S106",
            "reason": "Var naming | da98f021ed"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-service/src/dbmanager/dhuanglidatabase.cpp": [
        {
            "line": "const QString HolidayUpdateURLPrefix =\"https://cdn-nu-common.uniontech.com/deepin-calendar\";",
            "line_number": 21,
            "rule": "S35",
            "reason": "Url link | 0b2e847e1f"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-service/src/synchronization/syncfilemanage.h": [
        {
            "line": "const QString syncDBpassword = \"calendar123\";",
            "line_number": 15,
            "rule": "S106",
            "reason": "Var naming | ac24654216"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-service/src/lunarandfestival/lunarandfestival.h": [
        {
            "line": "static QVector<QString> DiZhi = {\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"};",
            "line_number": 103,
            "rule": "C151",
            "reason": "政治敏感词 | 8503710310"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-service/src/lunarandfestival/method_interface.cpp": [
        {
            "line": "    return TianGan[num % 10] + DiZhi[num % 12];",
            "line_number": 78,
            "rule": "C151",
            "reason": "政治敏感词 | 8503710310"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-service/assets/holiday-cn/2024.json": [
        {
            "line": "  \"$schema\": \"https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/schema.json\",",
            "line_number": 2,
            "rule": "S35",
            "reason": "Url link | a43bfa6ba7"
        },
        {
            "line": "  \"$id\": \"https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/2024.json\",",
            "line_number": 3,
            "rule": "S35",
            "reason": "Url link | 738f27d0af"
        },
        {
            "line": "      \"https://www.gov.cn/zhengce/zhengceku/202310/content_6911528.htm\"",
            "line_number": 6,
            "rule": "S35",
            "reason": "Url link | 6563a4d532"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-service/assets/holiday-cn/2023.json": [
        {
            "line": "    \"$schema\": \"https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/schema.json\",",
            "line_number": 2,
            "rule": "S35",
            "reason": "Url link | a43bfa6ba7"
        },
        {
            "line": "    \"$id\": \"https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/2023.json\",",
            "line_number": 3,
            "rule": "S35",
            "reason": "Url link | 5229d30a97"
        },
        {
            "line": "        \"http://www.gov.cn/zhengce/zhengceku/2022-12/08/content_5730844.htm\"",
            "line_number": 6,
            "rule": "S35",
            "reason": "Url link | a7f9c337a6"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/debian/control": [
        {
            "line": "Homepage: http://www.deepin.org",
            "line_number": 23,
            "rule": "S35",
            "reason": "Url link | 6fe814dfb7"
        },
        {
            "line": "Vcs-Git: https://github.com/linuxdeepin/dde-calendar",
            "line_number": 24,
            "rule": "S35",
            "reason": "Url link | e6ceedf841"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/debian/dde-calendar.1": [
        {
            "line": "https://github.com/linuxdeepin/dde-calendar",
            "line_number": 33,
            "rule": "S35",
            "reason": "Url link | e6ceedf841"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-client/src/main.cpp": [
        {
            "line": "        app->setApplicationAcknowledgementPage(\"https://www.deepin.org/acknowledgments/dde-calendar\");",
            "line_number": 67,
            "rule": "S35",
            "reason": "Url link | f82e0b7f80"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-client/src/widget/calendarmainwindow.cpp": [
        {
            "line": "            url = \"https://www.deepin.org/zh/agreement/privacy/\";",
            "line_number": 907,
            "rule": "S35",
            "reason": "Url link | 20e2eab189"
        },
        {
            "line": "            url = \"https://www.uniontech.com/agreement/privacy-cn\";",
            "line_number": 909,
            "rule": "S35",
            "reason": "Url link | 4850a00dd7"
        },
        {
            "line": "            url = \"https://www.deepin.org/en/agreement/privacy/\";",
            "line_number": 913,
            "rule": "S35",
            "reason": "Url link | 38d42f63bf"
        },
        {
            "line": "            url = \"https://www.uniontech.com/agreement/privacy-en\";",
            "line_number": 915,
            "rule": "S35",
            "reason": "Url link | f82409d3b5"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-client/assets/org.deepin.calendar.metainfo.xml": [
        {
            "line": "  <url type=\"bugtracker\">https://github.com/linuxdeepin/developer-center/issues/</url>",
            "line_number": 23,
            "rule": "S35",
            "reason": "Url link | fd115c2cfd"
        },
        {
            "line": "  <url type=\"help\">https://github.com/linuxdeepin/developer-center/issues/</url>",
            "line_number": 24,
            "rule": "S35",
            "reason": "Url link | fd115c2cfd"
        },
        {
            "line": "  <url type=\"homepage\">https://bbs.deepin.org/</url>",
            "line_number": 25,
            "rule": "S35",
            "reason": "Url link | c60d8b1a34"
        }
    ]
}

Copy link

  • 敏感词检查失败, 检测到16个文件存在敏感词
详情
{
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/linglong.yaml": [
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/d/debconf/debconf_1.5.79-deepin_all.deb",
            "line_number": 47,
            "rule": "S35",
            "reason": "Url link | f9b3e752ea"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/d/dpkg/dpkg_1.22.6deepin3_amd64.deb",
            "line_number": 50,
            "rule": "S35",
            "reason": "Url link | e9d76f4cda"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/gcc-13/gcc-13-base_13.2.0-3deepin2_amd64.deb",
            "line_number": 53,
            "rule": "S35",
            "reason": "Url link | 4057e75053"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/glib2.0/gir1.2-glib-2.0_2.80.1-1deepin1_amd64.deb",
            "line_number": 56,
            "rule": "S35",
            "reason": "Url link | 268f6bf0bf"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libi/libical3/gir1.2-ical-3.0_3.0.11-deepin+rb1_amd64.deb",
            "line_number": 59,
            "rule": "S35",
            "reason": "Url link | 719e2635fe"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/i/icu/icu-devtools_74.2-1_amd64.deb",
            "line_number": 62,
            "rule": "S35",
            "reason": "Url link | 9a845947cd"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/a/acl/libacl1_2.3.1-1_amd64.deb",
            "line_number": 65,
            "rule": "S35",
            "reason": "Url link | 8a27ac53d5"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/u/util-linux/libblkid1_2.39.3-6deepin1_amd64.deb",
            "line_number": 68,
            "rule": "S35",
            "reason": "Url link | b0c947e14e"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/b/bzip2/libbz2-1.0_1.0.8-deepin_amd64.deb",
            "line_number": 71,
            "rule": "S35",
            "reason": "Url link | cc686ad731"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/glibc/libc-dev-bin_2.38-6deepin4_amd64.deb",
            "line_number": 74,
            "rule": "S35",
            "reason": "Url link | ca1358a482"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/glibc/libc6_2.38-6deepin4_amd64.deb",
            "line_number": 77,
            "rule": "S35",
            "reason": "Url link | dcc5538a75"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/glibc/libc6-dev_2.38-6deepin4_amd64.deb",
            "line_number": 80,
            "rule": "S35",
            "reason": "Url link | 60e9c07c5f"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/e/e2fsprogs/libcom-err2_1.47.0-2_amd64.deb",
            "line_number": 83,
            "rule": "S35",
            "reason": "Url link | 7fd2290eec"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libx/libxcrypt/libcrypt-dev_4.4.36-2_amd64.deb",
            "line_number": 86,
            "rule": "S35",
            "reason": "Url link | ccd27e849a"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libx/libxcrypt/libcrypt1_4.4.36-2_amd64.deb",
            "line_number": 89,
            "rule": "S35",
            "reason": "Url link | 9cf09b0307"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/d/db-defaults/libdb-dev_5.3.3_amd64.deb",
            "line_number": 92,
            "rule": "S35",
            "reason": "Url link | 0bf86c8ab6"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/d/db5.3/libdb5.3_5.3.28+dfsg1-0.8_amd64.deb",
            "line_number": 95,
            "rule": "S35",
            "reason": "Url link | be6569c2d8"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/d/db5.3/libdb5.3-dev_5.3.28+dfsg1-0.8_amd64.deb",
            "line_number": 98,
            "rule": "S35",
            "reason": "Url link | a7da2d935d"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libf/libffi/libffi8_3.4.6-1_amd64.deb",
            "line_number": 101,
            "rule": "S35",
            "reason": "Url link | 8f5aa069a0"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/gcc-13/libgcc-s1_13.2.0-3deepin2_amd64.deb",
            "line_number": 104,
            "rule": "S35",
            "reason": "Url link | 7b68d0d857"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libg/libgcrypt20/libgcrypt20_1.10.3-2_amd64.deb",
            "line_number": 107,
            "rule": "S35",
            "reason": "Url link | d846cd7d46"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libg/libgcrypt20/libgcrypt20-dev_1.10.3-2_amd64.deb",
            "line_number": 110,
            "rule": "S35",
            "reason": "Url link | 6ea8808894"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/glib2.0/libglib2.0-0_2.80.1-1deepin1_amd64.deb",
            "line_number": 113,
            "rule": "S35",
            "reason": "Url link | 3ab81e86f1"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libg/libgpg-error/libgpg-error-dev_1.47-3_amd64.deb",
            "line_number": 116,
            "rule": "S35",
            "reason": "Url link | 122be87986"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libg/libgpg-error/libgpg-error0_1.47-3_amd64.deb",
            "line_number": 119,
            "rule": "S35",
            "reason": "Url link | 97b5659801"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/k/krb5/libgssapi-krb5-2_1.20.1-5_amd64.deb",
            "line_number": 122,
            "rule": "S35",
            "reason": "Url link | 47497c7ba7"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libi/libical3/libical-dev_3.0.11-deepin+rb1_amd64.deb",
            "line_number": 125,
            "rule": "S35",
            "reason": "Url link | 1f409c05a5"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libi/libical3/libical3_3.0.11-deepin+rb1_amd64.deb",
            "line_number": 128,
            "rule": "S35",
            "reason": "Url link | 29c9ac195d"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/i/icu/libicu-dev_74.2-1_amd64.deb",
            "line_number": 131,
            "rule": "S35",
            "reason": "Url link | f268227827"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/i/icu/libicu74_74.2-1_amd64.deb",
            "line_number": 134,
            "rule": "S35",
            "reason": "Url link | 0b5a311c86"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/k/krb5/libk5crypto3_1.20.1-5_amd64.deb",
            "line_number": 137,
            "rule": "S35",
            "reason": "Url link | a2e5c9b3c8"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/k/keyutils/libkeyutils1_1.6.1-3_amd64.deb",
            "line_number": 140,
            "rule": "S35",
            "reason": "Url link | 1bcd417de1"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/k/krb5/libkrb5-3_1.20.1-5_amd64.deb",
            "line_number": 143,
            "rule": "S35",
            "reason": "Url link | 4e24d8859b"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/k/krb5/libkrb5support0_1.20.1-5_amd64.deb",
            "line_number": 146,
            "rule": "S35",
            "reason": "Url link | e260898d0f"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/x/xz-utils/liblzma5_5.4.5-0.3_amd64.deb",
            "line_number": 149,
            "rule": "S35",
            "reason": "Url link | 1917c86578"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libm/libmd/libmd0_1.0.4-1_amd64.deb",
            "line_number": 152,
            "rule": "S35",
            "reason": "Url link | 69502da8ee"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/u/util-linux/libmount1_2.39.3-6deepin1_amd64.deb",
            "line_number": 155,
            "rule": "S35",
            "reason": "Url link | 1229909453"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libn/libnsl/libnsl-dev_1.3.0-2_amd64.deb",
            "line_number": 158,
            "rule": "S35",
            "reason": "Url link | 1003222a6e"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libn/libnsl/libnsl2_1.3.0-2_amd64.deb",
            "line_number": 161,
            "rule": "S35",
            "reason": "Url link | 4ff19a8274"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/p/pcre2/libpcre2-8-0_10.39-2_amd64.deb",
            "line_number": 164,
            "rule": "S35",
            "reason": "Url link | 5c55f44cfd"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libs/libselinux/libselinux1_3.5-1_amd64.deb",
            "line_number": 167,
            "rule": "S35",
            "reason": "Url link | 6efc759976"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/o/openssl/libssl3_3.2.0-2_amd64.deb",
            "line_number": 170,
            "rule": "S35",
            "reason": "Url link | 3806748c4a"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/gcc-13/libstdc++6_13.2.0-3deepin2_amd64.deb",
            "line_number": 173,
            "rule": "S35",
            "reason": "Url link | de04527258"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libt/libtirpc/libtirpc-common_1.3.2-2_all.deb",
            "line_number": 176,
            "rule": "S35",
            "reason": "Url link | 565011f7aa"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libt/libtirpc/libtirpc-dev_1.3.2-2_amd64.deb",
            "line_number": 179,
            "rule": "S35",
            "reason": "Url link | a7c5e8c9da"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libt/libtirpc/libtirpc3_1.3.2-2_amd64.deb",
            "line_number": 182,
            "rule": "S35",
            "reason": "Url link | 4b82e4adb2"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libz/libzstd/libzstd1_1.5.5+dfsg2-2_amd64.deb",
            "line_number": 185,
            "rule": "S35",
            "reason": "Url link | ef453e5377"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/l/linux-upstream/linux-libc-dev_23.01.00.32_amd64.deb",
            "line_number": 188,
            "rule": "S35",
            "reason": "Url link | fefded2ea8"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/p/perl/perl-base_5.36.0-10_amd64.deb",
            "line_number": 191,
            "rule": "S35",
            "reason": "Url link | a0e460f06b"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/r/rpcsvc-proto/rpcsvc-proto_1.4.2-4_amd64.deb",
            "line_number": 194,
            "rule": "S35",
            "reason": "Url link | a29669e85f"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/t/tar/tar_1.35+dfsg-3_amd64.deb",
            "line_number": 197,
            "rule": "S35",
            "reason": "Url link | 007d81071a"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/t/tzdata/tzdata_2023d-1deepin1_all.deb",
            "line_number": 200,
            "rule": "S35",
            "reason": "Url link | 9eba4bda07"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/z/zlib/zlib1g_1.3.dfsg-3_amd64.deb",
            "line_number": 203,
            "rule": "S35",
            "reason": "Url link | 5006617f59"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/arm64/linglong.yaml": [
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/d/debconf/debconf_1.5.79-deepin_all.deb",
            "line_number": 47,
            "rule": "S35",
            "reason": "Url link | f9b3e752ea"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/d/dpkg/dpkg_1.22.6deepin3_arm64.deb",
            "line_number": 50,
            "rule": "S35",
            "reason": "Url link | 5c3852f35c"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/gcc-13/gcc-13-base_13.2.0-3deepin2_arm64.deb",
            "line_number": 53,
            "rule": "S35",
            "reason": "Url link | 2441ca88e4"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/glib2.0/gir1.2-glib-2.0_2.80.1-1deepin1_arm64.deb",
            "line_number": 56,
            "rule": "S35",
            "reason": "Url link | b5ef415ad0"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libi/libical3/gir1.2-ical-3.0_3.0.11-deepin+rb1_arm64.deb",
            "line_number": 59,
            "rule": "S35",
            "reason": "Url link | 31c36d7553"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/i/icu/icu-devtools_74.2-1_arm64.deb",
            "line_number": 62,
            "rule": "S35",
            "reason": "Url link | e54bd6791d"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/a/acl/libacl1_2.3.1-1_arm64.deb",
            "line_number": 65,
            "rule": "S35",
            "reason": "Url link | abd98671b5"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/u/util-linux/libblkid1_2.39.3-6deepin1_arm64.deb",
            "line_number": 68,
            "rule": "S35",
            "reason": "Url link | 9d39a6b117"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/b/bzip2/libbz2-1.0_1.0.8-deepin_arm64.deb",
            "line_number": 71,
            "rule": "S35",
            "reason": "Url link | 688e0937f9"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/glibc/libc-dev-bin_2.38-6deepin4_arm64.deb",
            "line_number": 74,
            "rule": "S35",
            "reason": "Url link | a38afad822"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/glibc/libc6_2.38-6deepin4_arm64.deb",
            "line_number": 77,
            "rule": "S35",
            "reason": "Url link | 33a94a9e8b"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/glibc/libc6-dev_2.38-6deepin4_arm64.deb",
            "line_number": 80,
            "rule": "S35",
            "reason": "Url link | 69c96e4bd8"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/e/e2fsprogs/libcom-err2_1.47.0-2_arm64.deb",
            "line_number": 83,
            "rule": "S35",
            "reason": "Url link | 77067c7532"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libx/libxcrypt/libcrypt-dev_4.4.36-2_arm64.deb",
            "line_number": 86,
            "rule": "S35",
            "reason": "Url link | f5c3d9c2bd"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libx/libxcrypt/libcrypt1_4.4.36-2_arm64.deb",
            "line_number": 89,
            "rule": "S35",
            "reason": "Url link | 63b4e4d3d0"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/d/db-defaults/libdb-dev_5.3.3_arm64.deb",
            "line_number": 92,
            "rule": "S35",
            "reason": "Url link | 49a2c299d7"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/d/db5.3/libdb5.3_5.3.28+dfsg1-0.8_arm64.deb",
            "line_number": 95,
            "rule": "S35",
            "reason": "Url link | aa1a0b0df1"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/d/db5.3/libdb5.3-dev_5.3.28+dfsg1-0.8_arm64.deb",
            "line_number": 98,
            "rule": "S35",
            "reason": "Url link | cd70ded861"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libf/libffi/libffi8_3.4.6-1_arm64.deb",
            "line_number": 101,
            "rule": "S35",
            "reason": "Url link | adac56a38b"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/gcc-13/libgcc-s1_13.2.0-3deepin2_arm64.deb",
            "line_number": 104,
            "rule": "S35",
            "reason": "Url link | f009b0b9de"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libg/libgcrypt20/libgcrypt20_1.10.3-2_arm64.deb",
            "line_number": 107,
            "rule": "S35",
            "reason": "Url link | a1d249743d"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libg/libgcrypt20/libgcrypt20-dev_1.10.3-2_arm64.deb",
            "line_number": 110,
            "rule": "S35",
            "reason": "Url link | 43ba17ba1e"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/glib2.0/libglib2.0-0_2.80.1-1deepin1_arm64.deb",
            "line_number": 113,
            "rule": "S35",
            "reason": "Url link | b333b65172"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libg/libgpg-error/libgpg-error-dev_1.47-3_arm64.deb",
            "line_number": 116,
            "rule": "S35",
            "reason": "Url link | b93817542e"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libg/libgpg-error/libgpg-error0_1.47-3_arm64.deb",
            "line_number": 119,
            "rule": "S35",
            "reason": "Url link | ae18328edd"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/k/krb5/libgssapi-krb5-2_1.20.1-5_arm64.deb",
            "line_number": 122,
            "rule": "S35",
            "reason": "Url link | 93e9c168a2"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libi/libical3/libical-dev_3.0.11-deepin+rb1_arm64.deb",
            "line_number": 125,
            "rule": "S35",
            "reason": "Url link | 1bd03ed311"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libi/libical3/libical3_3.0.11-deepin+rb1_arm64.deb",
            "line_number": 128,
            "rule": "S35",
            "reason": "Url link | 04333e4cbf"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/i/icu/libicu-dev_74.2-1_arm64.deb",
            "line_number": 131,
            "rule": "S35",
            "reason": "Url link | 99e6839753"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/i/icu/libicu74_74.2-1_arm64.deb",
            "line_number": 134,
            "rule": "S35",
            "reason": "Url link | 1ef362cbb9"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/k/krb5/libk5crypto3_1.20.1-5_arm64.deb",
            "line_number": 137,
            "rule": "S35",
            "reason": "Url link | f7d71a64c4"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/k/keyutils/libkeyutils1_1.6.1-3_arm64.deb",
            "line_number": 140,
            "rule": "S35",
            "reason": "Url link | 9b8197b5c2"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/k/krb5/libkrb5-3_1.20.1-5_arm64.deb",
            "line_number": 143,
            "rule": "S35",
            "reason": "Url link | dd848dc72f"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/k/krb5/libkrb5support0_1.20.1-5_arm64.deb",
            "line_number": 146,
            "rule": "S35",
            "reason": "Url link | f8a699cc4b"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/x/xz-utils/liblzma5_5.4.5-0.3_arm64.deb",
            "line_number": 149,
            "rule": "S35",
            "reason": "Url link | 5ebb9eeb75"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libm/libmd/libmd0_1.0.4-1_arm64.deb",
            "line_number": 152,
            "rule": "S35",
            "reason": "Url link | 4a824de583"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/u/util-linux/libmount1_2.39.3-6deepin1_arm64.deb",
            "line_number": 155,
            "rule": "S35",
            "reason": "Url link | d677d5e6d9"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libn/libnsl/libnsl-dev_1.3.0-2_arm64.deb",
            "line_number": 158,
            "rule": "S35",
            "reason": "Url link | 3db597138c"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libn/libnsl/libnsl2_1.3.0-2_arm64.deb",
            "line_number": 161,
            "rule": "S35",
            "reason": "Url link | a3076e2f87"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/p/pcre2/libpcre2-8-0_10.39-2_arm64.deb",
            "line_number": 164,
            "rule": "S35",
            "reason": "Url link | d26da628d6"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libs/libselinux/libselinux1_3.5-1_arm64.deb",
            "line_number": 167,
            "rule": "S35",
            "reason": "Url link | a2e1064ca9"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/o/openssl/libssl3_3.2.0-2_arm64.deb",
            "line_number": 170,
            "rule": "S35",
            "reason": "Url link | f43e3db0a5"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/g/gcc-13/libstdc++6_13.2.0-3deepin2_arm64.deb",
            "line_number": 173,
            "rule": "S35",
            "reason": "Url link | 8e8c0d55ff"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libt/libtirpc/libtirpc-common_1.3.2-2_all.deb",
            "line_number": 176,
            "rule": "S35",
            "reason": "Url link | 565011f7aa"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libt/libtirpc/libtirpc-dev_1.3.2-2_arm64.deb",
            "line_number": 179,
            "rule": "S35",
            "reason": "Url link | 70df10c504"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libt/libtirpc/libtirpc3_1.3.2-2_arm64.deb",
            "line_number": 182,
            "rule": "S35",
            "reason": "Url link | b2ef5f919b"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libz/libzstd/libzstd1_1.5.5+dfsg2-2_arm64.deb",
            "line_number": 185,
            "rule": "S35",
            "reason": "Url link | 9dcc1f3afa"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/l/linux-upstream/linux-libc-dev_23.01.00.32_arm64.deb",
            "line_number": 188,
            "rule": "S35",
            "reason": "Url link | 267c366145"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/p/perl/perl-base_5.36.0-10_arm64.deb",
            "line_number": 191,
            "rule": "S35",
            "reason": "Url link | 93b9d8248c"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/r/rpcsvc-proto/rpcsvc-proto_1.4.2-4_arm64.deb",
            "line_number": 194,
            "rule": "S35",
            "reason": "Url link | 531f130262"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/t/tar/tar_1.35+dfsg-3_arm64.deb",
            "line_number": 197,
            "rule": "S35",
            "reason": "Url link | ff3ad5b632"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/t/tzdata/tzdata_2023d-1deepin1_all.deb",
            "line_number": 200,
            "rule": "S35",
            "reason": "Url link | 9eba4bda07"
        },
        {
            "line": "    url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/z/zlib/zlib1g_1.3.dfsg-3_arm64.deb",
            "line_number": 203,
            "rule": "S35",
            "reason": "Url link | 9fd8461feb"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-service/src/calendarDataManager/daccountmanagemodule.cpp": [
        {
            "line": "const QString firstDayOfWeek_key = \"firstDayOfWeek\";",
            "line_number": 12,
            "rule": "S106",
            "reason": "Var naming | dc5ba3cd3f"
        },
        {
            "line": "const QString shortTimeFormat_key = \"shortTimeFormat\";",
            "line_number": 13,
            "rule": "S106",
            "reason": "Var naming | 7e44ab71d7"
        },
        {
            "line": "const QString firstDayOfWeekSource_key = \"firstDayOfWeekSource\";",
            "line_number": 14,
            "rule": "S106",
            "reason": "Var naming | 615e50c973"
        },
        {
            "line": "const QString shortTimeFormatSource_key = \"shortTimeFormatSource\";",
            "line_number": 15,
            "rule": "S106",
            "reason": "Var naming | da98f021ed"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-service/src/dbmanager/dhuanglidatabase.cpp": [
        {
            "line": "const QString HolidayUpdateURLPrefix =\"https://cdn-nu-common.uniontech.com/deepin-calendar\";",
            "line_number": 21,
            "rule": "S35",
            "reason": "Url link | 0b2e847e1f"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-service/src/synchronization/syncfilemanage.h": [
        {
            "line": "const QString syncDBpassword = \"calendar123\";",
            "line_number": 15,
            "rule": "S106",
            "reason": "Var naming | ac24654216"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-service/src/lunarandfestival/lunarandfestival.h": [
        {
            "line": "static QVector<QString> DiZhi = {\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"};",
            "line_number": 103,
            "rule": "C151",
            "reason": "政治敏感词 | 8503710310"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-service/src/lunarandfestival/method_interface.cpp": [
        {
            "line": "    return TianGan[num % 10] + DiZhi[num % 12];",
            "line_number": 78,
            "rule": "C151",
            "reason": "政治敏感词 | 8503710310"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-service/assets/holiday-cn/2024.json": [
        {
            "line": "  \"$schema\": \"https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/schema.json\",",
            "line_number": 2,
            "rule": "S35",
            "reason": "Url link | a43bfa6ba7"
        },
        {
            "line": "  \"$id\": \"https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/2024.json\",",
            "line_number": 3,
            "rule": "S35",
            "reason": "Url link | 738f27d0af"
        },
        {
            "line": "      \"https://www.gov.cn/zhengce/zhengceku/202310/content_6911528.htm\"",
            "line_number": 6,
            "rule": "S35",
            "reason": "Url link | 6563a4d532"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-service/assets/holiday-cn/2023.json": [
        {
            "line": "    \"$schema\": \"https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/schema.json\",",
            "line_number": 2,
            "rule": "S35",
            "reason": "Url link | a43bfa6ba7"
        },
        {
            "line": "    \"$id\": \"https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/2023.json\",",
            "line_number": 3,
            "rule": "S35",
            "reason": "Url link | 5229d30a97"
        },
        {
            "line": "        \"http://www.gov.cn/zhengce/zhengceku/2022-12/08/content_5730844.htm\"",
            "line_number": 6,
            "rule": "S35",
            "reason": "Url link | a7f9c337a6"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/debian/control": [
        {
            "line": "Homepage: http://www.deepin.org",
            "line_number": 23,
            "rule": "S35",
            "reason": "Url link | 6fe814dfb7"
        },
        {
            "line": "Vcs-Git: https://github.com/linuxdeepin/dde-calendar",
            "line_number": 24,
            "rule": "S35",
            "reason": "Url link | e6ceedf841"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/debian/dde-calendar.1": [
        {
            "line": "https://github.com/linuxdeepin/dde-calendar",
            "line_number": 33,
            "rule": "S35",
            "reason": "Url link | e6ceedf841"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-client/src/main.cpp": [
        {
            "line": "        app->setApplicationAcknowledgementPage(\"https://www.deepin.org/acknowledgments/dde-calendar\");",
            "line_number": 67,
            "rule": "S35",
            "reason": "Url link | f82e0b7f80"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-client/src/widget/calendarmainwindow.cpp": [
        {
            "line": "            url = \"https://www.deepin.org/zh/agreement/privacy/\";",
            "line_number": 907,
            "rule": "S35",
            "reason": "Url link | 20e2eab189"
        },
        {
            "line": "            url = \"https://www.uniontech.com/agreement/privacy-cn\";",
            "line_number": 909,
            "rule": "S35",
            "reason": "Url link | 4850a00dd7"
        },
        {
            "line": "            url = \"https://www.deepin.org/en/agreement/privacy/\";",
            "line_number": 913,
            "rule": "S35",
            "reason": "Url link | 38d42f63bf"
        },
        {
            "line": "            url = \"https://www.uniontech.com/agreement/privacy-en\";",
            "line_number": 915,
            "rule": "S35",
            "reason": "Url link | f82409d3b5"
        }
    ],
    "/home/runner/work/dde-calendar/dde-calendar/sourceCode/calendar-client/assets/org.deepin.calendar.metainfo.xml": [
        {
            "line": "  <url type=\"bugtracker\">https://github.com/linuxdeepin/developer-center/issues/</url>",
            "line_number": 23,
            "rule": "S35",
            "reason": "Url link | fd115c2cfd"
        },
        {
            "line": "  <url type=\"help\">https://github.com/linuxdeepin/developer-center/issues/</url>",
            "line_number": 24,
            "rule": "S35",
            "reason": "Url link | fd115c2cfd"
        },
        {
            "line": "  <url type=\"homepage\">https://bbs.deepin.org/</url>",
            "line_number": 25,
            "rule": "S35",
            "reason": "Url link | c60d8b1a34"
        }
    ]
}

@myml myml requested a review from BLumia September 27, 2024 06:16
Copy link

github-actions bot commented Sep 29, 2024

TAG Bot

TAG: 5.14.9
EXISTED: no
DISTRIBUTION: UNRELEASED

@myml
Copy link
Member Author

myml commented Sep 29, 2024

/integrate

Copy link

AutoIntegrationPr Bot
auto integrate with pr url: deepin-community/Repository-Integration#2059
PrNumber: 2059
PrBranch: auto-integration-11091024199

@myml myml force-pushed the week branch 2 times, most recently from d229c8d to dc83573 Compare October 8, 2024 07:57
@deepin-ci-robot
Copy link

deepin pr auto review

关键摘要:

  • CWeekWidget::paintEvent函数中,使用QLocale获取星期几的名称时,没有考虑到国际化支持,应该使用QLocale::toString方法。
  • CWeekWidget::paintEvent函数中的循环应该使用范围for语句,以提高代码的可读性。
  • debian/changelog文件中,新增的翻译提交应该包含相应的翻译文件更新记录,以便于追踪和维护。

是否建议立即修改:

BLumia
BLumia previously approved these changes Oct 8, 2024
@deepin-bot
Copy link
Contributor

deepin-bot bot commented Oct 18, 2024

TAG Bot

New tag: 5.14.7
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #194

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Oct 19, 2024

TAG Bot

New tag: 5.14.8
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #195

cweekwidget组件使用locale.toString替换tr手动翻译
一来可以使用qt自己的翻译支持的语言更广泛, 且能减少翻译工作量
二来避免翻译人员在不知道显示场景下使用长翻译而不是缩写

Bug: https://pms.uniontech.com/bug-view-271483.html
发布5.14.9版本

Log: 修复翻译错误
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: BLumia, myml

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@myml myml merged commit 6143741 into linuxdeepin:master Nov 14, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants