Skip to content

Commit

Permalink
Show localizable difference and remove UTF-8 BOM
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
SystemKeeper committed Oct 26, 2023
1 parent afe5028 commit 7ed04db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/localizable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion NextcloudTalk/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion generate-localizable-strings-file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!'

0 comments on commit 7ed04db

Please sign in to comment.