Skip to content

Commit 5feba94

Browse files
wpmobilebotkeanoguzkocer
authored
Merge release/25.5 into trunk (#23892)
* Fix layout of cross-post cells * Replace VERSION_FILE with PUBLIC_VERSION_FILE in current_version_hotfix? * Update app translations – `Localizable.strings` * Update WordPress metadata translations * Update Jetpack metadata translations * Bump version number --------- Co-authored-by: kean <[email protected]> Co-authored-by: Oguz Kocer <[email protected]>
1 parent b25202b commit 5feba94

File tree

70 files changed

+4958
-7645
lines changed

Some content is hidden

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

70 files changed

+4958
-7645
lines changed

WordPress/Classes/ViewRelated/Reader/Cards/ReaderCrossPostCell.swift

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,49 @@
11
import Foundation
22
import AutomatticTracks
33
import WordPressShared
4+
import WordPressUI
45

56
final class ReaderCrossPostCell: ReaderStreamBaseCell {
7+
private let view = ReaderCrossPostView()
8+
private var contentViewConstraints: [NSLayoutConstraint] = []
9+
10+
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
11+
super.init(style: style, reuseIdentifier: reuseIdentifier)
12+
13+
contentView.addSubview(view)
14+
view.translatesAutoresizingMaskIntoConstraints = false
15+
NSLayoutConstraint.activate([
16+
view.topAnchor.constraint(equalTo: contentView.topAnchor),
17+
view.bottomAnchor.constraint(equalTo: contentView.bottomAnchor).withPriority(999),
18+
])
19+
}
20+
21+
required init?(coder: NSCoder) {
22+
fatalError("Not implemented")
23+
}
24+
25+
override func prepareForReuse() {
26+
super.prepareForReuse()
27+
28+
view.prepareForReuse()
29+
}
30+
31+
func configure(with post: ReaderPost) {
32+
view.configure(with: post)
33+
}
34+
35+
override func didUpdateCompact(_ isCompact: Bool) {
36+
setNeedsUpdateConstraints()
37+
}
38+
39+
override func updateConstraints() {
40+
NSLayoutConstraint.deactivate(contentViewConstraints)
41+
contentViewConstraints = view.pinEdges(.horizontal, to: isCompact ? contentView : contentView.readableContentGuide)
42+
super.updateConstraints()
43+
}
44+
}
45+
46+
private final class ReaderCrossPostView: UIView {
647
private let avatarView = ReaderAvatarView()
748
private let iconView = ReaderAvatarView()
849
private let headerLabel = UILabel()
@@ -27,22 +68,18 @@ final class ReaderCrossPostCell: ReaderStreamBaseCell {
2768
.foregroundColor: UIColor.secondaryLabel
2869
]
2970

30-
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
31-
super.init(style: style, reuseIdentifier: reuseIdentifier)
71+
override init(frame: CGRect) {
72+
super.init(frame: frame)
3273

3374
setupStyle()
3475
setupLayout()
35-
36-
selectedBackgroundView = ReaderPostCell.makeSelectedBackgroundView()
3776
}
3877

3978
required init?(coder: NSCoder) {
4079
fatalError("Not implemented")
4180
}
4281

43-
override func prepareForReuse() {
44-
super.prepareForReuse()
45-
82+
func prepareForReuse() {
4683
avatarView.prepareForReuse()
4784
}
4885

WordPress/Classes/ViewRelated/Reader/Cards/ReaderPostCell.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import WordPressShared
55

66
final class ReaderPostCell: ReaderStreamBaseCell {
77
private let view = ReaderPostCellView()
8-
98
private var contentViewConstraints: [NSLayoutConstraint] = []
109

1110
static let avatarSize: CGFloat = SiteIconViewModel.Size.small.width
@@ -23,12 +22,6 @@ final class ReaderPostCell: ReaderStreamBaseCell {
2322
])
2423
}
2524

26-
static func makeSelectedBackgroundView() -> UIView {
27-
let view = UIView()
28-
view.backgroundColor = UIColor.opaqueSeparator.withAlphaComponent(0.2)
29-
return view
30-
}
31-
3225
required init?(coder: NSCoder) {
3326
fatalError("Not implemented")
3427
}

WordPress/Resources/ar.lproj/Localizable.strings

Lines changed: 246 additions & 350 deletions
Large diffs are not rendered by default.

WordPress/Resources/bg.lproj/Localizable.strings

Lines changed: 7 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@
319319
/* Alert dismissal title
320320
Button label that dismisses the qr log in flow and returns the user back to the previous screen
321321
Button title, cancel fixing all threats
322-
Button title. Cancels a pending action.
323322
Button title. Tapping it cancels the login flow.
324323
Cancel a prompt
325324
Cancel Action
@@ -354,7 +353,6 @@
354353
Menus cancel button within text bar while editing items.
355354
Menus: Cancel button title for canceling an edited menu item.
356355
Option to cancel the email app selection when logging in with magic links
357-
The title of a cancel button.
358356
Title for cancel action. Dismisses the action sheet.
359357
Title of a button that dismisses the permissions alert
360358
Title. Title of a cancel button. Tapping disnisses an alert.
@@ -409,12 +407,6 @@
409407
/* No comment provided by engineer. */
410408
"Clear Old Activity Logs" = "Изтриване на старата история на активността";
411409

412-
/* Title of an alert prompt. */
413-
"Clear Search History" = "Изчисти историята на търсенията";
414-
415-
/* Title of a button. */
416-
"Clear search history" = "Изчистване на историята на търсенията";
417-
418410
/* Label for size of media while it's being cleared. */
419411
"Clearing..." = "Изчистване...";
420412

@@ -638,7 +630,6 @@
638630
/* Delete
639631
Delete button title for the warning shown to the user when he refuses to re-login when the authToken is missing.
640632
Title for button that permanently deletes a media item (photo / video)
641-
Title of a delete button
642633
Title of the trash confirmation alert. */
643634
"Delete" = "Изтриване";
644635

@@ -1186,9 +1177,6 @@
11861177
/* Menus label text displayed when a menu is loading. */
11871178
"Loading menu..." = "Зареждане на менюто...";
11881179

1189-
/* A short message to inform the user the requested stream is being loaded. */
1190-
"Loading stream..." = "Зареждане на поток...";
1191-
11921180
/* Loading tags
11931181
Loading. Verb
11941182
Suggestions loading message
@@ -1238,9 +1226,7 @@
12381226
"Main Navigation" = "Основна навигация";
12391227

12401228
/* Button leading to a screen where users can manage their installed plugins
1241-
Page title for the screen to manage your list of followed sites.
12421229
Screen title, where users can see all their installed plugins.
1243-
Title for the Reader Manage screen.
12441230
Verb. Text label. Tapping displays a screen where the user can configure 'share' buttons for third-party services.
12451231
Verb. Title of the screen for managing sharing buttons and settings related to sharing. */
12461232
"Manage" = "Управление";
@@ -1305,7 +1291,6 @@
13051291
/* Accessibility label for more button in dashboard quick start card.
13061292
Accessibility label for the More button in Post List (compact view).
13071293
Accessibility label for the More button on formatting toolbar.
1308-
Accessibility label for the More button on Reader's post details
13091294
Action button to display more available options */
13101295
"More" = "Още";
13111296

@@ -1454,7 +1439,6 @@
14541439
A button title.
14551440
Accept Action
14561441
Alert dismissal title
1457-
Button title. Acknowledges a prompt.
14581442
Button title. An acknowledgement of the message displayed in a prompt.
14591443
Default action
14601444
Dismisses the alert
@@ -1613,9 +1597,6 @@
16131597
/* No comment provided by engineer. */
16141598
"Please enter a username." = "Моля, въведете потребителско име.";
16151599

1616-
/* Title of a prompt. */
1617-
"Please enter a valid URL" = "Моля въведете валиден адрес";
1618-
16191600
/* Error message displayed when the user attempts use an invalid email address. */
16201601
"Please enter a valid email address." = "Моля, въвете валиден имейл адрес.";
16211602

@@ -1660,7 +1641,6 @@
16601641
/* All Time Stats 'Posts' label
16611642
Insights 'Posts' header
16621643
Noun. Title. Links to the blog's Posts screen.
1663-
Title of a Reader tab showing Posts matching a user's search query
16641644
Title of the screen showing the list of posts for a blog. */
16651645
"Posts" = "Публикации";
16661646

@@ -1729,10 +1709,7 @@
17291709

17301710
/* Name of the Reader feature.
17311711
Noun. Name of the Reader feature
1732-
The accessibility value of the Reader tab.
1733-
The accessibility value of the reader tab.
1734-
The default title of the Reader
1735-
Title of the 'Reader' tab - used for spotlight indexing on iOS. */
1712+
The accessibility value of the Reader tab. */
17361713
"Reader" = "Четец";
17371714

17381715
/* Text for the 'Reblog' button. */
@@ -1890,8 +1867,7 @@
18901867
Title of the scheduled filter. This filter shows a list of posts that are scheduled to be published at a future date. */
18911868
"Scheduled" = "Насрочена";
18921869

1893-
/* Title of Stats section that shows search engine referrer traffic.
1894-
Title of the Reader's search feature */
1870+
/* Title of Stats section that shows search engine referrer traffic. */
18951871
"Search" = "Търсене";
18961872

18971873
/* Period Stats 'Search Terms' header */
@@ -1943,8 +1919,7 @@
19431919
Button label to share a web page
19441920
Shares the comment URL
19451921
Spoken accessibility label
1946-
Title for a button that allows the user to share their answer to the prompt.
1947-
Verb. Title of a button. Pressing lets the user share a post to others. */
1922+
Title for a button that allows the user to share their answer to the prompt. */
19481923
"Share" = "Споделяне";
19491924

19501925
/* Aztec's Text Placeholder
@@ -2373,8 +2348,7 @@
23732348
Button title. Reverts a comment moderation action.
23742349
Button title. Reverts the previous notification operation
23752350
Revert an operation
2376-
Revert enabling notification after successfully subcribing to the comments for the post.
2377-
Undo action */
2351+
Revert enabling notification after successfully subcribing to the comments for the post. */
23782352
"Undo" = "Връщане";
23792353

23802354
/* Label for size of media when it's not possible to calculate it. */
@@ -2453,7 +2427,8 @@
24532427
/* No comment provided by engineer. */
24542428
"Username must be at least 4 characters." = "Потребителското име трябва да съдържа поне 4 символа.";
24552429

2456-
/* Blog Users */
2430+
/* Blog Users
2431+
Noun. Title. Links to the user management feature. */
24572432
"Users" = "Потребители";
24582433

24592434
/* two factor code placeholder */
@@ -2497,9 +2472,6 @@
24972472
/* The visibility settings of the post. Should be the same as in core WP. */
24982473
"Visibility" = "Достъпност";
24992474

2500-
/* An option to visit the site to which a specific post belongs */
2501-
"Visit" = "Преглед";
2502-
25032475
/* A call to action to visit the specified blog. The '%@' characters are a placholder for the blog name. */
25042476
"Visit %@" = "Преглед %@";
25052477

@@ -2578,17 +2550,13 @@
25782550
/* WordPress.com Notification Settings Title */
25792551
"WordPress.com Updates" = "Известия от WordPress.com";
25802552

2581-
/* Asks the user if they would like to clear their search history. */
2582-
"Would you like to clear your search history?" = "Искате ли да изтриете вашата история на търсене?";
2583-
25842553
/* Placeholder text for inline compose view */
25852554
"Write a reply…" = "Отговор...";
25862555

25872556
/* Title for the writing section in site settings screen */
25882557
"Writing" = "Писане";
25892558

2590-
/* Button title. Confirms that the user wants to proceed with a pending action.
2591-
Label for a button that clears all old activity logs
2559+
/* Label for a button that clears all old activity logs
25922560
Yes */
25932561
"Yes" = "Да";
25942562

0 commit comments

Comments
 (0)