Bug 232642 - Fix consistency issues with localized strings, and regenerate localizable.strings
Summary: Fix consistency issues with localized strings, and regenerate localizable.str...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: David Kilzer (:ddkilzer)
URL:
Keywords: InRadar
Depends on: 218879 226361 226888 232462
Blocks: 232686
  Show dependency treegraph
 
Reported: 2021-11-02 15:17 PDT by David Kilzer (:ddkilzer)
Modified: 2021-11-24 15:30 PST (History)
6 users (show)

See Also:


Attachments
Patch v1 (11.64 KB, patch)
2021-11-02 15:23 PDT, David Kilzer (:ddkilzer)
no flags Details | Formatted Diff | Diff
Patch v2 (11.12 KB, patch)
2021-11-02 16:25 PDT, David Kilzer (:ddkilzer)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2021-11-02 15:17:33 PDT
Fix consistency issues with localized strings and regenerate localizable.strings.
Comment 1 David Kilzer (:ddkilzer) 2021-11-02 15:23:31 PDT
Created attachment 443138 [details]
Patch v1
Comment 2 Devin Rousso 2021-11-02 15:26:37 PDT
Comment on attachment 443138 [details]
Patch v1

View in context: https://bugs.webkit.org/attachment.cgi?id=443138&action=review

> Source/WebCore/en.lproj/Localizable.strings:38
> +"%@ Easy (text track)" = "%@ Easy Reader";

this should actually probably be fixed in the corresponding code 😅
Comment 3 David Kilzer (:ddkilzer) 2021-11-02 15:55:39 PDT
Comment on attachment 443138 [details]
Patch v1

View in context: https://bugs.webkit.org/attachment.cgi?id=443138&action=review

>> Source/WebCore/en.lproj/Localizable.strings:38
>> +"%@ Easy (text track)" = "%@ Easy Reader";
> 
> this should actually probably be fixed in the corresponding code 😅

Ah, I wasn't sure which way to go.  I will change the code to match the format string.  Thanks!
Comment 4 David Kilzer (:ddkilzer) 2021-11-02 16:16:08 PDT
Comment on attachment 443138 [details]
Patch v1

View in context: https://bugs.webkit.org/attachment.cgi?id=443138&action=review

> Source/WebCore/platform/cocoa/LocalizedStringsCocoa.mm:280
> -    return [NSString localizedStringWithFormat:WEB_UI_NSSTRING(@"Use no more than %d character(s)", @"Validation message for form control elements with a value shorter than maximum allowed length"), maxLength];
> +    return formatLocalizedString(WEB_UI_CFSTRING("Use no more than %d character(s)", "Validation message for form control elements with a value shorter than maximum allowed length"), maxLength);

This caused a regression, so I'm going to remove it from this patch.  (It will appear in a follow-up patch, though.)
Comment 5 David Kilzer (:ddkilzer) 2021-11-02 16:25:20 PDT
Created attachment 443143 [details]
Patch v2
Comment 6 David Kilzer (:ddkilzer) 2021-11-03 14:59:17 PDT
Comment on attachment 443143 [details]
Patch v2

Thanks Megan!
Comment 7 EWS 2021-11-03 15:07:32 PDT
Committed r285234 (243855@main): <https://commits.webkit.org/243855@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 443143 [details].
Comment 8 Radar WebKit Bug Importer 2021-11-03 15:08:19 PDT
<rdar://problem/84993811>