Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS-2631 Rename links to/from to links/backlinks #1163

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions Anytype/Generated/Strings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ internal enum Loc {
internal static let background = Loc.tr("Localizable", "Background", fallback: "Background")
/// Background picture
internal static let backgroundPicture = Loc.tr("Localizable", "Background picture", fallback: "Background picture")
/// Plural format key: "%#@object@"
internal static func backlinksCount(_ p1: Int) -> String {
return Loc.tr("Localizable", "Backlinks count", p1, fallback: "Plural format key: \"%#@object@\"")
}
/// Basic
internal static let basic = Loc.tr("Localizable", "Basic", fallback: "Basic")
/// Bin
Expand Down Expand Up @@ -1778,14 +1782,6 @@ internal enum Loc {
/// TXT
internal static let text = Loc.tr("Localizable", "Relation.ImportType.Text", fallback: "TXT")
}
internal enum LinksFrom {
/// from
internal static let title = Loc.tr("Localizable", "Relation.LinksFrom.Title", fallback: "from")
}
internal enum LinksTo {
/// to
internal static let title = Loc.tr("Localizable", "Relation.LinksTo.Title", fallback: "to")
}
internal enum Object {
internal enum Delete {
internal enum Alert {
Expand Down
2 changes: 0 additions & 2 deletions Anytype/Resources/Strings/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@
"Relation.AddedToLibrary" = "Relation ‘%@’ added to your library";
"Relation.Deleted" = "Deleted relation";
"Relation.From.Type" = "From type %@";
"Relation.LinksFrom.Title" = "from";
"Relation.LinksTo.Title" = "to";
"Relation.EmptyState.title" = "No options";
"Relation.EmptyState.description" = "Nothing found. Create first option to start.";
"Relation.EmptyState.Blocked.title" = "The relation is empty";
Expand Down
16 changes: 16 additions & 0 deletions Anytype/Resources/Strings/en.lproj/Localizable.stringsdict
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,22 @@
<string>%d links</string>
</dict>
</dict>
<key>Backlinks count</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@object@</string>
<key>object</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>d</string>
<key>one</key>
<string>%d backlink</string>
<key>other</key>
<string>%d backlinks</string>
</dict>
</dict>
<key>Days to deletion account</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ extension Relation.Object {
func title(with count: Int) -> String {
switch self {
case .links:
return Loc.linksCount(count) + " " + Loc.Relation.LinksFrom.title
return Loc.linksCount(count)
case .backlinks:
return Loc.linksCount(count) + " " + Loc.Relation.LinksTo.title
return Loc.backlinksCount(count)
}
}
}
Expand Down
Loading