From 81baf0e28a0508a34860675c31c798b1534ef2c8 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 2 Feb 2026 09:15:46 +0100 Subject: [PATCH 1/2] ci(translations): Ensure there are no line breaks in strings Signed-off-by: Joas Schilling --- .github/workflows/lint-translations.yml | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/lint-translations.yml diff --git a/.github/workflows/lint-translations.yml b/.github/workflows/lint-translations.yml new file mode 100644 index 00000000000..fd520592296 --- /dev/null +++ b/.github/workflows/lint-translations.yml @@ -0,0 +1,39 @@ +# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors +# SPDX-License-Identifier: MIT + +name: Lint translation files + +on: + pull_request: + branches: [ master, main, stable-* ] + push: + branches: [ master, main, stable-* ] + +permissions: + contents: read + +concurrency: + group: lint-php-cs-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + lint: + runs-on: ubuntu-latest-low + + name: translations-string-xml + + steps: + - name: Checkout + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + + - name: Check for new lines in translation strings + id: counter + run: | + grep -P '' | grep '^0$' + + - name: Output + if: failure() + run: | + grep -P '' From 230c85198f30220ecf542cffc96b29b976c9bec2 Mon Sep 17 00:00:00 2001 From: sowjanyakch Date: Mon, 2 Feb 2026 09:43:21 +0100 Subject: [PATCH 2/2] fix line break in string Signed-off-by: sowjanyakch --- app/src/main/res/values/strings.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8dd0ea77f50..52c6b7eca92 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -930,6 +930,5 @@ How to translate with transifex: No scheduled messages Send later without notification In %1$s - No connection to server - Scheduled messages could not be - loaded + No connection to server - Scheduled messages could not be loaded