Skip to content

Commit

Permalink
Add spellchecking on CI
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
SystemKeeper authored and Ivansss committed Oct 27, 2023
1 parent d0d8770 commit fcd08c0
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/localizable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,18 @@ jobs:
run: |
git diff
- name: Install dependencies
run: |
pip3 install pyspelling
- name: Spell check
run: |
python3 -m pyspelling
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v16
id: verify-changed-files
if: always()
with:
fail-if-changed: true
files: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ NextcloudTalk.xcworkspace/xcshareddata
ThirdParty/WebRTC.xcframework
.DS_Store
testResult.xcresult
dictionary.dic
13 changes: 13 additions & 0 deletions .pyspelling.wordlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
AirPlay
Cancelled
HPB
Matterbridge
Nextcloud
Repo
backend
formattedPhoneNumber
https
ld
listable
lu
decrypted
10 changes: 10 additions & 0 deletions .pyspelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
matrix:
- name: English localizable file
aspell:
lang: en
d: en_US
dictionary:
wordlists:
- .pyspelling.wordlist.txt
sources:
- NextcloudTalk/en.lproj/Localizable.strings
2 changes: 1 addition & 1 deletion NextcloudTalk/CallKitManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ - (void)reportIncomingCallForNonCallKitDevicesWithPushNotification:(NCPushNotifi
- (void)reportIncomingCallForOldAccount
{
CXCallUpdate *update = [self defaultCallUpdate];
update.localizedCallerName = NSLocalizedString(@"Old account", @"Will be used as the caller name when a voip notification can't be decrypted");
update.localizedCallerName = NSLocalizedString(@"Old account", @"Will be used as the caller name when a VoIP notification can't be decrypted");

NSUUID *callUUID = [NSUUID new];
CallKitCall *call = [[CallKitCall alloc] init];
Expand Down
4 changes: 2 additions & 2 deletions NextcloudTalk/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@
/* No comment provided by engineer. */
"OK" = "OK";

/* Will be used as the caller name when a voip notification can't be decrypted */
/* Will be used as the caller name when a VoIP notification can't be decrypted */
"Old account" = "Old account";

/* No comment provided by engineer. */
Expand Down Expand Up @@ -1624,7 +1624,7 @@
/* No comment provided by engineer. */
"To resolve this issue, use the web interface and go to \"Settings -> Security\"." = "To resolve this issue, use the web interface and go to \"Settings -> Security\".";

/* TRANSLATORS this is for sending something 'to' a user. Eg. 'To: John Doe' */
/* TRANSLATORS this is for sending something 'to' a user. E.g. 'To: John Doe' */
"To:" = "To:";

/* No comment provided by engineer. */
Expand Down
2 changes: 1 addition & 1 deletion ShareExtension/ShareConfirmationViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ - (void)viewDidLoad
NSDictionary *subAttribute = @{NSFontAttributeName:[UIFont boldSystemFontOfSize:15],
NSForegroundColorAttributeName:[UIColor tertiaryLabelColor]};

NSString *localizedToString = NSLocalizedString(@"To:", @"TRANSLATORS this is for sending something 'to' a user. Eg. 'To: John Doe'");
NSString *localizedToString = NSLocalizedString(@"To:", @"TRANSLATORS this is for sending something 'to' a user. E.g. 'To: John Doe'");
NSMutableAttributedString *toString = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"%@ %@", localizedToString, _room.displayName] attributes:attributes];
[toString addAttributes:subAttribute range:NSMakeRange(0, [localizedToString length])];
self.toLabel.attributedText = toString;
Expand Down

0 comments on commit fcd08c0

Please sign in to comment.