From 907e80ee3ed3037c42e2e47e8db6b59b17359299 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 4 May 2021 16:37:42 +0200 Subject: Travis-CI: Initial draft for CI builds. --- .build.yml | 119 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .travis.yml | 43 ++++++++++++++++++++++ 2 files changed, 162 insertions(+) create mode 100644 .build.yml create mode 100644 .travis.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..01cacf2 --- /dev/null +++ b/.build.yml @@ -0,0 +1,119 @@ +######################################################### +# THE FOLLOWING LINES IS USED BY docker-build +########################################################## +requires: + archlinux: + # Useful URL: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ayatana-indicator-notifications + - clang + - gcc + - git + - make + - startup-notification + - which + - cmake + - cmake-extras + - mate-common + - intltool + - glib2 + - systemd + + debian: + # Useful URL: https://salsa.debian.org/debian-ayatana-team/ayatana-indicator-notifications + - autopoint + - clang + - clang-tools + - g++ + - cppcheck + - git + - cmake + - cmake-extras + - mate-common + - intltool + - libglib2.0-dev + - systemd + + ubuntu: + - autopoint + - clang + - clang-tools + - g++ + - git + - cmake + - cmake-extras + - mate-common + - intltool + - libglib2.0-dev + - systemd + +variables: + - 'CHECKERS=" + -enable-checker deadcode.DeadStores + -enable-checker alpha.deadcode.UnreachableCode + -enable-checker alpha.core.CastSize + -enable-checker alpha.core.CastToStruct + -enable-checker alpha.core.IdenticalExpr + -enable-checker alpha.core.SizeofPtr + -enable-checker alpha.security.ArrayBoundV2 + -enable-checker alpha.security.MallocOverflow + -enable-checker alpha.security.ReturnPtrRange + -enable-checker alpha.unix.SimpleStream + -enable-checker alpha.unix.cstring.BufferOverlap + -enable-checker alpha.unix.cstring.NotNullTerminated + -enable-checker alpha.unix.cstring.OutOfBounds + -enable-checker alpha.core.FixedAddr + -enable-checker security.insecureAPI.strcpy"' + +before_scripts: + - cd ${START_DIR} + - if [ ! -d libayatana-common-build ]; then + - git clone --depth 1 https://github.com/AyatanaIndicators/libayatana-common.git libayatana-common-build + - fi + - cd libayatana-common-build + - cmake . -DCMAKE_INSTALL_PREFIX=/usr + - make + - make install + +build_scripts: + - if [ ${DISTRO_NAME} == "debian" ];then + - export CFLAGS+=" -Wsign-compare -Wunused-parameter" + - cppcheck --enable=warning,style,performance,portability,information,missingInclude . + - fi + - + - if [ -e ./autogen.sh ]; then + - NOCONFIGURE=1 ./autogen.sh + - scan-build $CHECKERS ./configure --prefix=/usr --enable-gtk-doc --enable-compile-warnings=maximum + - elif [ -e ./CMakeLists.txt ]; then + - if [ ${DISTRO_NAME} == "debian" ];then + - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_TESTS=ON + - else + - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON + - fi + - else + - exit 1 + - fi + - + - if [ $CPU_COUNT -gt 1 ]; then + - if [ ${DISTRO_NAME} == "debian" ];then + - scan-build $CHECKERS --keep-cc --use-cc=clang --use-c++=clang++ -o html-report make -j $CPU_COUNT + - make clean + - fi + - scan-build $CHECKERS --keep-cc -o html-report make -j $CPU_COUNT + - else + - if [ ${DISTRO_NAME} == "debian" ];then + - scan-build $CHECKERS --keep-cc --use-cc=clang --use-c++=clang++ -o html-report make + - make clean + - fi + - scan-build $CHECKERS --keep-cc -o html-report make + - fi + +after_scripts: + - if [ ${BUILD_TYPE} == "scripts" ];then + - XVFB_RUN="$(which xvfb-run || true)" + - if [ ${DISTRO_NAME} == "debian" ];then + - if [ -e ./autogen.sh ]; then + - ${XVFB_RUN} make check + - elif [ -e ./CMakeLists.txt ]; then + - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test + - fi + - fi + - fi diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5382638 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,43 @@ +# vim: set ts=2 sts=2 sw=2 expandtab : +dist: bionic +language: shell +os: linux + +arch: + - amd64 + - ppc64le + +services: + - docker + +addons: + apt: + packages: + - python3-pip + - python3-setuptools + +before_install: + # let's use the MATE project's docker build script... + - curl -Ls -o docker-build https://github.com/AyatanaIndicators/ayatana-dev-scripts/raw/master/travis/docker-build + - chmod +x docker-build + +install: + - pip3 install wheel + - pip3 install PyGithub + - ./docker-build --name ${DISTRO} --config .build.yml --install + +script: + - ./docker-build --name ${DISTRO} --verbose --config .build.yml --build scripts + +env: +# temp disable of archlinux builds, see https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/56 +# - DISTRO="archlinux:latest" + - DISTRO="debian:testing" + - DISTRO="debian:stable" +# - DISTRO="ubuntu:rolling" + - DISTRO="ubuntu:focal" + +jobs: + exclude: + - env: DISTRO="archlinux:latest" + arch: ppc64le -- cgit v1.2.3 From 9c9a8d66f4c0079d56f240d814c95d9e66a5111d Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 4 May 2021 16:57:09 +0200 Subject: Travis CI: Disable unit test runs (none present). --- .build.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.build.yml b/.build.yml index 01cacf2..e4a81a8 100644 --- a/.build.yml +++ b/.build.yml @@ -106,14 +106,14 @@ build_scripts: - scan-build $CHECKERS --keep-cc -o html-report make - fi -after_scripts: - - if [ ${BUILD_TYPE} == "scripts" ];then - - XVFB_RUN="$(which xvfb-run || true)" - - if [ ${DISTRO_NAME} == "debian" ];then - - if [ -e ./autogen.sh ]; then - - ${XVFB_RUN} make check - - elif [ -e ./CMakeLists.txt ]; then - - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test - - fi - - fi - - fi +#after_scripts: +# - if [ ${BUILD_TYPE} == "scripts" ];then +# - XVFB_RUN="$(which xvfb-run || true)" +# - if [ ${DISTRO_NAME} == "debian" ];then +# - if [ -e ./autogen.sh ]; then +# - ${XVFB_RUN} make check +# - elif [ -e ./CMakeLists.txt ]; then +# - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test +# - fi +# - fi +# - fi -- cgit v1.2.3 From f6da908e29c9c1642d9b91c644f426eec5269f8e Mon Sep 17 00:00:00 2001 From: Adolfo Jayme Barrientos Date: Thu, 4 Feb 2021 00:45:12 +0000 Subject: Translated using Weblate (Catalan) Currently translated at 100.0% (12 of 12 strings) Translation: Ayatana Indicators/Notifications Applet Translate-URL: https://hosted.weblate.org/projects/ayatana-indicators/notifications-applet/ca/ --- po/ca.po | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/po/ca.po b/po/ca.po index 9fbf593..1837354 100644 --- a/po/ca.po +++ b/po/ca.po @@ -8,16 +8,16 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-11-12 14:54+0100\n" -"PO-Revision-Date: 2020-10-27 14:36+0000\n" -"Last-Translator: Joan CiberSheep \n" -"Language-Team: Catalan \n" +"PO-Revision-Date: 2021-02-05 01:42+0000\n" +"Last-Translator: Adolfo Jayme Barrientos \n" +"Language-Team: Catalan \n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.3.2-dev\n" +"X-Generator: Weblate 4.5-dev\n" #: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:1 msgid "Discard notifications by application name" @@ -75,7 +75,7 @@ msgstr "Notificacions" #: ../src/service.c:327 msgid "Clear" -msgstr "" +msgstr "Neteja" #: ../src/service.c:338 msgid "Do not disturb" -- cgit v1.2.3 From 740ebe30cf58863041ba598df50aebf41aee73be Mon Sep 17 00:00:00 2001 From: Boyuan Yang <073plan@gmail.com> Date: Thu, 11 Mar 2021 05:29:13 +0000 Subject: Translated using Weblate (Chinese (Simplified)) Currently translated at 91.6% (11 of 12 strings) Translation: Ayatana Indicators/Notifications Applet Translate-URL: https://hosted.weblate.org/projects/ayatana-indicators/notifications-applet/zh_Hans/ --- po/zh_CN.po | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/po/zh_CN.po b/po/zh_CN.po index b1d8520..f1b73c4 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-11-12 14:54+0100\n" -"PO-Revision-Date: 2020-05-27 06:41+0000\n" -"Last-Translator: wdggg \n" +"PO-Revision-Date: 2021-03-12 06:02+0000\n" +"Last-Translator: Boyuan Yang <073plan@gmail.com>\n" "Language-Team: Chinese (Simplified) \n" "Language: zh_CN\n" @@ -17,18 +17,17 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Weblate 4.1-dev\n" +"X-Generator: Weblate 4.5.2-dev\n" #: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:1 msgid "Discard notifications by application name" msgstr "按应用程序名称屏蔽通知" #: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:2 -#, fuzzy msgid "" "If an application name is in the filter list, all notifications matching the " "application name will be discarded." -msgstr "如果有一个应用程序在黑名单中, 所有与该程序相关的通知将会被丢弃。" +msgstr "如果有一个应用程序在过滤名单中, 所有与该程序相关的通知将会被丢弃。" #: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:3 msgid "Clear notifications on middle click" @@ -75,7 +74,7 @@ msgstr "" #: ../src/service.c:338 msgid "Do not disturb" -msgstr "" +msgstr "请勿打扰" #, fuzzy #~ msgid "Settings…" -- cgit v1.2.3 From f3d36a420c4f24ef3e52b64049fb8410eb286bd6 Mon Sep 17 00:00:00 2001 From: Reza Almanda Date: Thu, 18 Mar 2021 01:25:11 +0000 Subject: Translated using Weblate (Indonesian) Currently translated at 33.3% (4 of 12 strings) Translation: Ayatana Indicators/Notifications Applet Translate-URL: https://hosted.weblate.org/projects/ayatana-indicators/notifications-applet/id/ --- po/id.po | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/po/id.po b/po/id.po index 1fc6a2e..d06c06c 100644 --- a/po/id.po +++ b/po/id.po @@ -8,18 +8,20 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-11-12 14:54+0100\n" -"PO-Revision-Date: 2017-12-02 19:20+0100\n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" +"PO-Revision-Date: 2021-03-18 17:29+0000\n" +"Last-Translator: Reza Almanda \n" +"Language-Team: Indonesian \n" "Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 4.5.2-dev\n" #: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:1 msgid "Discard notifications by application name" -msgstr "" +msgstr "Buang pemberitahuan berdasarkan nama aplikasi" #: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:2 msgid "" @@ -48,7 +50,7 @@ msgstr "" #: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:7 msgid "Maximum number of visible items" -msgstr "" +msgstr "Jumlah maksimum item yang terlihat" #: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:8 msgid "" @@ -62,11 +64,11 @@ msgstr "" #: ../src/service.c:270 ../src/service.c:299 msgid "Notifications" -msgstr "" +msgstr "Pemberitahuan" #: ../src/service.c:327 msgid "Clear" -msgstr "" +msgstr "Bersihkan" #: ../src/service.c:338 msgid "Do not disturb" -- cgit v1.2.3 From e544c9e3ef4689c0e9ec170174a01b61b32d451d Mon Sep 17 00:00:00 2001 From: Weblate Date: Mon, 29 Mar 2021 19:44:53 +0200 Subject: Added translation using Weblate (Chinese (Simplified) (zh_LATN@pinyin)) --- po/zh_LATN@pinyin.po | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 po/zh_LATN@pinyin.po diff --git a/po/zh_LATN@pinyin.po b/po/zh_LATN@pinyin.po new file mode 100644 index 0000000..5d1ad25 --- /dev/null +++ b/po/zh_LATN@pinyin.po @@ -0,0 +1,72 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-11-12 14:51+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: zh_LATN@pinyin\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:1 +msgid "Discard notifications by application name" +msgstr "" + +#: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:2 +msgid "" +"If an application name is in the filter list, all notifications matching the " +"application name will be discarded." +msgstr "" + +#: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:3 +msgid "Clear notifications on middle click" +msgstr "" + +#: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:4 +msgid "" +"Normally when middle clicking the notification icon, the unread status will " +"be toggled if the queue is not empty. With this option enabled, the " +"notification queue will be cleared instead." +msgstr "" + +#: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:5 +msgid "Hide the indicator" +msgstr "" + +#: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:6 +msgid "If true, the indicator is hidden." +msgstr "" + +#: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:7 +msgid "Maximum number of visible items" +msgstr "" + +#: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:8 +msgid "" +"The indicator will only display at most the number of notifications " +"indicated by this value." +msgstr "" + +#: ../src/service.c:221 +msgid "from" +msgstr "" + +#: ../src/service.c:270 ../src/service.c:299 +msgid "Notifications" +msgstr "" + +#: ../src/service.c:327 +msgid "Clear" +msgstr "" + +#: ../src/service.c:338 +msgid "Do not disturb" +msgstr "" -- cgit v1.2.3 From 4b4312f56ebf735e7e3ab345d7f9eaba7c2478ea Mon Sep 17 00:00:00 2001 From: Hosted Weblate Date: Tue, 30 Mar 2021 15:02:48 +0200 Subject: Update translation files Updated by "Update LINGUAS file" hook in Weblate. Translation: Ayatana Indicators/Notifications Applet Translate-URL: https://hosted.weblate.org/projects/ayatana-indicators/notifications-applet/ --- po/LINGUAS | 1 + 1 file changed, 1 insertion(+) diff --git a/po/LINGUAS b/po/LINGUAS index 95d5c5a..c867b43 100644 --- a/po/LINGUAS +++ b/po/LINGUAS @@ -128,3 +128,4 @@ vec csb tt ta_LK +zh_LATN@pinyin -- cgit v1.2.3 From 919bd79cee77847fe0a1cf7abf29b85ffe16a69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Marn=C3=BD?= Date: Sat, 1 May 2021 10:43:23 +0000 Subject: Translated using Weblate (Czech) Currently translated at 100.0% (12 of 12 strings) Translation: Ayatana Indicators/Notifications Applet Translate-URL: https://hosted.weblate.org/projects/ayatana-indicators/notifications-applet/cs/ --- po/cs.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/po/cs.po b/po/cs.po index 935557a..0edf0b5 100644 --- a/po/cs.po +++ b/po/cs.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-11-12 14:54+0100\n" -"PO-Revision-Date: 2020-11-13 18:28+0000\n" -"Last-Translator: Milan Korecky \n" +"PO-Revision-Date: 2021-05-02 11:32+0000\n" +"Last-Translator: Tomáš Marný \n" "Language-Team: Czech \n" "Language: cs\n" @@ -17,11 +17,11 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" -"X-Generator: Weblate 4.4-dev\n" +"X-Generator: Weblate 4.7-dev\n" #: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:1 msgid "Discard notifications by application name" -msgstr "Zahodit oznámení podle názvu aplikace" +msgstr "Zahazovat oznámení podle názvu aplikace" #: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:2 msgid "" -- cgit v1.2.3 From 10498d3a6263d6c16ff7c8c6536f1ab4c7eebe89 Mon Sep 17 00:00:00 2001 From: Adolfo Jayme Barrientos Date: Thu, 6 May 2021 12:02:01 +0000 Subject: Translated using Weblate (Catalan) Currently translated at 100.0% (12 of 12 strings) Translation: Ayatana Indicators/Notifications Applet Translate-URL: https://hosted.weblate.org/projects/ayatana-indicators/notifications-applet/ca/ --- po/ca.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/po/ca.po b/po/ca.po index 1837354..744dd47 100644 --- a/po/ca.po +++ b/po/ca.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-11-12 14:54+0100\n" -"PO-Revision-Date: 2021-02-05 01:42+0000\n" +"PO-Revision-Date: 2021-05-07 12:33+0000\n" "Last-Translator: Adolfo Jayme Barrientos \n" "Language-Team: Catalan \n" @@ -17,7 +17,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.5-dev\n" +"X-Generator: Weblate 4.7-dev\n" #: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:1 msgid "Discard notifications by application name" @@ -55,7 +55,7 @@ msgstr "Si és cert, l'indicador està ocult." #: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:7 msgid "Maximum number of visible items" -msgstr "Número màxim d'elements visibles" +msgstr "Nombre màxim d'elements visibles" #: ../data/org.ayatana.indicator.notifications.gschema.xml.in.in:8 msgid "" -- cgit v1.2.3