Skip to content

Commit

Permalink
Merge pull request #1163 from anyproto/ios-2631-rename-links-tofrom-t…
Browse files Browse the repository at this point in the history
…o-linksbacklinks

iOS-2631 Rename links to/from to links/backlinks
  • Loading branch information
joe-pusya authored Apr 9, 2024
2 parents 5713116 + e3c6ba3 commit 3671d2a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
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

0 comments on commit 3671d2a

Please sign in to comment.