Skip to content
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
4 changes: 1 addition & 3 deletions PocketMesh/Resources/Generated/L10n.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3447,9 +3447,7 @@ public enum L10n {
/// Section header for nodes settings
public static let header = L10n.tr("Settings", "nodes.header", fallback: "Nodes")
/// Picker label for max hop distance
public static let maxHops = L10n.tr("Settings", "nodes.maxHops", fallback: "Max Hop Distance")
/// Description for max hop distance picker
public static let maxHopsDescription = L10n.tr("Settings", "nodes.maxHopsDescription", fallback: "Restrict which nodes are auto-added based on their hop count.")
public static let maxHops = L10n.tr("Settings", "nodes.maxHops", fallback: "Auto-Add Max Hop Limit")
/// Toggle label for overwrite oldest
public static let overwriteOldest = L10n.tr("Settings", "nodes.overwriteOldest", fallback: "Overwrite Oldest")
/// Description for overwrite oldest toggle
Expand Down
4 changes: 1 addition & 3 deletions PocketMesh/Resources/Localization/de.lproj/Settings.strings
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,7 @@
"nodes.overwriteOldestDescription" = "Bei vollem Speicher den ältesten nicht favorisierten Knoten ersetzen";

/* Picker label for max hop distance */
"nodes.maxHops" = "Max. Hop-Distanz";
/* Description for max hop distance picker */
"nodes.maxHopsDescription" = "Einschränken, welche Knoten basierend auf ihrer Hop-Anzahl automatisch hinzugefügt werden.";
"nodes.maxHops" = "Max. Hop-Limit (Auto-Hinzufügen)";

/* No limit option */
"nodes.maxHops.noLimit" = "Kein Limit";
Expand Down
5 changes: 1 addition & 4 deletions PocketMesh/Resources/Localization/en.lproj/Settings.strings
Original file line number Diff line number Diff line change
Expand Up @@ -505,10 +505,7 @@
"nodes.overwriteOldestDescription" = "When storage is full, replace the oldest non-favorite node";

/* Picker label for max hop distance */
"nodes.maxHops" = "Max Hop Distance";

/* Description for max hop distance picker */
"nodes.maxHopsDescription" = "Restrict which nodes are auto-added based on their hop count.";
"nodes.maxHops" = "Auto-Add Max Hop Limit";

/* No limit option */
"nodes.maxHops.noLimit" = "No Limit";
Expand Down
4 changes: 1 addition & 3 deletions PocketMesh/Resources/Localization/es.lproj/Settings.strings
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,7 @@
"nodes.overwriteOldestDescription" = "Cuando el almacenamiento está lleno, reemplazar el nodo no favorito más antiguo";

/* Picker label for max hop distance */
"nodes.maxHops" = "Distancia máx. de saltos";
/* Description for max hop distance picker */
"nodes.maxHopsDescription" = "Restringir qué nodos se añaden automáticamente según su número de saltos.";
"nodes.maxHops" = "Límite máx. de saltos (auto)";

/* No limit option */
"nodes.maxHops.noLimit" = "Sin límite";
Expand Down
4 changes: 1 addition & 3 deletions PocketMesh/Resources/Localization/fr.lproj/Settings.strings
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,7 @@
"nodes.overwriteOldestDescription" = "Lorsque le stockage est plein, remplacer le nœud non favori le plus ancien";

/* Picker label for max hop distance */
"nodes.maxHops" = "Distance max. de sauts";
/* Description for max hop distance picker */
"nodes.maxHopsDescription" = "Limiter les nœuds ajoutés automatiquement selon leur nombre de sauts.";
"nodes.maxHops" = "Limite max. de sauts (auto-ajout)";

/* No limit option */
"nodes.maxHops.noLimit" = "Aucune limite";
Expand Down
4 changes: 1 addition & 3 deletions PocketMesh/Resources/Localization/nl.lproj/Settings.strings
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,7 @@
"nodes.overwriteOldestDescription" = "Wanneer de opslag vol is, het oudste niet-favoriete knooppunt vervangen";

/* Picker label for max hop distance */
"nodes.maxHops" = "Max. hopafstand";
/* Description for max hop distance picker */
"nodes.maxHopsDescription" = "Beperk welke knooppunten automatisch worden toegevoegd op basis van hun hopafstand.";
"nodes.maxHops" = "Max. hoplimiet (auto-toevoegen)";

/* No limit option */
"nodes.maxHops.noLimit" = "Geen limiet";
Expand Down
4 changes: 1 addition & 3 deletions PocketMesh/Resources/Localization/pl.lproj/Settings.strings
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,7 @@
"nodes.overwriteOldestDescription" = "Gdy pamięć jest pełna, zastąp najstarszy nieulubiony węzeł";

/* Picker label for max hop distance */
"nodes.maxHops" = "Maks. odległość skoków";
/* Description for max hop distance picker */
"nodes.maxHopsDescription" = "Ogranicz automatyczne dodawanie węzłów na podstawie ich liczby skoków.";
"nodes.maxHops" = "Maks. limit skoków (auto-dodawanie)";

/* No limit option */
"nodes.maxHops.noLimit" = "Bez limitu";
Expand Down
4 changes: 1 addition & 3 deletions PocketMesh/Resources/Localization/ru.lproj/Settings.strings
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,7 @@
"nodes.overwriteOldestDescription" = "Когда хранилище заполнено, заменить старейший неизбранный узел";

/* Picker label for max hop distance */
"nodes.maxHops" = "Макс. расстояние хопов";
/* Description for max hop distance picker */
"nodes.maxHopsDescription" = "Ограничить автоматическое добавление узлов на основе количества переходов.";
"nodes.maxHops" = "Макс. лимит хопов (авто-добавление)";

/* No limit option */
"nodes.maxHops.noLimit" = "Без ограничений";
Expand Down
4 changes: 1 addition & 3 deletions PocketMesh/Resources/Localization/uk.lproj/Settings.strings
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,7 @@
"nodes.overwriteOldestDescription" = "Коли сховище заповнене, замінити найстаріший необраний вузол";

/* Picker label for max hop distance */
"nodes.maxHops" = "Макс. відстань хопів";
/* Description for max hop distance picker */
"nodes.maxHopsDescription" = "Обмежити автоматичне додавання вузлів на основі кількості переходів.";
"nodes.maxHops" = "Макс. ліміт хопів (авто-додавання)";

/* No limit option */
"nodes.maxHops.noLimit" = "Без обмежень";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,7 @@
"nodes.overwriteOldestDescription" = "当存储已满时,替换最旧的非收藏节点";

/* Picker label for max hop distance */
"nodes.maxHops" = "最大跳数距离";
/* Description for max hop distance picker */
"nodes.maxHopsDescription" = "根据跳数限制自动添加的节点。";
"nodes.maxHops" = "自动添加最大跳数限制";

/* No limit option */
"nodes.maxHops.noLimit" = "无限制";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,13 @@ struct NodesSettingsSection: View {
}

if supportsAutoAddMaxHops && autoAddMode != .manual {
Picker(selection: $autoAddMaxHops) {
Picker(L10n.Settings.Nodes.maxHops, selection: $autoAddMaxHops) {
Text(L10n.Settings.Nodes.MaxHops.noLimit).tag(UInt8(0))
Text(L10n.Settings.Nodes.MaxHops.directOnly).tag(UInt8(1))
Text(L10n.Settings.Nodes.MaxHops.oneHop).tag(UInt8(2))
ForEach(Array(2...6), id: \.self) { hops in
Text(L10n.Settings.Nodes.MaxHops.hops(hops)).tag(UInt8(hops + 1))
}
} label: {
VStack(alignment: .leading, spacing: 2) {
Text(L10n.Settings.Nodes.maxHops)
Text(L10n.Settings.Nodes.maxHopsDescription)
.font(.caption)
.foregroundStyle(.secondary)
}
}
.pickerStyle(.menu)
}
Expand Down