Skip to content

Commit bbb401c

Browse files
authored
Merge changes and fixes from beta 19.7.0.2 (#18463)
2 parents 3baaf1b + 0fe4b03 commit bbb401c

222 files changed

Lines changed: 1190 additions & 543 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

WordPress/Classes/ViewRelated/Site Creation/Site Name/SiteNameView.swift

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class SiteNameView: UIView {
2424
label.adjustsFontForContentSizeCategory = true
2525
label.numberOfLines = Metrics.numberOfLinesInTitle
2626
label.textAlignment = .center
27+
label.adjustsFontSizeToFitWidth = true
28+
label.minimumScaleFactor = Metrics.titleMinimumScaleFactor
2729
return label
2830
}()
2931

@@ -235,10 +237,22 @@ private extension SiteNameView {
235237

236238
/// hides or shows titles based on the passed boolean parameter
237239
func hideTitlesIfNeeded() {
238-
let isAccessibility = traitCollection.verticalSizeClass == .compact || traitCollection.preferredContentSizeCategory.isAccessibilityCategory
239-
let isVerylarge = [UIContentSizeCategory.extraExtraLarge, UIContentSizeCategory.extraExtraExtraLarge].contains(traitCollection.preferredContentSizeCategory)
240+
let isAccessibility = traitCollection.verticalSizeClass == .compact ||
241+
traitCollection.preferredContentSizeCategory.isAccessibilityCategory
242+
243+
let isVerylarge = [
244+
UIContentSizeCategory.extraExtraLarge,
245+
UIContentSizeCategory.extraExtraExtraLarge
246+
].contains(traitCollection.preferredContentSizeCategory)
247+
240248
titleLabelView.isHidden = isAccessibility
241-
subtitleLabelView.isHidden = isAccessibility || isVerylarge
249+
250+
subtitleLabelView.isHidden = isAccessibility || isVerylarge || isIphoneSEorSmaller
251+
}
252+
253+
var isIphoneSEorSmaller: Bool {
254+
UIScreen.main.nativeBounds.height <= Metrics.smallerIphonesNativeBoundsHeight &&
255+
UIScreen.main.nativeScale <= Metrics.nativeScale
242256
}
243257
}
244258

@@ -264,18 +278,22 @@ private extension SiteNameView {
264278
// search bar
265279
static let searchbarHeight: CGFloat = 64
266280
// title and subtitle
267-
static let numberOfLinesInTitle = 0
281+
static let numberOfLinesInTitle = 3
268282
static let numberOfLinesInSubtitle = 0
269283
static let titlesInsets = UIEdgeInsets(top: 0, left: 16, bottom: 0, right: 16)
284+
static let verticalNameDisplayLimit = 32
285+
static let titleMinimumScaleFactor: CGFloat = 0.75
270286
//continue button
271287
static let continueButtonStandardPadding: CGFloat = 16
272288
static let continueButtonAdditionaliPadPadding: CGFloat = 8
273289
static let continueButtonInsets = UIEdgeInsets(top: 16, left: 16, bottom: 16, right: 16)
274290
static func continueButtonViewFrame(_ accessoryWidth: CGFloat) -> CGRect {
275291
CGRect(x: 0, y: 0, width: accessoryWidth, height: 76)
276292
}
293+
// native bounds height and scale of iPhone SE 3rd gen and iPhone 8
294+
static let smallerIphonesNativeBoundsHeight: CGFloat = 1334
295+
static let nativeScale: CGFloat = 2
277296
}
278-
279297
}
280298

281299
// MARK: search bar delegate

WordPress/Resources/ar.lproj/Localizable.strings

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Translation-Revision-Date: 2022-04-20 20:54:07+0000 */
1+
/* Translation-Revision-Date: 2022-04-25 15:46:19+0000 */
22
/* Plural-Forms: nplurals=6; plural=(n == 0) ? 0 : ((n == 1) ? 1 : ((n == 2) ? 2 : ((n % 100 >= 3 && n % 100 <= 10) ? 3 : ((n % 100 >= 11 && n % 100 <= 99) ? 4 : 5)))); */
33
/* Generator: GlotPress/3.0.0 */
44
/* Language: ar */
@@ -8387,9 +8387,6 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
83878387
/* No comment provided by engineer. */
83888388
"Use icon button" = "استخدام زر الأيقونة";
83898389

8390-
/* Footer text for Invite Links section of the Invite People screen. */
8391-
"Use this link to onboard your team members without having to invite them one by one. Anybody visiting this URL will be able to sign up to your organization, even if they received the link from somebody else, so make sure that you share it with trusted peo" = "استخدم هذا الرابط لضمّ أعضاء فريقك دون الحاجة إلى دعوتهم واحدًا تلو الآخر. سيتمكن أي شخص يزور عنوان الموقع هذا من الاشتراك في مؤسستك، حتى إذا تلقى الرابط من شخص آخر، لذا تأكد من مشاركته مع أشخاص موثوق بهم.";
8392-
83938390
/* No comment provided by engineer. */
83948391
"Use this site" = "استخدام هذا الموقع";
83958392

@@ -9497,6 +9494,9 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
94979494
/* Sentence to justify why the app asks permission from the user to access their Media Library. */
94989495
"infoplist.NSPhotoLibraryUsageDescription" = "لإضافة صور أو مقاطع فيديو إلى مقالاتك.";
94999496

9497+
/* Footer text for Invite Links section of the Invite People screen. */
9498+
"invite_people_invite_link_footer" = "استخدم هذا الرابط لضم أعضاء فريقك من دون دعوتهم واحدًا تلو الآخر. سيتمكن أي شخص يزور عنوان URL هذا من التسجيل في مؤسستك، حتى إذا تلقى الرابط من شخص آخر، لذا تأكَّد من مشاركته مع أشخاص موثوق بهم.";
9499+
95009500
/* Name of the "Save as Draft" action as it should appear in the iOS Share Sheet when sharing content from other apps to WordPress */
95019501
"ios-sharesheet.CFBundleDisplayName" = "حفظ كمسودة";
95029502

WordPress/Resources/cs.lproj/Localizable.strings

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Translation-Revision-Date: 2022-04-04 20:35:21+0000 */
1+
/* Translation-Revision-Date: 2022-04-25 13:45:55+0000 */
22
/* Plural-Forms: nplurals=3; plural=(n == 1) ? 0 : ((n >= 2 && n <= 4) ? 1 : 2); */
33
/* Generator: GlotPress/3.0.0 */
44
/* Language: cs_CZ */
@@ -8323,9 +8323,6 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
83238323
/* No comment provided by engineer. */
83248324
"Use icon button" = "Použijte ikonu tlačítka";
83258325

8326-
/* Footer text for Invite Links section of the Invite People screen. */
8327-
"Use this link to onboard your team members without having to invite them one by one. Anybody visiting this URL will be able to sign up to your organization, even if they received the link from somebody else, so make sure that you share it with trusted peo" = "Pomocí tohoto odkazu můžete připojit členy svého týmu, aniž byste je museli pozvat jeden po druhém. Kdokoli, kdo navštíví tuto adresu URL, se bude moci zaregistrovat do vaší organizace, i když obdržel odkaz od někoho jiného, takže se ujistěte, že jej sdílíte s důvěryhodnými lidmi.";
8328-
83298326
/* No comment provided by engineer. */
83308327
"Use this site" = "Vybrat tuto stránku";
83318328

@@ -9430,6 +9427,9 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
94309427
/* Sentence to justify why the app asks permission from the user to access their Media Library. */
94319428
"infoplist.NSPhotoLibraryUsageDescription" = "Chcete přidat fotky a videa do vašeho příspěvku.";
94329429

9430+
/* Footer text for Invite Links section of the Invite People screen. */
9431+
"invite_people_invite_link_footer" = "Pomocí tohoto odkazu můžete připojit členy svého týmu, aniž byste je museli pozvat jeden po druhém. Kdokoli, kdo navštíví tuto adresu URL, se bude moci zaregistrovat do vaší organizace, i když obdržel odkaz od někoho jiného, takže se ujistěte, že jej sdílíte s důvěryhodnými lidmi.";
9432+
94339433
/* Name of the "Save as Draft" action as it should appear in the iOS Share Sheet when sharing content from other apps to WordPress */
94349434
"ios-sharesheet.CFBundleDisplayName" = "Uložit jako koncept";
94359435

WordPress/Resources/de.lproj/Localizable.strings

Lines changed: 68 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Translation-Revision-Date: 2022-04-08 09:54:11+0000 */
1+
/* Translation-Revision-Date: 2022-04-25 13:11:55+0000 */
22
/* Plural-Forms: nplurals=2; plural=n != 1; */
33
/* Generator: GlotPress/3.0.0 */
44
/* Language: de */
@@ -56,6 +56,12 @@
5656
Plural format string for view title displaying the number of post likes. %1$d is the number of likes. */
5757
"%1$d Likes" = "%1$d Gefällt mir";
5858

59+
/* Singular format string for displaying the number of users that answered the blogging prompt. */
60+
"%1$d answer" = "%1$d Antwort";
61+
62+
/* Plural format string for displaying the number of users that answered the blogging prompt. */
63+
"%1$d answers" = "%1$d Antworten";
64+
5965
/* Format string for displaying number of completed quickstart tutorials. %1$d is number completed, %2$d is total number of tutorials available. */
6066
"%1$d of %2$d completed" = "%1$d von %2$d komplett";
6167

@@ -345,6 +351,9 @@ translators: Block name. %s: The localized block name */
345351
/* Title for a threat */
346352
"A file contains a malicious code pattern" = "Eine Datei enthält ein bösartiges Codemuster";
347353

354+
/* Subtitle of the Site Name screen. */
355+
"A good name is short and memorable.\nYou can change it later." = "Ein guter Name ist kurz und einprägsam.\nDu kannst es später jederzeit ändern.";
356+
348357
/* Story Intro welcome title */
349358
"A new way to create and publish engaging content on your site." = "Eine neue Möglichkeit zum Erstellen und Veröffentlichen ansprechender Inhalte auf deiner Website.";
350359

@@ -481,6 +490,9 @@ translators: Block name. %s: The localized block name */
481490
/* No comment provided by engineer. */
482491
"Add Block Before" = "Block davor hinzufügen";
483492

493+
/* No comment provided by engineer. */
494+
"Add Blocks" = "Blöcke hinzufügen";
495+
484496
/* Alert option to add document contents into a blog post. */
485497
"Add Contents to Post" = "Inhalte in Beitrag einfügen";
486498

@@ -621,6 +633,9 @@ translators: Block name. %s: The localized block name */
621633
/* Title for the advanced section in site settings screen */
622634
"Advanced" = "Erweitert";
623635

636+
/* Screen reader text expressing the menu item is after another menu item. Argument is a name for another menu item. */
637+
"After %@" = "Nach %@";
638+
624639
/* Option to select the Airmail app when logging in with magic links */
625640
"Airmail" = "Airmail";
626641

@@ -778,6 +793,9 @@ translators: Block name. %s: The localized block name */
778793
/* the comment has an anonymous author. */
779794
"Anonymous" = "Anonym";
780795

796+
/* Title for a call-to-action button on the prompts card. */
797+
"Answer Prompt" = "Auf Themenvorschlag antworten";
798+
781799
/* Navigates to picker screen to change the app's icon
782800
Title of screen to change the app's icon */
783801
"App Icon" = "App-Icon";
@@ -1036,6 +1054,9 @@ translators: Block name. %s: The localized block name */
10361054
/* Message shown encouraging the user to leave a comment on a post in the reader. */
10371055
"Be the first to leave a comment." = "Schreibe den ersten Kommentar.";
10381056

1057+
/* Screen reader text expressing the menu item is before another menu item. Argument is a name for another menu item. */
1058+
"Before %@" = "Vor %@";
1059+
10391060
/* 'Best Day' label for Most Popular stat. */
10401061
"Best Day" = "Bester Tag";
10411062

@@ -1291,6 +1312,9 @@ translators: Block name. %s: The localized block name */
12911312
Title for the warning shown to the user when he refuses to re-login when the authToken is missing. */
12921313
"Careful!" = "Vorsicht!";
12931314

1315+
/* Example prompt for the Prompts card in Feature Introduction. */
1316+
"Cast the movie of your life." = "Dreh einen Film über dein Leben.";
1317+
12941318
/* Label for Categories
12951319
Label for the categories field. Should be the same as WP core. */
12961320
"Categories" = "Kategorien";
@@ -1398,6 +1422,9 @@ translators: Block name. %s: The localized block name */
13981422
/* Overlay message displayed while checking if site has premium purchases */
13991423
"Checking purchases…" = "Überprüfe Käufe …";
14001424

1425+
/* Screen reader text expressing the menu item is a child of another menu item. Argument is a name for another menu item. */
1426+
"Child of %@" = "Untergeordneter Menüeintrag von %@";
1427+
14011428
/* Title for the button to progress with the selected site homepage design */
14021429
"Choose" = "Auswählen";
14031430

@@ -1437,6 +1464,9 @@ translators: Block name. %s: The localized block name */
14371464
/* Label for Publish time picker */
14381465
"Choose a time" = "Uhrzeit auswählen";
14391466

1467+
/* Select the site's intent. Subtitle */
1468+
"Choose a topic from the list below or type your own." = "Wähle ein Thema aus der unten stehenden Liste aus oder gib ein eigenes ein.";
1469+
14401470
/* Title of a Quick Start Tour */
14411471
"Choose a unique site icon" = "Ein einzigartiges Website-Icon auswählen";
14421472

@@ -2447,6 +2477,9 @@ translators: Block name. %s: The localized block name */
24472477
/* No comment provided by engineer. */
24482478
"Double tap and hold to edit" = "Zum Bearbeiten zweimal tippen und halten";
24492479

2480+
/* Screen reader hint for button that will move the menu item */
2481+
"Double tap and hold to move this menu item up or down. Move horizontally to change hierarchy." = "Um diesen Menüeintrag nach oben oder unten zu verschieben, zweimal tippen und gedrückt halten. Horizontal verschieben, um die Hierarchie zu ändern.";
2482+
24502483
/* No comment provided by engineer. */
24512484
"Double tap to add a block" = "Zum Hinzufügen eines Blocks zweimal tippen";
24522485

@@ -2579,6 +2612,9 @@ translators: Block name. %s: The localized block name */
25792612
/* No comment provided by engineer. */
25802613
"Duplicate block" = "Block duplizieren";
25812614

2615+
/* Placeholder text for the search field int the Site Intent screen. */
2616+
"E.g. Fashion, Poetry, Politics" = "z. B. Mode, Poesie, Politik";
2617+
25822618
/* No comment provided by engineer. */
25832619
"Each block has its own settings. To find them, tap on a block. Its settings will appear on the toolbar at the bottom of the screen." = "Jeder Block hat eigene Einstellungen. Tippe auf den jeweiligen Block, um sie zu finden. Die Einstellungen werden in der Werkzeugleiste unten auf dem Bildschirm angezeigt.";
25842620

@@ -3366,6 +3402,13 @@ translators: Block name. %s: The localized block name */
33663402
/* Description of a Quick Start Tour */
33673403
"Give your site a name that reflects its personality and topic. First impressions count!" = "Wähle einen Namen für deine Website, der am besten zu ihrer Persönlichkeit und Ausrichtung passt. Erste Eindrücke zählen!";
33683404

3405+
/* Default title of the Site Name screen.
3406+
Title for Site Name screen in iPhone landscape. */
3407+
"Give your website a name" = "Gib deiner Website einen Namen";
3408+
3409+
/* Title of the Site Name screen. Takes the vertical name as a parameter. */
3410+
"Give your%@website a name" = "Gib deiner %@-Website einen Namen";
3411+
33693412
/* Option to select the Gmail app when logging in with magic links */
33703413
"Gmail" = "Gmail";
33713414

@@ -3763,6 +3806,9 @@ translators: Block name. %s: The localized block name */
37633806
/* Message displayed in an alert when user tries to install a first plugin on their site. */
37643807
"Installing the first plugin on your site can take up to 1 minute. During this time you won’t be able to make changes to your site." = "Die Installation des ersten Plugins auf deiner Website kann bis zu einer Minute dauern. Während dieser Zeit kannst du keine Änderungen an deiner Website vornehmen.";
37653808

3809+
/* Title for a button that opens up the 'Getting More Views and Traffic' support page when tapped. */
3810+
"Interested in building your audience? Check out our top tips" = "Möchtest du eine Zielgruppe aufbauen? Top-Tipps ansehen";
3811+
37663812
/* Interior Design site intent topic */
37673813
"Interior Design" = "Innenarchitektur";
37683814

@@ -4447,6 +4493,9 @@ translators: Block name. %s: The localized block name */
44474493
/* Insights 'Most Popular Time' header */
44484494
"Most Popular Time" = "Beliebteste Zeit";
44494495

4496+
/* Screen reader text for button that will move the menu item. Argument is menu item's name. */
4497+
"Move %@" = "%@ verschieben";
4498+
44504499
/* No comment provided by engineer. */
44514500
"Move Image Backward" = "Bild nach hinten verschieben";
44524501

@@ -5705,6 +5754,9 @@ translators: %s: Select control button label e.g. \"Button width\" */
57055754
/* Menu item label for linking a project page. */
57065755
"Projects" = "Projekte";
57075756

5757+
/* Title label for the Prompts card in My Sites tab. */
5758+
"Prompts" = "Themenvorschläge";
5759+
57085760
/* Privacy setting for posts set to 'Public' (default). Should be the same as in core WP.
57095761
Text for privacy settings: Public */
57105762
"Public" = "Öffentlich";
@@ -5948,6 +6000,9 @@ translators: %s: Select control button label e.g. \"Button width\" */
59486000
/* No comment provided by engineer. */
59496001
"Remove block" = "Block entfernen";
59506002

6003+
/* Destructive menu title to remove the prompt card from the dashboard. */
6004+
"Remove from dashboard" = "Aus Dashboard entfernen";
6005+
59516006
/* Option to remove Insight from view. */
59526007
"Remove from insights" = "Aus Einsichten entfernen";
59536008

@@ -6841,6 +6896,9 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
68416896
/* Title shown in alert to confirm skipping all quick start items */
68426897
"Skip Quick Start" = "Schnellstart überspringen";
68436898

6899+
/* Menu title to skip today's prompt. */
6900+
"Skip this prompt" = "Diesen Themenvorschlag überspringen";
6901+
68446902
/* translators: Slash inserter autocomplete results */
68456903
"Slash inserter results" = "Ergebnisse der Schrägstrich-Eingabe";
68466904

@@ -8320,9 +8378,6 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
83208378
/* No comment provided by engineer. */
83218379
"Use icon button" = "Icon-Button verwenden";
83228380

8323-
/* Footer text for Invite Links section of the Invite People screen. */
8324-
"Use this link to onboard your team members without having to invite them one by one. Anybody visiting this URL will be able to sign up to your organization, even if they received the link from somebody else, so make sure that you share it with trusted peo" = "Verwende diesen Link, um deine Teammitglieder einzuladen. Jeder, der diese URL besucht, kann sich bei deiner Organisation registrieren, auch wenn er oder sie den Link von jemand anderem erhalten hat. Teile ihn also nur mit vertrauenswürdigen Personen.";
8325-
83268381
/* No comment provided by engineer. */
83278382
"Use this site" = "Diese Website verwenden";
83288383

@@ -8434,6 +8489,9 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
84348489
Label for viewing more stats. */
84358490
"View more" = "Mehr anzeigen";
84368491

8492+
/* Menu title to show more prompts. */
8493+
"View more prompts" = "Mehr Themenvorschläge anzeigen";
8494+
84378495
/* Description for view count. Singular. */
84388496
"View to your site so far" = "Bisheriger Aufruf deiner Website";
84398497

@@ -9427,6 +9485,9 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
94279485
/* Sentence to justify why the app asks permission from the user to access their Media Library. */
94289486
"infoplist.NSPhotoLibraryUsageDescription" = "Um deinen Beiträgen Fotos oder Videos hinzuzufügen.";
94299487

9488+
/* Footer text for Invite Links section of the Invite People screen. */
9489+
"invite_people_invite_link_footer" = "Verwende diesen Link, um deine Teammitglieder einzuladen. Jeder, der diese URL besucht, kann sich bei deiner Organisation registrieren, auch wenn er oder sie den Link von jemand anderem erhalten hat. Teile ihn also nur mit vertrauenswürdigen Personen.";
9490+
94309491
/* Name of the "Save as Draft" action as it should appear in the iOS Share Sheet when sharing content from other apps to WordPress */
94319492
"ios-sharesheet.CFBundleDisplayName" = "Als Entwurf speichern";
94329493

@@ -9598,3 +9659,6 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
95989659
/* Item 2 of delete screen section listing things that will be deleted. */
95999660
"• Users & Authors" = "• Benutzer und Autoren";
96009661

9662+
/* Title label that indicates the prompt has been answered. */
9663+
"✓ Answered" = "✓ Geantwortet";
9664+

WordPress/Resources/en-CA.lproj/Localizable.strings

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Translation-Revision-Date: 2022-03-14 23:56:27+0000 */
1+
/* Translation-Revision-Date: 2022-04-25 13:47:07+0000 */
22
/* Plural-Forms: nplurals=2; plural=n != 1; */
33
/* Generator: GlotPress/3.0.0 */
44
/* Language: en_CA */
@@ -8204,9 +8204,6 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
82048204
/* No comment provided by engineer. */
82058205
"Use icon button" = "Use icon button";
82068206

8207-
/* Footer text for Invite Links section of the Invite People screen. */
8208-
"Use this link to onboard your team members without having to invite them one by one. Anybody visiting this URL will be able to sign up to your organization, even if they received the link from somebody else, so make sure that you share it with trusted peo" = "Use this link to onboard your team members without having to invite them one by one. Anybody visiting this URL will be able to sign up to your organization, even if they received the link from somebody else, so make sure that you share it with trusted people.";
8209-
82108207
/* No comment provided by engineer. */
82118208
"Use this site" = "Use this site";
82128209

@@ -9281,6 +9278,9 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
92819278
/* Text for related post cell preview */
92829279
"in \"Upgrade\"" = "in \"Upgrade\"";
92839280

9281+
/* Footer text for Invite Links section of the Invite People screen. */
9282+
"invite_people_invite_link_footer" = "Use this link to onboard your team members without having to invite them one by one. Anybody visiting this URL will be able to sign up to your organization, even if they received the link from somebody else, so make sure that you share it with trusted people.";
9283+
92849284
/* Later today */
92859285
"later today" = "later today";
92869286

0 commit comments

Comments
 (0)