From 7ed04db4fc5e19df99f5d87cd45ad4947e8669e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Thu, 26 Oct 2023 17:31:03 +0200 Subject: [PATCH] Show localizable difference and remove UTF-8 BOM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- .github/workflows/localizable.yml | 4 ++++ NextcloudTalk/en.lproj/Localizable.strings | 2 +- generate-localizable-strings-file.sh | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/localizable.yml b/.github/workflows/localizable.yml index 2105d5a81..61c3a019b 100644 --- a/.github/workflows/localizable.yml +++ b/.github/workflows/localizable.yml @@ -34,6 +34,10 @@ jobs: run: | source ./generate-localizable-strings-file.sh + - name: Run git diff + run: | + git diff + - name: Verify Changed files uses: tj-actions/verify-changed-files@v16 id: verify-changed-files diff --git a/NextcloudTalk/en.lproj/Localizable.strings b/NextcloudTalk/en.lproj/Localizable.strings index 64d85a1df..96ca7264c 100644 --- a/NextcloudTalk/en.lproj/Localizable.strings +++ b/NextcloudTalk/en.lproj/Localizable.strings @@ -1,4 +1,4 @@ -/* No comment provided by engineer. */ +/* No comment provided by engineer. */ "%@ added to this new group conversation" = "%@ added to this new group conversation"; /* No comment provided by engineer. */ diff --git a/generate-localizable-strings-file.sh b/generate-localizable-strings-file.sh index fc599d8a6..279ab4089 100755 --- a/generate-localizable-strings-file.sh +++ b/generate-localizable-strings-file.sh @@ -5,7 +5,7 @@ echo 'Generating Localizable.strings file...' cd NextcloudTalk genstrings -o en.lproj *.m *.swift ../ShareExtension/*.m ../NotificationServiceExtension/*.m ../ThirdParty/SlackTextViewController/Source/*.m -iconv -f UTF-16LE -t UTF-8 en.lproj/Localizable.strings > en.lproj/Localizable-utf8.strings +iconv -f UTF-16 -t UTF-8 en.lproj/Localizable.strings > en.lproj/Localizable-utf8.strings mv en.lproj/Localizable-utf8.strings en.lproj/Localizable.strings echo 'Localizable.strings file generated!'