diff --git a/Anytype/Generated/Strings.swift b/Anytype/Generated/Strings.swift index 801eb5b037..e1aa0abb24 100644 --- a/Anytype/Generated/Strings.swift +++ b/Anytype/Generated/Strings.swift @@ -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 @@ -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 { diff --git a/Anytype/Resources/Strings/en.lproj/Localizable.strings b/Anytype/Resources/Strings/en.lproj/Localizable.strings index cdca52572a..5032c1a6a5 100644 --- a/Anytype/Resources/Strings/en.lproj/Localizable.strings +++ b/Anytype/Resources/Strings/en.lproj/Localizable.strings @@ -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"; diff --git a/Anytype/Resources/Strings/en.lproj/Localizable.stringsdict b/Anytype/Resources/Strings/en.lproj/Localizable.stringsdict index ab6d48d365..bb8b534d55 100644 --- a/Anytype/Resources/Strings/en.lproj/Localizable.stringsdict +++ b/Anytype/Resources/Strings/en.lproj/Localizable.stringsdict @@ -66,6 +66,22 @@ %d links + Backlinks count + + NSStringLocalizedFormatKey + %#@object@ + object + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + one + %d backlink + other + %d backlinks + + Days to deletion account NSStringLocalizedFormatKey diff --git a/Anytype/Sources/Models/Relations/Entities/RelationValue/RelationObject.swift b/Anytype/Sources/Models/Relations/Entities/RelationValue/RelationObject.swift index 83642e8ca9..fd0fcc7421 100644 --- a/Anytype/Sources/Models/Relations/Entities/RelationValue/RelationObject.swift +++ b/Anytype/Sources/Models/Relations/Entities/RelationValue/RelationObject.swift @@ -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) } } }