Commit 3213b60f1d
3213b60f1dea5285b265602da886a81031ecda71
parent: 27e81e04ea
Verified · cmc
cmc <hello@cleberg.net> · 2026-11-26 01:02 UTC
iOS Settings ▸ In Use: the font line through the catalog
"System monospaced" and "isn't installed" were English in every language.
Ref #224
Changed files (2)
Sources/OrgstarMobile/SettingsScreen.swift
+3 −3 · view
| @@ -321,9 +321,9 @@ struct SettingsScreen: View { |
| 321 | 321 | /// The theme's family, or the system's monospaced font when it's unset or not on the device. |
| 322 | 322 | private var font: String { |
| 323 | 323 | let spec = model.theme |
| 324 | | let family = spec.font.isEmpty || UIFont.fontNames(forFamilyName: spec.font).isEmpty ? "System monospaced" : spec.font |
| 325 | | let missing = !spec.font.isEmpty && family != spec.font ? " (\(spec.font) isn't installed)" : "" |
| 326 | | return "\(family), \(spec.fontSize) pt\(missing)" |
| 324 | let family = spec.font.isEmpty || UIFont.fontNames(forFamilyName: spec.font).isEmpty ? String(localized: "System monospaced") : spec.font |
| 325 | return !spec.font.isEmpty && family != spec.font ? String(localized: "\(family), \(spec.fontSize) pt (\(spec.font) isn't installed)") |
| 326 | : String(localized: "\(family), \(spec.fontSize) pt") |
| 327 | 327 | } |
| 328 | 328 | |
| 329 | 329 | private var todoKeywords: String { |
l10n/Localizable.xcstrings
+68 · view
| @@ -919,6 +919,74 @@ |
| 919 | 919 | } |
| 920 | 920 | } |
| 921 | 921 | }, |
| 922 | "%@, %lld pt": { |
| 923 | "localizations": { |
| 924 | "de": { |
| 925 | "stringUnit": { |
| 926 | "state": "translated", |
| 927 | "value": "%1$@, %2$lld pt" |
| 928 | } |
| 929 | }, |
| 930 | "es": { |
| 931 | "stringUnit": { |
| 932 | "state": "translated", |
| 933 | "value": "%1$@, %2$lld pt" |
| 934 | } |
| 935 | }, |
| 936 | "fr": { |
| 937 | "stringUnit": { |
| 938 | "state": "translated", |
| 939 | "value": "%1$@, %2$lld pt" |
| 940 | } |
| 941 | }, |
| 942 | "ja": { |
| 943 | "stringUnit": { |
| 944 | "state": "translated", |
| 945 | "value": "%1$@、%2$lld pt" |
| 946 | } |
| 947 | }, |
| 948 | "pt-BR": { |
| 949 | "stringUnit": { |
| 950 | "state": "translated", |
| 951 | "value": "%1$@, %2$lld pt" |
| 952 | } |
| 953 | } |
| 954 | } |
| 955 | }, |
| 956 | "%@, %lld pt (%@ isn't installed)": { |
| 957 | "localizations": { |
| 958 | "de": { |
| 959 | "stringUnit": { |
| 960 | "state": "translated", |
| 961 | "value": "%1$@, %2$lld pt (%3$@ ist nicht installiert)" |
| 962 | } |
| 963 | }, |
| 964 | "es": { |
| 965 | "stringUnit": { |
| 966 | "state": "translated", |
| 967 | "value": "%1$@, %2$lld pt (%3$@ no está instalada)" |
| 968 | } |
| 969 | }, |
| 970 | "fr": { |
| 971 | "stringUnit": { |
| 972 | "state": "translated", |
| 973 | "value": "%1$@, %2$lld pt (%3$@ n'est pas installée)" |
| 974 | } |
| 975 | }, |
| 976 | "ja": { |
| 977 | "stringUnit": { |
| 978 | "state": "translated", |
| 979 | "value": "%1$@、%2$lld pt(%3$@はインストールされていません)" |
| 980 | } |
| 981 | }, |
| 982 | "pt-BR": { |
| 983 | "stringUnit": { |
| 984 | "state": "translated", |
| 985 | "value": "%1$@, %2$lld pt (%3$@ não está instalada)" |
| 986 | } |
| 987 | } |
| 988 | } |
| 989 | }, |
| 922 | 990 | "%lld": { |
| 923 | 991 | "shouldTranslate": false |
| 924 | 992 | }, |