From 0e8a8bd8c41ce3e3b538e1989583197b7bd969a8 Mon Sep 17 00:00:00 2001 From: zjs81 Date: Fri, 25 Sep 2026 13:23:07 -0700 Subject: [PATCH 1/2] Add unit tests for ChannelMessage replies and update untranslated.json with new translations --- lib/connector/meshcore_connector.dart | 213 ++- lib/connector/meshcore_protocol.dart | 8 +- lib/helpers/guessed_location_estimator.dart | 164 +++ lib/helpers/snack_bar_builder.dart | 2 +- lib/l10n/app_en.arb | 216 ++- lib/l10n/app_localizations.dart | 480 +++++- lib/l10n/app_localizations_bg.dart | 278 +++- lib/l10n/app_localizations_de.dart | 278 +++- lib/l10n/app_localizations_en.dart | 323 +++- lib/l10n/app_localizations_es.dart | 278 +++- lib/l10n/app_localizations_fr.dart | 278 +++- lib/l10n/app_localizations_hu.dart | 278 +++- lib/l10n/app_localizations_it.dart | 278 +++- lib/l10n/app_localizations_ja.dart | 278 +++- lib/l10n/app_localizations_ko.dart | 278 +++- lib/l10n/app_localizations_nl.dart | 278 +++- lib/l10n/app_localizations_pl.dart | 278 +++- lib/l10n/app_localizations_pt.dart | 278 +++- lib/l10n/app_localizations_ru.dart | 278 +++- lib/l10n/app_localizations_sk.dart | 278 +++- lib/l10n/app_localizations_sl.dart | 278 +++- lib/l10n/app_localizations_sv.dart | 278 +++- lib/l10n/app_localizations_uk.dart | 278 +++- lib/l10n/app_localizations_zh.dart | 278 +++- lib/models/app_settings.dart | 34 +- lib/models/channel_message.dart | 4 + lib/screens/app_settings_screen.dart | 83 +- lib/screens/channel_chat_screen.dart | 427 ++++-- lib/screens/channels_screen.dart | 83 +- lib/screens/chat_screen.dart | 79 +- lib/screens/companion_radio_stats_screen.dart | 8 +- lib/screens/contacts_screen.dart | 107 +- lib/screens/discovery_screen.dart | 74 +- lib/screens/map_screen.dart | 571 ++++---- lib/screens/region_management_screen.dart | 83 +- lib/screens/repeater_hub_screen.dart | 83 +- lib/screens/repeater_settings_screen.dart | 331 +++-- lib/screens/repeater_status_screen.dart | 36 +- lib/screens/settings_screen.dart | 87 +- lib/screens/telemetry_screen.dart | 10 +- lib/services/app_settings_service.dart | 16 + lib/services/background_service.dart | 5 + lib/services/image_codec_service.dart | 11 + lib/services/notification_service.dart | 32 +- lib/services/path_history_service.dart | 18 + lib/storage/channel_region_store.dart | 12 + lib/storage/region_store.dart | 3 + lib/utils/image_save.dart | 43 + lib/widgets/chat_day_separator.dart | 65 + lib/widgets/emoji_picker.dart | 1 + lib/widgets/gif_picker.dart | 2 + lib/widgets/image_send_codec_binding.dart | 7 + lib/widgets/image_send_preview_sheet.dart | 144 +- lib/widgets/mesh_ui.dart | 59 +- lib/widgets/message_status_icon.dart | 136 +- lib/widgets/repeater_login_dialog.dart | 191 +-- lib/widgets/room_login_dialog.dart | 191 +-- lib/widgets/snr_indicator.dart | 153 +- .../guessed_location_estimator_test.dart | 197 +++ test/models/channel_message_reply_test.dart | 29 + untranslated.json | 1294 ++++++++++++++++- 61 files changed, 9701 insertions(+), 1140 deletions(-) create mode 100644 lib/helpers/guessed_location_estimator.dart create mode 100644 lib/utils/image_save.dart create mode 100644 lib/widgets/chat_day_separator.dart create mode 100644 test/helpers/guessed_location_estimator_test.dart create mode 100644 test/models/channel_message_reply_test.dart diff --git a/lib/connector/meshcore_connector.dart b/lib/connector/meshcore_connector.dart index 6f0d112b..30ef0a73 100644 --- a/lib/connector/meshcore_connector.dart +++ b/lib/connector/meshcore_connector.dart @@ -391,6 +391,7 @@ class MeshCoreConnector extends ChangeNotifier { final Map _channelUrlImagesEnabled = {}; final Map _channelCyr2LatProfileId = {}; final Map _channelRegions = {}; + Region _defaultRegion = ''; bool _lastSentWasCliCommand = false; // Track if last sent message was a CLI command final Map _contactSmazEnabled = {}; @@ -843,6 +844,19 @@ class MeshCoreConnector extends ChangeNotifier { return _channelRegions[channelIndex] ?? ''; } + Region get defaultRegion => _defaultRegion; + + Region getEffectiveChannelRegion(int channelIndex) { + final region = getChannelRegion(channelIndex); + return region.isNotEmpty ? region : _defaultRegion; + } + + Future setDefaultRegion(Region region) async { + _defaultRegion = region; + notifyListeners(); + await _channelRegionStore.saveDefaultRegion(region); + } + void ensureContactSmazSettingLoaded(String contactKeyHex) { _ensureContactSmazSettingLoaded(contactKeyHex); } @@ -1199,6 +1213,7 @@ class MeshCoreConnector extends ChangeNotifier { _channelCyr2LatEnabled.clear(); _channelUrlImagesEnabled.clear(); _channelRegions.clear(); + _defaultRegion = _channelRegionStore.loadDefaultRegion(); final channelCount = maxChannels ?? _maxChannels; for (int i = 0; i < channelCount; i++) { _channelSmazEnabled[i] = await _channelSettingsStore.loadSmazEnabled(i); @@ -1853,6 +1868,7 @@ class MeshCoreConnector extends ChangeNotifier { ); _setState(MeshCoreConnectionState.connected); + unawaited(_backgroundService?.start()); _pendingInitialChannelSync = true; _pendingInitialQueuedMessageSync = true; _pendingInitialContactsSync = true; @@ -1965,6 +1981,7 @@ class MeshCoreConnector extends ChangeNotifier { ); _setState(MeshCoreConnectionState.connected); + unawaited(_backgroundService?.start()); _pendingInitialChannelSync = true; _pendingInitialQueuedMessageSync = true; _pendingInitialContactsSync = true; @@ -2815,6 +2832,10 @@ class MeshCoreConnector extends ChangeNotifier { unawaited(_backgroundService?.stop()); } else { _manualDisconnect = false; + // Only BLE reconnects on its own; nothing keeps TCP/USB alive. + if (transportAtDisconnect != MeshCoreTransportType.bluetooth) { + unawaited(_backgroundService?.stop()); + } } _setState(MeshCoreConnectionState.disconnecting); _retryService?.failAllPending(); @@ -3735,6 +3756,7 @@ class MeshCoreConnector extends ChangeNotifier { String? originalText, String? translatedLanguageCode, String? translationModelId, + ChannelMessage? replyTo, }) async { if (!isConnected || text.isEmpty) return; @@ -3778,7 +3800,7 @@ class MeshCoreConnector extends ChangeNotifier { buildSendChannelTextMsgFrame(channel.index, text), channelSendQueueId: reactionQueueId, ); - }, region: getChannelRegion(channel.index)); + }, region: getEffectiveChannelRegion(channel.index)); return; } // It looks like a reaction, but we did not find its target, so @@ -3792,19 +3814,117 @@ class MeshCoreConnector extends ChangeNotifier { originalText: originalText, translatedLanguageCode: translatedLanguageCode, translationModelId: translationModelId, + replyTo: replyTo, ); _addChannelMessage(channel.index, message); _pendingChannelSentQueue.add(message.messageId); notifyListeners(); final outboundText = prepareChannelOutboundText(channel.index, text); - await _runScopedChannelSend(() async { - await _waitForRadioQuiet(lastInboundRxTime: _lastChannelMsgRxTime); - await _sendFrameAndWaitForCommandAck( - buildSendChannelTextMsgFrame(channel.index, outboundText), - channelSendQueueId: message.messageId, + // Resends reuse the timestamp, so they are the same packet: repeaters + // that already forwarded it drop the copy and recipients see it once. + Future transmit({bool isResend = false}) => + _runScopedChannelSend(() async { + await _waitForRadioQuiet(lastInboundRxTime: _lastChannelMsgRxTime); + await _sendFrameAndWaitForCommandAck( + buildSendChannelTextMsgFrame( + channel.index, + outboundText, + timestamp: message.timestamp.millisecondsSinceEpoch ~/ 1000, + ), + channelSendQueueId: isResend ? null : message.messageId, + ); + }, region: getEffectiveChannelRegion(channel.index)); + await transmit(); + + final settings = _appSettingsService?.settings; + if (settings != null && settings.channelMinHopsEnabled) { + unawaited( + _resendUntilMinHops( + message.messageId, + () => transmit(isResend: true), + minHops: settings.channelMinHops, + maxResends: settings.channelMinHopsRetries, + ), ); - }, region: getChannelRegion(channel.index)); + } + } + + /// How long to listen for a channel message to come back through the mesh + /// before resending it. + static const Duration _channelHopCheckDelay = Duration(seconds: 30); + + /// Resends a channel message until one of its echoes has travelled through + /// at least [minHops] repeaters, then gives up and marks it failed. + Future _resendUntilMinHops( + String messageId, + Future Function() resend, { + required int minHops, + required int maxResends, + }) async { + _channelHopChecks[messageId] = (resends: 0, maxResends: maxResends); + notifyListeners(); + var hops = 0; + try { + for (var attempt = 0; ; attempt++) { + await Future.delayed(_channelHopCheckDelay); + final message = _findChannelMessageById(messageId); + if (message == null) return; + if (message.status == ChannelMessageStatus.failed) return; + hops = message.pathLength ?? 0; + if (hops >= minHops) { + _appDebugLogService?.info( + 'Channel message reached $hops hops after $attempt resends', + tag: 'Channel resend', + ); + return; + } + if (attempt >= maxResends || !isConnected) break; + _appDebugLogService?.info( + 'Heard at $hops of $minHops hops; resending ' + '(${attempt + 1} of $maxResends)', + tag: 'Channel resend', + ); + _channelHopChecks[messageId] = ( + resends: attempt + 1, + maxResends: maxResends, + ); + notifyListeners(); + await resend(); + } + _appDebugLogService?.warn( + 'Channel message only heard at $hops of $minHops hops; giving up', + tag: 'Channel resend', + ); + // It was sent and may well have travelled further than we can hear, so + // this is a warning, not a failure. + _channelHopShortfalls[messageId] = (hops: hops, required: minHops); + } finally { + _channelHopChecks.remove(messageId); + notifyListeners(); + } + } + + final Map _channelHopChecks = {}; + final Map _channelHopShortfalls = {}; + + /// Set when resending gave up before hearing the message through enough + /// repeaters. Kept for this session only. + ({int hops, int required})? channelHopShortfall(String messageId) => + _channelHopShortfalls[messageId]; + + /// Resend progress for a channel message still waiting to travel far + /// enough, or null when it is not being watched. + ({int resends, int maxResends})? channelResendProgress(String messageId) => + _channelHopChecks[messageId]; + + ChannelMessage? _findChannelMessageById(String messageId) { + for (final messages in _channelMessages.values) { + for (int i = messages.length - 1; i >= 0; i--) { + if (messages[i].messageId == messageId) return messages[i]; + } + } + return null; } /// Minimum companion firmware version code whose CMD_SEND_CHANNEL_DATA (62) @@ -3870,7 +3990,7 @@ class MeshCoreConnector extends ChangeNotifier { ); onProgress?.call(i + 1, blobs.length); } - }, region: getChannelRegion(channelIndex)); + }, region: getEffectiveChannelRegion(channelIndex)); return sentAll; } @@ -3925,7 +4045,10 @@ class MeshCoreConnector extends ChangeNotifier { ); } - Future removeContact(Contact contact) async { + Future removeContact( + Contact contact, { + bool keepMessages = false, + }) async { if (!isConnected) return; _handleDiscovery( @@ -3949,7 +4072,7 @@ class MeshCoreConnector extends ChangeNotifier { _unreadStore.saveContactUnreadCount( Map.from(_contactUnreadCount), ); - _messageStore.clearMessages(contact.publicKeyHex); + if (!keepMessages) _messageStore.clearMessages(contact.publicKeyHex); notifyListeners(); } @@ -6728,13 +6851,15 @@ class MeshCoreConnector extends ChangeNotifier { ChannelMessage processedMessage = message; if (replyInfo != null) { - // Find original message by sender name (most recent match) - final originalMessage = _findMessageBySender( - messages, - replyInfo.mentionedNode, - ); + // Outgoing replies already carry the selected target. The wire format + // only names the sender, so incoming replies fall back to that + // sender's most recent message. + final hasReplyTarget = message.replyToMessageId != null; + final originalMessage = hasReplyTarget + ? null + : _findMessageBySender(messages, replyInfo.mentionedNode); - if (originalMessage != null) { + if (hasReplyTarget || originalMessage != null) { // Create new message with reply metadata processedMessage = ChannelMessage( senderKey: message.senderKey, @@ -6756,9 +6881,11 @@ class MeshCoreConnector extends ChangeNotifier { pathVariants: message.pathVariants, channelIndex: message.channelIndex, messageId: message.messageId, - replyToMessageId: originalMessage.messageId, - replyToSenderName: originalMessage.senderName, - replyToText: originalMessage.text, + replyToMessageId: + message.replyToMessageId ?? originalMessage!.messageId, + replyToSenderName: + message.replyToSenderName ?? originalMessage!.senderName, + replyToText: message.replyToText ?? originalMessage!.text, ); } } @@ -6776,10 +6903,14 @@ class MeshCoreConnector extends ChangeNotifier { existing.pathVariants, processedMessage.pathVariants, ); + final hashWidth = + (existing.pathHashWidth ?? processedMessage.pathHashWidth ?? 1) + .clamp(1, 3) + .toInt(); final mergedPathLength = _mergePathLength( existing.pathLength, processedMessage.pathLength, - mergedPathBytes.length, + mergedPathBytes.length ~/ hashWidth, ); final newRepeatCount = existing.repeatCount + 1; final promotedFromPending = @@ -6865,28 +6996,25 @@ class MeshCoreConnector extends ChangeNotifier { } bool _isChannelRepeat(ChannelMessage existing, ChannelMessage incoming) { - if (existing.text != incoming.text) return false; + // A message we are sending is always new, even if its text matches an + // earlier one. + if (incoming.isOutgoing) return false; - // Self-echo: an outgoing message coming back via a repeater. The send is - // delayed by _waitForRadioQuiet (often 10s+) and propagation can add more, - // so the timestamp gap can easily exceed the cross-peer window. - final selfName = _selfName ?? 'Me'; - final isSelfEcho = - existing.isOutgoing && - !incoming.isOutgoing && - (incoming.senderName == selfName || existing.senderName == selfName); + // Every copy of one packet carries the sender's timestamp, and for our own + // messages that timestamp is the one we put in the send frame. Separate + // sends of the same text therefore differ here, while true repeats match. + final sameSecond = + existing.timestamp.millisecondsSinceEpoch ~/ 1000 == + incoming.timestamp.millisecondsSinceEpoch ~/ 1000; + if (!sameSecond) return false; - final windowMs = isSelfEcho ? 10 * 60 * 1000 : 30000; - final diffMs = - (existing.timestamp.millisecondsSinceEpoch - - incoming.timestamp.millisecondsSinceEpoch) - .abs(); - if (diffMs > windowMs) return false; - - if (existing.senderName == incoming.senderName) return true; - if (isSelfEcho) return true; - - return false; + // Our own echo can read differently from what we stored (a reply keeps its + // @[name] prefix, cyr2lat transliterates), so the timestamp decides. + if (existing.isOutgoing) { + return incoming.senderName == (_selfName ?? 'Me'); + } + return existing.senderName == incoming.senderName && + existing.text == incoming.text; } bool _shouldDropSelfChannelMessage(String senderName, Uint8List pathBytes) { @@ -7066,6 +7194,11 @@ class MeshCoreConnector extends ChangeNotifier { void _setState(MeshCoreConnectionState newState) { if (_state != newState) { _state = newState; + if (newState == MeshCoreConnectionState.connected) { + if (_appSettingsService?.settings.notificationsEnabled ?? false) { + unawaited(_notificationService.requestPermissionsOnce()); + } + } notifyListeners(); } } diff --git a/lib/connector/meshcore_protocol.dart b/lib/connector/meshcore_protocol.dart index f7be448e..c01eb8d1 100644 --- a/lib/connector/meshcore_protocol.dart +++ b/lib/connector/meshcore_protocol.dart @@ -540,8 +540,12 @@ Uint8List buildSendTextMsgFrame( // Build CMD_SEND_CHANNEL_TXT_MSG frame // Format: [cmd][txt_type][channel_idx][timestamp x4][text...] -Uint8List buildSendChannelTextMsgFrame(int channelIndex, String text) { - final timestamp = DateTime.now().millisecondsSinceEpoch ~/ 1000; +Uint8List buildSendChannelTextMsgFrame( + int channelIndex, + String text, { + int? timestamp, +}) { + timestamp ??= DateTime.now().millisecondsSinceEpoch ~/ 1000; final writer = BufferWriter(); writer.writeByte(cmdSendChannelTxtMsg); writer.writeByte(txtTypePlain); diff --git a/lib/helpers/guessed_location_estimator.dart b/lib/helpers/guessed_location_estimator.dart new file mode 100644 index 00000000..6ad837b2 --- /dev/null +++ b/lib/helpers/guessed_location_estimator.dart @@ -0,0 +1,164 @@ +import 'dart:math'; +import 'dart:typed_data'; + +import 'package:latlong2/latlong.dart'; + +import 'path_helper.dart'; + +typedef GuessCandidate = ({Uint8List publicKey, List<(List, int)> paths}); + +typedef GuessInput = ({ + List candidates, + List<(Uint8List, double, double)> anchors, + (double, double)? selfPosition, + double? maxRangeKm, +}); + +/// Longest single radio link we trust when matching hops to repeaters. The +/// free-space estimate from the radio settings runs to hundreds of km, far +/// beyond real terrestrial links, so it is capped here. +const double maxPlausibleLinkKm = 150; + +/// Runs in a background isolate: estimates positions for nodes without a +/// location from the repeaters their paths end on. Returns +/// (candidate index, lat, lon, high confidence) for each placed node. +/// +/// Paths run from our radio outward, so the last hop is the repeater that +/// heard the node directly. Short hop hashes collide, so each path is walked +/// from our own position and every hop is matched to the nearest repeater with +/// that prefix that is within radio range of the previous hop. +List<(int, double, double, bool)> estimateGuessedLocations(GuessInput input) { + const distance = Distance(); + final maxLinkKm = min( + input.maxRangeKm ?? maxPlausibleLinkKm, + maxPlausibleLinkKm, + ); + final maxLinkM = maxLinkKm * 1000; + + final anchorsByPrefix = >{}; + for (final (key, lat, lon) in input.anchors) { + for (var width = 1; width <= 3 && width <= key.length; width++) { + anchorsByPrefix + .putIfAbsent(PathHelper.formatHopHex(key.sublist(0, width)), () => []) + .add(LatLng(lat, lon)); + } + } + final self = input.selfPosition; + final selfPosition = self == null ? null : LatLng(self.$1, self.$2); + + LatLng? lastHopAnchor(List pathBytes, int hopWidth) { + final hops = PathHelper.splitPathBytes(pathBytes, hopWidth); + var previous = selfPosition; + LatLng? resolved; + for (final hop in hops) { + resolved = null; + final candidates = anchorsByPrefix[PathHelper.formatHopHex(hop)]; + if (candidates == null) continue; + if (previous == null) { + // Without a reference point only an unambiguous prefix is trusted. + if (candidates.length == 1) resolved = candidates.first; + } else { + double? best; + for (final candidate in candidates) { + final d = distance(previous, candidate); + if (d <= maxLinkM && (best == null || d < best)) { + best = d; + resolved = candidate; + } + } + } + if (resolved != null) previous = resolved; + } + return resolved; + } + + final result = <(int, double, double, bool)>[]; + for (var i = 0; i < input.candidates.length; i++) { + final candidate = input.candidates[i]; + + // One vote per observed path for the repeater it ended on. + final votes = {}; + for (final (pathBytes, hopWidth) in candidate.paths) { + if (pathBytes.isEmpty || hopWidth < 1) continue; + final anchor = lastHopAnchor(pathBytes, hopWidth); + if (anchor != null) votes[anchor] = (votes[anchor] ?? 0) + 1; + } + if (votes.isEmpty) continue; + + // A node cannot hear two repeaters more than two links apart; drop + // outliers, falling back to the most-voted anchor if none agree. + var anchors = votes.keys.toList(); + if (anchors.length > 1) { + final consistent = anchors + .where( + (a) => anchors.any((b) => b != a && distance(a, b) <= 2 * maxLinkM), + ) + .toList(); + anchors = consistent.isNotEmpty + ? consistent + : [votes.entries.reduce((a, b) => b.value > a.value ? b : a).key]; + } + + final LatLng position; + if (anchors.length == 1) { + // Spread single-anchor guesses around the anchor so they stay visible. + position = _offsetGuessedPosition( + anchors[0], + candidate.publicKey, + radiusMeters: 330, + ); + } else { + var lat = 0.0, lon = 0.0, total = 0; + for (final a in anchors) { + final weight = votes[a]!; + lat += a.latitude * weight; + lon += a.longitude * weight; + total += weight; + } + position = _offsetGuessedPosition( + LatLng(lat / total, lon / total), + candidate.publicKey, + radiusMeters: anchors.length >= 3 ? 80 : 120, + ); + } + if (!isPlausibleLocation(position.latitude, position.longitude)) { + continue; + } + result.add((i, position.latitude, position.longitude, anchors.length >= 2)); + } + return result; +} + +bool isPlausibleLocation(double lat, double lon) { + const double epsilon = 1e-6; + return (lat.abs() > epsilon || lon.abs() > epsilon) && + lat >= -90.0 && + lat <= 90.0 && + lon >= -180.0 && + lon <= 180.0; +} + +LatLng _offsetGuessedPosition( + LatLng anchor, + Uint8List publicKey, { + required double radiusMeters, +}) { + final seed = _guessSeed(publicKey); + final angle = ((seed & 0xFFFF) / 0x10000) * 2 * pi; + final latOffsetDeg = (radiusMeters / 111320.0) * cos(angle); + final lonScale = max(cos(anchor.latitude * pi / 180.0).abs(), 0.2); + final lonOffsetDeg = (radiusMeters / (111320.0 * lonScale)) * sin(angle); + return LatLng( + anchor.latitude + latOffsetDeg, + anchor.longitude + lonOffsetDeg, + ); +} + +int _guessSeed(Uint8List publicKey) { + var seed = 0x811C9DC5; + for (final byte in publicKey) { + seed ^= byte; + seed = (seed * 0x01000193) & 0x7FFFFFFF; + } + return seed; +} diff --git a/lib/helpers/snack_bar_builder.dart b/lib/helpers/snack_bar_builder.dart index 913e783f..e44ecc26 100644 --- a/lib/helpers/snack_bar_builder.dart +++ b/lib/helpers/snack_bar_builder.dart @@ -58,7 +58,7 @@ void showDismissibleSnackBar( showCloseIcon: showCloseIcon, closeIconColor: closeIconColor, duration: duration ?? const Duration(seconds: 4), - persist: persist, + persist: persist ?? false, animation: animation, onVisible: onVisible, dismissDirection: dismissDirection ?? DismissDirection.down, diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 0a861c0d..3ebb2c29 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -30,10 +30,43 @@ "common_disable": "Disable", "common_undo": "Undo", "messageStatus_sent": "Sent", - "messageStatus_delivered": "Delivered", + "messageStatus_delivered": "Delivered. The contact confirmed they got it.", "messageStatus_pending": "Sending", "messageStatus_failed": "Failed to send", "messageStatus_repeated": "Heard repeated", + "messageStatus_failedChannel": "Your radio couldn't send this message.", + "messageStatus_resending": "Not heard through enough repeaters yet. Resent {resends} of {maxResends} times.", + "@messageStatus_resending": { + "placeholders": { + "resends": { + "type": "int" + }, + "maxResends": { + "type": "int" + } + } + }, + "messageStatus_hopsNotReached": "Sent, but only heard back through {hops} of {required} repeaters. It may still have gone further than your radio can hear.", + "@messageStatus_hopsNotReached": { + "placeholders": { + "hops": { + "type": "int" + }, + "required": { + "type": "int" + } + } + }, + "messageStatus_sentChannel": "Sent. Channels don't confirm delivery, so this only means your radio sent it.", + "messageStatus_sentDirect": "Sent. Waiting for the contact to confirm.", + "messageStatus_heardRepeatedCount": "Heard repeated {count, plural, =1{once} other{{count} times}}. Nearby repeaters passed it on.", + "@messageStatus_heardRepeatedCount": { + "placeholders": { + "count": { + "type": "int" + } + } + }, "urlImage_enable": "Enable URL images", "urlImage_possible": "Possible URL image; enable it in Settings.", "common_reboot": "Reboot", @@ -162,7 +195,12 @@ "settings_radioSettingsUpdated": "Radio settings updated", "settings_radioSettingsNotApplied": "The radio did not apply these settings", "settings_regionSettings": "Regions", - "settings_regionSettingsSubtitle": "Manage stored regions", + "settings_regionSettingsSubtitle": "Limit channel floods to an area", + "settings_regionEmptyExplanation": "Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.", + "settings_regionFetchFromRepeaters": "Fetch from repeaters", + "settings_regionDefault": "Default region", + "settings_regionDefaultSubtitle": "Used by channels without their own region", + "settings_regionDefaultNone": "None", "settings_regionManagement_screenTitle": "Region Management", "settings_regionNameHint": "Enter region name", "settings_regionAddRegion": "Add region", @@ -202,16 +240,18 @@ "settings_privacySubtitle": "Control what information is shared.", "settings_privacySettingsDescription": "Choose what information your device shares with others.", "settings_denyAll": "Deny all", - "settings_allowByContact": "Allow by contact flags", + "settings_allowByContact": "Only contacts I allow", "settings_allowAll": "Allow all", - "settings_telemetryBaseMode": "Telemetry Base Mode", - "settings_telemetryLocationMode": "Telemetry Location Mode", - "settings_telemetryEnvironmentMode": "Telemetry Environment Mode", + "settings_telemetryBaseMode": "Who can request battery and status", + "settings_telemetryLocationMode": "Who can request my location", + "settings_telemetryEnvironmentMode": "Who can request sensor data", + "settings_telemetryPerContactHint": "To allow a contact, open their chat and choose Contact Settings from the menu.", "settings_advertLocation": "Advert Location", "settings_advertLocationSubtitle": "Include location in advert.", "settings_autoZeroHopAdvertOnGpsUpdate": "Auto Zero-Hop Advert On GPS Update", - "settings_autoZeroHopAdvertOnGpsUpdateSubtitle": "When GPS location changes, send a zero-hop advert (requires Advert Location).", + "settings_autoZeroHopAdvertOnGpsUpdateSubtitle": "App setting: when your GPS position changes, automatically advertise your new location to nearby nodes only (requires Advert Location).", "settings_multiAck": "Multi-ACKs", + "settings_multiAckSubtitle": "Send extra ACKs for better delivery; uses more airtime", "settings_telemetryModeUpdated": "Telemetry mode updated", "settings_actions": "Actions", "settings_deleteAllPaths": "Delete All Paths", @@ -255,16 +295,36 @@ "settings_infoHardware": "Hardware", "settings_infoFirmware": "Firmware", "settings_presets": "Presets", + "settings_presetCustom": "Custom", + "settings_radioMatchWarning": "All nodes you talk to must use the same frequency, bandwidth, SF and CR.", "settings_frequency": "Frequency (MHz)", - "settings_frequencyHelper": "300.0 - 2500.0", + "settings_frequencyHelper": "150.0 - 2500.0", "settings_frequencyInvalid": "Invalid frequency (150-2500 MHz)", "settings_bandwidth": "Bandwidth", "settings_spreadingFactor": "Spreading Factor", "settings_codingRate": "Coding Rate", "settings_txPower": "TX Power (dBm)", - "settings_txPowerHelper": "0 - 22", - "settings_txPowerInvalid": "Invalid TX power (0-22 dBm)", + "settings_txPowerRangeHelper": "{min} to {max} dBm", + "@settings_txPowerRangeHelper": { + "placeholders": { + "min": { + "type": "int" + }, + "max": { + "type": "int" + } + } + }, + "settings_txPowerInvalid": "Invalid TX power", "settings_clientRepeat": "Off-Grid Repeat", + "settings_clientRepeatFrequencyNote": "Frequency set to {freq} MHz for off-grid repeat", + "@settings_clientRepeatFrequencyNote": { + "placeholders": { + "freq": { + "type": "String" + } + } + }, "settings_clientRepeatSubtitle": "Allow this device to repeat mesh packets for others", "settings_clientRepeatFreqWarning": "Off-grid repeat requires 433, 869.495, or 918 MHz frequency", "settings_error": "Error: {message}", @@ -298,12 +358,39 @@ "appSettings_languageBg": "Български", "appSettings_languageRu": "Русский", "appSettings_languageUk": "Українська", - "repeater_pathHashModeOption0": "0 - 1 byte", - "repeater_pathHashModeOption1": "1 - 2 bytes", - "repeater_pathHashModeOption2": "2 - 3 bytes", - "repeater_pathHashModeOption3": "3 - 4 bytes", - "appSettings_enableMessageTracing": "Enable Message Tracing", - "appSettings_enableMessageTracingSubtitle": "Show detailed routing and timing metadata for messages", + "repeater_pathHashModeOption0": "1 byte", + "repeater_pathHashModeOption1": "2 bytes", + "repeater_pathHashModeOption2": "3 bytes", + "repeater_pathHashModeOption3": "4 bytes", + "settings_pathHashModeHelper": "Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.", + "settings_requiresFirmware": "Requires firmware {version} or newer", + "@settings_requiresFirmware": { + "placeholders": { + "version": { + "type": "String" + } + } + }, + "appSettings_channelMinHops": "Resend channel messages until they travel far enough", + "appSettings_channelMinHopsSubtitle": "If your message isn't heard coming back through enough repeaters, send it again. Uses more airtime.", + "appSettings_channelMinHopsCount": "Required hops: {count}", + "@appSettings_channelMinHopsCount": { + "placeholders": { + "count": { + "type": "int" + } + } + }, + "appSettings_channelMinHopsRetries": "Resend up to {count, plural, =1{1 time} other{{count} times}}", + "@appSettings_channelMinHopsRetries": { + "placeholders": { + "count": { + "type": "int" + } + } + }, + "appSettings_enableMessageTracing": "Show full repeater path in messages", + "appSettings_enableMessageTracingSubtitle": "Also show repeat counts and trip times. Long-press a message and choose Path for full details.", "appSettings_notifications": "Notifications", "appSettings_enableNotifications": "Enable Notifications", "appSettings_enableNotificationsSubtitle": "Receive notifications for messages and adverts", @@ -312,6 +399,8 @@ "appSettings_notificationsDisabled": "Notifications disabled", "appSettings_messageNotifications": "Message Notifications", "appSettings_messageNotificationsSubtitle": "Show notification when receiving new messages", + "appSettings_batteryOptimization": "Background Activity", + "appSettings_batteryOptimizationSubtitle": "Set MeshCore Open to \"Don't optimize\" in battery settings so messages keep arriving in the background", "appSettings_channelMessageNotifications": "Channel Message Notifications", "appSettings_channelMessageNotificationsSubtitle": "Show notification when receiving channel messages", "appSettings_advertisementNotifications": "Advertisement Notifications", @@ -479,6 +568,26 @@ } } }, + "contacts_removeFromContacts": "Remove from contacts", + "contacts_removeFromContactsConfirm": "{contactName} will move to Discovered contacts. Chat history will be deleted.", + "@contacts_removeFromContactsConfirm": { + "placeholders": { + "contactName": { + "type": "String" + } + } + }, + "contacts_keepChatHistory": "Keep chat history", + "contacts_remove": "Remove", + "contacts_discoveredNearby": "Discovered nearby ({count})", + "@contacts_discoveredNearby": { + "placeholders": { + "count": { + "type": "int" + } + } + }, + "contacts_noContactsDiscoveredHint": "Nodes your radio hears but hasn't added yet are listed in Discovered contacts", "contacts_manageRepeater": "Manage Repeater", "contacts_manageRoom": "Manage Room Server", "contacts_roomLogin": "Room Server Login", @@ -572,6 +681,10 @@ } }, "channels_private": "Private", + "channels_hashtag": "Hashtag", + "channels_addSectionJoin": "Join existing", + "channels_addSectionCreate": "Create new", + "channels_dragToReorder": "Drag to reorder", "channels_editChannel": "Edit channel", "channels_muteChannel": "Mute channel", "channels_unmuteChannel": "Unmute channel", @@ -693,6 +806,10 @@ "channels_regionNotSet": "Region: none", "channels_regionSelect_Title": "Select a region", "channels_clearRegion": "Clear region", + "channels_regionDefaultSuffix": "(default)", + "channels_regionSelectExplanation": "Flood messages on this channel will only be forwarded by repeaters in the selected region.", + "channels_regionEmpty": "No regions yet.", + "channels_manageRegions": "Manage regions", "chat_noMessages": "No messages yet", "chat_sendMessage": "Send message", "chat_sendMessageTo": "Send a message to {contactName}", @@ -747,7 +864,9 @@ }, "chat_selectSendAction": "Select send action", "chat_sendGif": "Send GIF", - "chat_sendImageLora": "Send image via meshcore", + "chat_removeGif": "Remove GIF", + "chat_cancelReply": "Cancel reply", + "chat_sendImageLora": "Send low-res image over radio", "chat_imagePickFailed": "Couldn't open that image", "@chat_imagePickFailed": { "description": "Shown when picking or reading a photo to send fails" @@ -929,6 +1048,7 @@ "chat_pathDeviceNotConfirmed": "Device not confirmed yet.", "chat_type": "Type", "chat_path": "Path", + "chat_viewPathOnMap": "View path on map", "chat_publicKey": "Public Key", "chat_compressOutgoingMessages": "Compress outgoing messages", "chat_floodForced": "Flood (forced)", @@ -954,6 +1074,8 @@ }, "chat_markAsUnread": "Mark as Unread", "chat_newMessages": "New messages", + "chat_today": "Today", + "chat_yesterday": "Yesterday", "chat_openLink": "Open Link?", "chat_openLinkConfirmation": "Do you want to open this link in your browser?", "chat_open": "Open", @@ -975,12 +1097,14 @@ "map_visible": "Visible", "map_hidden": "Hidden", "map_centerOnNode": "Center on node", + "map_centerOnMe": "Center on my location", "map_details": "Details", "map_noGps": "No GPS", "map_noResults": "No matching nodes", "map_lineOfSight": "Line of Sight", "map_losScreenTitle": "Line of Sight", "map_noNodesWithLocation": "No nodes with location data", + "map_noNodesLocationHint": "No nodes with a recent location. Widen the time filter, or set your own location in Settings.", "map_nodesNeedGps": "Nodes need to share their GPS coordinates\nto appear on the map", "map_nodesCount": "Nodes: {count}", "@map_nodesCount": { @@ -1046,6 +1170,9 @@ "map_markers": "Markers", "map_showSharedMarkers": "Show shared markers", "map_showGuessedLocations": "Show guessed node locations", + "map_clusterNodes": "Group nearby nodes", + "map_groupChip": "Group", + "map_clusterNodesSubtitle": "When zoomed out, show nearby nodes as one numbered circle", "map_showDiscoveryContacts": "Show Discovery Contacts", "map_guessedLocation": "Guessed location", "map_lastSeenTime": "Last Seen Time", @@ -1053,6 +1180,7 @@ "map_sharedAt": "Shared", "map_joinRoom": "Join Room", "map_manageRepeater": "Manage Repeater", + "map_manageServer": "Manage Server", "map_tapToAdd": "Tap on nodes to add them to the path.", "map_runTrace": "Run path trace", "map_runTraceWithReturnPath": "Return back on the same path.", @@ -1234,10 +1362,13 @@ "login_roomLogin": "Room Server Login", "login_password": "Password", "login_enterPassword": "Enter password", + "login_showPassword": "Show password", + "login_hidePassword": "Hide password", "login_savePassword": "Save password", "login_savePasswordSubtitle": "Password will be stored securely on this device", - "login_repeaterDescription": "Enter the repeater password for guest or admin access.", + "login_repeaterDescription": "The admin password unlocks settings and the CLI. A guest password (or blank) shows status only.", "login_roomDescription": "Enter the room password for guest or admin access.", + "login_advanced": "Advanced", "login_routing": "Routing", "login_routingMode": "Routing mode", "login_autoUseSavedPath": "Auto (use saved path)", @@ -1266,6 +1397,7 @@ "login_failedMessage": "Login failed. Either the password is incorrect or the repeater is unreachable.", "common_reload": "Reload", "common_clear": "Clear", + "common_clearSearch": "Clear search", "path_currentPathLabel": "Current path", "path_noRepeatersFound": "No repeaters or room servers found.", "repeater_management": "Repeater Management", @@ -1274,6 +1406,8 @@ "room_guest": "Room Server Information", "repeater_managementTools": "Management Tools", "repeater_guestTools": "Guest Tools", + "repeater_roleAdmin": "ADMIN", + "repeater_roleGuest": "GUEST", "repeater_status": "Status", "repeater_statusSubtitle": "View repeater status, stats, and neighbors", "repeater_telemetry": "Telemetry", @@ -1492,8 +1626,8 @@ "repeater_floodMaxHelper": "Maximum hops a flood packet may travel (0-64)", "repeater_advancedSettings": "Advanced", "repeater_advancedSettingsSubtitle": "Tuning knobs for experienced operators", - "repeater_pathHashMode": "Path hash mode", - "repeater_pathHashModeHelper": "Bytes used to encode this repeater's ID in flood path/loop-detect tags. 0=1 byte (256 IDs, up to 64 hops), 1=2 bytes (65K IDs, up to 32 hops), 2=3 bytes (16M IDs, up to 21 hops). Firmware before v1.14 always used 1-byte paths; v1.14 and newer can be configured for 2- or 3-byte paths.", + "repeater_pathHashMode": "Node ID size in paths", + "repeater_pathHashModeHelper": "Size of this repeater's ID in the paths of adverts it sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Does not affect forwarding; v1.14+ repeaters forward all sizes, but older firmware drops packets with 2- or 3-byte IDs.", "repeater_keySettings": "Change Identity Keys", "repeater_keySettingsSubtitle": "Change the public/private keypair", "repeater_prvKey": "Private key", @@ -1568,6 +1702,9 @@ "repeater_refreshPacketForwarding": "Refresh Packet Forwarding", "repeater_refreshGuestAccess": "Refresh Guest Access", "repeater_refreshPrivacyMode": "Refresh Privacy Mode", + "repeater_refreshAll": "Refresh all", + "repeater_settingsNotLoaded": "Settings haven't been loaded from this repeater yet.", + "repeater_settingsLoadIncomplete": "Some settings could not be loaded. Use the refresh buttons to retry.", "repeater_refreshed": "{label} refreshed", "@repeater_refreshed": { "placeholders": { @@ -1713,7 +1850,7 @@ "repeater_cliHelpSetPrvKey": "Replaces the device identity private key. Reboot required to apply. Generates a new public key.", "repeater_cliHelpSetRadioRxGain": "(SX126x only) Toggles boosted RX gain for improved sensitivity at higher current draw.", "repeater_cliHelpSetOwnerInfo": "Sets the owner contact info string included in adverts. Use '|' for newlines.", - "repeater_cliHelpSetPathHashMode": "Sets the path-hash mode. 0 = legacy, 1 = standard, 2 = strict. Affects how routing paths are matched.", + "repeater_cliHelpSetPathHashMode": "Sets the node ID size used in this repeater's adverts: 0 = 1 byte (up to 64 hops), 1 = 2 bytes (up to 32 hops), 2 = 3 bytes (up to 21 hops). 3 is reserved. Does not affect which sizes are forwarded. Requires firmware v1.14+.", "repeater_cliHelpSetLoopDetect": "Sets the routing loop-detection sensitivity: off, minimal, moderate, or strict.", "repeater_cliHelpSetFreq": "(Serial only) Quickly sets just the frequency. Reboot required. Prefer \"set radio\" for full radio params.", "repeater_cliHelpSetBridgeChannel": "(ESPNow bridge only) Sets the WiFi channel (1-14) used by the bridge.", @@ -1742,7 +1879,7 @@ "repeater_cliHelpGetDirectTxDelay": "Shows the direct-mode txdelay factor.", "repeater_cliHelpGetFloodMax": "Shows the maximum flood hop count.", "repeater_cliHelpGetOwnerInfo": "Shows the owner contact info string.", - "repeater_cliHelpGetPathHashMode": "Shows the path-hash mode (0/1/2).", + "repeater_cliHelpGetPathHashMode": "Shows the node ID size mode used in adverts (0 = 1 byte, 1 = 2 bytes, 2 = 3 bytes).", "repeater_cliHelpGetLoopDetect": "Shows the loop-detection sensitivity.", "repeater_cliHelpGetAcl": "(Serial only) Lists the access-control entries on a repeater.", "repeater_cliHelpGetBridgeEnabled": "Shows whether the bridge is enabled.", @@ -2480,6 +2617,7 @@ "settings_gpxExportShareSubject": "meshcore-open GPX map data export", "snrIndicator_nearByRepeaters": "Nearby Repeaters", "snrIndicator_lastSeen": "Last seen", + "snrIndicator_nearByRepeatersDescription": "Repeaters your radio heard directly, most recently heard first.", "contactsSettings_title": "Contacts settings", "contactsSettings_autoAddTitle": "Automatic Discovery", "contactsSettings_otherTitle": "Other contact related settings", @@ -2510,6 +2648,8 @@ "appSettings_languageKo": "Korean", "radioStats_tooltip": "Radio & mesh stats", "radioStats_screenTitle": "Radio stats", + "radioStats_sectionSignal": "Signal", + "radioStats_sectionAirtime": "Airtime", "radioStats_notConnected": "Connect to a device to view radio statistics.", "radioStats_firmwareTooOld": "Radio statistics require companion firmware v8 or newer.", "radioStats_waiting": "Waiting for data…", @@ -2761,6 +2901,18 @@ "pathMap_unfollowPacket": "Unlock view from packet", "imageSend_title": "Send image", "imageSend_cropNote": "Resized to 512 × 512 · aspect ratio not preserved", + "imageSend_lossyNote": "Compressed to about {bytes} bytes. The receiver's model reconstructs it, so details will differ.", + "@imageSend_lossyNote": { + "placeholders": { + "bytes": { + "type": "int" + } + } + }, + "imageSend_viewOriginal": "Original", + "imageSend_viewReconstruction": "What recipients see", + "imageSend_reconstructionUnavailable": "This device can't preview the reconstruction.", + "imageSend_modelNotDownloaded": "The image model isn't downloaded yet. Download it in Settings to send images.", "imageSend_originalSize": "Original", "imageSend_onAirSize": "On air", "imageSend_quality": "Quality", @@ -2879,6 +3031,26 @@ "receivedImage_decodeAgain": "Decode again", "receivedImage_openSettings": "Set up", "receivedImage_tapToProcess": "Tap to process", + "receivedImage_save": "Save image", + "receivedImage_shareCaption": "AI-reconstructed from {bytes} bytes; fine detail is generated, not transmitted.", + "@receivedImage_shareCaption": { + "placeholders": { + "bytes": { + "type": "int" + } + } + }, + "receivedImage_packetInfo": "Packet info", + "receivedImage_parityRecovered": "One packet was rebuilt from the recovery packet.", + "receivedImage_decodeTime": "Reconstructed in {ms} ms", + "@receivedImage_decodeTime": { + "placeholders": { + "ms": { + "type": "int" + } + } + }, + "receivedImage_saveFailed": "Couldn't save the image", "receivedImage_awaiting": "{bytes} bytes · {packets} {packets, plural, =1{packet} other{packets}}", "@receivedImage_awaiting": { "placeholders": { diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart index 4a2cadbe..7bdc6649 100644 --- a/lib/l10n/app_localizations.dart +++ b/lib/l10n/app_localizations.dart @@ -313,7 +313,7 @@ abstract class AppLocalizations { /// No description provided for @messageStatus_delivered. /// /// In en, this message translates to: - /// **'Delivered'** + /// **'Delivered. The contact confirmed they got it.'** String get messageStatus_delivered; /// No description provided for @messageStatus_pending. @@ -334,6 +334,42 @@ abstract class AppLocalizations { /// **'Heard repeated'** String get messageStatus_repeated; + /// No description provided for @messageStatus_failedChannel. + /// + /// In en, this message translates to: + /// **'Your radio couldn\'t send this message.'** + String get messageStatus_failedChannel; + + /// No description provided for @messageStatus_resending. + /// + /// In en, this message translates to: + /// **'Not heard through enough repeaters yet. Resent {resends} of {maxResends} times.'** + String messageStatus_resending(int resends, int maxResends); + + /// No description provided for @messageStatus_hopsNotReached. + /// + /// In en, this message translates to: + /// **'Sent, but only heard back through {hops} of {required} repeaters. It may still have gone further than your radio can hear.'** + String messageStatus_hopsNotReached(int hops, int required); + + /// No description provided for @messageStatus_sentChannel. + /// + /// In en, this message translates to: + /// **'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'** + String get messageStatus_sentChannel; + + /// No description provided for @messageStatus_sentDirect. + /// + /// In en, this message translates to: + /// **'Sent. Waiting for the contact to confirm.'** + String get messageStatus_sentDirect; + + /// No description provided for @messageStatus_heardRepeatedCount. + /// + /// In en, this message translates to: + /// **'Heard repeated {count, plural, =1{once} other{{count} times}}. Nearby repeaters passed it on.'** + String messageStatus_heardRepeatedCount(int count); + /// No description provided for @urlImage_enable. /// /// In en, this message translates to: @@ -811,9 +847,39 @@ abstract class AppLocalizations { /// No description provided for @settings_regionSettingsSubtitle. /// /// In en, this message translates to: - /// **'Manage stored regions'** + /// **'Limit channel floods to an area'** String get settings_regionSettingsSubtitle; + /// No description provided for @settings_regionEmptyExplanation. + /// + /// In en, this message translates to: + /// **'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'** + String get settings_regionEmptyExplanation; + + /// No description provided for @settings_regionFetchFromRepeaters. + /// + /// In en, this message translates to: + /// **'Fetch from repeaters'** + String get settings_regionFetchFromRepeaters; + + /// No description provided for @settings_regionDefault. + /// + /// In en, this message translates to: + /// **'Default region'** + String get settings_regionDefault; + + /// No description provided for @settings_regionDefaultSubtitle. + /// + /// In en, this message translates to: + /// **'Used by channels without their own region'** + String get settings_regionDefaultSubtitle; + + /// No description provided for @settings_regionDefaultNone. + /// + /// In en, this message translates to: + /// **'None'** + String get settings_regionDefaultNone; + /// No description provided for @settings_regionManagement_screenTitle. /// /// In en, this message translates to: @@ -1009,7 +1075,7 @@ abstract class AppLocalizations { /// No description provided for @settings_allowByContact. /// /// In en, this message translates to: - /// **'Allow by contact flags'** + /// **'Only contacts I allow'** String get settings_allowByContact; /// No description provided for @settings_allowAll. @@ -1021,21 +1087,27 @@ abstract class AppLocalizations { /// No description provided for @settings_telemetryBaseMode. /// /// In en, this message translates to: - /// **'Telemetry Base Mode'** + /// **'Who can request battery and status'** String get settings_telemetryBaseMode; /// No description provided for @settings_telemetryLocationMode. /// /// In en, this message translates to: - /// **'Telemetry Location Mode'** + /// **'Who can request my location'** String get settings_telemetryLocationMode; /// No description provided for @settings_telemetryEnvironmentMode. /// /// In en, this message translates to: - /// **'Telemetry Environment Mode'** + /// **'Who can request sensor data'** String get settings_telemetryEnvironmentMode; + /// No description provided for @settings_telemetryPerContactHint. + /// + /// In en, this message translates to: + /// **'To allow a contact, open their chat and choose Contact Settings from the menu.'** + String get settings_telemetryPerContactHint; + /// No description provided for @settings_advertLocation. /// /// In en, this message translates to: @@ -1057,7 +1129,7 @@ abstract class AppLocalizations { /// No description provided for @settings_autoZeroHopAdvertOnGpsUpdateSubtitle. /// /// In en, this message translates to: - /// **'When GPS location changes, send a zero-hop advert (requires Advert Location).'** + /// **'App setting: when your GPS position changes, automatically advertise your new location to nearby nodes only (requires Advert Location).'** String get settings_autoZeroHopAdvertOnGpsUpdateSubtitle; /// No description provided for @settings_multiAck. @@ -1066,6 +1138,12 @@ abstract class AppLocalizations { /// **'Multi-ACKs'** String get settings_multiAck; + /// No description provided for @settings_multiAckSubtitle. + /// + /// In en, this message translates to: + /// **'Send extra ACKs for better delivery; uses more airtime'** + String get settings_multiAckSubtitle; + /// No description provided for @settings_telemetryModeUpdated. /// /// In en, this message translates to: @@ -1282,6 +1360,18 @@ abstract class AppLocalizations { /// **'Presets'** String get settings_presets; + /// No description provided for @settings_presetCustom. + /// + /// In en, this message translates to: + /// **'Custom'** + String get settings_presetCustom; + + /// No description provided for @settings_radioMatchWarning. + /// + /// In en, this message translates to: + /// **'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'** + String get settings_radioMatchWarning; + /// No description provided for @settings_frequency. /// /// In en, this message translates to: @@ -1291,7 +1381,7 @@ abstract class AppLocalizations { /// No description provided for @settings_frequencyHelper. /// /// In en, this message translates to: - /// **'300.0 - 2500.0'** + /// **'150.0 - 2500.0'** String get settings_frequencyHelper; /// No description provided for @settings_frequencyInvalid. @@ -1324,16 +1414,16 @@ abstract class AppLocalizations { /// **'TX Power (dBm)'** String get settings_txPower; - /// No description provided for @settings_txPowerHelper. + /// No description provided for @settings_txPowerRangeHelper. /// /// In en, this message translates to: - /// **'0 - 22'** - String get settings_txPowerHelper; + /// **'{min} to {max} dBm'** + String settings_txPowerRangeHelper(int min, int max); /// No description provided for @settings_txPowerInvalid. /// /// In en, this message translates to: - /// **'Invalid TX power (0-22 dBm)'** + /// **'Invalid TX power'** String get settings_txPowerInvalid; /// No description provided for @settings_clientRepeat. @@ -1342,6 +1432,12 @@ abstract class AppLocalizations { /// **'Off-Grid Repeat'** String get settings_clientRepeat; + /// No description provided for @settings_clientRepeatFrequencyNote. + /// + /// In en, this message translates to: + /// **'Frequency set to {freq} MHz for off-grid repeat'** + String settings_clientRepeatFrequencyNote(String freq); + /// No description provided for @settings_clientRepeatSubtitle. /// /// In en, this message translates to: @@ -1501,37 +1597,73 @@ abstract class AppLocalizations { /// No description provided for @repeater_pathHashModeOption0. /// /// In en, this message translates to: - /// **'0 - 1 byte'** + /// **'1 byte'** String get repeater_pathHashModeOption0; /// No description provided for @repeater_pathHashModeOption1. /// /// In en, this message translates to: - /// **'1 - 2 bytes'** + /// **'2 bytes'** String get repeater_pathHashModeOption1; /// No description provided for @repeater_pathHashModeOption2. /// /// In en, this message translates to: - /// **'2 - 3 bytes'** + /// **'3 bytes'** String get repeater_pathHashModeOption2; /// No description provided for @repeater_pathHashModeOption3. /// /// In en, this message translates to: - /// **'3 - 4 bytes'** + /// **'4 bytes'** String get repeater_pathHashModeOption3; + /// No description provided for @settings_pathHashModeHelper. + /// + /// In en, this message translates to: + /// **'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'** + String get settings_pathHashModeHelper; + + /// No description provided for @settings_requiresFirmware. + /// + /// In en, this message translates to: + /// **'Requires firmware {version} or newer'** + String settings_requiresFirmware(String version); + + /// No description provided for @appSettings_channelMinHops. + /// + /// In en, this message translates to: + /// **'Resend channel messages until they travel far enough'** + String get appSettings_channelMinHops; + + /// No description provided for @appSettings_channelMinHopsSubtitle. + /// + /// In en, this message translates to: + /// **'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'** + String get appSettings_channelMinHopsSubtitle; + + /// No description provided for @appSettings_channelMinHopsCount. + /// + /// In en, this message translates to: + /// **'Required hops: {count}'** + String appSettings_channelMinHopsCount(int count); + + /// No description provided for @appSettings_channelMinHopsRetries. + /// + /// In en, this message translates to: + /// **'Resend up to {count, plural, =1{1 time} other{{count} times}}'** + String appSettings_channelMinHopsRetries(int count); + /// No description provided for @appSettings_enableMessageTracing. /// /// In en, this message translates to: - /// **'Enable Message Tracing'** + /// **'Show full repeater path in messages'** String get appSettings_enableMessageTracing; /// No description provided for @appSettings_enableMessageTracingSubtitle. /// /// In en, this message translates to: - /// **'Show detailed routing and timing metadata for messages'** + /// **'Also show repeat counts and trip times. Long-press a message and choose Path for full details.'** String get appSettings_enableMessageTracingSubtitle; /// No description provided for @appSettings_notifications. @@ -1582,6 +1714,18 @@ abstract class AppLocalizations { /// **'Show notification when receiving new messages'** String get appSettings_messageNotificationsSubtitle; + /// No description provided for @appSettings_batteryOptimization. + /// + /// In en, this message translates to: + /// **'Background Activity'** + String get appSettings_batteryOptimization; + + /// No description provided for @appSettings_batteryOptimizationSubtitle. + /// + /// In en, this message translates to: + /// **'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'** + String get appSettings_batteryOptimizationSubtitle; + /// No description provided for @appSettings_channelMessageNotifications. /// /// In en, this message translates to: @@ -2056,6 +2200,42 @@ abstract class AppLocalizations { /// **'Remove {contactName} from contacts?'** String contacts_removeConfirm(String contactName); + /// No description provided for @contacts_removeFromContacts. + /// + /// In en, this message translates to: + /// **'Remove from contacts'** + String get contacts_removeFromContacts; + + /// No description provided for @contacts_removeFromContactsConfirm. + /// + /// In en, this message translates to: + /// **'{contactName} will move to Discovered contacts. Chat history will be deleted.'** + String contacts_removeFromContactsConfirm(String contactName); + + /// No description provided for @contacts_keepChatHistory. + /// + /// In en, this message translates to: + /// **'Keep chat history'** + String get contacts_keepChatHistory; + + /// No description provided for @contacts_remove. + /// + /// In en, this message translates to: + /// **'Remove'** + String get contacts_remove; + + /// No description provided for @contacts_discoveredNearby. + /// + /// In en, this message translates to: + /// **'Discovered nearby ({count})'** + String contacts_discoveredNearby(int count); + + /// No description provided for @contacts_noContactsDiscoveredHint. + /// + /// In en, this message translates to: + /// **'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'** + String get contacts_noContactsDiscoveredHint; + /// No description provided for @contacts_manageRepeater. /// /// In en, this message translates to: @@ -2320,6 +2500,30 @@ abstract class AppLocalizations { /// **'Private'** String get channels_private; + /// No description provided for @channels_hashtag. + /// + /// In en, this message translates to: + /// **'Hashtag'** + String get channels_hashtag; + + /// No description provided for @channels_addSectionJoin. + /// + /// In en, this message translates to: + /// **'Join existing'** + String get channels_addSectionJoin; + + /// No description provided for @channels_addSectionCreate. + /// + /// In en, this message translates to: + /// **'Create new'** + String get channels_addSectionCreate; + + /// No description provided for @channels_dragToReorder. + /// + /// In en, this message translates to: + /// **'Drag to reorder'** + String get channels_dragToReorder; + /// No description provided for @channels_editChannel. /// /// In en, this message translates to: @@ -2674,6 +2878,30 @@ abstract class AppLocalizations { /// **'Clear region'** String get channels_clearRegion; + /// No description provided for @channels_regionDefaultSuffix. + /// + /// In en, this message translates to: + /// **'(default)'** + String get channels_regionDefaultSuffix; + + /// No description provided for @channels_regionSelectExplanation. + /// + /// In en, this message translates to: + /// **'Flood messages on this channel will only be forwarded by repeaters in the selected region.'** + String get channels_regionSelectExplanation; + + /// No description provided for @channels_regionEmpty. + /// + /// In en, this message translates to: + /// **'No regions yet.'** + String get channels_regionEmpty; + + /// No description provided for @channels_manageRegions. + /// + /// In en, this message translates to: + /// **'Manage regions'** + String get channels_manageRegions; + /// No description provided for @chat_noMessages. /// /// In en, this message translates to: @@ -2770,10 +2998,22 @@ abstract class AppLocalizations { /// **'Send GIF'** String get chat_sendGif; + /// No description provided for @chat_removeGif. + /// + /// In en, this message translates to: + /// **'Remove GIF'** + String get chat_removeGif; + + /// No description provided for @chat_cancelReply. + /// + /// In en, this message translates to: + /// **'Cancel reply'** + String get chat_cancelReply; + /// No description provided for @chat_sendImageLora. /// /// In en, this message translates to: - /// **'Send image via meshcore'** + /// **'Send low-res image over radio'** String get chat_sendImageLora; /// Shown when picking or reading a photo to send fails @@ -3304,6 +3544,12 @@ abstract class AppLocalizations { /// **'Path'** String get chat_path; + /// No description provided for @chat_viewPathOnMap. + /// + /// In en, this message translates to: + /// **'View path on map'** + String get chat_viewPathOnMap; + /// No description provided for @chat_publicKey. /// /// In en, this message translates to: @@ -3370,6 +3616,18 @@ abstract class AppLocalizations { /// **'New messages'** String get chat_newMessages; + /// No description provided for @chat_today. + /// + /// In en, this message translates to: + /// **'Today'** + String get chat_today; + + /// No description provided for @chat_yesterday. + /// + /// In en, this message translates to: + /// **'Yesterday'** + String get chat_yesterday; + /// No description provided for @chat_openLink. /// /// In en, this message translates to: @@ -3454,6 +3712,12 @@ abstract class AppLocalizations { /// **'Center on node'** String get map_centerOnNode; + /// No description provided for @map_centerOnMe. + /// + /// In en, this message translates to: + /// **'Center on my location'** + String get map_centerOnMe; + /// No description provided for @map_details. /// /// In en, this message translates to: @@ -3490,6 +3754,12 @@ abstract class AppLocalizations { /// **'No nodes with location data'** String get map_noNodesWithLocation; + /// No description provided for @map_noNodesLocationHint. + /// + /// In en, this message translates to: + /// **'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'** + String get map_noNodesLocationHint; + /// No description provided for @map_nodesNeedGps. /// /// In en, this message translates to: @@ -3754,6 +4024,24 @@ abstract class AppLocalizations { /// **'Show guessed node locations'** String get map_showGuessedLocations; + /// No description provided for @map_clusterNodes. + /// + /// In en, this message translates to: + /// **'Group nearby nodes'** + String get map_clusterNodes; + + /// No description provided for @map_groupChip. + /// + /// In en, this message translates to: + /// **'Group'** + String get map_groupChip; + + /// No description provided for @map_clusterNodesSubtitle. + /// + /// In en, this message translates to: + /// **'When zoomed out, show nearby nodes as one numbered circle'** + String get map_clusterNodesSubtitle; + /// No description provided for @map_showDiscoveryContacts. /// /// In en, this message translates to: @@ -3796,6 +4084,12 @@ abstract class AppLocalizations { /// **'Manage Repeater'** String get map_manageRepeater; + /// No description provided for @map_manageServer. + /// + /// In en, this message translates to: + /// **'Manage Server'** + String get map_manageServer; + /// No description provided for @map_tapToAdd. /// /// In en, this message translates to: @@ -4125,6 +4419,18 @@ abstract class AppLocalizations { /// **'Enter password'** String get login_enterPassword; + /// No description provided for @login_showPassword. + /// + /// In en, this message translates to: + /// **'Show password'** + String get login_showPassword; + + /// No description provided for @login_hidePassword. + /// + /// In en, this message translates to: + /// **'Hide password'** + String get login_hidePassword; + /// No description provided for @login_savePassword. /// /// In en, this message translates to: @@ -4140,7 +4446,7 @@ abstract class AppLocalizations { /// No description provided for @login_repeaterDescription. /// /// In en, this message translates to: - /// **'Enter the repeater password for guest or admin access.'** + /// **'The admin password unlocks settings and the CLI. A guest password (or blank) shows status only.'** String get login_repeaterDescription; /// No description provided for @login_roomDescription. @@ -4149,6 +4455,12 @@ abstract class AppLocalizations { /// **'Enter the room password for guest or admin access.'** String get login_roomDescription; + /// No description provided for @login_advanced. + /// + /// In en, this message translates to: + /// **'Advanced'** + String get login_advanced; + /// No description provided for @login_routing. /// /// In en, this message translates to: @@ -4215,6 +4527,12 @@ abstract class AppLocalizations { /// **'Clear'** String get common_clear; + /// No description provided for @common_clearSearch. + /// + /// In en, this message translates to: + /// **'Clear search'** + String get common_clearSearch; + /// No description provided for @path_currentPathLabel. /// /// In en, this message translates to: @@ -4263,6 +4581,18 @@ abstract class AppLocalizations { /// **'Guest Tools'** String get repeater_guestTools; + /// No description provided for @repeater_roleAdmin. + /// + /// In en, this message translates to: + /// **'ADMIN'** + String get repeater_roleAdmin; + + /// No description provided for @repeater_roleGuest. + /// + /// In en, this message translates to: + /// **'GUEST'** + String get repeater_roleGuest; + /// No description provided for @repeater_status. /// /// In en, this message translates to: @@ -4937,13 +5267,13 @@ abstract class AppLocalizations { /// No description provided for @repeater_pathHashMode. /// /// In en, this message translates to: - /// **'Path hash mode'** + /// **'Node ID size in paths'** String get repeater_pathHashMode; /// No description provided for @repeater_pathHashModeHelper. /// /// In en, this message translates to: - /// **'Bytes used to encode this repeater\'s ID in flood path/loop-detect tags. 0=1 byte (256 IDs, up to 64 hops), 1=2 bytes (65K IDs, up to 32 hops), 2=3 bytes (16M IDs, up to 21 hops). Firmware before v1.14 always used 1-byte paths; v1.14 and newer can be configured for 2- or 3-byte paths.'** + /// **'Size of this repeater\'s ID in the paths of adverts it sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Does not affect forwarding; v1.14+ repeaters forward all sizes, but older firmware drops packets with 2- or 3-byte IDs.'** String get repeater_pathHashModeHelper; /// No description provided for @repeater_keySettings. @@ -5162,6 +5492,24 @@ abstract class AppLocalizations { /// **'Refresh Privacy Mode'** String get repeater_refreshPrivacyMode; + /// No description provided for @repeater_refreshAll. + /// + /// In en, this message translates to: + /// **'Refresh all'** + String get repeater_refreshAll; + + /// No description provided for @repeater_settingsNotLoaded. + /// + /// In en, this message translates to: + /// **'Settings haven\'t been loaded from this repeater yet.'** + String get repeater_settingsNotLoaded; + + /// No description provided for @repeater_settingsLoadIncomplete. + /// + /// In en, this message translates to: + /// **'Some settings could not be loaded. Use the refresh buttons to retry.'** + String get repeater_settingsLoadIncomplete; + /// No description provided for @repeater_refreshed. /// /// In en, this message translates to: @@ -5909,7 +6257,7 @@ abstract class AppLocalizations { /// No description provided for @repeater_cliHelpSetPathHashMode. /// /// In en, this message translates to: - /// **'Sets the path-hash mode. 0 = legacy, 1 = standard, 2 = strict. Affects how routing paths are matched.'** + /// **'Sets the node ID size used in this repeater\'s adverts: 0 = 1 byte (up to 64 hops), 1 = 2 bytes (up to 32 hops), 2 = 3 bytes (up to 21 hops). 3 is reserved. Does not affect which sizes are forwarded. Requires firmware v1.14+.'** String get repeater_cliHelpSetPathHashMode; /// No description provided for @repeater_cliHelpSetLoopDetect. @@ -6083,7 +6431,7 @@ abstract class AppLocalizations { /// No description provided for @repeater_cliHelpGetPathHashMode. /// /// In en, this message translates to: - /// **'Shows the path-hash mode (0/1/2).'** + /// **'Shows the node ID size mode used in adverts (0 = 1 byte, 1 = 2 bytes, 2 = 3 bytes).'** String get repeater_cliHelpGetPathHashMode; /// No description provided for @repeater_cliHelpGetLoopDetect. @@ -7672,6 +8020,12 @@ abstract class AppLocalizations { /// **'Last seen'** String get snrIndicator_lastSeen; + /// No description provided for @snrIndicator_nearByRepeatersDescription. + /// + /// In en, this message translates to: + /// **'Repeaters your radio heard directly, most recently heard first.'** + String get snrIndicator_nearByRepeatersDescription; + /// No description provided for @contactsSettings_title. /// /// In en, this message translates to: @@ -7852,6 +8206,18 @@ abstract class AppLocalizations { /// **'Radio stats'** String get radioStats_screenTitle; + /// No description provided for @radioStats_sectionSignal. + /// + /// In en, this message translates to: + /// **'Signal'** + String get radioStats_sectionSignal; + + /// No description provided for @radioStats_sectionAirtime. + /// + /// In en, this message translates to: + /// **'Airtime'** + String get radioStats_sectionAirtime; + /// No description provided for @radioStats_notConnected. /// /// In en, this message translates to: @@ -8482,6 +8848,36 @@ abstract class AppLocalizations { /// **'Resized to 512 × 512 · aspect ratio not preserved'** String get imageSend_cropNote; + /// No description provided for @imageSend_lossyNote. + /// + /// In en, this message translates to: + /// **'Compressed to about {bytes} bytes. The receiver\'s model reconstructs it, so details will differ.'** + String imageSend_lossyNote(int bytes); + + /// No description provided for @imageSend_viewOriginal. + /// + /// In en, this message translates to: + /// **'Original'** + String get imageSend_viewOriginal; + + /// No description provided for @imageSend_viewReconstruction. + /// + /// In en, this message translates to: + /// **'What recipients see'** + String get imageSend_viewReconstruction; + + /// No description provided for @imageSend_reconstructionUnavailable. + /// + /// In en, this message translates to: + /// **'This device can\'t preview the reconstruction.'** + String get imageSend_reconstructionUnavailable; + + /// No description provided for @imageSend_modelNotDownloaded. + /// + /// In en, this message translates to: + /// **'The image model isn\'t downloaded yet. Download it in Settings to send images.'** + String get imageSend_modelNotDownloaded; + /// No description provided for @imageSend_originalSize. /// /// In en, this message translates to: @@ -8740,6 +9136,42 @@ abstract class AppLocalizations { /// **'Tap to process'** String get receivedImage_tapToProcess; + /// No description provided for @receivedImage_save. + /// + /// In en, this message translates to: + /// **'Save image'** + String get receivedImage_save; + + /// No description provided for @receivedImage_shareCaption. + /// + /// In en, this message translates to: + /// **'AI-reconstructed from {bytes} bytes; fine detail is generated, not transmitted.'** + String receivedImage_shareCaption(int bytes); + + /// No description provided for @receivedImage_packetInfo. + /// + /// In en, this message translates to: + /// **'Packet info'** + String get receivedImage_packetInfo; + + /// No description provided for @receivedImage_parityRecovered. + /// + /// In en, this message translates to: + /// **'One packet was rebuilt from the recovery packet.'** + String get receivedImage_parityRecovered; + + /// No description provided for @receivedImage_decodeTime. + /// + /// In en, this message translates to: + /// **'Reconstructed in {ms} ms'** + String receivedImage_decodeTime(int ms); + + /// No description provided for @receivedImage_saveFailed. + /// + /// In en, this message translates to: + /// **'Couldn\'t save the image'** + String get receivedImage_saveFailed; + /// No description provided for @receivedImage_awaiting. /// /// In en, this message translates to: diff --git a/lib/l10n/app_localizations_bg.dart b/lib/l10n/app_localizations_bg.dart index c5a8abe3..30be5003 100644 --- a/lib/l10n/app_localizations_bg.dart +++ b/lib/l10n/app_localizations_bg.dart @@ -110,6 +110,39 @@ class AppLocalizationsBg extends AppLocalizations { @override String get messageStatus_repeated => 'Повторно чуто'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'Активиране на URL изображения'; @@ -385,6 +418,23 @@ class AppLocalizationsBg extends AppLocalizations { String get settings_regionSettingsSubtitle => 'Управляне на хранилищни региони'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => 'Регионално управление'; @@ -512,6 +562,10 @@ class AppLocalizationsBg extends AppLocalizations { String get settings_telemetryEnvironmentMode => 'Режим на средата на телеметрията'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => 'Място на обявата'; @@ -530,6 +584,10 @@ class AppLocalizationsBg extends AppLocalizations { @override String get settings_multiAck => 'Множество ACK'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'Режим на телеметрията е обновен'; @@ -652,6 +710,13 @@ class AppLocalizationsBg extends AppLocalizations { @override String get settings_presets => 'Предварителни настройки'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => 'Честота (MHz)'; @@ -674,7 +739,9 @@ class AppLocalizationsBg extends AppLocalizations { String get settings_txPower => 'TX мощност (dBm)'; @override - String get settings_txPowerHelper => '0 - 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => 'Невалидна мощност на TX (0-22 dBm)'; @@ -682,6 +749,11 @@ class AppLocalizationsBg extends AppLocalizations { @override String get settings_clientRepeat => 'Клиентско повторение'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'Позволете на това устройство да предава пакети към мрежата за други устройства.'; @@ -776,6 +848,39 @@ class AppLocalizationsBg extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 - 4 байта'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => 'Разрешаване на проследяване на съобщения'; @@ -811,6 +916,13 @@ class AppLocalizationsBg extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => 'Показвай известие при получаване на нови съобщения'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'Известия за канални съобщения'; @@ -1101,6 +1213,29 @@ class AppLocalizationsBg extends AppLocalizations { return 'Изтрий $contactName от контактите?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'Управление на повторителя'; @@ -1251,6 +1386,18 @@ class AppLocalizationsBg extends AppLocalizations { @override String get channels_private => 'Частен'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'Редактирай канал'; @@ -1454,6 +1601,19 @@ class AppLocalizationsBg extends AppLocalizations { @override String get channels_clearRegion => 'Чиста зона'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'Няма съобщения.'; @@ -1512,6 +1672,12 @@ class AppLocalizationsBg extends AppLocalizations { @override String get chat_sendGif => 'Изпрати GIF'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'Изпращане на изображение чрез MeshCore'; @@ -1822,6 +1988,9 @@ class AppLocalizationsBg extends AppLocalizations { @override String get chat_path => 'Път'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => 'Публичен ключ'; @@ -1860,6 +2029,12 @@ class AppLocalizationsBg extends AppLocalizations { @override String get chat_newMessages => 'Нови съобщения'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => 'Отворете връзката?'; @@ -1905,6 +2080,9 @@ class AppLocalizationsBg extends AppLocalizations { @override String get map_centerOnNode => 'Центрирай върху възела'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => 'Подробности'; @@ -1923,6 +2101,10 @@ class AppLocalizationsBg extends AppLocalizations { @override String get map_noNodesWithLocation => 'Няма възли с данни за местоположение.'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'Възлите трябва да споделят GPS координатите си,\nза да се появят на картата.'; @@ -2065,6 +2247,16 @@ class AppLocalizationsBg extends AppLocalizations { String get map_showGuessedLocations => 'Покажете местоположенията на предположените възли.'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Покажи контакти за откриване'; @@ -2086,6 +2278,9 @@ class AppLocalizationsBg extends AppLocalizations { @override String get map_manageRepeater => 'Управление на повторителя'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'Докоснете възлите, за да ги добавите към пътя.'; @@ -2289,6 +2484,12 @@ class AppLocalizationsBg extends AppLocalizations { @override String get login_enterPassword => 'Въведете парола'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'Запази паролата'; @@ -2304,6 +2505,9 @@ class AppLocalizationsBg extends AppLocalizations { String get login_roomDescription => 'Въведете паролата на стаята, за да получите достъп до настройките и статуса.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => 'Маршрутизиране'; @@ -2342,6 +2546,9 @@ class AppLocalizationsBg extends AppLocalizations { @override String get common_clear => 'Изчисти'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => 'Текущ път'; @@ -2367,6 +2574,12 @@ class AppLocalizationsBg extends AppLocalizations { @override String get repeater_guestTools => 'Инструменти за гости'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'Статус'; @@ -2891,6 +3104,17 @@ class AppLocalizationsBg extends AppLocalizations { @override String get repeater_refreshPrivacyMode => 'Обнови режима на поверителност'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label е обновено'; @@ -4453,6 +4677,10 @@ class AppLocalizationsBg extends AppLocalizations { @override String get snrIndicator_lastSeen => 'Последно видян'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => 'Настройки на контактите'; @@ -4559,6 +4787,12 @@ class AppLocalizationsBg extends AppLocalizations { String get radioStats_screenTitle => 'Статистически данни за радиопредаванията'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'Свържете се с устройство, за да видите статистически данни за радиопредаване.'; @@ -4946,6 +5180,25 @@ class AppLocalizationsBg extends AppLocalizations { String get imageSend_cropNote => 'Масштабиран до 512 × 512 · соотношение сторон не съхранясе'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => 'Късно на използване на език:'; @@ -5116,6 +5369,29 @@ class AppLocalizationsBg extends AppLocalizations { @override String get receivedImage_tapToProcess => 'Натискнете за обработка'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart index 2ce32571..97bab161 100644 --- a/lib/l10n/app_localizations_de.dart +++ b/lib/l10n/app_localizations_de.dart @@ -110,6 +110,39 @@ class AppLocalizationsDe extends AppLocalizations { @override String get messageStatus_repeated => 'Mehrfach gehört'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'URL-Bilder anzeigen'; @@ -387,6 +420,23 @@ class AppLocalizationsDe extends AppLocalizations { String get settings_regionSettingsSubtitle => 'Gespeicherte Regionen verwalten'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => 'Regions-Verwaltung'; @@ -511,6 +561,10 @@ class AppLocalizationsDe extends AppLocalizations { @override String get settings_telemetryEnvironmentMode => 'Telemetrie-Umgebungsmodus'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => 'Standort in Ankündigung'; @@ -529,6 +583,10 @@ class AppLocalizationsDe extends AppLocalizations { @override String get settings_multiAck => 'Mehrfach-ACKs'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'Telemetriemodus aktualisiert'; @@ -647,6 +705,13 @@ class AppLocalizationsDe extends AppLocalizations { @override String get settings_presets => 'Voreinstellungen'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => 'Frequenz (MHz)'; @@ -669,7 +734,9 @@ class AppLocalizationsDe extends AppLocalizations { String get settings_txPower => 'Sendeleistung (dBm)'; @override - String get settings_txPowerHelper => '0 – 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => 'Ungültige Sendeleistung (0-22 dBm)'; @@ -677,6 +744,11 @@ class AppLocalizationsDe extends AppLocalizations { @override String get settings_clientRepeat => 'Weiterleitung ohne Netzstrom'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'Dieses Gerät kann Mesh-Pakete für andere weiterleiten'; @@ -771,6 +843,39 @@ class AppLocalizationsDe extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 - 4 Bytes'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => 'Nachrichtenverfolgung aktivieren'; @@ -808,6 +913,13 @@ class AppLocalizationsDe extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => 'Benachrichtigung anzeigen, wenn neue Direktnachrichten eingehen'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'Kanalnachrichten-Benachrichtigungen'; @@ -1096,6 +1208,29 @@ class AppLocalizationsDe extends AppLocalizations { return '$contactName aus den Kontakten entfernen?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'Repeater verwalten'; @@ -1245,6 +1380,18 @@ class AppLocalizationsDe extends AppLocalizations { @override String get channels_private => 'Privat'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'Kanal bearbeiten'; @@ -1452,6 +1599,19 @@ class AppLocalizationsDe extends AppLocalizations { @override String get channels_clearRegion => 'Region zurücksetzen'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'Noch keine Nachrichten.'; @@ -1511,6 +1671,12 @@ class AppLocalizationsDe extends AppLocalizations { @override String get chat_sendGif => 'GIF senden'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'Bild über MeshCore senden'; @@ -1819,6 +1985,9 @@ class AppLocalizationsDe extends AppLocalizations { @override String get chat_path => 'Pfad'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => 'Öffentlicher Schlüssel'; @@ -1857,6 +2026,12 @@ class AppLocalizationsDe extends AppLocalizations { @override String get chat_newMessages => 'Neue Nachrichten'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => 'Link öffnen?'; @@ -1902,6 +2077,9 @@ class AppLocalizationsDe extends AppLocalizations { @override String get map_centerOnNode => 'Auf Knoten zentrieren'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => 'Details'; @@ -1920,6 +2098,10 @@ class AppLocalizationsDe extends AppLocalizations { @override String get map_noNodesWithLocation => 'Keine Knoten mit Standortdaten'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'Knoten müssen ihre GPS-Koordinaten teilen,\num auf der Karte zu erscheinen.'; @@ -2061,6 +2243,16 @@ class AppLocalizationsDe extends AppLocalizations { @override String get map_showGuessedLocations => 'Vermutete Knotenstandorte anzeigen'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Entdeckte Kontakte anzeigen'; @@ -2082,6 +2274,9 @@ class AppLocalizationsDe extends AppLocalizations { @override String get map_manageRepeater => 'Repeater verwalten'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'Tippen Sie auf Knoten, um sie zum Pfad hinzuzufügen.'; @@ -2287,6 +2482,12 @@ class AppLocalizationsDe extends AppLocalizations { @override String get login_enterPassword => 'Passwort eingeben'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'Passwort speichern'; @@ -2302,6 +2503,9 @@ class AppLocalizationsDe extends AppLocalizations { String get login_roomDescription => 'Geben Sie das Raumkennwort ein, um auf die Einstellungen und den Status zuzugreifen.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => 'Routen'; @@ -2341,6 +2545,9 @@ class AppLocalizationsDe extends AppLocalizations { @override String get common_clear => 'Leeren'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => 'Aktueller Pfad'; @@ -2366,6 +2573,12 @@ class AppLocalizationsDe extends AppLocalizations { @override String get repeater_guestTools => 'Gastwerkzeuge'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'Status'; @@ -2890,6 +3103,17 @@ class AppLocalizationsDe extends AppLocalizations { @override String get repeater_refreshPrivacyMode => 'Privatsphärenmodus aktualisieren'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label aktualisiert'; @@ -4463,6 +4687,10 @@ class AppLocalizationsDe extends AppLocalizations { @override String get snrIndicator_lastSeen => 'Zuletzt gesehen'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => 'Kontakteinstellungen'; @@ -4570,6 +4798,12 @@ class AppLocalizationsDe extends AppLocalizations { @override String get radioStats_screenTitle => 'Senderinformationen'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'Verbinden Sie ein Gerät, um Radiostatistiken anzuzeigen.'; @@ -4960,6 +5194,25 @@ class AppLocalizationsDe extends AppLocalizations { String get imageSend_cropNote => 'Für 512 × 512 skaliert · Seitenverhältnis nicht erhalten'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => 'Originaltext:\n\nThe quick brown fox jumps over the lazy dog.\n\nÜbersetzung:\n\nDer schnelle braune Fuchs springt über den faulen Hund.'; @@ -5132,6 +5385,29 @@ class AppLocalizationsDe extends AppLocalizations { @override String get receivedImage_tapToProcess => 'Klicken Sie, um fortzufahren'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart index aa05c02f..78ba8709 100644 --- a/lib/l10n/app_localizations_en.dart +++ b/lib/l10n/app_localizations_en.dart @@ -99,7 +99,8 @@ class AppLocalizationsEn extends AppLocalizations { String get messageStatus_sent => 'Sent'; @override - String get messageStatus_delivered => 'Delivered'; + String get messageStatus_delivered => + 'Delivered. The contact confirmed they got it.'; @override String get messageStatus_pending => 'Sending'; @@ -110,6 +111,39 @@ class AppLocalizationsEn extends AppLocalizations { @override String get messageStatus_repeated => 'Heard repeated'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'Enable URL images'; @@ -377,7 +411,25 @@ class AppLocalizationsEn extends AppLocalizations { String get settings_regionSettings => 'Regions'; @override - String get settings_regionSettingsSubtitle => 'Manage stored regions'; + String get settings_regionSettingsSubtitle => + 'Limit channel floods to an area'; + + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; @override String get settings_regionManagement_screenTitle => 'Region Management'; @@ -486,19 +538,23 @@ class AppLocalizationsEn extends AppLocalizations { String get settings_denyAll => 'Deny all'; @override - String get settings_allowByContact => 'Allow by contact flags'; + String get settings_allowByContact => 'Only contacts I allow'; @override String get settings_allowAll => 'Allow all'; @override - String get settings_telemetryBaseMode => 'Telemetry Base Mode'; + String get settings_telemetryBaseMode => 'Who can request battery and status'; @override - String get settings_telemetryLocationMode => 'Telemetry Location Mode'; + String get settings_telemetryLocationMode => 'Who can request my location'; @override - String get settings_telemetryEnvironmentMode => 'Telemetry Environment Mode'; + String get settings_telemetryEnvironmentMode => 'Who can request sensor data'; + + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; @override String get settings_advertLocation => 'Advert Location'; @@ -512,11 +568,15 @@ class AppLocalizationsEn extends AppLocalizations { @override String get settings_autoZeroHopAdvertOnGpsUpdateSubtitle => - 'When GPS location changes, send a zero-hop advert (requires Advert Location).'; + 'App setting: when your GPS position changes, automatically advertise your new location to nearby nodes only (requires Advert Location).'; @override String get settings_multiAck => 'Multi-ACKs'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'Telemetry mode updated'; @@ -633,11 +693,18 @@ class AppLocalizationsEn extends AppLocalizations { @override String get settings_presets => 'Presets'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => 'Frequency (MHz)'; @override - String get settings_frequencyHelper => '300.0 - 2500.0'; + String get settings_frequencyHelper => '150.0 - 2500.0'; @override String get settings_frequencyInvalid => 'Invalid frequency (150-2500 MHz)'; @@ -655,14 +722,21 @@ class AppLocalizationsEn extends AppLocalizations { String get settings_txPower => 'TX Power (dBm)'; @override - String get settings_txPowerHelper => '0 - 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override - String get settings_txPowerInvalid => 'Invalid TX power (0-22 dBm)'; + String get settings_txPowerInvalid => 'Invalid TX power'; @override String get settings_clientRepeat => 'Off-Grid Repeat'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'Allow this device to repeat mesh packets for others'; @@ -746,23 +820,57 @@ class AppLocalizationsEn extends AppLocalizations { String get appSettings_languageUk => 'Українська'; @override - String get repeater_pathHashModeOption0 => '0 - 1 byte'; + String get repeater_pathHashModeOption0 => '1 byte'; @override - String get repeater_pathHashModeOption1 => '1 - 2 bytes'; + String get repeater_pathHashModeOption1 => '2 bytes'; @override - String get repeater_pathHashModeOption2 => '2 - 3 bytes'; + String get repeater_pathHashModeOption2 => '3 bytes'; @override - String get repeater_pathHashModeOption3 => '3 - 4 bytes'; + String get repeater_pathHashModeOption3 => '4 bytes'; @override - String get appSettings_enableMessageTracing => 'Enable Message Tracing'; + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + + @override + String get appSettings_enableMessageTracing => + 'Show full repeater path in messages'; @override String get appSettings_enableMessageTracingSubtitle => - 'Show detailed routing and timing metadata for messages'; + 'Also show repeat counts and trip times. Long-press a message and choose Path for full details.'; @override String get appSettings_notifications => 'Notifications'; @@ -791,6 +899,13 @@ class AppLocalizationsEn extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => 'Show notification when receiving new messages'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'Channel Message Notifications'; @@ -1075,6 +1190,29 @@ class AppLocalizationsEn extends AppLocalizations { return 'Remove $contactName from contacts?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'Manage Repeater'; @@ -1222,6 +1360,18 @@ class AppLocalizationsEn extends AppLocalizations { @override String get channels_private => 'Private'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'Edit channel'; @@ -1420,6 +1570,19 @@ class AppLocalizationsEn extends AppLocalizations { @override String get channels_clearRegion => 'Clear region'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'No messages yet'; @@ -1479,7 +1642,13 @@ class AppLocalizationsEn extends AppLocalizations { String get chat_sendGif => 'Send GIF'; @override - String get chat_sendImageLora => 'Send image via meshcore'; + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + + @override + String get chat_sendImageLora => 'Send low-res image over radio'; @override String get chat_imagePickFailed => 'Couldn\'t open that image'; @@ -1784,6 +1953,9 @@ class AppLocalizationsEn extends AppLocalizations { @override String get chat_path => 'Path'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => 'Public Key'; @@ -1821,6 +1993,12 @@ class AppLocalizationsEn extends AppLocalizations { @override String get chat_newMessages => 'New messages'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => 'Open Link?'; @@ -1866,6 +2044,9 @@ class AppLocalizationsEn extends AppLocalizations { @override String get map_centerOnNode => 'Center on node'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => 'Details'; @@ -1884,6 +2065,10 @@ class AppLocalizationsEn extends AppLocalizations { @override String get map_noNodesWithLocation => 'No nodes with location data'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'Nodes need to share their GPS coordinates\nto appear on the map'; @@ -2025,6 +2210,16 @@ class AppLocalizationsEn extends AppLocalizations { @override String get map_showGuessedLocations => 'Show guessed node locations'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Show Discovery Contacts'; @@ -2046,6 +2241,9 @@ class AppLocalizationsEn extends AppLocalizations { @override String get map_manageRepeater => 'Manage Repeater'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'Tap on nodes to add them to the path.'; @@ -2246,6 +2444,12 @@ class AppLocalizationsEn extends AppLocalizations { @override String get login_enterPassword => 'Enter password'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'Save password'; @@ -2255,12 +2459,15 @@ class AppLocalizationsEn extends AppLocalizations { @override String get login_repeaterDescription => - 'Enter the repeater password for guest or admin access.'; + 'The admin password unlocks settings and the CLI. A guest password (or blank) shows status only.'; @override String get login_roomDescription => 'Enter the room password for guest or admin access.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => 'Routing'; @@ -2299,6 +2506,9 @@ class AppLocalizationsEn extends AppLocalizations { @override String get common_clear => 'Clear'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => 'Current path'; @@ -2323,6 +2533,12 @@ class AppLocalizationsEn extends AppLocalizations { @override String get repeater_guestTools => 'Guest Tools'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'Status'; @@ -2701,11 +2917,11 @@ class AppLocalizationsEn extends AppLocalizations { 'Tuning knobs for experienced operators'; @override - String get repeater_pathHashMode => 'Path hash mode'; + String get repeater_pathHashMode => 'Node ID size in paths'; @override String get repeater_pathHashModeHelper => - 'Bytes used to encode this repeater\'s ID in flood path/loop-detect tags. 0=1 byte (256 IDs, up to 64 hops), 1=2 bytes (65K IDs, up to 32 hops), 2=3 bytes (16M IDs, up to 21 hops). Firmware before v1.14 always used 1-byte paths; v1.14 and newer can be configured for 2- or 3-byte paths.'; + 'Size of this repeater\'s ID in the paths of adverts it sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Does not affect forwarding; v1.14+ repeaters forward all sizes, but older firmware drops packets with 2- or 3-byte IDs.'; @override String get repeater_keySettings => 'Change Identity Keys'; @@ -2836,6 +3052,17 @@ class AppLocalizationsEn extends AppLocalizations { @override String get repeater_refreshPrivacyMode => 'Refresh Privacy Mode'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label refreshed'; @@ -3292,7 +3519,7 @@ class AppLocalizationsEn extends AppLocalizations { @override String get repeater_cliHelpSetPathHashMode => - 'Sets the path-hash mode. 0 = legacy, 1 = standard, 2 = strict. Affects how routing paths are matched.'; + 'Sets the node ID size used in this repeater\'s adverts: 0 = 1 byte (up to 64 hops), 1 = 2 bytes (up to 32 hops), 2 = 3 bytes (up to 21 hops). 3 is reserved. Does not affect which sizes are forwarded. Requires firmware v1.14+.'; @override String get repeater_cliHelpSetLoopDetect => @@ -3401,7 +3628,7 @@ class AppLocalizationsEn extends AppLocalizations { @override String get repeater_cliHelpGetPathHashMode => - 'Shows the path-hash mode (0/1/2).'; + 'Shows the node ID size mode used in adverts (0 = 1 byte, 1 = 2 bytes, 2 = 3 bytes).'; @override String get repeater_cliHelpGetLoopDetect => @@ -4385,6 +4612,10 @@ class AppLocalizationsEn extends AppLocalizations { @override String get snrIndicator_lastSeen => 'Last seen'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => 'Contacts settings'; @@ -4484,6 +4715,12 @@ class AppLocalizationsEn extends AppLocalizations { @override String get radioStats_screenTitle => 'Radio stats'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'Connect to a device to view radio statistics.'; @@ -4868,6 +5105,25 @@ class AppLocalizationsEn extends AppLocalizations { String get imageSend_cropNote => 'Resized to 512 × 512 · aspect ratio not preserved'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => 'Original'; @@ -5037,6 +5293,29 @@ class AppLocalizationsEn extends AppLocalizations { @override String get receivedImage_tapToProcess => 'Tap to process'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart index 931c4e92..5d6fe248 100644 --- a/lib/l10n/app_localizations_es.dart +++ b/lib/l10n/app_localizations_es.dart @@ -110,6 +110,39 @@ class AppLocalizationsEs extends AppLocalizations { @override String get messageStatus_repeated => 'Escuchado repetidamente'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'Habilitar imágenes de URL'; @@ -385,6 +418,23 @@ class AppLocalizationsEs extends AppLocalizations { String get settings_regionSettingsSubtitle => 'Gestionar regiones almacenadas'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => 'Gestión de Regiones'; @@ -509,6 +559,10 @@ class AppLocalizationsEs extends AppLocalizations { String get settings_telemetryEnvironmentMode => 'Modo de entorno de telemetría'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => 'Ubicación de anuncio'; @@ -526,6 +580,10 @@ class AppLocalizationsEs extends AppLocalizations { @override String get settings_multiAck => 'Múltiples respuestas de confirmación'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'Modo de telemetría actualizado'; @@ -646,6 +704,13 @@ class AppLocalizationsEs extends AppLocalizations { @override String get settings_presets => 'Preajustes'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => 'Frecuencia (MHz)'; @@ -668,7 +733,9 @@ class AppLocalizationsEs extends AppLocalizations { String get settings_txPower => 'Potencia TX (dBm)'; @override - String get settings_txPowerHelper => '0 - 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => 'Potencia de TX inválida (0-22 dBm)'; @@ -676,6 +743,11 @@ class AppLocalizationsEs extends AppLocalizations { @override String get settings_clientRepeat => 'Repetir sin conexión'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'Permita que este dispositivo repita los paquetes de red para otros usuarios.'; @@ -770,6 +842,39 @@ class AppLocalizationsEs extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 - 4 bytes'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => 'Habilitar seguimiento de mensajes'; @@ -805,6 +910,13 @@ class AppLocalizationsEs extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => 'Mostrar notificación al recibir nuevos mensajes'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'Notificaciones de mensajes del canal'; @@ -1093,6 +1205,29 @@ class AppLocalizationsEs extends AppLocalizations { return '¿Eliminar $contactName de los contactos?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'Gestionar repetidor'; @@ -1244,6 +1379,18 @@ class AppLocalizationsEs extends AppLocalizations { @override String get channels_private => 'Privado'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'Editar canal'; @@ -1449,6 +1596,19 @@ class AppLocalizationsEs extends AppLocalizations { @override String get channels_clearRegion => 'Zona despejada'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'Aún no hay mensajes'; @@ -1507,6 +1667,12 @@ class AppLocalizationsEs extends AppLocalizations { @override String get chat_sendGif => 'Enviar GIF'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'Enviar imagen mediante MeshCore'; @@ -1815,6 +1981,9 @@ class AppLocalizationsEs extends AppLocalizations { @override String get chat_path => 'Ruta'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => 'Clave pública'; @@ -1852,6 +2021,12 @@ class AppLocalizationsEs extends AppLocalizations { @override String get chat_newMessages => 'Nuevos mensajes'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => '¿Abrir enlace?'; @@ -1897,6 +2072,9 @@ class AppLocalizationsEs extends AppLocalizations { @override String get map_centerOnNode => 'Enfocar en el nodo'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => 'Detalles'; @@ -1915,6 +2093,10 @@ class AppLocalizationsEs extends AppLocalizations { @override String get map_noNodesWithLocation => 'No hay nodos con datos de ubicación'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'Los nodos necesitan compartir sus coordenadas GPS\npara aparecer en el mapa'; @@ -2057,6 +2239,16 @@ class AppLocalizationsEs extends AppLocalizations { String get map_showGuessedLocations => 'Mostrar las ubicaciones estimadas de los nodos.'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Mostrar contactos de descubrimiento'; @@ -2078,6 +2270,9 @@ class AppLocalizationsEs extends AppLocalizations { @override String get map_manageRepeater => 'Gestionar repetidor'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'Toque los nodos para añadirlos a la ruta.'; @@ -2281,6 +2476,12 @@ class AppLocalizationsEs extends AppLocalizations { @override String get login_enterPassword => 'Introduce la contraseña'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'Guardar contraseña'; @@ -2296,6 +2497,9 @@ class AppLocalizationsEs extends AppLocalizations { String get login_roomDescription => 'Introduce la contraseña de la sala para acceder como invitado o administrador.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => 'Enrutamiento'; @@ -2334,6 +2538,9 @@ class AppLocalizationsEs extends AppLocalizations { @override String get common_clear => 'Borrar'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => 'Ruta actual'; @@ -2359,6 +2566,12 @@ class AppLocalizationsEs extends AppLocalizations { @override String get repeater_guestTools => 'Herramientas para invitados'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'Estado'; @@ -2885,6 +3098,17 @@ class AppLocalizationsEs extends AppLocalizations { @override String get repeater_refreshPrivacyMode => 'Actualizar Modo Privacidad'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label actualizado'; @@ -4455,6 +4679,10 @@ class AppLocalizationsEs extends AppLocalizations { @override String get snrIndicator_lastSeen => 'Visto por última vez'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => 'Configuración de contactos'; @@ -4563,6 +4791,12 @@ class AppLocalizationsEs extends AppLocalizations { @override String get radioStats_screenTitle => 'Estadísticas de radio'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'Conéctese a un dispositivo para visualizar estadísticas de radio.'; @@ -4952,6 +5186,25 @@ class AppLocalizationsEs extends AppLocalizations { String get imageSend_cropNote => 'Redimensionado a 512 × 512 · la relación de aspecto no se conservó'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => 'Texto original'; @@ -5123,6 +5376,29 @@ class AppLocalizationsEs extends AppLocalizations { @override String get receivedImage_tapToProcess => 'Toque para procesar'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart index b78eedb5..a1598882 100644 --- a/lib/l10n/app_localizations_fr.dart +++ b/lib/l10n/app_localizations_fr.dart @@ -110,6 +110,39 @@ class AppLocalizationsFr extends AppLocalizations { @override String get messageStatus_repeated => 'Reçu plusieurs fois'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'Activer les images URL'; @@ -386,6 +419,23 @@ class AppLocalizationsFr extends AppLocalizations { @override String get settings_regionSettingsSubtitle => 'Gérer les régions stockées'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => 'Gestion de région'; @@ -513,6 +563,10 @@ class AppLocalizationsFr extends AppLocalizations { String get settings_telemetryEnvironmentMode => 'Mode d\'environnement de la télémétrie'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => 'Localisation de l\'annonce'; @@ -531,6 +585,10 @@ class AppLocalizationsFr extends AppLocalizations { @override String get settings_multiAck => 'Plusieurs accusés de réception'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'Le mode télémétrie a été mis à jour'; @@ -651,6 +709,13 @@ class AppLocalizationsFr extends AppLocalizations { @override String get settings_presets => 'Préréglages'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => 'Fréquence (MHz)'; @@ -673,7 +738,9 @@ class AppLocalizationsFr extends AppLocalizations { String get settings_txPower => 'Puissance TX (dBm)'; @override - String get settings_txPowerHelper => '0 - 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => 'Puissance TX invalide (0-22 dBm)'; @@ -681,6 +748,11 @@ class AppLocalizationsFr extends AppLocalizations { @override String get settings_clientRepeat => 'Répétition hors réseau'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'Permettre à cet appareil de relayer les paquets du maillage pour les autres.'; @@ -775,6 +847,39 @@ class AppLocalizationsFr extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 à 4 octets'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => 'Activer le traçage des messages'; @@ -810,6 +915,13 @@ class AppLocalizationsFr extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => 'Afficher une notification lors de la réception de nouveaux messages'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'Notifications des messages de canal'; @@ -1098,6 +1210,29 @@ class AppLocalizationsFr extends AppLocalizations { return 'Supprimer $contactName des contacts ?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'Gérer le répéteur'; @@ -1248,6 +1383,18 @@ class AppLocalizationsFr extends AppLocalizations { @override String get channels_private => 'Privé'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'Modifier le canal'; @@ -1453,6 +1600,19 @@ class AppLocalizationsFr extends AppLocalizations { @override String get channels_clearRegion => 'Zone dégagée'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'Aucun message pour le moment'; @@ -1511,6 +1671,12 @@ class AppLocalizationsFr extends AppLocalizations { @override String get chat_sendGif => 'Envoyer un GIF'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'Envoyer une image via MeshCore'; @@ -1820,6 +1986,9 @@ class AppLocalizationsFr extends AppLocalizations { @override String get chat_path => 'Chemin'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => 'Clé publique'; @@ -1858,6 +2027,12 @@ class AppLocalizationsFr extends AppLocalizations { @override String get chat_newMessages => 'Nouveaux messages'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => 'Ouvrir le lien ?'; @@ -1903,6 +2078,9 @@ class AppLocalizationsFr extends AppLocalizations { @override String get map_centerOnNode => 'Centrer sur le nœud'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => 'Détails'; @@ -1922,6 +2100,10 @@ class AppLocalizationsFr extends AppLocalizations { String get map_noNodesWithLocation => 'Aucun nœud avec des données de localisation'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'Les nœuds doivent partager leurs coordonnées GPS\npour apparaître sur la carte.'; @@ -2064,6 +2246,16 @@ class AppLocalizationsFr extends AppLocalizations { String get map_showGuessedLocations => 'Afficher les emplacements estimés des nœuds'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Afficher les contacts de découverte'; @@ -2085,6 +2277,9 @@ class AppLocalizationsFr extends AppLocalizations { @override String get map_manageRepeater => 'Gérer le répéteur'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'Appuyez sur les nœuds pour les ajouter au chemin.'; @@ -2290,6 +2485,12 @@ class AppLocalizationsFr extends AppLocalizations { @override String get login_enterPassword => 'Entrez votre mot de passe'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'Sauvegarder le mot de passe'; @@ -2305,6 +2506,9 @@ class AppLocalizationsFr extends AppLocalizations { String get login_roomDescription => 'Entrez le mot de passe de la pièce pour accéder aux paramètres et à l\'état.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => 'Redirection'; @@ -2343,6 +2547,9 @@ class AppLocalizationsFr extends AppLocalizations { @override String get common_clear => 'Effacer'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => 'Chemin actuel'; @@ -2367,6 +2574,12 @@ class AppLocalizationsFr extends AppLocalizations { @override String get repeater_guestTools => 'Outils pour les invités'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'État'; @@ -2901,6 +3114,17 @@ class AppLocalizationsFr extends AppLocalizations { String get repeater_refreshPrivacyMode => 'Rafraîchir le Mode Confidentialité'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label rafraîchi'; @@ -4477,6 +4701,10 @@ class AppLocalizationsFr extends AppLocalizations { @override String get snrIndicator_lastSeen => 'Vu pour la dernière fois'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => 'Paramètres des contacts'; @@ -4585,6 +4813,12 @@ class AppLocalizationsFr extends AppLocalizations { @override String get radioStats_screenTitle => 'Statistiques de radio'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'Connectez-vous à un appareil pour visualiser les statistiques de la radio.'; @@ -4975,6 +5209,25 @@ class AppLocalizationsFr extends AppLocalizations { String get imageSend_cropNote => 'Redimensionné à 512 × 512 · le rapport d’aspect n’a pas été conservé'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => 'Texte original\n\nVeuillez traduire le texte suivant en français :'; @@ -5146,6 +5399,29 @@ class AppLocalizationsFr extends AppLocalizations { @override String get receivedImage_tapToProcess => 'Tapez pour traiter'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_hu.dart b/lib/l10n/app_localizations_hu.dart index 942a8abd..3b8d1490 100644 --- a/lib/l10n/app_localizations_hu.dart +++ b/lib/l10n/app_localizations_hu.dart @@ -110,6 +110,39 @@ class AppLocalizationsHu extends AppLocalizations { @override String get messageStatus_repeated => '– ismételte Heard'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'URL-képek engedélyezése'; @@ -383,6 +416,23 @@ class AppLocalizationsHu extends AppLocalizations { String get settings_regionSettingsSubtitle => 'Kincstani megjelenítette gyakorlatos területeket'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => 'Regionális Kezelés'; @@ -507,6 +557,10 @@ class AppLocalizationsHu extends AppLocalizations { @override String get settings_telemetryEnvironmentMode => 'Telemetriás környezeti mód'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => 'Hirdetés helye'; @@ -525,6 +579,10 @@ class AppLocalizationsHu extends AppLocalizations { @override String get settings_multiAck => 'Multi-ACK'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'Telemetriai mód frissítve'; @@ -643,6 +701,13 @@ class AppLocalizationsHu extends AppLocalizations { @override String get settings_presets => 'Előbeállítások'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => 'Frekvencia (MHz)'; @@ -666,7 +731,9 @@ class AppLocalizationsHu extends AppLocalizations { String get settings_txPower => 'TX teljesítmény (dBm)'; @override - String get settings_txPowerHelper => '0-22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => @@ -675,6 +742,11 @@ class AppLocalizationsHu extends AppLocalizations { @override String get settings_clientRepeat => 'Hálózaton kívüli ismétlés'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'Engedélyezze az eszköznek, hogy megismételje a mesh-csomagokat mások számára'; @@ -769,6 +841,39 @@ class AppLocalizationsHu extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 - 4 bajt'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => 'Üzenetkövetés engedélyezése'; @@ -803,6 +908,13 @@ class AppLocalizationsHu extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => 'Értesítés megjelenítése új üzenetek fogadásakor'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'Csatorna üzenetek értesítései'; @@ -1089,6 +1201,29 @@ class AppLocalizationsHu extends AppLocalizations { return 'Eltávolítja a $contactName alkalmazást a névjegyek közül?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'Repeater kezelése'; @@ -1240,6 +1375,18 @@ class AppLocalizationsHu extends AppLocalizations { @override String get channels_private => 'Magán'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'Csatorna szerkesztése'; @@ -1444,6 +1591,19 @@ class AppLocalizationsHu extends AppLocalizations { @override String get channels_clearRegion => 'Kéres kör'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'Még nincsenek üzenetek'; @@ -1502,6 +1662,12 @@ class AppLocalizationsHu extends AppLocalizations { @override String get chat_sendGif => 'GIF küldése'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'Kép küldése MeshCore-on keresztül'; @@ -1810,6 +1976,9 @@ class AppLocalizationsHu extends AppLocalizations { @override String get chat_path => 'Útvonal'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => 'Nyilvános kulcs'; @@ -1847,6 +2016,12 @@ class AppLocalizationsHu extends AppLocalizations { @override String get chat_newMessages => 'Új üzenetek'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => 'Link megnyitása?'; @@ -1893,6 +2068,9 @@ class AppLocalizationsHu extends AppLocalizations { @override String get map_centerOnNode => 'Középre a csomóponton'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => 'Részletek'; @@ -1912,6 +2090,10 @@ class AppLocalizationsHu extends AppLocalizations { String get map_noNodesWithLocation => 'Nincsenek helyadatokkal rendelkező csomópontok'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'A csomópontoknak meg kell osztaniuk GPS-koordinátáikat\nhogy megjelenjen a térképen'; @@ -2054,6 +2236,16 @@ class AppLocalizationsHu extends AppLocalizations { String get map_showGuessedLocations => 'Talált csomópont-helyek megjelenítése'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Felfedezési névjegyek megjelenítése'; @@ -2075,6 +2267,9 @@ class AppLocalizationsHu extends AppLocalizations { @override String get map_manageRepeater => 'Repeater kezelése'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'Érintse meg a csomópontokat, hogy hozzáadja őket az útvonalhoz.'; @@ -2279,6 +2474,12 @@ class AppLocalizationsHu extends AppLocalizations { @override String get login_enterPassword => 'Adja meg a jelszót'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'Jelszó mentése'; @@ -2294,6 +2495,9 @@ class AppLocalizationsHu extends AppLocalizations { String get login_roomDescription => 'Adja meg a szoba jelszavát a vendég vagy adminisztrátori hozzáféréshez.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => 'Útválasztás'; @@ -2333,6 +2537,9 @@ class AppLocalizationsHu extends AppLocalizations { @override String get common_clear => 'Világos'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => 'Jelenlegi útvonal'; @@ -2358,6 +2565,12 @@ class AppLocalizationsHu extends AppLocalizations { @override String get repeater_guestTools => 'Vendégeszközök'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'Állapot'; @@ -2880,6 +3093,17 @@ class AppLocalizationsHu extends AppLocalizations { @override String get repeater_refreshPrivacyMode => 'Frissítse az adatvédelmi módot'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label frissítve'; @@ -4452,6 +4676,10 @@ class AppLocalizationsHu extends AppLocalizations { @override String get snrIndicator_lastSeen => 'Utoljára látott'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => 'Névjegyek beállításai'; @@ -4559,6 +4787,12 @@ class AppLocalizationsHu extends AppLocalizations { @override String get radioStats_screenTitle => 'Rádió statisztika'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'Csatlakozzon egy eszközhöz a rádióstatisztikák megtekintéséhez.'; @@ -4944,6 +5178,25 @@ class AppLocalizationsHu extends AppLocalizations { String get imageSend_cropNote => '512 × 512 órák számára megosztva · képszöget nem biztosítva'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => 'Következtetés:'; @@ -5113,6 +5366,29 @@ class AppLocalizationsHu extends AppLocalizations { @override String get receivedImage_tapToProcess => 'Klikd a feljelenítést'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart index 87b96b39..ce18da63 100644 --- a/lib/l10n/app_localizations_it.dart +++ b/lib/l10n/app_localizations_it.dart @@ -110,6 +110,39 @@ class AppLocalizationsIt extends AppLocalizations { @override String get messageStatus_repeated => 'Ricevuto ripetutamente'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'Abilita immagini URL'; @@ -387,6 +420,23 @@ class AppLocalizationsIt extends AppLocalizations { String get settings_regionSettingsSubtitle => 'Gestione delle regioni salvate'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => 'Gestione Regionale'; @@ -514,6 +564,10 @@ class AppLocalizationsIt extends AppLocalizations { String get settings_telemetryEnvironmentMode => 'Modalità di ambiente di telemetria'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => 'Posizione dell\'annuncio'; @@ -532,6 +586,10 @@ class AppLocalizationsIt extends AppLocalizations { @override String get settings_multiAck => 'ACK multipli'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'Modalità telemetria aggiornata'; @@ -650,6 +708,13 @@ class AppLocalizationsIt extends AppLocalizations { @override String get settings_presets => 'Preset'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => 'Frequenza (MHz)'; @@ -672,7 +737,9 @@ class AppLocalizationsIt extends AppLocalizations { String get settings_txPower => 'Potenza TX (dBm)'; @override - String get settings_txPowerHelper => '0 - 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => 'Potenza TX non valida (0-22 dBm)'; @@ -680,6 +747,11 @@ class AppLocalizationsIt extends AppLocalizations { @override String get settings_clientRepeat => 'Ripetizione \"fuori dalla rete\"'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'Permetti a questo dispositivo di ripetere i pacchetti di rete per gli altri.'; @@ -774,6 +846,39 @@ class AppLocalizationsIt extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 - 4 byte'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => 'Abilita tracciamento messaggi'; @@ -809,6 +914,13 @@ class AppLocalizationsIt extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => 'Mostra notifica all\'arrivo di nuovi messaggi'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'Notifiche Messaggi Canale'; @@ -1097,6 +1209,29 @@ class AppLocalizationsIt extends AppLocalizations { return 'Eliminare $contactName dai contatti?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'Gestisci ripetitore'; @@ -1247,6 +1382,18 @@ class AppLocalizationsIt extends AppLocalizations { @override String get channels_private => 'Privato'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'Modifica canale'; @@ -1452,6 +1599,19 @@ class AppLocalizationsIt extends AppLocalizations { @override String get channels_clearRegion => 'Zona chiara'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'Nessun messaggio ancora'; @@ -1510,6 +1670,12 @@ class AppLocalizationsIt extends AppLocalizations { @override String get chat_sendGif => 'Invia GIF'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'Invia immagine tramite MeshCore'; @@ -1821,6 +1987,9 @@ class AppLocalizationsIt extends AppLocalizations { @override String get chat_path => 'Percorso'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => 'Chiave pubblica'; @@ -1858,6 +2027,12 @@ class AppLocalizationsIt extends AppLocalizations { @override String get chat_newMessages => 'Nuovi messaggi'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => 'Apri il link?'; @@ -1903,6 +2078,9 @@ class AppLocalizationsIt extends AppLocalizations { @override String get map_centerOnNode => 'Centra sul nodo'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => 'Dettagli'; @@ -1921,6 +2099,10 @@ class AppLocalizationsIt extends AppLocalizations { @override String get map_noNodesWithLocation => 'Nessun nodo con dati di posizione'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'I nodi devono condividere le loro coordinate GPS\nper apparire sulla mappa'; @@ -2062,6 +2244,16 @@ class AppLocalizationsIt extends AppLocalizations { @override String get map_showGuessedLocations => 'Mostra le posizioni stimate dei nodi'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Mostra contatti di scoperta'; @@ -2083,6 +2275,9 @@ class AppLocalizationsIt extends AppLocalizations { @override String get map_manageRepeater => 'Gestisci ripetitore'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'Tocca i nodi per aggiungerli al percorso.'; @@ -2286,6 +2481,12 @@ class AppLocalizationsIt extends AppLocalizations { @override String get login_enterPassword => 'Inserisci password'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'Salva password'; @@ -2301,6 +2502,9 @@ class AppLocalizationsIt extends AppLocalizations { String get login_roomDescription => 'Inserisci la password della stanza per accedere alle impostazioni e allo stato.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => 'Instradamento'; @@ -2339,6 +2543,9 @@ class AppLocalizationsIt extends AppLocalizations { @override String get common_clear => 'Cancella'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => 'Percorso corrente'; @@ -2364,6 +2571,12 @@ class AppLocalizationsIt extends AppLocalizations { @override String get repeater_guestTools => 'Strumenti per gli ospiti'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'Stato'; @@ -2889,6 +3102,17 @@ class AppLocalizationsIt extends AppLocalizations { @override String get repeater_refreshPrivacyMode => 'Aggiorna Modalità Privacy'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label aggiornato'; @@ -4461,6 +4685,10 @@ class AppLocalizationsIt extends AppLocalizations { @override String get snrIndicator_lastSeen => 'Ultimo accesso'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => 'Impostazioni dei contatti'; @@ -4567,6 +4795,12 @@ class AppLocalizationsIt extends AppLocalizations { @override String get radioStats_screenTitle => 'Statistiche radio'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'Connettiti a un dispositivo per visualizzare le statistiche radio.'; @@ -4957,6 +5191,25 @@ class AppLocalizationsIt extends AppLocalizations { String get imageSend_cropNote => 'Ridimensionato a 512 × 512 · rapporto d\'aspetto non conservato'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => 'Traduzione:\n\nOriginal text:\n\nPlease translate the following English text into Italian:\n\nOriginal text:\n\n(No original English text provided)'; @@ -5129,6 +5382,29 @@ class AppLocalizationsIt extends AppLocalizations { @override String get receivedImage_tapToProcess => 'Premi per elaborare'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart index 6801d456..887c4987 100644 --- a/lib/l10n/app_localizations_ja.dart +++ b/lib/l10n/app_localizations_ja.dart @@ -110,6 +110,39 @@ class AppLocalizationsJa extends AppLocalizations { @override String get messageStatus_repeated => '何度も聞いた'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'URL画像を有効にする'; @@ -368,6 +401,23 @@ class AppLocalizationsJa extends AppLocalizations { @override String get settings_regionSettingsSubtitle => '保存された領域の管理'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => '地域管理'; @@ -484,6 +534,10 @@ class AppLocalizationsJa extends AppLocalizations { @override String get settings_telemetryEnvironmentMode => 'テレメトリ環境モード'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => 'アドバート位置'; @@ -500,6 +554,10 @@ class AppLocalizationsJa extends AppLocalizations { @override String get settings_multiAck => 'マルチ ACK'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'テレメトリモードが更新されました'; @@ -614,6 +672,13 @@ class AppLocalizationsJa extends AppLocalizations { @override String get settings_presets => 'プリセット'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => '周波数 (MHz)'; @@ -636,7 +701,9 @@ class AppLocalizationsJa extends AppLocalizations { String get settings_txPower => 'TX 信号電力 (dBm)'; @override - String get settings_txPowerHelper => '0 - 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => '無効な送信電力 (0-22 dBm)'; @@ -644,6 +711,11 @@ class AppLocalizationsJa extends AppLocalizations { @override String get settings_clientRepeat => 'オフグリッド中継'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'このデバイスが他のデバイス向けにメッシュパケットを中継できるようにします。'; @@ -738,6 +810,39 @@ class AppLocalizationsJa extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3〜4バイト'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => 'メッセージ追跡を有効にする'; @@ -770,6 +875,13 @@ class AppLocalizationsJa extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => '新しいメッセージを受信した際に、通知を表示する'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'チャネルメッセージの通知'; @@ -1034,6 +1146,29 @@ class AppLocalizationsJa extends AppLocalizations { return '$contactName を連絡先から削除しますか?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'リピータの管理'; @@ -1180,6 +1315,18 @@ class AppLocalizationsJa extends AppLocalizations { @override String get channels_private => '非公開'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'チャンネルを編集'; @@ -1375,6 +1522,19 @@ class AppLocalizationsJa extends AppLocalizations { @override String get channels_clearRegion => 'クリアな地域'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'まだメッセージは届いていません'; @@ -1433,6 +1593,12 @@ class AppLocalizationsJa extends AppLocalizations { @override String get chat_sendGif => 'GIF を送信'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'MeshCore経由で画像を送信'; @@ -1732,6 +1898,9 @@ class AppLocalizationsJa extends AppLocalizations { @override String get chat_path => '道'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => '公開鍵'; @@ -1769,6 +1938,12 @@ class AppLocalizationsJa extends AppLocalizations { @override String get chat_newMessages => '新しいメッセージ'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => 'リンクを開きますか?'; @@ -1813,6 +1988,9 @@ class AppLocalizationsJa extends AppLocalizations { @override String get map_centerOnNode => 'ノードを中央に表示'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => '詳細'; @@ -1831,6 +2009,10 @@ class AppLocalizationsJa extends AppLocalizations { @override String get map_noNodesWithLocation => '位置情報を持つノードはありません'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'ノードを地図に表示するには GPS 座標の共有が必要です'; @@ -1969,6 +2151,16 @@ class AppLocalizationsJa extends AppLocalizations { @override String get map_showGuessedLocations => '推測されたノードの位置を表示する'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Discovery 連絡先を表示'; @@ -1990,6 +2182,9 @@ class AppLocalizationsJa extends AppLocalizations { @override String get map_manageRepeater => 'リピータの管理'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'ノードをタップして経路に追加します。'; @@ -2189,6 +2384,12 @@ class AppLocalizationsJa extends AppLocalizations { @override String get login_enterPassword => 'パスワードを入力してください'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'パスワードを保存する'; @@ -2202,6 +2403,9 @@ class AppLocalizationsJa extends AppLocalizations { @override String get login_roomDescription => '設定やステータスへのアクセスには、部屋のパスワードを入力してください。'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => '経路設定'; @@ -2240,6 +2444,9 @@ class AppLocalizationsJa extends AppLocalizations { @override String get common_clear => 'クリア'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => '現在の経路'; @@ -2264,6 +2471,12 @@ class AppLocalizationsJa extends AppLocalizations { @override String get repeater_guestTools => 'ゲスト向けツール'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'ステータス'; @@ -2756,6 +2969,17 @@ class AppLocalizationsJa extends AppLocalizations { @override String get repeater_refreshPrivacyMode => 'プライバシーモードをリセットする'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label が更新されました'; @@ -4233,6 +4457,10 @@ class AppLocalizationsJa extends AppLocalizations { @override String get snrIndicator_lastSeen => '最後に確認された場所'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => '連絡先設定'; @@ -4330,6 +4558,12 @@ class AppLocalizationsJa extends AppLocalizations { @override String get radioStats_screenTitle => 'ラジオの統計'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'ラジオの統計情報を表示するために、デバイスに接続してください。'; @@ -4703,6 +4937,25 @@ class AppLocalizationsJa extends AppLocalizations { @override String get imageSend_cropNote => '512 × 512にリサイズされました。アスペクト比は保持されませんでした。'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => '原文:\nThe early morning light filtered through the curtains, casting a soft glow on the room.\n\n翻訳:\n早朝の光がカーテンをすり抜け、部屋に柔らかな光を投げかけていた。'; @@ -4867,6 +5120,29 @@ class AppLocalizationsJa extends AppLocalizations { @override String get receivedImage_tapToProcess => '処理するにはタップしてください'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_ko.dart b/lib/l10n/app_localizations_ko.dart index 345fad54..4c89d801 100644 --- a/lib/l10n/app_localizations_ko.dart +++ b/lib/l10n/app_localizations_ko.dart @@ -110,6 +110,39 @@ class AppLocalizationsKo extends AppLocalizations { @override String get messageStatus_repeated => '반복 수신됨'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'URL 이미지 활성화'; @@ -368,6 +401,23 @@ class AppLocalizationsKo extends AppLocalizations { @override String get settings_regionSettingsSubtitle => '저장된 지역 관리'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => '지역 관리'; @@ -485,6 +535,10 @@ class AppLocalizationsKo extends AppLocalizations { @override String get settings_telemetryEnvironmentMode => '텔레메트리 환경 모드'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => '어드버트 위치'; @@ -502,6 +556,10 @@ class AppLocalizationsKo extends AppLocalizations { @override String get settings_multiAck => '다중 ACK'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => '텔레메트리 모드 업데이트 완료'; @@ -615,6 +673,13 @@ class AppLocalizationsKo extends AppLocalizations { @override String get settings_presets => '프리셋'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => '주파수 (MHz)'; @@ -637,7 +702,9 @@ class AppLocalizationsKo extends AppLocalizations { String get settings_txPower => '송신 전력 (dBm)'; @override - String get settings_txPowerHelper => '0 - 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => '유효하지 않은 송신 전력 (0-22 dBm)'; @@ -645,6 +712,11 @@ class AppLocalizationsKo extends AppLocalizations { @override String get settings_clientRepeat => '오프그리드 반복'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => '이 장치가 다른 장치의 메시 패킷을 반복하도록 허용합니다.'; @@ -739,6 +811,39 @@ class AppLocalizationsKo extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 - 4 바이트'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => '메시지 추적 기능 활성화'; @@ -771,6 +876,13 @@ class AppLocalizationsKo extends AppLocalizations { @override String get appSettings_messageNotificationsSubtitle => '새로운 메시지를 받을 때 알림 표시'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => '채널 메시지 알림'; @@ -1038,6 +1150,29 @@ class AppLocalizationsKo extends AppLocalizations { return '$contactName를 연락처 목록에서 제거하시겠습니까?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => '리피터 관리'; @@ -1184,6 +1319,18 @@ class AppLocalizationsKo extends AppLocalizations { @override String get channels_private => '사립'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => '채널 편집'; @@ -1379,6 +1526,19 @@ class AppLocalizationsKo extends AppLocalizations { @override String get channels_clearRegion => '명확한 지역'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => '아직 메시지가 없습니다.'; @@ -1437,6 +1597,12 @@ class AppLocalizationsKo extends AppLocalizations { @override String get chat_sendGif => 'GIF 보내기'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'MeshCore를 통해 이미지 보내기'; @@ -1737,6 +1903,9 @@ class AppLocalizationsKo extends AppLocalizations { @override String get chat_path => '경로'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => '공개 키'; @@ -1774,6 +1943,12 @@ class AppLocalizationsKo extends AppLocalizations { @override String get chat_newMessages => '새로운 메시지'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => '링크를 열기?'; @@ -1818,6 +1993,9 @@ class AppLocalizationsKo extends AppLocalizations { @override String get map_centerOnNode => '노드 중심으로 보기'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => '세부 정보'; @@ -1836,6 +2014,10 @@ class AppLocalizationsKo extends AppLocalizations { @override String get map_noNodesWithLocation => '위치 정보가 있는 노드가 없습니다.'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => '노드는 지도에 표시되려면 GPS 좌표를 공유해야 합니다.'; @@ -1974,6 +2156,16 @@ class AppLocalizationsKo extends AppLocalizations { @override String get map_showGuessedLocations => '추정된 노드 위치 표시'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => '디스커버리 담당자 연락처 보기'; @@ -1995,6 +2187,9 @@ class AppLocalizationsKo extends AppLocalizations { @override String get map_manageRepeater => '리피터 관리'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => '노드에 클릭하여 경로에 추가합니다.'; @@ -2194,6 +2389,12 @@ class AppLocalizationsKo extends AppLocalizations { @override String get login_enterPassword => '비밀번호를 입력하세요'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => '비밀번호 저장'; @@ -2206,6 +2407,9 @@ class AppLocalizationsKo extends AppLocalizations { @override String get login_roomDescription => '설정 및 상태에 액세스하려면 방 비밀번호를 입력하세요.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => '라우팅'; @@ -2244,6 +2448,9 @@ class AppLocalizationsKo extends AppLocalizations { @override String get common_clear => '지우기'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => '현재 경로'; @@ -2268,6 +2475,12 @@ class AppLocalizationsKo extends AppLocalizations { @override String get repeater_guestTools => '손님용 도구'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => '상태'; @@ -2764,6 +2977,17 @@ class AppLocalizationsKo extends AppLocalizations { @override String get repeater_refreshPrivacyMode => '개인 정보 보호 모드 재설정'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label가 갱신됨'; @@ -4242,6 +4466,10 @@ class AppLocalizationsKo extends AppLocalizations { @override String get snrIndicator_lastSeen => '마지막으로 목격'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => '연락처 설정'; @@ -4339,6 +4567,12 @@ class AppLocalizationsKo extends AppLocalizations { @override String get radioStats_screenTitle => '라디오 통계'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => '라디오 통계를 확인하기 위해 장치에 연결합니다.'; @@ -4712,6 +4946,25 @@ class AppLocalizationsKo extends AppLocalizations { @override String get imageSend_cropNote => '512 × 512로 크기가 조정되었으며, 종횡비는 유지되지 않았습니다.'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => '원문 없음'; @@ -4875,6 +5128,29 @@ class AppLocalizationsKo extends AppLocalizations { @override String get receivedImage_tapToProcess => '처리하려면 탭을 누르세요.'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_nl.dart b/lib/l10n/app_localizations_nl.dart index c13e59e5..a67b641d 100644 --- a/lib/l10n/app_localizations_nl.dart +++ b/lib/l10n/app_localizations_nl.dart @@ -110,6 +110,39 @@ class AppLocalizationsNl extends AppLocalizations { @override String get messageStatus_repeated => 'Hearsay, herhaald'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'URL-afbeeldingen inschakelen'; @@ -383,6 +416,23 @@ class AppLocalizationsNl extends AppLocalizations { String get settings_regionSettingsSubtitle => 'Beheer van opgeslagen regio\'s'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => 'Regionale Bestuur'; @@ -507,6 +557,10 @@ class AppLocalizationsNl extends AppLocalizations { @override String get settings_telemetryEnvironmentMode => 'Telemetrie-omgevingsmodus'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => 'Advertentielocatie'; @@ -525,6 +579,10 @@ class AppLocalizationsNl extends AppLocalizations { @override String get settings_multiAck => 'Meerdere bevestigingen'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'Telemetrie-modus bijgewerkt'; @@ -643,6 +701,13 @@ class AppLocalizationsNl extends AppLocalizations { @override String get settings_presets => 'Voorgeprogrammeerde instellingen'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => 'Frequentie (MHz)'; @@ -665,7 +730,9 @@ class AppLocalizationsNl extends AppLocalizations { String get settings_txPower => 'TX-Vermogen (dBm)'; @override - String get settings_txPowerHelper => '0 - 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => 'Ongeldige TX-vermogen (0-22 dBm)'; @@ -673,6 +740,11 @@ class AppLocalizationsNl extends AppLocalizations { @override String get settings_clientRepeat => 'Off-Grid Herhalen'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'Laat dit apparaat de berichten van andere apparaten doorsturen.'; @@ -767,6 +839,39 @@ class AppLocalizationsNl extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 - 4 bytes'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => 'Berichttracking inschakelen'; @@ -803,6 +908,13 @@ class AppLocalizationsNl extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => 'Toon notificatie bij het ontvangen van nieuwe berichten'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'Kanaal Bericht Meldingen'; @@ -1088,6 +1200,29 @@ class AppLocalizationsNl extends AppLocalizations { return 'Verwijder $contactName uit de contacten?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'Beheer Repeater'; @@ -1236,6 +1371,18 @@ class AppLocalizationsNl extends AppLocalizations { @override String get channels_private => 'Privé'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'Kanaal bewerken'; @@ -1439,6 +1586,19 @@ class AppLocalizationsNl extends AppLocalizations { @override String get channels_clearRegion => 'Duidelijke regio'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'Nog geen berichten.'; @@ -1497,6 +1657,12 @@ class AppLocalizationsNl extends AppLocalizations { @override String get chat_sendGif => 'GIF verzenden'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'Afbeelding verzenden via MeshCore'; @@ -1804,6 +1970,9 @@ class AppLocalizationsNl extends AppLocalizations { @override String get chat_path => 'Pad'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => 'Openbare Sleutel'; @@ -1842,6 +2011,12 @@ class AppLocalizationsNl extends AppLocalizations { @override String get chat_newMessages => 'Nieuwe berichten'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => 'Link openen?'; @@ -1887,6 +2062,9 @@ class AppLocalizationsNl extends AppLocalizations { @override String get map_centerOnNode => 'Centreer op node'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => 'Details'; @@ -1905,6 +2083,10 @@ class AppLocalizationsNl extends AppLocalizations { @override String get map_noNodesWithLocation => 'Geen nodes met locatiegegevens'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'Nodes moeten hun GPS-coördinaten delen\nom op de kaart te verschijnen'; @@ -2047,6 +2229,16 @@ class AppLocalizationsNl extends AppLocalizations { String get map_showGuessedLocations => 'Toon de voorspelde locaties van de knopen'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Ontdek contacten weergeven'; @@ -2068,6 +2260,9 @@ class AppLocalizationsNl extends AppLocalizations { @override String get map_manageRepeater => 'Beheer Repeater'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'Tik op knooppunten om ze toe te voegen aan het pad'; @@ -2272,6 +2467,12 @@ class AppLocalizationsNl extends AppLocalizations { @override String get login_enterPassword => 'Wachtwoord invoeren'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'Wachtwoord opslaan'; @@ -2287,6 +2488,9 @@ class AppLocalizationsNl extends AppLocalizations { String get login_roomDescription => 'Voer het wachtwoord van de kamer in om toegang te krijgen tot instellingen en status.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => 'Routeplanning'; @@ -2325,6 +2529,9 @@ class AppLocalizationsNl extends AppLocalizations { @override String get common_clear => 'Schoonmaken'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => 'Huidige pad'; @@ -2349,6 +2556,12 @@ class AppLocalizationsNl extends AppLocalizations { @override String get repeater_guestTools => 'Gastenfuncties'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'Status'; @@ -2871,6 +3084,17 @@ class AppLocalizationsNl extends AppLocalizations { @override String get repeater_refreshPrivacyMode => 'Privacymode vernieuwen'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label is vernieuwd'; @@ -4440,6 +4664,10 @@ class AppLocalizationsNl extends AppLocalizations { @override String get snrIndicator_lastSeen => 'Laatst gezien'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => 'Instellingen voor contacten'; @@ -4545,6 +4773,12 @@ class AppLocalizationsNl extends AppLocalizations { @override String get radioStats_screenTitle => 'Statistieken over radio'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'Verbind met een apparaat om radio-statistieken te bekijken.'; @@ -4931,6 +5165,25 @@ class AppLocalizationsNl extends AppLocalizations { String get imageSend_cropNote => 'Aangepast aan 512 × 512 · het aspectverhouding is niet behouden'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => 'Oorspronkelijk'; @@ -5101,6 +5354,29 @@ class AppLocalizationsNl extends AppLocalizations { @override String get receivedImage_tapToProcess => 'Tik om te verwerken'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_pl.dart b/lib/l10n/app_localizations_pl.dart index 63477de5..3fc84fed 100644 --- a/lib/l10n/app_localizations_pl.dart +++ b/lib/l10n/app_localizations_pl.dart @@ -110,6 +110,39 @@ class AppLocalizationsPl extends AppLocalizations { @override String get messageStatus_repeated => 'Usłyszałem to wielokrotnie'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'Włącz obrazy z URL'; @@ -389,6 +422,23 @@ class AppLocalizationsPl extends AppLocalizations { String get settings_regionSettingsSubtitle => 'Zarządzanie zapisanymi regionami'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => 'Zarządzanie Regionami'; @@ -514,6 +564,10 @@ class AppLocalizationsPl extends AppLocalizations { String get settings_telemetryEnvironmentMode => 'Tryb środowiska telemetrycznego'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => 'Lokalizacja rozgłoszenia'; @@ -532,6 +586,10 @@ class AppLocalizationsPl extends AppLocalizations { @override String get settings_multiAck => 'Wielokrotne potwierdzenia odbioru'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'Tryb telemetryczny zaktualizowany'; @@ -651,6 +709,13 @@ class AppLocalizationsPl extends AppLocalizations { @override String get settings_presets => 'Presety'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => 'Częstotliwość (MHz)'; @@ -674,7 +739,9 @@ class AppLocalizationsPl extends AppLocalizations { String get settings_txPower => 'Moc TX (dBm)'; @override - String get settings_txPowerHelper => '0 – 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => 'Nieprawidłowa moc TX (0-22 dBm)'; @@ -682,6 +749,11 @@ class AppLocalizationsPl extends AppLocalizations { @override String get settings_clientRepeat => 'Powtórzenie: Niezależne od sieci'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'Pozwól temu urządzeniu powtarzać pakiety danych dla innych urządzeń.'; @@ -776,6 +848,39 @@ class AppLocalizationsPl extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 - 4 bajty'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => 'Włącz śledzenie wiadomości'; @@ -811,6 +916,13 @@ class AppLocalizationsPl extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => 'Pokaż powiadomienie przy otrzymywaniu nowych wiadomości'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'Powiadomienia o Wiadomościach na Kanałach'; @@ -1106,6 +1218,29 @@ class AppLocalizationsPl extends AppLocalizations { return 'Usunąć $contactName z kontaktów?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'Zarządzaj przekaźnikiem'; @@ -1256,6 +1391,18 @@ class AppLocalizationsPl extends AppLocalizations { @override String get channels_private => 'Prywatny'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'Edytuj kanał'; @@ -1461,6 +1608,19 @@ class AppLocalizationsPl extends AppLocalizations { @override String get channels_clearRegion => 'Przejrzyste obszar'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'Brak jeszcze wiadomości'; @@ -1520,6 +1680,12 @@ class AppLocalizationsPl extends AppLocalizations { @override String get chat_sendGif => 'Wyślij GIF'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'Wyślij obraz przez MeshCore'; @@ -1834,6 +2000,9 @@ class AppLocalizationsPl extends AppLocalizations { @override String get chat_path => 'Ścieżka'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => 'Klucz Publiczny'; @@ -1871,6 +2040,12 @@ class AppLocalizationsPl extends AppLocalizations { @override String get chat_newMessages => 'Nowe wiadomości'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => 'Otworzyć link?'; @@ -1916,6 +2091,9 @@ class AppLocalizationsPl extends AppLocalizations { @override String get map_centerOnNode => 'Wyśrodkuj na węźle'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => 'Szczegóły'; @@ -1934,6 +2112,10 @@ class AppLocalizationsPl extends AppLocalizations { @override String get map_noNodesWithLocation => 'Brak węzłów z danymi lokalizacyjnymi'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'Węzły muszą udostępniać swoje współrzędne GPS,\naby pojawić się na mapie.'; @@ -2076,6 +2258,16 @@ class AppLocalizationsPl extends AppLocalizations { String get map_showGuessedLocations => 'Pokaż przypuszczalne lokalizacje węzłów'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Pokaż odkryte kontakty'; @@ -2097,6 +2289,9 @@ class AppLocalizationsPl extends AppLocalizations { @override String get map_manageRepeater => 'Zarządzaj przekaźnikiem'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'Kliknij na węzły, aby dodać je do ścieżki.'; @@ -2302,6 +2497,12 @@ class AppLocalizationsPl extends AppLocalizations { @override String get login_enterPassword => 'Wprowadź hasło'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'Zapisz hasło'; @@ -2317,6 +2518,9 @@ class AppLocalizationsPl extends AppLocalizations { String get login_roomDescription => 'Wprowadź hasło do pokoju, aby uzyskać dostęp do ustawień i statusu.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => 'Trasowanie'; @@ -2355,6 +2559,9 @@ class AppLocalizationsPl extends AppLocalizations { @override String get common_clear => 'Wyczyść'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => 'Aktualna ścieżka'; @@ -2380,6 +2587,12 @@ class AppLocalizationsPl extends AppLocalizations { @override String get repeater_guestTools => 'Narzędzia dla gości'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'Stan'; @@ -2901,6 +3114,17 @@ class AppLocalizationsPl extends AppLocalizations { @override String get repeater_refreshPrivacyMode => 'Odśwież Tryb Prywatności'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label odświeżone'; @@ -4481,6 +4705,10 @@ class AppLocalizationsPl extends AppLocalizations { @override String get snrIndicator_lastSeen => 'Ostatnio widziany'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => 'Ustawienia kontaktów'; @@ -4586,6 +4814,12 @@ class AppLocalizationsPl extends AppLocalizations { @override String get radioStats_screenTitle => 'Statystyki radiowe'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'Połącz się z urządzeniem, aby wyświetlić statystyki radiowe.'; @@ -4978,6 +5212,25 @@ class AppLocalizationsPl extends AppLocalizations { String get imageSend_cropNote => 'Zmniejszone do 512 × 512 · proporcje nie zostały zachowane'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => 'Oryginalny'; @@ -5147,6 +5400,29 @@ class AppLocalizationsPl extends AppLocalizations { @override String get receivedImage_tapToProcess => 'Kliknij, aby przetworzyć'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart index 9c2ce0e4..4f8f02ff 100644 --- a/lib/l10n/app_localizations_pt.dart +++ b/lib/l10n/app_localizations_pt.dart @@ -110,6 +110,39 @@ class AppLocalizationsPt extends AppLocalizations { @override String get messageStatus_repeated => 'Ouvi repetidamente'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'Ativar imagens de URL'; @@ -386,6 +419,23 @@ class AppLocalizationsPt extends AppLocalizations { @override String get settings_regionSettingsSubtitle => 'Gerenciar regiões armazenadas'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => 'Gestão de Região'; @@ -510,6 +560,10 @@ class AppLocalizationsPt extends AppLocalizations { String get settings_telemetryEnvironmentMode => 'Modo de Ambiente de Telemetria'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => 'Localização do Anúncio'; @@ -528,6 +582,10 @@ class AppLocalizationsPt extends AppLocalizations { @override String get settings_multiAck => 'Multi-ACKs'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'Modo de telemetria atualizado'; @@ -648,6 +706,13 @@ class AppLocalizationsPt extends AppLocalizations { @override String get settings_presets => 'Configurações pré-definidas'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => 'Frequência (MHz)'; @@ -670,7 +735,9 @@ class AppLocalizationsPt extends AppLocalizations { String get settings_txPower => 'TX Potência (dBm)'; @override - String get settings_txPowerHelper => '0 - 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => 'Potência de TX inválida (0-22 dBm)'; @@ -678,6 +745,11 @@ class AppLocalizationsPt extends AppLocalizations { @override String get settings_clientRepeat => 'Repetição sem rede'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'Permita que este dispositivo repita pacotes de rede para outros dispositivos.'; @@ -772,6 +844,39 @@ class AppLocalizationsPt extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 - 4 bytes'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => 'Ativar rastreamento de mensagens'; @@ -807,6 +912,13 @@ class AppLocalizationsPt extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => 'Mostrar notificação ao receber novas mensagens'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'Notificações de Mensagens do Canal'; @@ -1095,6 +1207,29 @@ class AppLocalizationsPt extends AppLocalizations { return 'Remover $contactName dos contatos?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'Gerenciar Repetidor'; @@ -1245,6 +1380,18 @@ class AppLocalizationsPt extends AppLocalizations { @override String get channels_private => 'Privado'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'Editar canal'; @@ -1448,6 +1595,19 @@ class AppLocalizationsPt extends AppLocalizations { @override String get channels_clearRegion => 'Região desimpedida'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'Ainda não existem mensagens.'; @@ -1506,6 +1666,12 @@ class AppLocalizationsPt extends AppLocalizations { @override String get chat_sendGif => 'Enviar GIF'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'Enviar imagem via MeshCore'; @@ -1817,6 +1983,9 @@ class AppLocalizationsPt extends AppLocalizations { @override String get chat_path => 'Caminho'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => 'Chave Pública'; @@ -1854,6 +2023,12 @@ class AppLocalizationsPt extends AppLocalizations { @override String get chat_newMessages => 'Novas mensagens'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => 'Abrir link?'; @@ -1899,6 +2074,9 @@ class AppLocalizationsPt extends AppLocalizations { @override String get map_centerOnNode => 'Centralizar no nó'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => 'Detalhes'; @@ -1918,6 +2096,10 @@ class AppLocalizationsPt extends AppLocalizations { String get map_noNodesWithLocation => 'Não existem nós com dados de localização.'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'Os nós precisam partilhar as suas coordenadas GPS\npara aparecerem no mapa'; @@ -2060,6 +2242,16 @@ class AppLocalizationsPt extends AppLocalizations { String get map_showGuessedLocations => 'Mostrar as localizações dos nós estimados'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Mostrar Contatos de Descoberta'; @@ -2081,6 +2273,9 @@ class AppLocalizationsPt extends AppLocalizations { @override String get map_manageRepeater => 'Gerenciar Repetidor'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'Toque nos nós para adicioná-los ao caminho.'; @@ -2284,6 +2479,12 @@ class AppLocalizationsPt extends AppLocalizations { @override String get login_enterPassword => 'Insira a senha'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'Salvar senha'; @@ -2299,6 +2500,9 @@ class AppLocalizationsPt extends AppLocalizations { String get login_roomDescription => 'Insira a senha da sala para acessar as configurações e o status.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => 'Rotas'; @@ -2337,6 +2541,9 @@ class AppLocalizationsPt extends AppLocalizations { @override String get common_clear => 'Limpar'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => 'Caminho atual'; @@ -2362,6 +2569,12 @@ class AppLocalizationsPt extends AppLocalizations { @override String get repeater_guestTools => 'Ferramentas para hóspedes'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'Estado'; @@ -2887,6 +3100,17 @@ class AppLocalizationsPt extends AppLocalizations { @override String get repeater_refreshPrivacyMode => 'Atualizar Modo Privacidade'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label atualizado'; @@ -4455,6 +4679,10 @@ class AppLocalizationsPt extends AppLocalizations { @override String get snrIndicator_lastSeen => 'Visto pela última vez'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => 'Configurações de contatos'; @@ -4562,6 +4790,12 @@ class AppLocalizationsPt extends AppLocalizations { @override String get radioStats_screenTitle => 'Estatísticas de rádio'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'Conecte-se a um dispositivo para visualizar estatísticas de rádio.'; @@ -4948,6 +5182,25 @@ class AppLocalizationsPt extends AppLocalizations { String get imageSend_cropNote => 'Redimensionado para 512 × 512 · a proporção de aspecto não foi preservada'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => 'Texto Original'; @@ -5118,6 +5371,29 @@ class AppLocalizationsPt extends AppLocalizations { @override String get receivedImage_tapToProcess => 'Toque para processar'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart index 1e973a24..1ca1f432 100644 --- a/lib/l10n/app_localizations_ru.dart +++ b/lib/l10n/app_localizations_ru.dart @@ -110,6 +110,39 @@ class AppLocalizationsRu extends AppLocalizations { @override String get messageStatus_repeated => 'Услышал несколько раз'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'Показывать изображения по URL'; @@ -386,6 +419,23 @@ class AppLocalizationsRu extends AppLocalizations { String get settings_regionSettingsSubtitle => 'Управление сохранёнными регионами'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => 'Управление регионами'; @@ -512,6 +562,10 @@ class AppLocalizationsRu extends AppLocalizations { @override String get settings_telemetryEnvironmentMode => 'Режим среды телеметрии'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => 'Местоположение анонса'; @@ -530,6 +584,10 @@ class AppLocalizationsRu extends AppLocalizations { @override String get settings_multiAck => 'Несколько подтверждений'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'Режим телеметрии обновлен'; @@ -650,6 +708,13 @@ class AppLocalizationsRu extends AppLocalizations { @override String get settings_presets => 'Пресеты'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => 'Частота (МГц)'; @@ -672,7 +737,9 @@ class AppLocalizationsRu extends AppLocalizations { String get settings_txPower => 'Мощность передачи (дБм)'; @override - String get settings_txPowerHelper => '0 – 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => @@ -681,6 +748,11 @@ class AppLocalizationsRu extends AppLocalizations { @override String get settings_clientRepeat => 'Повторение \"вне сети\"'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'Позвольте этому устройству повторять пакеты данных для других устройств.'; @@ -775,6 +847,39 @@ class AppLocalizationsRu extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 - 4 байта'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => 'Включить трассировку сообщений'; @@ -810,6 +915,13 @@ class AppLocalizationsRu extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => 'Показывать уведомление при получении новых сообщений'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'Уведомления о сообщениях в каналах'; @@ -1099,6 +1211,29 @@ class AppLocalizationsRu extends AppLocalizations { return 'Удалить $contactName из контактов?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'Управление репитером'; @@ -1249,6 +1384,18 @@ class AppLocalizationsRu extends AppLocalizations { @override String get channels_private => 'Приватный'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'Изменить канал'; @@ -1452,6 +1599,19 @@ class AppLocalizationsRu extends AppLocalizations { @override String get channels_clearRegion => 'Чистый регион'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'Сообщений пока нет'; @@ -1510,6 +1670,12 @@ class AppLocalizationsRu extends AppLocalizations { @override String get chat_sendGif => 'Отправить GIF'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'Отправить изображение через MeshCore'; @@ -1824,6 +1990,9 @@ class AppLocalizationsRu extends AppLocalizations { @override String get chat_path => 'Маршрут'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => 'Публичный ключ'; @@ -1861,6 +2030,12 @@ class AppLocalizationsRu extends AppLocalizations { @override String get chat_newMessages => 'Новые сообщения'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => 'Открыть ссылку?'; @@ -1906,6 +2081,9 @@ class AppLocalizationsRu extends AppLocalizations { @override String get map_centerOnNode => 'Центрировать на узле'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => 'Детали'; @@ -1924,6 +2102,10 @@ class AppLocalizationsRu extends AppLocalizations { @override String get map_noNodesWithLocation => 'Нет нод с данными о местоположении'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'Ноды должны передавать свои GPS-координаты, чтобы отображаться на карте'; @@ -2066,6 +2248,16 @@ class AppLocalizationsRu extends AppLocalizations { String get map_showGuessedLocations => 'Отобразить предполагаемые места расположения узлов'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Показать контакты Discovery'; @@ -2087,6 +2279,9 @@ class AppLocalizationsRu extends AppLocalizations { @override String get map_manageRepeater => 'Управление репитером'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'Нажимайте на узлы, чтобы добавить их в путь.'; @@ -2290,6 +2485,12 @@ class AppLocalizationsRu extends AppLocalizations { @override String get login_enterPassword => 'Введите пароль'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'Сохранить пароль'; @@ -2305,6 +2506,9 @@ class AppLocalizationsRu extends AppLocalizations { String get login_roomDescription => 'Введите пароль комнаты для доступа к настройкам и статусу.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => 'Маршрутизация'; @@ -2344,6 +2548,9 @@ class AppLocalizationsRu extends AppLocalizations { @override String get common_clear => 'Очистить'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => 'Текущий маршрут'; @@ -2368,6 +2575,12 @@ class AppLocalizationsRu extends AppLocalizations { @override String get repeater_guestTools => 'Инструменты для гостей'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'Статус'; @@ -2891,6 +3104,17 @@ class AppLocalizationsRu extends AppLocalizations { @override String get repeater_refreshPrivacyMode => 'Обновить режим конфиденциальности'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label обновлён'; @@ -4468,6 +4692,10 @@ class AppLocalizationsRu extends AppLocalizations { @override String get snrIndicator_lastSeen => 'Последний раз видели'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => 'Настройки контактов'; @@ -4575,6 +4803,12 @@ class AppLocalizationsRu extends AppLocalizations { @override String get radioStats_screenTitle => 'Статистика радиовещания'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'Подключитесь к устройству, чтобы просмотреть статистику радио.'; @@ -4965,6 +5199,25 @@ class AppLocalizationsRu extends AppLocalizations { String get imageSend_cropNote => 'Меняется размер на 512 × 512 · соотношение сторон не сохраняется'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => 'Оригинал'; @@ -5137,6 +5390,29 @@ class AppLocalizationsRu extends AppLocalizations { @override String get receivedImage_tapToProcess => 'Нажмите для обработки'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_sk.dart b/lib/l10n/app_localizations_sk.dart index 662dbaf9..f6e4aad3 100644 --- a/lib/l10n/app_localizations_sk.dart +++ b/lib/l10n/app_localizations_sk.dart @@ -110,6 +110,39 @@ class AppLocalizationsSk extends AppLocalizations { @override String get messageStatus_repeated => 'Slyšal som to opakovane'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'Povoliť obrázky z URL'; @@ -384,6 +417,23 @@ class AppLocalizationsSk extends AppLocalizations { @override String get settings_regionSettingsSubtitle => 'Zohľať uložené regiony'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => 'Regiónne vedenie'; @@ -504,6 +554,10 @@ class AppLocalizationsSk extends AppLocalizations { @override String get settings_telemetryEnvironmentMode => 'Režim prostredia telemetrie'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => 'Umiestnenie inzerátu'; @@ -521,6 +575,10 @@ class AppLocalizationsSk extends AppLocalizations { @override String get settings_multiAck => 'Viaceré ACK'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'Režim telemetrie bol aktualizovaný'; @@ -641,6 +699,13 @@ class AppLocalizationsSk extends AppLocalizations { @override String get settings_presets => 'Prednastavenia'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => 'Frekvencia (MHz)'; @@ -663,7 +728,9 @@ class AppLocalizationsSk extends AppLocalizations { String get settings_txPower => 'TX Výkon (dBm)'; @override - String get settings_txPowerHelper => '0 – 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => 'Neplatná hodnota výkonu TX (0-22 dBm)'; @@ -671,6 +738,11 @@ class AppLocalizationsSk extends AppLocalizations { @override String get settings_clientRepeat => 'Opätovné použitie bez elektrickej siete'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'Umožnite, aby toto zariadenie opakovávalo siete pre ostatných.'; @@ -765,6 +837,39 @@ class AppLocalizationsSk extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 - 4 bity'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => 'Povoliť sledovanie správ'; @@ -799,6 +904,13 @@ class AppLocalizationsSk extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => 'Zobraziť upozornenie pri prijímaní nových správ'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'Notifikácie z kanálov'; @@ -1084,6 +1196,29 @@ class AppLocalizationsSk extends AppLocalizations { return 'Odstrániť $contactName z kontaktov?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'Spravovať opakované zoznamy'; @@ -1235,6 +1370,18 @@ class AppLocalizationsSk extends AppLocalizations { @override String get channels_private => 'Osobné'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'Upraviť kanál'; @@ -1438,6 +1585,19 @@ class AppLocalizationsSk extends AppLocalizations { @override String get channels_clearRegion => 'Jasný údajný oblasť'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'Zatiaľ žiadne správy.'; @@ -1496,6 +1656,12 @@ class AppLocalizationsSk extends AppLocalizations { @override String get chat_sendGif => 'Odoslať GIF'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'Odoslať obrázok cez MeshCore'; @@ -1809,6 +1975,9 @@ class AppLocalizationsSk extends AppLocalizations { @override String get chat_path => 'Cesta'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => 'Verejný kľúč'; @@ -1846,6 +2015,12 @@ class AppLocalizationsSk extends AppLocalizations { @override String get chat_newMessages => 'Nové správy'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => 'Otvoriť odkaz?'; @@ -1891,6 +2066,9 @@ class AppLocalizationsSk extends AppLocalizations { @override String get map_centerOnNode => 'Nacentrovať na uzol'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => 'Podrobnosti'; @@ -1909,6 +2087,10 @@ class AppLocalizationsSk extends AppLocalizations { @override String get map_noNodesWithLocation => 'Žiadne uzly s údajmi o polohe'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'Uholníky musia zdieľať svoje GPS súradnice, aby sa zobrazili na mape.'; @@ -2051,6 +2233,16 @@ class AppLocalizationsSk extends AppLocalizations { String get map_showGuessedLocations => 'Zobraziť umiestnenia odhadnutých uzlov'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Zobraziť kontakty objavov'; @@ -2072,6 +2264,9 @@ class AppLocalizationsSk extends AppLocalizations { @override String get map_manageRepeater => 'Spravovať Opakovanie'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'Kliknite na uzly, aby ste ich pridali k ceste.'; @@ -2274,6 +2469,12 @@ class AppLocalizationsSk extends AppLocalizations { @override String get login_enterPassword => 'Zadajte heslo'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'Uložiť heslo'; @@ -2289,6 +2490,9 @@ class AppLocalizationsSk extends AppLocalizations { String get login_roomDescription => 'Zadajte heslo do miestnosti na prístup k nastaveniam a stavu.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => 'Rútiace'; @@ -2327,6 +2531,9 @@ class AppLocalizationsSk extends AppLocalizations { @override String get common_clear => 'Zmazať'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => 'Aktuálny priebeh'; @@ -2352,6 +2559,12 @@ class AppLocalizationsSk extends AppLocalizations { @override String get repeater_guestTools => 'Nástroje pre hostí'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'Stav'; @@ -2868,6 +3081,17 @@ class AppLocalizationsSk extends AppLocalizations { @override String get repeater_refreshPrivacyMode => 'Obnoviť Ochranný režim'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label sa znova načítalo'; @@ -4437,6 +4661,10 @@ class AppLocalizationsSk extends AppLocalizations { @override String get snrIndicator_lastSeen => 'Naposledy videný'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => 'Nastavenia kontaktov'; @@ -4540,6 +4768,12 @@ class AppLocalizationsSk extends AppLocalizations { @override String get radioStats_screenTitle => 'Štatistiky rádiových vysielaní'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'Pripojte sa k zariadeniu, aby ste mohli sledovať štatistiky rádiového vysielania.'; @@ -4928,6 +5162,25 @@ class AppLocalizationsSk extends AppLocalizations { String get imageSend_cropNote => 'Zmeneno na 512 × 512 · vzorýst nie byl zachovan'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => 'Výborný text:\n\n\"Language is the road map of a culture. It tells us where to go as a society and helps us understand the world around us. Learning a new language opens up new perspectives and opportunities, allowing us to connect with people from different backgrounds and build bridges between cultures.\"\n\nSlovenská preklada:\n\n\"Jazyk je cesta pre zručnosti a odráža kultúru. Dá nám uvedomi, dokádať, kúdy sa pohladneme a pomáha našej společnosti poradiť sa v rôznych okolnosti a porozumieť o svetu kolem nás. Nauka nového jazyka otviera nové perspektívy a možnosti, čo pohybuje našu schopnosť sa spoluprávať s ľudmi z rôznych okolnosti a budovať mosty medzi kultúry.\"'; @@ -5098,6 +5351,29 @@ class AppLocalizationsSk extends AppLocalizations { @override String get receivedImage_tapToProcess => 'Ukliknite, aby sa príjomili'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_sl.dart b/lib/l10n/app_localizations_sl.dart index ba703fc4..83e7a2a3 100644 --- a/lib/l10n/app_localizations_sl.dart +++ b/lib/l10n/app_localizations_sl.dart @@ -111,6 +111,39 @@ class AppLocalizationsSl extends AppLocalizations { @override String get messageStatus_repeated => 'Slišal sem večkrat'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'Omogoči slike iz URL'; @@ -383,6 +416,23 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_regionSettingsSubtitle => 'Upravljanje opisanih regionov'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => 'Regijonsko upravljanje'; @@ -506,6 +556,10 @@ class AppLocalizationsSl extends AppLocalizations { String get settings_telemetryEnvironmentMode => 'Način delovanja okolja telemetrije'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => 'Lokacija oglasa'; @@ -523,6 +577,10 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_multiAck => 'Več potrdil'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'Način telemetrije posodobljen'; @@ -640,6 +698,13 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_presets => 'Prednastavitve'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => 'Frekvenca (MHz)'; @@ -662,7 +727,9 @@ class AppLocalizationsSl extends AppLocalizations { String get settings_txPower => 'TX Moč (dBm)'; @override - String get settings_txPowerHelper => '0 – 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => 'Neveljavna TX moč (0-22 dBm)'; @@ -670,6 +737,11 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_clientRepeat => 'Neovadno ponavljanje'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'Omogočite temu naprave, da ponavlja paketne sporočila za druge.'; @@ -764,6 +836,39 @@ class AppLocalizationsSl extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 - 4 bite'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => 'Omogoči sledenje sporočilom'; @@ -798,6 +903,13 @@ class AppLocalizationsSl extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => 'Pokaži obvestilo ob prejemu novih sporočil.'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'Obvestila o sporočilih kanala'; @@ -1084,6 +1196,29 @@ class AppLocalizationsSl extends AppLocalizations { return 'Izbrišem $contactName iz stikov?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'Upravljaj Ponovitve'; @@ -1233,6 +1368,18 @@ class AppLocalizationsSl extends AppLocalizations { @override String get channels_private => 'Zasebni'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'Uredi kanal'; @@ -1436,6 +1583,19 @@ class AppLocalizationsSl extends AppLocalizations { @override String get channels_clearRegion => 'Jasna regija'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'Še ni sporočil.'; @@ -1495,6 +1655,12 @@ class AppLocalizationsSl extends AppLocalizations { @override String get chat_sendGif => 'Pošlji GIF'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'Pošlji sliko prek MeshCore'; @@ -1802,6 +1968,9 @@ class AppLocalizationsSl extends AppLocalizations { @override String get chat_path => 'Pot'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => 'Ključ javnega tipa'; @@ -1839,6 +2008,12 @@ class AppLocalizationsSl extends AppLocalizations { @override String get chat_newMessages => 'Nove novice'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => 'Odpreti povezavo?'; @@ -1884,6 +2059,9 @@ class AppLocalizationsSl extends AppLocalizations { @override String get map_centerOnNode => 'Centriraj na vozlišče'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => 'Podrobnosti'; @@ -1903,6 +2081,10 @@ class AppLocalizationsSl extends AppLocalizations { String get map_noNodesWithLocation => 'Nihče od notranjih elementov nima podatkov o lokaciji.'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'Omrežje morajo deliti svoje GPS koordinate,\nda se prikazao na zemljeobrazniku.'; @@ -2044,6 +2226,16 @@ class AppLocalizationsSl extends AppLocalizations { @override String get map_showGuessedLocations => 'Pokaži lokacije domnevnih not.'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Prikaži odkritja kontaktov'; @@ -2065,6 +2257,9 @@ class AppLocalizationsSl extends AppLocalizations { @override String get map_manageRepeater => 'Upravljajte Ponovitve'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'Pritisnite na vozlišča, da jih dodate poti.'; @@ -2271,6 +2466,12 @@ class AppLocalizationsSl extends AppLocalizations { @override String get login_enterPassword => 'Vnesite geslo'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'Shrani geslo'; @@ -2286,6 +2487,9 @@ class AppLocalizationsSl extends AppLocalizations { String get login_roomDescription => 'Vnesite geslo v sobo za dostop do nastavitev in statusa.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => 'Usmerjanje'; @@ -2324,6 +2528,9 @@ class AppLocalizationsSl extends AppLocalizations { @override String get common_clear => 'Ponoviti'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => 'Trenutna pot'; @@ -2349,6 +2556,12 @@ class AppLocalizationsSl extends AppLocalizations { @override String get repeater_guestTools => 'Naložila za goste'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'Stanje'; @@ -2871,6 +3084,17 @@ class AppLocalizationsSl extends AppLocalizations { String get repeater_refreshPrivacyMode => 'Ponovno aktiviraj način zasebnosti'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label je bil/a posodobljen/a'; @@ -4438,6 +4662,10 @@ class AppLocalizationsSl extends AppLocalizations { @override String get snrIndicator_lastSeen => 'Zadnjič videno'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => 'Nastavitve stikov'; @@ -4542,6 +4770,12 @@ class AppLocalizationsSl extends AppLocalizations { @override String get radioStats_screenTitle => 'Radijske statistike'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'Povežite se z napravo, da si ogledate statistiko o radiju.'; @@ -4932,6 +5166,25 @@ class AppLocalizationsSl extends AppLocalizations { String get imageSend_cropNote => 'Zadovoljno izmenjeno na 512 × 512 · vzorovni odnos ne ohranjen'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => 'Original text:\n\nThe early bird catches the worm.\n\nTranslation:\n\nPojdi prvi, zlati v kroku.'; @@ -5102,6 +5355,29 @@ class AppLocalizationsSl extends AppLocalizations { @override String get receivedImage_tapToProcess => 'Kliknij za obravnavanje'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_sv.dart b/lib/l10n/app_localizations_sv.dart index a3ed0fd2..33e5dc91 100644 --- a/lib/l10n/app_localizations_sv.dart +++ b/lib/l10n/app_localizations_sv.dart @@ -110,6 +110,39 @@ class AppLocalizationsSv extends AppLocalizations { @override String get messageStatus_repeated => 'Hördes upprepade gånger'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'Aktivera URL-bilder'; @@ -382,6 +415,23 @@ class AppLocalizationsSv extends AppLocalizations { @override String get settings_regionSettingsSubtitle => 'Hämtade regioner'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => 'Regionhantering'; @@ -502,6 +552,10 @@ class AppLocalizationsSv extends AppLocalizations { @override String get settings_telemetryEnvironmentMode => 'Telemetriläge för miljö'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => 'Annonsplacering'; @@ -519,6 +573,10 @@ class AppLocalizationsSv extends AppLocalizations { @override String get settings_multiAck => 'Flera bekräftelser'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'Telemetri-läge uppdaterat'; @@ -636,6 +694,13 @@ class AppLocalizationsSv extends AppLocalizations { @override String get settings_presets => 'Fördefinierade inställningar'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => 'Frekvens (MHz)'; @@ -658,7 +723,9 @@ class AppLocalizationsSv extends AppLocalizations { String get settings_txPower => 'TX-effekt (dBm)'; @override - String get settings_txPowerHelper => '0 – 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => 'Ogiltig TX-effekt (0-22 dBm)'; @@ -666,6 +733,11 @@ class AppLocalizationsSv extends AppLocalizations { @override String get settings_clientRepeat => 'Upprepa utan elnät'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'Låt enheten repetera nätpaket för andra användare.'; @@ -760,6 +832,39 @@ class AppLocalizationsSv extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 - 4 byte'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => 'Aktivera meddelandespårning'; @@ -794,6 +899,13 @@ class AppLocalizationsSv extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => 'Visa en notifiering när nya meddelanden tas emot'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'Kanalnotifieringar'; @@ -1078,6 +1190,29 @@ class AppLocalizationsSv extends AppLocalizations { return 'Ta bort $contactName från kontakter?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'Hantera repeater'; @@ -1226,6 +1361,18 @@ class AppLocalizationsSv extends AppLocalizations { @override String get channels_private => 'Privat'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'Redigera kanal'; @@ -1427,6 +1574,19 @@ class AppLocalizationsSv extends AppLocalizations { @override String get channels_clearRegion => 'Rensa region'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'Inga meddelanden ännu'; @@ -1487,6 +1647,12 @@ class AppLocalizationsSv extends AppLocalizations { @override String get chat_sendGif => 'Skicka GIF'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'Skicka bild via MeshCore'; @@ -1795,6 +1961,9 @@ class AppLocalizationsSv extends AppLocalizations { @override String get chat_path => 'Rutt'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => 'Publik nyckel'; @@ -1832,6 +2001,12 @@ class AppLocalizationsSv extends AppLocalizations { @override String get chat_newMessages => 'Nya meddelanden'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => 'Öppna länk?'; @@ -1877,6 +2052,9 @@ class AppLocalizationsSv extends AppLocalizations { @override String get map_centerOnNode => 'Centrera på nod'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => 'Detaljer'; @@ -1895,6 +2073,10 @@ class AppLocalizationsSv extends AppLocalizations { @override String get map_noNodesWithLocation => 'Inga noder med platsinformation'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'Noder måste dela sina GPS-koordinater\nför att visas på kartan'; @@ -2037,6 +2219,16 @@ class AppLocalizationsSv extends AppLocalizations { String get map_showGuessedLocations => 'Visa upp de antagna nodernas placeringar'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Visa Discovery-kontakter'; @@ -2058,6 +2250,9 @@ class AppLocalizationsSv extends AppLocalizations { @override String get map_manageRepeater => 'Hantera repeater'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'Tryck på noder för att lägga till dem i rutten.'; @@ -2261,6 +2456,12 @@ class AppLocalizationsSv extends AppLocalizations { @override String get login_enterPassword => 'Ange lösenord'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'Spara lösenord'; @@ -2276,6 +2477,9 @@ class AppLocalizationsSv extends AppLocalizations { String get login_roomDescription => 'Ange rummets lösenord för att komma åt inställningar och status.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => 'Ruttning'; @@ -2314,6 +2518,9 @@ class AppLocalizationsSv extends AppLocalizations { @override String get common_clear => 'Rensa'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => 'Aktuell rutt'; @@ -2339,6 +2546,12 @@ class AppLocalizationsSv extends AppLocalizations { @override String get repeater_guestTools => 'Gästverktyg'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'Status'; @@ -2859,6 +3072,17 @@ class AppLocalizationsSv extends AppLocalizations { @override String get repeater_refreshPrivacyMode => 'Uppdatera privatläge'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label har uppdaterats'; @@ -4414,6 +4638,10 @@ class AppLocalizationsSv extends AppLocalizations { @override String get snrIndicator_lastSeen => 'Senast sedd'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => 'Kontaktinställningar'; @@ -4518,6 +4746,12 @@ class AppLocalizationsSv extends AppLocalizations { @override String get radioStats_screenTitle => 'Radiostatistik'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'Anslut till en enhet för att visa radiostatistik.'; @@ -4905,6 +5139,25 @@ class AppLocalizationsSv extends AppLocalizations { String get imageSend_cropNote => 'Storleksändrad till 512 × 512 · bildförhållandet bevaras inte'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => 'Original'; @@ -5074,6 +5327,29 @@ class AppLocalizationsSv extends AppLocalizations { @override String get receivedImage_tapToProcess => 'Tryck för att bearbeta'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_uk.dart b/lib/l10n/app_localizations_uk.dart index aa6c5d2e..cc7c9d76 100644 --- a/lib/l10n/app_localizations_uk.dart +++ b/lib/l10n/app_localizations_uk.dart @@ -110,6 +110,39 @@ class AppLocalizationsUk extends AppLocalizations { @override String get messageStatus_repeated => 'Почув неодноразово'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => 'Показувати зображення за URL'; @@ -384,6 +417,23 @@ class AppLocalizationsUk extends AppLocalizations { @override String get settings_regionSettingsSubtitle => 'Управляти збережених регіонів'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => 'Рégіональний управління'; @@ -505,6 +555,10 @@ class AppLocalizationsUk extends AppLocalizations { @override String get settings_telemetryEnvironmentMode => 'Режим середовища телеметрії'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => 'Геопозиція в оголошенні'; @@ -523,6 +577,10 @@ class AppLocalizationsUk extends AppLocalizations { @override String get settings_multiAck => 'Багато підтверджень'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => 'Режим телеметрії оновлено'; @@ -644,6 +702,13 @@ class AppLocalizationsUk extends AppLocalizations { @override String get settings_presets => 'Попередні налаштування'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => 'Частота (МГц)'; @@ -666,7 +731,9 @@ class AppLocalizationsUk extends AppLocalizations { String get settings_txPower => 'Потужність TX (дБм)'; @override - String get settings_txPowerHelper => '0 - 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => 'Некоректна потужність TX (0-22 дБм)'; @@ -674,6 +741,11 @@ class AppLocalizationsUk extends AppLocalizations { @override String get settings_clientRepeat => 'Автономна система'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => 'Дозвольте цьому пристрою повторювати пакети даних для інших пристроїв.'; @@ -768,6 +840,39 @@ class AppLocalizationsUk extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 - 4 байта'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => 'Увімкнути відстеження повідомлень'; @@ -803,6 +908,13 @@ class AppLocalizationsUk extends AppLocalizations { String get appSettings_messageNotificationsSubtitle => 'Показувати сповіщення при отриманні нових повідомлень'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => 'Сповіщення каналів'; @@ -1090,6 +1202,29 @@ class AppLocalizationsUk extends AppLocalizations { return 'Видалити $contactName з контактів?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => 'Керувати ретранслятором'; @@ -1240,6 +1375,18 @@ class AppLocalizationsUk extends AppLocalizations { @override String get channels_private => 'Приватний'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => 'Редагувати канал'; @@ -1441,6 +1588,19 @@ class AppLocalizationsUk extends AppLocalizations { @override String get channels_clearRegion => 'Чистя зона'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => 'Поки немає повідомлень.'; @@ -1500,6 +1660,12 @@ class AppLocalizationsUk extends AppLocalizations { @override String get chat_sendGif => 'Надіслати GIF'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => 'Надіслати зображення через MeshCore'; @@ -1814,6 +1980,9 @@ class AppLocalizationsUk extends AppLocalizations { @override String get chat_path => 'Шлях'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => 'Відкритий ключ'; @@ -1851,6 +2020,12 @@ class AppLocalizationsUk extends AppLocalizations { @override String get chat_newMessages => 'Нові повідомлення'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => 'Відкрити посилання?'; @@ -1896,6 +2071,9 @@ class AppLocalizationsUk extends AppLocalizations { @override String get map_centerOnNode => 'Центрувати на вузлі'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => 'Деталі'; @@ -1914,6 +2092,10 @@ class AppLocalizationsUk extends AppLocalizations { @override String get map_noNodesWithLocation => 'Немає вузлів з даними про геопозицію'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => 'Вузли мають надавати свої GPS координати,\nщоб з\'явитись на карті.'; @@ -2056,6 +2238,16 @@ class AppLocalizationsUk extends AppLocalizations { String get map_showGuessedLocations => 'Показати геопозиції передбачених вузлів'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => 'Показати виявлені контакти'; @@ -2077,6 +2269,9 @@ class AppLocalizationsUk extends AppLocalizations { @override String get map_manageRepeater => 'Керувати ретранслятором'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => 'Натисніть на вузли, щоб додати їх до шляху'; @@ -2280,6 +2475,12 @@ class AppLocalizationsUk extends AppLocalizations { @override String get login_enterPassword => 'Введіть пароль'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => 'Зберегти пароль'; @@ -2295,6 +2496,9 @@ class AppLocalizationsUk extends AppLocalizations { String get login_roomDescription => 'Введіть пароль кімнати для доступу до налаштувань та статусу.'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => 'Маршрутизація'; @@ -2333,6 +2537,9 @@ class AppLocalizationsUk extends AppLocalizations { @override String get common_clear => 'Очистити'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => 'Поточний шлях'; @@ -2358,6 +2565,12 @@ class AppLocalizationsUk extends AppLocalizations { @override String get repeater_guestTools => 'Гостьові інструменти'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => 'Статус'; @@ -2887,6 +3100,17 @@ class AppLocalizationsUk extends AppLocalizations { @override String get repeater_refreshPrivacyMode => 'Оновити режим приватності'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label оновлено'; @@ -4468,6 +4692,10 @@ class AppLocalizationsUk extends AppLocalizations { @override String get snrIndicator_lastSeen => 'Останній раз бачили'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => 'Налаштування контактів'; @@ -4575,6 +4803,12 @@ class AppLocalizationsUk extends AppLocalizations { @override String get radioStats_screenTitle => 'Статистика радіо'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => 'Підключіться до пристрою, щоб переглядати статистику радіо.'; @@ -4968,6 +5202,25 @@ class AppLocalizationsUk extends AppLocalizations { String get imageSend_cropNote => 'Манітовано до 512 × 512 · соотношення варість не зберігається'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => 'Оригінал'; @@ -5140,6 +5393,29 @@ class AppLocalizationsUk extends AppLocalizations { @override String get receivedImage_tapToProcess => 'Кликніть для обробки'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart index eb799f1c..e04d4800 100644 --- a/lib/l10n/app_localizations_zh.dart +++ b/lib/l10n/app_localizations_zh.dart @@ -110,6 +110,39 @@ class AppLocalizationsZh extends AppLocalizations { @override String get messageStatus_repeated => '多次听到'; + @override + String get messageStatus_failedChannel => + 'Your radio couldn\'t send this message.'; + + @override + String messageStatus_resending(int resends, int maxResends) { + return 'Not heard through enough repeaters yet. Resent $resends of $maxResends times.'; + } + + @override + String messageStatus_hopsNotReached(int hops, int required) { + return 'Sent, but only heard back through $hops of $required repeaters. It may still have gone further than your radio can hear.'; + } + + @override + String get messageStatus_sentChannel => + 'Sent. Channels don\'t confirm delivery, so this only means your radio sent it.'; + + @override + String get messageStatus_sentDirect => + 'Sent. Waiting for the contact to confirm.'; + + @override + String messageStatus_heardRepeatedCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: 'once', + ); + return 'Heard repeated $_temp0. Nearby repeaters passed it on.'; + } + @override String get urlImage_enable => '启用URL图片'; @@ -365,6 +398,23 @@ class AppLocalizationsZh extends AppLocalizations { @override String get settings_regionSettingsSubtitle => '管理已存储的区域'; + @override + String get settings_regionEmptyExplanation => + 'Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.'; + + @override + String get settings_regionFetchFromRepeaters => 'Fetch from repeaters'; + + @override + String get settings_regionDefault => 'Default region'; + + @override + String get settings_regionDefaultSubtitle => + 'Used by channels without their own region'; + + @override + String get settings_regionDefaultNone => 'None'; + @override String get settings_regionManagement_screenTitle => '区域管理'; @@ -478,6 +528,10 @@ class AppLocalizationsZh extends AppLocalizations { @override String get settings_telemetryEnvironmentMode => '遥测环境模式'; + @override + String get settings_telemetryPerContactHint => + 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + @override String get settings_advertLocation => '广播位置'; @@ -494,6 +548,10 @@ class AppLocalizationsZh extends AppLocalizations { @override String get settings_multiAck => '多重ACK'; + @override + String get settings_multiAckSubtitle => + 'Send extra ACKs for better delivery; uses more airtime'; + @override String get settings_telemetryModeUpdated => '遥测模式已更新'; @@ -607,6 +665,13 @@ class AppLocalizationsZh extends AppLocalizations { @override String get settings_presets => '预设'; + @override + String get settings_presetCustom => 'Custom'; + + @override + String get settings_radioMatchWarning => + 'All nodes you talk to must use the same frequency, bandwidth, SF and CR.'; + @override String get settings_frequency => '频率 (MHz)'; @@ -629,7 +694,9 @@ class AppLocalizationsZh extends AppLocalizations { String get settings_txPower => 'TX 功率 (dBm)'; @override - String get settings_txPowerHelper => '0 - 22'; + String settings_txPowerRangeHelper(int min, int max) { + return '$min to $max dBm'; + } @override String get settings_txPowerInvalid => '无效的发射功率(0-22 dBm)'; @@ -637,6 +704,11 @@ class AppLocalizationsZh extends AppLocalizations { @override String get settings_clientRepeat => '离网重复'; + @override + String settings_clientRepeatFrequencyNote(String freq) { + return 'Frequency set to $freq MHz for off-grid repeat'; + } + @override String get settings_clientRepeatSubtitle => '允许此设备重复发送网状数据包给其他设备'; @@ -730,6 +802,39 @@ class AppLocalizationsZh extends AppLocalizations { @override String get repeater_pathHashModeOption3 => '3 - 4 字节'; + @override + String get settings_pathHashModeHelper => + 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + + @override + String settings_requiresFirmware(String version) { + return 'Requires firmware $version or newer'; + } + + @override + String get appSettings_channelMinHops => + 'Resend channel messages until they travel far enough'; + + @override + String get appSettings_channelMinHopsSubtitle => + 'If your message isn\'t heard coming back through enough repeaters, send it again. Uses more airtime.'; + + @override + String appSettings_channelMinHopsCount(int count) { + return 'Required hops: $count'; + } + + @override + String appSettings_channelMinHopsRetries(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count times', + one: '1 time', + ); + return 'Resend up to $_temp0'; + } + @override String get appSettings_enableMessageTracing => '启用消息追踪'; @@ -760,6 +865,13 @@ class AppLocalizationsZh extends AppLocalizations { @override String get appSettings_messageNotificationsSubtitle => '收到新消息时显示通知'; + @override + String get appSettings_batteryOptimization => 'Background Activity'; + + @override + String get appSettings_batteryOptimizationSubtitle => + 'Set MeshCore Open to \"Don\'t optimize\" in battery settings so messages keep arriving in the background'; + @override String get appSettings_channelMessageNotifications => '频道消息通知'; @@ -1020,6 +1132,29 @@ class AppLocalizationsZh extends AppLocalizations { return '从联系人中移除 $contactName?'; } + @override + String get contacts_removeFromContacts => 'Remove from contacts'; + + @override + String contacts_removeFromContactsConfirm(String contactName) { + return '$contactName will move to Discovered contacts. Chat history will be deleted.'; + } + + @override + String get contacts_keepChatHistory => 'Keep chat history'; + + @override + String get contacts_remove => 'Remove'; + + @override + String contacts_discoveredNearby(int count) { + return 'Discovered nearby ($count)'; + } + + @override + String get contacts_noContactsDiscoveredHint => + 'Nodes your radio hears but hasn\'t added yet are listed in Discovered contacts'; + @override String get contacts_manageRepeater => '管理转发节点'; @@ -1166,6 +1301,18 @@ class AppLocalizationsZh extends AppLocalizations { @override String get channels_private => '私有'; + @override + String get channels_hashtag => 'Hashtag'; + + @override + String get channels_addSectionJoin => 'Join existing'; + + @override + String get channels_addSectionCreate => 'Create new'; + + @override + String get channels_dragToReorder => 'Drag to reorder'; + @override String get channels_editChannel => '编辑频道'; @@ -1361,6 +1508,19 @@ class AppLocalizationsZh extends AppLocalizations { @override String get channels_clearRegion => '无碍区域'; + @override + String get channels_regionDefaultSuffix => '(default)'; + + @override + String get channels_regionSelectExplanation => + 'Flood messages on this channel will only be forwarded by repeaters in the selected region.'; + + @override + String get channels_regionEmpty => 'No regions yet.'; + + @override + String get channels_manageRegions => 'Manage regions'; + @override String get chat_noMessages => '暂无消息'; @@ -1419,6 +1579,12 @@ class AppLocalizationsZh extends AppLocalizations { @override String get chat_sendGif => '发送 GIF'; + @override + String get chat_removeGif => 'Remove GIF'; + + @override + String get chat_cancelReply => 'Cancel reply'; + @override String get chat_sendImageLora => '通过 MeshCore 发送图片'; @@ -1711,6 +1877,9 @@ class AppLocalizationsZh extends AppLocalizations { @override String get chat_path => '路径'; + @override + String get chat_viewPathOnMap => 'View path on map'; + @override String get chat_publicKey => '公钥'; @@ -1748,6 +1917,12 @@ class AppLocalizationsZh extends AppLocalizations { @override String get chat_newMessages => '新的消息'; + @override + String get chat_today => 'Today'; + + @override + String get chat_yesterday => 'Yesterday'; + @override String get chat_openLink => '打开链接?'; @@ -1792,6 +1967,9 @@ class AppLocalizationsZh extends AppLocalizations { @override String get map_centerOnNode => '以节点为中心'; + @override + String get map_centerOnMe => 'Center on my location'; + @override String get map_details => '详细信息'; @@ -1810,6 +1988,10 @@ class AppLocalizationsZh extends AppLocalizations { @override String get map_noNodesWithLocation => '没有包含位置信息的节点'; + @override + String get map_noNodesLocationHint => + 'No nodes with a recent location. Widen the time filter, or set your own location in Settings.'; + @override String get map_nodesNeedGps => '节点需要共享 GPS 坐标才能在地图上显示'; @@ -1948,6 +2130,16 @@ class AppLocalizationsZh extends AppLocalizations { @override String get map_showGuessedLocations => '显示猜测的节点位置'; + @override + String get map_clusterNodes => 'Group nearby nodes'; + + @override + String get map_groupChip => 'Group'; + + @override + String get map_clusterNodesSubtitle => + 'When zoomed out, show nearby nodes as one numbered circle'; + @override String get map_showDiscoveryContacts => '显示发现联系人'; @@ -1969,6 +2161,9 @@ class AppLocalizationsZh extends AppLocalizations { @override String get map_manageRepeater => '管理转发节点'; + @override + String get map_manageServer => 'Manage Server'; + @override String get map_tapToAdd => '点击节点以添加到路径'; @@ -2168,6 +2363,12 @@ class AppLocalizationsZh extends AppLocalizations { @override String get login_enterPassword => '请输入密码'; + @override + String get login_showPassword => 'Show password'; + + @override + String get login_hidePassword => 'Hide password'; + @override String get login_savePassword => '保存密码'; @@ -2180,6 +2381,9 @@ class AppLocalizationsZh extends AppLocalizations { @override String get login_roomDescription => '输入房间服务器密码以访问设置和状态。'; + @override + String get login_advanced => 'Advanced'; + @override String get login_routing => '路由'; @@ -2217,6 +2421,9 @@ class AppLocalizationsZh extends AppLocalizations { @override String get common_clear => '清除'; + @override + String get common_clearSearch => 'Clear search'; + @override String get path_currentPathLabel => '当前路径'; @@ -2241,6 +2448,12 @@ class AppLocalizationsZh extends AppLocalizations { @override String get repeater_guestTools => '访客工具'; + @override + String get repeater_roleAdmin => 'ADMIN'; + + @override + String get repeater_roleGuest => 'GUEST'; + @override String get repeater_status => '状态'; @@ -2730,6 +2943,17 @@ class AppLocalizationsZh extends AppLocalizations { @override String get repeater_refreshPrivacyMode => '刷新隐私模式'; + @override + String get repeater_refreshAll => 'Refresh all'; + + @override + String get repeater_settingsNotLoaded => + 'Settings haven\'t been loaded from this repeater yet.'; + + @override + String get repeater_settingsLoadIncomplete => + 'Some settings could not be loaded. Use the refresh buttons to retry.'; + @override String repeater_refreshed(String label) { return '$label 已刷新'; @@ -4129,6 +4353,10 @@ class AppLocalizationsZh extends AppLocalizations { @override String get snrIndicator_lastSeen => '最近访问'; + @override + String get snrIndicator_nearByRepeatersDescription => + 'Repeaters your radio heard directly, most recently heard first.'; + @override String get contactsSettings_title => '联系人设置'; @@ -4221,6 +4449,12 @@ class AppLocalizationsZh extends AppLocalizations { @override String get radioStats_screenTitle => '广播统计数据'; + @override + String get radioStats_sectionSignal => 'Signal'; + + @override + String get radioStats_sectionAirtime => 'Airtime'; + @override String get radioStats_notConnected => '连接到设备以查看收音机统计信息。'; @@ -4590,6 +4824,25 @@ class AppLocalizationsZh extends AppLocalizations { @override String get imageSend_cropNote => '调整大小至512 × 512 · 宽高比未保留'; + @override + String imageSend_lossyNote(int bytes) { + return 'Compressed to about $bytes bytes. The receiver\'s model reconstructs it, so details will differ.'; + } + + @override + String get imageSend_viewOriginal => 'Original'; + + @override + String get imageSend_viewReconstruction => 'What recipients see'; + + @override + String get imageSend_reconstructionUnavailable => + 'This device can\'t preview the reconstruction.'; + + @override + String get imageSend_modelNotDownloaded => + 'The image model isn\'t downloaded yet. Download it in Settings to send images.'; + @override String get imageSend_originalSize => '原文'; @@ -4752,6 +5005,29 @@ class AppLocalizationsZh extends AppLocalizations { @override String get receivedImage_tapToProcess => '点击处理'; + @override + String get receivedImage_save => 'Save image'; + + @override + String receivedImage_shareCaption(int bytes) { + return 'AI-reconstructed from $bytes bytes; fine detail is generated, not transmitted.'; + } + + @override + String get receivedImage_packetInfo => 'Packet info'; + + @override + String get receivedImage_parityRecovered => + 'One packet was rebuilt from the recovery packet.'; + + @override + String receivedImage_decodeTime(int ms) { + return 'Reconstructed in $ms ms'; + } + + @override + String get receivedImage_saveFailed => 'Couldn\'t save the image'; + @override String receivedImage_awaiting(int bytes, int packets) { String _temp0 = intl.Intl.pluralLogic( diff --git a/lib/models/app_settings.dart b/lib/models/app_settings.dart index dd93cfe0..85fd35a2 100644 --- a/lib/models/app_settings.dart +++ b/lib/models/app_settings.dart @@ -89,6 +89,7 @@ class AppSettings { final String mapKeyPrefix; final bool mapShowMarkers; final bool mapShowGuessedLocations; + final bool mapClusterNodes; final bool enableMessageTracing; final Map? mapCacheBounds; final int mapCacheMinZoom; @@ -108,6 +109,9 @@ class AppSettings { final double routeWeightSuccessIncrement; final double routeWeightFailureDecrement; final int maxMessageRetries; + final bool channelMinHopsEnabled; + final int channelMinHops; + final int channelMinHopsRetries; final String themeMode; final String? languageOverride; // null = system default final bool appDebugLogEnabled; @@ -186,12 +190,13 @@ class AppSettings { this.mapShowChatNodes = true, this.mapShowOtherNodes = true, this.mapShowOverlaps = false, - this.mapTimeFilterHours = 0, // Default to all time + this.mapTimeFilterHours = 168, this.mapKeyPrefixEnabled = false, this.mapKeyPrefix = '', this.mapShowMarkers = true, this.mapShowGuessedLocations = true, - this.enableMessageTracing = true, + this.mapClusterNodes = true, + this.enableMessageTracing = false, this.mapCacheBounds, this.mapCacheMinZoom = 10, this.mapCacheMaxZoom = 15, @@ -210,6 +215,9 @@ class AppSettings { this.routeWeightSuccessIncrement = 0.5, this.routeWeightFailureDecrement = 0.2, this.maxMessageRetries = 5, + this.channelMinHopsEnabled = false, + this.channelMinHops = 2, + this.channelMinHopsRetries = 1, this.themeMode = 'system', this.languageOverride, this.appDebugLogEnabled = false, @@ -265,6 +273,7 @@ class AppSettings { 'map_key_prefix': mapKeyPrefix, 'map_show_markers': mapShowMarkers, 'map_show_guessed_locations': mapShowGuessedLocations, + 'map_cluster_nodes': mapClusterNodes, 'enable_message_tracing': enableMessageTracing, 'map_cache_bounds': mapCacheBounds, 'map_cache_min_zoom': mapCacheMinZoom, @@ -285,6 +294,9 @@ class AppSettings { 'route_weight_success_increment': routeWeightSuccessIncrement, 'route_weight_failure_decrement': routeWeightFailureDecrement, 'max_message_retries': maxMessageRetries, + 'channel_min_hops_enabled': channelMinHopsEnabled, + 'channel_min_hops': channelMinHops, + 'channel_min_hops_retries': channelMinHopsRetries, 'theme_mode': themeMode, 'language_override': languageOverride, 'app_debug_log_enabled': appDebugLogEnabled, @@ -336,13 +348,14 @@ class AppSettings { mapShowOtherNodes: json['map_show_other_nodes'] as bool? ?? true, mapShowOverlaps: json['map_show_overlaps'] as bool? ?? false, mapTimeFilterHours: - (json['map_time_filter_hours'] as num?)?.toDouble() ?? 0, + (json['map_time_filter_hours'] as num?)?.toDouble() ?? 168, mapKeyPrefixEnabled: json['map_key_prefix_enabled'] as bool? ?? false, mapKeyPrefix: json['map_key_prefix'] as String? ?? '', mapShowMarkers: json['map_show_markers'] as bool? ?? true, mapShowGuessedLocations: json['map_show_guessed_locations'] as bool? ?? true, - enableMessageTracing: json['enable_message_tracing'] as bool? ?? true, + mapClusterNodes: json['map_cluster_nodes'] as bool? ?? true, + enableMessageTracing: json['enable_message_tracing'] as bool? ?? false, mapCacheBounds: (json['map_cache_bounds'] as Map?)?.map( (key, value) => MapEntry(key.toString(), (value as num).toDouble()), ), @@ -370,6 +383,9 @@ class AppSettings { routeWeightFailureDecrement: (json['route_weight_failure_decrement'] as num?)?.toDouble() ?? 0.2, maxMessageRetries: json['max_message_retries'] as int? ?? 5, + channelMinHopsEnabled: json['channel_min_hops_enabled'] as bool? ?? false, + channelMinHops: json['channel_min_hops'] as int? ?? 2, + channelMinHopsRetries: json['channel_min_hops_retries'] as int? ?? 1, themeMode: json['theme_mode'] as String? ?? 'system', languageOverride: json['language_override'] as String?, appDebugLogEnabled: json['app_debug_log_enabled'] as bool? ?? false, @@ -477,6 +493,7 @@ class AppSettings { String? mapKeyPrefix, bool? mapShowMarkers, bool? mapShowGuessedLocations, + bool? mapClusterNodes, bool? enableMessageTracing, Object? mapCacheBounds = _unset, int? mapCacheMinZoom, @@ -496,6 +513,9 @@ class AppSettings { double? routeWeightSuccessIncrement, double? routeWeightFailureDecrement, int? maxMessageRetries, + bool? channelMinHopsEnabled, + int? channelMinHops, + int? channelMinHopsRetries, String? themeMode, Object? languageOverride = _unset, bool? appDebugLogEnabled, @@ -536,6 +556,7 @@ class AppSettings { mapShowMarkers: mapShowMarkers ?? this.mapShowMarkers, mapShowGuessedLocations: mapShowGuessedLocations ?? this.mapShowGuessedLocations, + mapClusterNodes: mapClusterNodes ?? this.mapClusterNodes, enableMessageTracing: enableMessageTracing ?? this.enableMessageTracing, mapCacheBounds: mapCacheBounds == _unset ? this.mapCacheBounds @@ -565,6 +586,11 @@ class AppSettings { routeWeightFailureDecrement: routeWeightFailureDecrement ?? this.routeWeightFailureDecrement, maxMessageRetries: maxMessageRetries ?? this.maxMessageRetries, + channelMinHopsEnabled: + channelMinHopsEnabled ?? this.channelMinHopsEnabled, + channelMinHops: channelMinHops ?? this.channelMinHops, + channelMinHopsRetries: + channelMinHopsRetries ?? this.channelMinHopsRetries, themeMode: themeMode ?? this.themeMode, languageOverride: languageOverride == _unset ? this.languageOverride diff --git a/lib/models/channel_message.dart b/lib/models/channel_message.dart index d497c35d..3f1421cc 100644 --- a/lib/models/channel_message.dart +++ b/lib/models/channel_message.dart @@ -242,6 +242,7 @@ class ChannelMessage { String? originalText, String? translatedLanguageCode, String? translationModelId, + ChannelMessage? replyTo, }) { return ChannelMessage( senderKey: null, @@ -250,6 +251,9 @@ class ChannelMessage { originalText: originalText, translatedLanguageCode: translatedLanguageCode, translationModelId: translationModelId, + replyToMessageId: replyTo?.messageId, + replyToSenderName: replyTo?.senderName, + replyToText: replyTo?.text, timestamp: DateTime.now(), isOutgoing: true, status: ChannelMessageStatus.pending, diff --git a/lib/screens/app_settings_screen.dart b/lib/screens/app_settings_screen.dart index e972c834..a38c4b38 100644 --- a/lib/screens/app_settings_screen.dart +++ b/lib/screens/app_settings_screen.dart @@ -9,11 +9,13 @@ import '../models/app_settings.dart'; import '../models/image_codec_support.dart'; import '../models/translation_support.dart'; import '../services/app_settings_service.dart'; +import '../services/background_service.dart'; import '../services/image_codec_service.dart'; import '../services/map_tile_cache_service.dart'; import '../services/notification_service.dart'; import '../services/translation_service.dart'; import '../theme/mesh_theme.dart'; +import '../utils/platform_info.dart'; import '../widgets/adaptive_app_bar_title.dart'; import '../widgets/mesh_ui.dart'; import '../widgets/sync_progress_overlay.dart'; @@ -320,6 +322,22 @@ class AppSettingsScreen extends StatelessWidget { ? (value) => settingsService.setNotifyOnNewMessage(value) : null, ), + if (PlatformInfo.isAndroid) ...[ + const Divider(height: 1, indent: 16), + ListTile( + contentPadding: const EdgeInsets.symmetric( + horizontal: 16, + vertical: 4, + ), + leading: const Icon(Icons.battery_saver_outlined, size: 20), + title: Text(context.l10n.appSettings_batteryOptimization), + subtitle: Text( + context.l10n.appSettings_batteryOptimizationSubtitle, + ), + trailing: const Icon(Icons.open_in_new, size: 18), + onTap: BackgroundService.openBatteryOptimizationSettings, + ), + ], const Divider(height: 1, indent: 16), SwitchListTile( contentPadding: const EdgeInsets.symmetric( @@ -610,6 +628,52 @@ class AppSettingsScreen extends StatelessWidget { }, ), const Divider(height: 1, indent: 16), + SwitchListTile( + contentPadding: const EdgeInsets.symmetric( + horizontal: 16, + vertical: 4, + ), + secondary: const Icon(Icons.cell_tower, size: 20), + title: Text(context.l10n.appSettings_channelMinHops), + subtitle: Text(context.l10n.appSettings_channelMinHopsSubtitle), + value: settingsService.settings.channelMinHopsEnabled, + onChanged: settingsService.setChannelMinHopsEnabled, + ), + if (settingsService.settings.channelMinHopsEnabled) ...[ + ListTile( + title: Text( + context.l10n.appSettings_channelMinHopsCount( + settingsService.settings.channelMinHops, + ), + ), + subtitle: Slider( + value: settingsService.settings.channelMinHops.toDouble(), + min: 1, + max: 8, + divisions: 7, + label: settingsService.settings.channelMinHops.toString(), + onChanged: (value) => + settingsService.setChannelMinHops(value.toInt()), + ), + ), + ListTile( + title: Text( + context.l10n.appSettings_channelMinHopsRetries( + settingsService.settings.channelMinHopsRetries, + ), + ), + subtitle: Slider( + value: settingsService.settings.channelMinHopsRetries.toDouble(), + min: 1, + max: 5, + divisions: 4, + label: settingsService.settings.channelMinHopsRetries.toString(), + onChanged: (value) => + settingsService.setChannelMinHopsRetries(value.toInt()), + ), + ), + ], + const Divider(height: 1, indent: 16), _ScrollIntoViewOnce( enabled: focusImageMessages, child: SwitchListTile( @@ -1557,7 +1621,11 @@ class AppSettingsScreen extends StatelessWidget { for (final model in settings.translationDownloadedModels) DropdownMenuItem( value: model.id, - child: Text(translationModelFriendlyName(model)), + child: Text( + translationModelFriendlyName(model), + maxLines: 1, + overflow: TextOverflow.ellipsis, + ), ), ], onChanged: settings.translationDownloadedModels.isEmpty @@ -1580,7 +1648,11 @@ class AppSettingsScreen extends StatelessWidget { for (final preset in translationPresetModels) DropdownMenuItem( value: preset.sourceUrl, - child: Text(translationModelFriendlyName(preset)), + child: Text( + translationModelFriendlyName(preset), + maxLines: 1, + overflow: TextOverflow.ellipsis, + ), ), ], onChanged: translationService.isBusy @@ -1741,6 +1813,7 @@ class AppSettingsScreen extends StatelessWidget { const SizedBox(height: 8), DropdownButtonFormField( initialValue: settingsService.settings.selectedCyr2latProfileId, + isExpanded: true, decoration: InputDecoration( labelText: context.l10n.channels_cyr2latSettingsSubheading, border: const OutlineInputBorder(), @@ -1748,7 +1821,11 @@ class AppSettingsScreen extends StatelessWidget { items: settingsService.settings.cyr2latProfiles.map((profile) { return DropdownMenuItem( value: profile.id, - child: Text(profile.name), + child: Text( + profile.name, + maxLines: 1, + overflow: TextOverflow.ellipsis, + ), ); }).toList(), onChanged: (value) { diff --git a/lib/screens/channel_chat_screen.dart b/lib/screens/channel_chat_screen.dart index 658f79dc..2373b30f 100644 --- a/lib/screens/channel_chat_screen.dart +++ b/lib/screens/channel_chat_screen.dart @@ -7,7 +7,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/scheduler.dart'; import 'package:flutter/services.dart'; import 'package:image_picker/image_picker.dart'; -import 'package:intl/intl.dart' hide TextDirection; import 'package:provider/provider.dart'; import '../connector/meshcore_connector.dart'; @@ -33,9 +32,11 @@ import '../services/image_chunk_transport.dart'; import '../services/image_codec_service.dart'; import '../services/received_image_store.dart'; import '../services/translation_service.dart'; +import '../utils/image_save.dart'; import '../utils/lora_airtime.dart'; import '../widgets/received_image_message.dart'; import '../widgets/byte_count_input.dart'; +import '../widgets/chat_day_separator.dart'; import '../widgets/empty_state.dart'; import '../widgets/chat_zoom_wrapper.dart'; import '../widgets/emoji_picker.dart'; @@ -98,10 +99,6 @@ class _ChannelChatScreenState extends State { bool _channelSkipNextBottomSnap = false; String? _unreadDividerMessageId; - String? _cachedFormatLocale; - late DateFormat _hmFormat; - late DateFormat _mdFormat; - @override void initState() { super.initState(); @@ -321,21 +318,32 @@ class _ChannelChatScreenState extends State { ), Consumer( builder: (context, connector, _) { - final unreadCount = connector - .getUnreadCountForChannelIndex( - widget.channel.index, - ); - final privacy = widget.channel.isPublicChannel - ? context.l10n.channels_public - : context.l10n.channels_private; - final region = connector.getChannelRegion( + final privacy = switch (Channel.getChannelType( + widget.channel, + _communityIndex, + )) { + ChannelType.public => context.l10n.channels_public, + ChannelType.hashtag => context.l10n.channels_hashtag, + ChannelType.private => context.l10n.channels_private, + ChannelType.communityPublic => + context.l10n.community_publicChannel, + ChannelType.communityHashtag => + context.l10n.community_hashtagChannel, + }; + final ownRegion = connector.getChannelRegion( widget.channel.index, ); + final region = connector.getEffectiveChannelRegion( + widget.channel.index, + ); + final defaultSuffix = ownRegion.isEmpty + ? ' ${context.l10n.channels_regionDefaultSuffix}' + : ''; final regionText = region.isNotEmpty - ? ' • ${context.l10n.channels_regionSetTo(region)}' + ? ' • ${context.l10n.channels_regionSetTo(region)}$defaultSuffix' : ''; return Text( - '$privacy • ${context.l10n.chat_unread(unreadCount)}$regionText', + '$privacy$regionText', overflow: TextOverflow.ellipsis, style: const TextStyle(fontSize: 12), ); @@ -513,10 +521,22 @@ class _ChannelChatScreenState extends State { row.image!, textScale, ); - if (isUnreadAnchor) { + final startsDay = + index == reversedRows.length - 1 || + !isSameChatDay( + reversedRows[index + 1].timestamp, + row.timestamp, + ); + if (isUnreadAnchor || startsDay) { return Column( mainAxisSize: MainAxisSize.min, - children: [const UnreadDivider(), bubble], + children: [ + if (startsDay) + ChatDaySeparator(day: row.timestamp), + if (isUnreadAnchor) + const UnreadDivider(), + bubble, + ], ); } return bubble; @@ -799,7 +819,7 @@ class _ChannelChatScreenState extends State { buildTextContent(), ], ), - if (enableTracing && displayPath.isNotEmpty) ...[ + if (displayPath.isNotEmpty) ...[ const SizedBox(height: 3), Padding( padding: gifId != null @@ -813,21 +833,25 @@ class _ChannelChatScreenState extends State { isDirect: (message.pathLength ?? -1) >= 0, hops: displayHopCount, ), - const SizedBox(width: 4), - Flexible( - child: Text( - context.l10n.channels_via( - _formatPathPrefixes( - displayPath, - displayPathHashWidth, + if (enableTracing) ...[ + const SizedBox(width: 4), + Flexible( + child: Text( + context.l10n.channels_via( + _formatPathPrefixes( + displayPath, + displayPathHashWidth, + ), + ), + maxLines: 2, + overflow: TextOverflow.ellipsis, + style: MeshTheme.mono( + fontSize: 9.5 * textScale, + color: metaColor, ), ), - style: MeshTheme.mono( - fontSize: 9.5 * textScale, - color: metaColor, - ), ), - ), + ], ], ), ), @@ -845,13 +869,15 @@ class _ChannelChatScreenState extends State { mainAxisSize: MainAxisSize.min, children: [ Text( - _formatTime(context, message.timestamp), + formatChatTime(context, message.timestamp), style: MeshTheme.mono( - fontSize: 10 * textScale, + fontSize: 12 * textScale, color: metaColor, ), ), - if (enableTracing && message.repeatCount > 0) ...[ + if (enableTracing && + !isOutgoing && + message.repeatCount > 0) ...[ const SizedBox(width: 6), Icon( Icons.repeat, @@ -862,7 +888,7 @@ class _ChannelChatScreenState extends State { Text( '${message.repeatCount}', style: MeshTheme.mono( - fontSize: 10 * textScale, + fontSize: 12 * textScale, color: metaColor, ), ), @@ -870,13 +896,16 @@ class _ChannelChatScreenState extends State { if (isOutgoing) ...[ const SizedBox(width: 4), MessageStatusIcon( - isAcked: - message.status == - ChannelMessageStatus.sent, - isRepeated: - message.status == - ChannelMessageStatus.sent && - displayPath.isNotEmpty, + size: 16 * textScale, + isAcked: false, + isChannel: true, + repeatCount: message.repeatCount, + resendProgress: context + .read() + .channelResendProgress(message.messageId), + hopShortfall: context + .read() + .channelHopShortfall(message.messageId), isPending: message.status == ChannelMessageStatus.pending, @@ -1224,16 +1253,37 @@ class _ChannelChatScreenState extends State { } } - /// Whether the image codec model is currently downloading. - /// - /// This must be read while [context] is building; popup item builders run - /// from an overlay and cannot listen to a provider. - bool _isImageCodecDownloading(BuildContext context) { - try { - return context.watch().isDownloading; - } on ProviderNotFoundException { - return false; + void _explainImageCodecNotReady(ImageCodecService codec) { + final l10n = context.l10n; + final availability = codec.availability; + final String message; + switch (availability) { + case ImageCodecAvailability.downloading: + message = l10n.imageSend_codecDownloading; + case ImageCodecAvailability.unavailable: + message = codec.unavailableReason ?? l10n.imageSend_codecUnavailable; + case ImageCodecAvailability.disabled: + message = codec.needsModelDownload + ? l10n.imageSend_modelNotDownloaded + : codec.statusReason ?? l10n.imageSend_codecDisabled; + case ImageCodecAvailability.ready: + return; } + showDismissibleSnackBar( + context, + content: Text(message), + action: availability == ImageCodecAvailability.disabled + ? SnackBarAction( + label: l10n.receivedImage_openSettings, + onPressed: () => Navigator.of(context).push( + MaterialPageRoute( + builder: (_) => + const AppSettingsScreen(focusImageMessages: true), + ), + ), + ) + : null, + ); } /// Takes no [BuildContext]: it uses the [State]'s own, so the `mounted` @@ -1241,6 +1291,10 @@ class _ChannelChatScreenState extends State { Future _showImageSendPreview() async { final codec = _imageCodec; if (codec == null) return; + if (codec.availability != ImageCodecAvailability.ready) { + _explainImageCodecNotReady(codec); + return; + } final connector = context.read(); // The picked bytes are kept past the preview on purpose: the sender's own @@ -1545,7 +1599,7 @@ class _ChannelChatScreenState extends State { final textColor = isOutgoing ? MeshPalette.meInk : scheme.onSurface; final metaColor = textColor.withValues(alpha: 0.65); - return Padding( + final bubble = Padding( padding: const EdgeInsets.symmetric(vertical: 3), child: Row( mainAxisAlignment: isOutgoing @@ -1612,9 +1666,9 @@ class _ChannelChatScreenState extends State { bottom: 4, ), child: Text( - _formatTime(context, entry.firstSeen), + formatChatTime(context, entry.firstSeen), style: MeshTheme.mono( - fontSize: 10 * textScale, + fontSize: 12 * textScale, color: metaColor, ), ), @@ -1626,6 +1680,123 @@ class _ChannelChatScreenState extends State { ], ), ); + return GestureDetector( + onLongPress: () => _showImageActions(entry), + onSecondaryTap: () => _showImageActions(entry), + child: bubble, + ); + } + + void _showImageActions(ReceivedImageEntry entry) { + final l10n = context.l10n; + final canSave = entry.state == ReceivedImageState.decoded; + showMeshSheet( + context, + builder: (sheetContext) => SafeArea( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + BottomSheetHeader( + title: l10n.receivedImage_awaiting( + entry.bitstreamByteCount, + entry.totalChunks, + ), + subtitle: _imageSenderLabel(entry), + ), + if (canSave) + ListTile( + leading: const Icon(Icons.save_alt), + title: Text(l10n.receivedImage_save), + onTap: () { + Navigator.pop(sheetContext); + _saveImage(entry); + }, + ), + ListTile( + leading: const Icon(Icons.info_outline), + title: Text(l10n.receivedImage_packetInfo), + onTap: () { + Navigator.pop(sheetContext); + _showImagePacketInfo(entry); + }, + ), + const Divider(height: 1), + ListTile( + leading: Icon( + Icons.delete_outline, + color: Theme.of(context).colorScheme.error, + ), + title: Text( + l10n.common_delete, + style: TextStyle(color: Theme.of(context).colorScheme.error), + ), + onTap: () async { + Navigator.pop(sheetContext); + await context.read().deleteImage( + entry.streamId, + ); + if (!mounted) return; + showDismissibleSnackBar( + context, + content: Text(l10n.chat_messageDeleted), + ); + }, + ), + const SizedBox(height: 8), + ], + ), + ), + ); + } + + Future _saveImage(ReceivedImageEntry entry) async { + final l10n = context.l10n; + final png = await context.read().ensurePng( + entry.streamId, + ); + if (!mounted) return; + final shareText = l10n.receivedImage_shareCaption(entry.bitstreamByteCount); + if (png == null || !await saveImagePng(png, entry, shareText: shareText)) { + if (!mounted) return; + showDismissibleSnackBar( + context, + content: Text(l10n.receivedImage_saveFailed), + ); + } + } + + void _showImagePacketInfo(ReceivedImageEntry entry) { + final l10n = context.l10n; + final decodeMs = entry.decodeMs; + showDialog( + context: context, + builder: (dialogContext) => AlertDialog( + title: Text(l10n.receivedImage_packetInfo), + content: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text(_imageSenderLabel(entry)), + Text(formatChatTime(context, entry.firstSeen)), + Text( + l10n.receivedImage_awaiting( + entry.bitstreamByteCount, + entry.totalChunks, + ), + ), + if (entry.recoveredWithParity) + Text(l10n.receivedImage_parityRecovered), + if (decodeMs != null) Text(l10n.receivedImage_decodeTime(decodeMs)), + ], + ), + actions: [ + TextButton( + onPressed: () => Navigator.pop(dialogContext), + child: Text(l10n.common_close), + ), + ], + ), + ); } /// GRP_DATA carries no sender name — only the 2-byte public-key prefix the @@ -1709,6 +1880,7 @@ class _ChannelChatScreenState extends State { ), IconButton( icon: const Icon(Icons.close, size: 18), + tooltip: context.l10n.chat_cancelReply, onPressed: _cancelReply, color: scheme.onSurfaceVariant, constraints: const BoxConstraints(minWidth: 44, minHeight: 44), @@ -1753,9 +1925,7 @@ class _ChannelChatScreenState extends State { final connector = context.watch(); final maxBytes = maxChannelMessageBytes(connector.selfName); final settings = context.watch().settings; - final imageCodecDownloading = _isImageCodecDownloading(context); - final showImageAction = - settings.imageMessagesEnabled && !imageCodecDownloading; + final showImageAction = settings.imageMessagesEnabled; final scheme = Theme.of(context).colorScheme; return Container( decoration: BoxDecoration( @@ -1811,13 +1981,6 @@ class _ChannelChatScreenState extends State { if (showImageAction) PopupMenuItem( value: 'meshcore-image', - // Gated on the codec, not just the setting. The preview - // sheet explains why a send is impossible, but a fully - // live button in a build that cannot encode invites the - // tap that produces that explanation. - enabled: - _imageCodec?.availability == - ImageCodecAvailability.ready, child: Row( children: [ const Icon(Icons.image_outlined), @@ -1872,6 +2035,7 @@ class _ChannelChatScreenState extends State { const SizedBox(width: 8), IconButton( icon: const Icon(Icons.close), + tooltip: context.l10n.chat_removeGif, onPressed: () { _textController.clear(); _textFieldFocusNode.requestFocus(); @@ -2055,6 +2219,7 @@ class _ChannelChatScreenState extends State { } // end transform + final replyTo = _replyingToMessage; _textController.clear(); _cancelReply(); _textFieldFocusNode.requestFocus(); @@ -2064,27 +2229,10 @@ class _ChannelChatScreenState extends State { originalText: originalText, translatedLanguageCode: translatedLanguageCode, translationModelId: translationModelId, + replyTo: replyTo, ); } - String _formatTime(BuildContext context, DateTime time) { - final now = DateTime.now(); - final diff = now.difference(time); - final locale = Localizations.localeOf(context).toString(); - if (locale != _cachedFormatLocale) { - _cachedFormatLocale = locale; - _hmFormat = DateFormat.Hm(locale); - _mdFormat = DateFormat.Md(locale); - } - final hm = _hmFormat.format(time); - - if (diff.inDays > 0) { - return '${_mdFormat.format(time)} $hm'; - } else { - return hm; - } - } - void _showMessagePathInfo(ChannelMessage message) { Navigator.push( context, @@ -2135,6 +2283,23 @@ class _ChannelChatScreenState extends State { _showMessagePathInfo(message); }, ), + if (message.pathBytes.isNotEmpty) + ListTile( + leading: const Icon(Icons.map_outlined), + title: Text(context.l10n.chat_viewPathOnMap), + onTap: () { + Navigator.pop(sheetContext); + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => ChannelMessagePathMapScreen( + message: message, + channelMessage: true, + ), + ), + ); + }, + ), // Can't react to your own messages if (!message.isOutgoing) ListTile( @@ -2344,57 +2509,77 @@ class _RegionSelectDialogState extends State<_RegionSelectDialog> { backgroundColor: Colors.transparent, title: Text(context.l10n.channels_regionSelect_Title), centerTitle: true, - actions: [ - IconButton( - tooltip: context.l10n.channels_clearRegion, - icon: const Icon(Icons.backspace_outlined), - onPressed: () { - context.read().setChannelRegion( - widget.channel.index, - '', + ), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 16), + child: Text( + context.l10n.channels_regionSelectExplanation, + style: Theme.of(context).textTheme.bodySmall, + ), + ), + const SizedBox(height: 8), + if (regions.isEmpty) + Padding( + padding: const EdgeInsets.all(24), + child: Text(context.l10n.channels_regionEmpty), + ) + else + Expanded( + child: ListView.builder( + itemCount: regions.length, + itemBuilder: (context, index) { + final selected = selectedIndex == index; + return ListTile( + leading: Icon( + Icons.landscape, + color: selected ? MeshPalette.blue : null, + ), + title: Text(regions[index]), + trailing: selected + ? const Icon(Icons.check, color: MeshPalette.blue) + : null, + tileColor: selected ? MeshPalette.blueBg : null, + onTap: () { + // Tapping the already-selected region clears it. + context.read().setChannelRegion( + widget.channel.index, + selected ? '' : regions[index], + ); + Navigator.pop(context); + }, ); - Navigator.pop(context); }, ), - IconButton( - tooltip: context.l10n.settings_regionSettingsSubtitle, - icon: const Icon(Icons.settings), + ), + Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + TextButton( + onPressed: + context + .read() + .getChannelRegion(widget.channel.index) + .isEmpty + ? null + : () { + context.read().setChannelRegion( + widget.channel.index, + '', + ); + Navigator.pop(context); + }, + child: Text(context.l10n.common_clear), + ), + TextButton( onPressed: () async { await pushRegionManagementScreen(context); if (!mounted) return; loadRegions(); }, + child: Text(context.l10n.channels_manageRegions), ), ], ), - const SizedBox(height: 15), - Expanded( - child: ListView.builder( - itemCount: regions.length, - itemBuilder: (context, index) { - final selected = selectedIndex == index; - return ListTile( - leading: Icon( - Icons.landscape, - color: selected ? MeshPalette.blue : null, - ), - title: Text(regions[index]), - trailing: selected - ? const Icon(Icons.check, color: MeshPalette.blue) - : null, - tileColor: selected ? MeshPalette.blueBg : null, - onTap: () { - // Tapping the already-selected region clears it. - context.read().setChannelRegion( - widget.channel.index, - selected ? '' : regions[index], - ); - Navigator.pop(context); - }, - ); - }, - ), - ), ], ), ), diff --git a/lib/screens/channels_screen.dart b/lib/screens/channels_screen.dart index fc4f4611..1abba59c 100644 --- a/lib/screens/channels_screen.dart +++ b/lib/screens/channels_screen.dart @@ -222,6 +222,7 @@ class _ChannelsScreenState extends State if (viewState.channelsSearchText.isNotEmpty) IconButton( icon: const Icon(Icons.clear), + tooltip: context.l10n.common_clearSearch, onPressed: () { _searchDebounce?.cancel(); _searchDebounce = null; @@ -403,7 +404,7 @@ class _ChannelsScreenState extends State iconColor = MeshPalette.signal; case ChannelType.hashtag: icon = Icons.tag; - iconColor = MeshPalette.blue; + iconColor = MeshPalette.warn; case ChannelType.private: icon = Icons.lock; iconColor = MeshPalette.blue; @@ -517,14 +518,18 @@ class _ChannelsScreenState extends State overflow: TextOverflow.ellipsis, ), ), - const SizedBox(width: 6), - Text( - 'CH ${channel.index}', - style: MeshTheme.mono( - fontSize: 11, - color: scheme.onSurfaceVariant.withValues(alpha: 0.7), + if (showDragHandle) ...[ + const SizedBox(width: 6), + Text( + 'CH ${channel.index}', + style: MeshTheme.mono( + fontSize: 11, + color: scheme.onSurfaceVariant.withValues( + alpha: 0.7, + ), + ), ), - ), + ], ], ), if (subtitle.isNotEmpty) ...[ @@ -585,17 +590,21 @@ class _ChannelsScreenState extends State ], ), if (showDragHandle && dragIndex != null) ...[ - const SizedBox(width: 4), ReorderableDragStartListener( index: dragIndex, - // Top-aligned with the "CH n" / time line. Bottom padding keeps - // a comfortable drag target without pushing the icon down. - child: Padding( - padding: const EdgeInsets.only(left: 8, right: 8, bottom: 16), - child: Icon( - Icons.drag_handle, - size: 18, - color: scheme.onSurfaceVariant, + child: MouseRegion( + cursor: SystemMouseCursors.grab, + child: Tooltip( + message: context.l10n.channels_dragToReorder, + child: SizedBox( + width: 48, + height: 48, + child: Icon( + Icons.drag_indicator, + size: 28, + color: scheme.onSurface, + ), + ), ), ), ), @@ -1463,24 +1472,7 @@ class _ChannelsScreenState extends State controller: scrollController, padding: const EdgeInsets.only(bottom: 24), children: [ - buildOptionCard( - optionIndex: 0, - icon: Icons.add, - title: sheetContext.l10n.channels_createPrivateChannel, - subtitle: - sheetContext.l10n.channels_createPrivateChannelDesc, - ), - if (selectedOption == 0) - buildExpandedContent(_channelMessageStore)!, - buildOptionCard( - optionIndex: 1, - icon: Icons.lock, - title: sheetContext.l10n.channels_joinPrivateChannel, - subtitle: - sheetContext.l10n.channels_joinPrivateChannelDesc, - ), - if (selectedOption == 1) - buildExpandedContent(_channelMessageStore)!, + SectionHeader(sheetContext.l10n.channels_addSectionJoin), if (!hasPublicChannel) ...[ buildOptionCard( optionIndex: 2, @@ -1501,6 +1493,15 @@ class _ChannelsScreenState extends State ), if (selectedOption == 3) buildExpandedContent(_channelMessageStore)!, + buildOptionCard( + optionIndex: 1, + icon: Icons.lock, + title: sheetContext.l10n.channels_joinPrivateChannel, + subtitle: + sheetContext.l10n.channels_joinPrivateChannelDesc, + ), + if (selectedOption == 1) + buildExpandedContent(_channelMessageStore)!, buildOptionCard( optionIndex: 4, icon: Icons.qr_code_scanner, @@ -1509,6 +1510,18 @@ class _ChannelsScreenState extends State ), if (selectedOption == 4) buildExpandedContent(_channelMessageStore)!, + SectionHeader( + sheetContext.l10n.channels_addSectionCreate, + ), + buildOptionCard( + optionIndex: 0, + icon: Icons.add, + title: sheetContext.l10n.channels_createPrivateChannel, + subtitle: + sheetContext.l10n.channels_createPrivateChannelDesc, + ), + if (selectedOption == 0) + buildExpandedContent(_channelMessageStore)!, buildOptionCard( optionIndex: 5, icon: Icons.groups, diff --git a/lib/screens/chat_screen.dart b/lib/screens/chat_screen.dart index da526264..30aac388 100644 --- a/lib/screens/chat_screen.dart +++ b/lib/screens/chat_screen.dart @@ -31,6 +31,7 @@ import '../services/path_history_service.dart'; import '../services/translation_service.dart'; import '../widgets/chat_zoom_wrapper.dart'; import '../widgets/byte_count_input.dart'; +import '../widgets/chat_day_separator.dart'; import 'channel_message_path_screen.dart'; import 'map_screen.dart'; import '../widgets/emoji_picker.dart'; @@ -189,10 +190,6 @@ class _ChatScreenState extends State { title: Consumer2( builder: (context, pathService, connector, _) { final contact = _resolveContact(connector); - final unreadCount = connector.getUnreadCountForContactKey( - widget.contact.publicKeyHex, - ); - final unreadLabel = context.l10n.chat_unread(unreadCount); final pathLabel = _currentPathLabel(contact); return Column( @@ -211,7 +208,7 @@ class _ChatScreenState extends State { child: Padding( padding: const EdgeInsets.symmetric(vertical: 6), child: Text( - '$pathLabel • $unreadLabel', + pathLabel, overflow: TextOverflow.ellipsis, style: const TextStyle( fontSize: 11, @@ -435,10 +432,20 @@ class _ChatScreenState extends State { final isUnreadAnchor = _unreadDividerMessageId != null && message.messageId == _unreadDividerMessageId; - final child = isUnreadAnchor + final startsDay = + messageIndex == reversedMessages.length - 1 || + !isSameChatDay( + reversedMessages[messageIndex + 1].timestamp, + message.timestamp, + ); + final child = isUnreadAnchor || startsDay ? Column( mainAxisSize: MainAxisSize.min, - children: [const UnreadDivider(), bubble], + children: [ + if (startsDay) ChatDaySeparator(day: message.timestamp), + if (isUnreadAnchor) const UnreadDivider(), + bubble, + ], ) : bubble; if (identical(message, _pendingUnreadScrollTarget)) { @@ -479,26 +486,10 @@ class _ChatScreenState extends State { child: Row( crossAxisAlignment: CrossAxisAlignment.center, children: [ - PopupMenuButton( - icon: const Icon(Icons.add_circle_outline), - position: PopupMenuPosition.over, - offset: const Offset(0, -64), - tooltip: context.l10n.chat_selectSendAction, - onSelected: (action) { - if (action == 'gif') _showGifPicker(context); - }, - itemBuilder: (context) => [ - PopupMenuItem( - value: 'gif', - child: Row( - children: [ - const Icon(Icons.gif_box), - const SizedBox(width: 12), - Text(context.l10n.chat_sendGif), - ], - ), - ), - ], + IconButton( + icon: const Icon(Icons.gif_box_outlined), + tooltip: context.l10n.chat_sendGif, + onPressed: () => _showGifPicker(context), ), if (settings.translationEnabled) MessageTranslationButton( @@ -546,6 +537,7 @@ class _ChatScreenState extends State { const SizedBox(width: 8), IconButton( icon: const Icon(Icons.close), + tooltip: context.l10n.chat_removeGif, onPressed: () { _textController.clear(); _textFieldFocusNode.requestFocus(); @@ -1121,7 +1113,11 @@ class _ChatScreenState extends State { ); } - void _openMessagePath(Message message, Contact contact) { + void _openMessagePath( + Message message, + Contact contact, { + bool openMap = false, + }) { final connector = context.read(); final fourByteHex = message.fourByteRoomContactKey .map((b) => b.toRadixString(16).padLeft(2, '0')) @@ -1153,7 +1149,9 @@ class _ChatScreenState extends State { Navigator.push( context, MaterialPageRoute( - builder: (context) => ChannelMessagePathScreen(message: pathMessage), + builder: (context) => openMap + ? ChannelMessagePathMapScreen(message: pathMessage) + : ChannelMessagePathScreen(message: pathMessage), ), ); } @@ -1197,6 +1195,15 @@ class _ChatScreenState extends State { _openMessagePath(message, contact); }, ), + if (message.pathBytes.isNotEmpty) + ListTile( + leading: const Icon(Icons.map_outlined), + title: Text(context.l10n.chat_viewPathOnMap), + onTap: () { + Navigator.pop(sheetContext); + _openMessagePath(message, contact, openMap: true); + }, + ), ListTile( leading: const Icon(Icons.copy), title: Text(context.l10n.common_copy), @@ -1628,16 +1635,16 @@ class _MessageBubble extends StatelessWidget { crossAxisAlignment: WrapCrossAlignment.center, children: [ Text( - _formatTime(message.timestamp), + formatChatTime(context, message.timestamp), style: MeshTheme.mono( - fontSize: 10 * textScale, + fontSize: 12 * textScale, color: metaColor, ), ), if (isOutgoing) ...[ const SizedBox(width: 2), MessageStatusIcon( - size: 12 * textScale, + size: 16 * textScale, onColor: metaColor, isAcked: message.status == @@ -1663,7 +1670,7 @@ class _MessageBubble extends StatelessWidget { Text( '${(message.tripTimeMs! / 1000).toStringAsFixed(1)}s', style: MeshTheme.mono( - fontSize: 9 * textScale, + fontSize: 11 * textScale, color: isOutgoing ? metaColor : scheme.tertiary, @@ -1842,12 +1849,6 @@ class _MessageBubble extends StatelessWidget { Widget _buildAvatar(String senderName) { return AvatarCircle(name: senderName, size: 32); } - - String _formatTime(DateTime time) { - final hour = time.hour.toString().padLeft(2, '0'); - final minute = time.minute.toString().padLeft(2, '0'); - return '$hour:$minute'; - } } /// Deterministic name-to-hue mapping consistent with [AvatarCircle]. diff --git a/lib/screens/companion_radio_stats_screen.dart b/lib/screens/companion_radio_stats_screen.dart index 0255ed02..5f300829 100644 --- a/lib/screens/companion_radio_stats_screen.dart +++ b/lib/screens/companion_radio_stats_screen.dart @@ -109,8 +109,8 @@ class _CompanionRadioStatsScreenState extends State { padding: const EdgeInsets.symmetric(vertical: 8), children: [ if (stats != null) ...[ - const SectionHeader( - 'Signal', + SectionHeader( + l10n.radioStats_sectionSignal, padding: EdgeInsets.fromLTRB(16, 16, 16, 8), ), MeshCard( @@ -144,8 +144,8 @@ class _CompanionRadioStatsScreenState extends State { ], ), ), - const SectionHeader( - 'Airtime', + SectionHeader( + l10n.radioStats_sectionAirtime, padding: EdgeInsets.fromLTRB(16, 16, 16, 8), ), MeshCard( diff --git a/lib/screens/contacts_screen.dart b/lib/screens/contacts_screen.dart index b6b8466b..f955ffe9 100644 --- a/lib/screens/contacts_screen.dart +++ b/lib/screens/contacts_screen.dart @@ -712,7 +712,7 @@ class _ContactsScreenState extends State return EmptyState( icon: Icons.people_outline, title: context.l10n.contacts_noContacts, - subtitle: context.l10n.contacts_contactsWillAppear, + subtitle: context.l10n.contacts_noContactsDiscoveredHint, action: FilledButton.icon( onPressed: () => Navigator.push( context, @@ -890,6 +890,20 @@ class _ContactsScreenState extends State ], ), ), + ListTile( + dense: true, + leading: const Icon(Icons.person_add_rounded), + title: Text( + context.l10n.contacts_discoveredNearby( + connector.discoveredContacts.where((c) => !c.isActive).length, + ), + ), + trailing: const Icon(Icons.chevron_right), + onTap: () => Navigator.push( + context, + MaterialPageRoute(builder: (context) => const DiscoveryScreen()), + ), + ), Expanded( child: RefreshIndicator( onRefresh: () => connector.getContacts(), @@ -930,6 +944,7 @@ class _ContactsScreenState extends State onTap: () => _openChat(context, contact), onLongPress: () => _showContactOptions(context, connector, contact), + onManage: _manageAction(context, contact), ); }, ), @@ -1055,6 +1070,17 @@ class _ContactsScreenState extends State } } + VoidCallback? _manageAction(BuildContext context, Contact contact) { + if (contact.type == advTypeRepeater) { + return () => _showRepeaterLogin(context, contact); + } + if (contact.type == advTypeRoom) { + return () => + _showRoomLogin(context, contact, RoomLoginDestination.management); + } + return null; + } + void _handleQuickSwitch(int index, BuildContext context) { if (index == 0) return; switch (index) { @@ -1513,7 +1539,7 @@ class _ContactsScreenState extends State color: Theme.of(context).colorScheme.error, ), title: Text( - context.l10n.contacts_deleteContact, + context.l10n.contacts_removeFromContacts, style: TextStyle(color: Theme.of(context).colorScheme.error), ), onTap: () { @@ -1543,27 +1569,46 @@ class _ContactsScreenState extends State MeshCoreConnector connector, Contact contact, ) { + var keepHistory = false; showDialog( context: context, - builder: (dialogContext) => AlertDialog( - title: Text(context.l10n.contacts_deleteContact), - content: Text(context.l10n.contacts_removeConfirm(contact.name)), - actions: [ - TextButton( - onPressed: () => Navigator.pop(dialogContext), - child: Text(context.l10n.common_cancel), + builder: (dialogContext) => StatefulBuilder( + builder: (dialogContext, setDialogState) => AlertDialog( + title: Text(context.l10n.contacts_removeFromContacts), + content: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + context.l10n.contacts_removeFromContactsConfirm(contact.name), + ), + CheckboxListTile( + contentPadding: EdgeInsets.zero, + controlAffinity: ListTileControlAffinity.leading, + value: keepHistory, + title: Text(context.l10n.contacts_keepChatHistory), + onChanged: (value) => + setDialogState(() => keepHistory = value ?? false), + ), + ], ), - TextButton( - onPressed: () { - Navigator.pop(dialogContext); - connector.removeContact(contact); - }, - child: Text( - context.l10n.common_delete, - style: TextStyle(color: Theme.of(context).colorScheme.error), + actions: [ + TextButton( + onPressed: () => Navigator.pop(dialogContext), + child: Text(context.l10n.common_cancel), ), - ), - ], + TextButton( + onPressed: () { + Navigator.pop(dialogContext); + connector.removeContact(contact, keepMessages: keepHistory); + }, + child: Text( + context.l10n.contacts_remove, + style: TextStyle(color: Theme.of(context).colorScheme.error), + ), + ), + ], + ), ), ); } @@ -1577,6 +1622,7 @@ class _ContactTile extends StatelessWidget { final bool isFavorite; final VoidCallback onTap; final VoidCallback onLongPress; + final VoidCallback? onManage; const _ContactTile({ required this.contact, @@ -1586,6 +1632,7 @@ class _ContactTile extends StatelessWidget { required this.isFavorite, required this.onTap, required this.onLongPress, + this.onManage, }); /// Node-type avatar color per design language. @@ -1622,9 +1669,6 @@ class _ContactTile extends StatelessWidget { final scheme = Theme.of(context).colorScheme; final emoji = firstEmoji(contact.name); final isChat = contact.type == advTypeChat; - final pathLen = contact.pathBytesForDisplay.length; - final isDirect = contact.pathLength >= 0; - final hasPath = pathLen > 0 || contact.pathLength == 0; return GestureDetector( onSecondaryTapUp: PlatformInfo.isDesktop ? (_) => onLongPress() : null, @@ -1712,13 +1756,6 @@ class _ContactTile extends StatelessWidget { ), ), ), - if (hasPath) ...[ - const SizedBox(width: 6), - RouteChip( - isDirect: isDirect, - hops: isDirect ? contact.pathLength : null, - ), - ], ], ), ], @@ -1757,6 +1794,15 @@ class _ContactTile extends StatelessWidget { ], ), ), + if (onManage != null) + IconButton( + icon: const Icon(Icons.admin_panel_settings_outlined), + tooltip: contact.type == advTypeRoom + ? context.l10n.room_management + : context.l10n.contacts_manageRepeater, + visualDensity: VisualDensity.compact, + onPressed: onManage, + ), ], ), ), @@ -1796,6 +1842,7 @@ class _ContactTileEntrance extends StatelessWidget { final bool isFavorite; final VoidCallback onTap; final VoidCallback onLongPress; + final VoidCallback? onManage; const _ContactTileEntrance({ required this.index, @@ -1806,6 +1853,7 @@ class _ContactTileEntrance extends StatelessWidget { required this.isFavorite, required this.onTap, required this.onLongPress, + this.onManage, }); @override @@ -1820,6 +1868,7 @@ class _ContactTileEntrance extends StatelessWidget { isFavorite: isFavorite, onTap: onTap, onLongPress: onLongPress, + onManage: onManage, ), ); } diff --git a/lib/screens/discovery_screen.dart b/lib/screens/discovery_screen.dart index 4a782d6f..b749041c 100644 --- a/lib/screens/discovery_screen.dart +++ b/lib/screens/discovery_screen.dart @@ -34,9 +34,17 @@ class _DiscoveryScreenState extends State { ContactTypeFilter typeFilter = ContactTypeFilter.all; DiscoverySortOption discoverySortOption = DiscoverySortOption.lastSeen; Timer? _searchDebounce; + ScaffoldMessengerState? _messenger; + + @override + void didChangeDependencies() { + super.didChangeDependencies(); + _messenger = ScaffoldMessenger.maybeOf(context); + } @override void dispose() { + _messenger?.hideCurrentSnackBar(); _searchController.dispose(); _searchDebounce?.cancel(); super.dispose(); @@ -169,33 +177,7 @@ class _DiscoveryScreenState extends State { return ListEntrance( index: index, child: MeshCard( - onTap: () async { - try { - final imported = await connector.importDiscoveredContact(contact); - if (!context.mounted) return; - if (!imported) { - showDismissibleSnackBar( - context, - content: Text(context.l10n.contacts_contactImportFailed), - ); - return; - } - showDismissibleSnackBar( - context, - content: Text(context.l10n.discoveredContacts_contactAdded), - action: SnackBarAction( - label: context.l10n.common_undo, - onPressed: () => connector.removeContact(contact), - ), - ); - } catch (_) { - if (!context.mounted) return; - showDismissibleSnackBar( - context, - content: Text(context.l10n.contacts_contactImportFailed), - ); - } - }, + onTap: () => _addContact(context, contact, connector), onLongPress: () => _showContactContextMenu(contact, connector), onSecondaryTap: PlatformInfo.isDesktop ? () => _showContactContextMenu(contact, connector) @@ -296,12 +278,49 @@ class _DiscoveryScreenState extends State { ), ), ), + IconButton( + tooltip: context.l10n.discoveredContacts_addContact, + icon: const Icon(Icons.person_add_alt_1), + onPressed: () => _addContact(context, contact, connector), + ), ], ), ), ); } + Future _addContact( + BuildContext context, + Contact contact, + MeshCoreConnector connector, + ) async { + try { + final imported = await connector.importDiscoveredContact(contact); + if (!context.mounted) return; + if (!imported) { + showDismissibleSnackBar( + context, + content: Text(context.l10n.contacts_contactImportFailed), + ); + return; + } + showDismissibleSnackBar( + context, + content: Text(context.l10n.discoveredContacts_contactAdded), + action: SnackBarAction( + label: context.l10n.common_undo, + onPressed: () => connector.removeContact(contact), + ), + ); + } catch (_) { + if (!context.mounted) return; + showDismissibleSnackBar( + context, + content: Text(context.l10n.contacts_contactImportFailed), + ); + } + } + Future _showContactContextMenu( Contact contact, MeshCoreConnector connector, @@ -431,6 +450,7 @@ class _DiscoveryScreenState extends State { if (searchQuery.isNotEmpty) IconButton( icon: const Icon(Icons.clear), + tooltip: context.l10n.common_clearSearch, onPressed: () { _searchController.clear(); setState(() { diff --git a/lib/screens/map_screen.dart b/lib/screens/map_screen.dart index bad17b83..aec3ba9e 100644 --- a/lib/screens/map_screen.dart +++ b/lib/screens/map_screen.dart @@ -1,3 +1,4 @@ +import 'dart:async'; import 'dart:math'; import 'package:flutter/foundation.dart'; @@ -16,11 +17,13 @@ import '../l10n/l10n.dart'; import '../models/app_settings.dart'; import '../models/channel.dart'; import '../models/contact.dart'; +import '../models/path_history.dart'; import '../l10n/contact_localization.dart'; import '../services/app_settings_service.dart'; import '../services/path_history_service.dart'; import '../services/map_marker_service.dart'; import '../services/map_tile_cache_service.dart'; +import '../storage/prefs_manager.dart'; import '../utils/contact_search.dart'; import '../utils/disconnect_navigation_mixin.dart'; import '../utils/battery_utils.dart'; @@ -35,6 +38,7 @@ import '../theme/mesh_theme.dart'; import '../widgets/mesh_ui.dart'; import '../widgets/repeater_login_dialog.dart'; import '../widgets/room_login_dialog.dart'; +import '../helpers/guessed_location_estimator.dart'; import '../helpers/snack_bar_builder.dart'; import 'repeater_hub_screen.dart'; import 'settings_screen.dart'; @@ -60,8 +64,7 @@ class MapScreen extends StatefulWidget { State createState() => _MapScreenState(); } -class _MapScreenState extends State - with DisconnectNavigationMixin { +class _MapScreenState extends State with DisconnectNavigationMixin { // Zoom level at which node labels start to appear static const double _labelZoomThreshold = 14.0; // Below this zoom, nearby nodes collapse into clusters. @@ -95,15 +98,51 @@ class _MapScreenState extends State final FocusNode _searchFocus = FocusNode(); String _searchQuery = ''; List<_GuessedLocation> _cachedGuessedLocations = []; - String _guessedLocationsCacheKey = ''; + int? _guessedLocationsCacheKey; + static const Duration _guessMaxAge = Duration(days: 7); + ({LatLng center, double zoom})? _cachedFallbackCamera; + bool _guessInFlight = false; + VoidCallback? _guessRerun; + // Saved paths for contacts outside the path-history cache, read once. + final Map> _storedPaths = {}; int? _sharedMarkersCacheSignature; Locale? _sharedMarkersCacheLocale; List<_SharedMarker> _cachedSharedMarkers = const []; _NodeMarkersCacheKey? _nodeMarkersCacheKey; List _cachedNodeMarkers = const []; + static const String _lastCameraKey = 'map_last_camera'; + + ({LatLng center, double zoom}) _fallbackCamera(MeshCoreConnector connector) { + final lat = connector.selfLatitude; + final lon = connector.selfLongitude; + if (lat != null && lon != null && isPlausibleLocation(lat, lon)) { + return (center: LatLng(lat, lon), zoom: 12.0); + } + final saved = PrefsManager.instance.getStringList(_lastCameraKey); + if (saved != null && saved.length == 3) { + final values = saved.map(double.tryParse).toList(); + if (!values.contains(null)) { + return (center: LatLng(values[0]!, values[1]!), zoom: values[2]!); + } + } + return (center: const LatLng(20, 0), zoom: _mapMinZoom); + } + + void _saveLastCamera() { + try { + final camera = _mapController.camera; + PrefsManager.instance.setStringList(_lastCameraKey, [ + camera.center.latitude.toString(), + camera.center.longitude.toString(), + camera.zoom.toString(), + ]); + } catch (_) {} + } + @override void dispose() { + _saveLastCamera(); _searchController.dispose(); _searchFocus.dispose(); _mapController.dispose(); @@ -196,15 +235,6 @@ class _MapScreenState extends State } } - bool _checkLocationPlausibility(double lat, double lon) { - const double epsilon = 1e-6; - return (lat.abs() > epsilon || lon.abs() > epsilon) && - lat >= -90.0 && - lat <= 90.0 && - lon >= -180.0 && - lon <= 180.0; - } - double _standardDeviation(List values) { if (values.length <= 1) { return 0.0; @@ -300,7 +330,7 @@ class _MapScreenState extends State IconButton( color: MapPalette.selected, icon: const Icon(Icons.my_location), - tooltip: context.l10n.map_setAsMyLocation, + tooltip: context.l10n.map_centerOnMe, onPressed: () => _mapController.move( LatLng(connector.selfLatitude!, connector.selfLongitude!), max(_zoom, 14), @@ -431,29 +461,42 @@ class _MapScreenState extends State noLocations: true, ); - // Compute guessed locations with caching + // Guessed locations are computed in a background isolate; the last + // result stays on screen until the new one arrives. final maxRangeKm = _estimateLoRaRangeKm(connector); - final filteredKeys = guessCandidates - .map((c) => '${c.publicKeyHex}:${c.path.join("-")}') - .join(','); - final anchorKeys = allContactsWithLocation - .map( + final cacheKey = Object.hash( + Object.hashAll( + guessCandidates.map( + (c) => Object.hash(c.publicKeyHex, _bytesSignature(c.path)), + ), + ), + Object.hashAll( + allContactsWithLocation.map( (c) => - '${c.publicKeyHex}:${c.latitude}:${c.longitude}:${PathHelper.formatHopHex(c.path.isNotEmpty ? c.path.sublist(max(0, c.path.length - c.pathHashWidth)) : const [])}', - ) - .join(','); - final cacheKey = - '$filteredKeys|$anchorKeys|$pathHistoryVersion:${connector.currentFreqHz}:${connector.currentSf}:${connector.currentBwHz}:${connector.currentTxPower}:${settings.mapShowGuessedLocations}'; + Object.hash(c.publicKeyHex, c.latitude, c.longitude, c.type), + ), + ), + pathHistoryVersion, + maxRangeKm, + connector.selfLatitude, + connector.selfLongitude, + settings.mapShowGuessedLocations, + ); if (cacheKey != _guessedLocationsCacheKey) { _guessedLocationsCacheKey = cacheKey; - _cachedGuessedLocations = settings.mapShowGuessedLocations - ? _computeGuessedLocations( - guessCandidates, - allContactsWithLocation, - pathHistory, - maxRangeKm, - ) - : []; + if (settings.mapShowGuessedLocations) { + unawaited( + _startGuessedLocations( + cacheKey, + guessCandidates, + allContactsWithLocation, + pathHistory, + maxRangeKm, + ), + ); + } else { + _cachedGuessedLocations = []; + } } final guessedLocations = settings.mapShowGuessedLocations ? _cachedGuessedLocations @@ -492,14 +535,13 @@ class _MapScreenState extends State } } - // Calculate center and zoom of all nodes, or default to (0, 0) - LatLng center = const LatLng(0, 0); - double initialZoom = 10.0; - final hasMapContent = - contactsWithLocation.isNotEmpty || - sharedMarkers.isNotEmpty || - _isSelectingPoi || - highlightPosition != null; + // Only the first frame's camera matters; afterwards reuse it instead + // of re-reading prefs on every rebuild. + final (center: fallbackCenter, zoom: fallbackZoom) = _hasInitializedMap + ? (_cachedFallbackCamera ??= _fallbackCamera(connector)) + : _fallbackCamera(connector); + LatLng center = fallbackCenter; + double initialZoom = fallbackZoom; if (contactsWithLocation.isNotEmpty || sharedMarkers.isNotEmpty) { final allPoints = [ ...contactsWithLocation.map( @@ -574,13 +616,11 @@ class _MapScreenState extends State _hasInitializedMap = true; _showNodeLabels = initialZoom >= _labelZoomThreshold; _zoom = initialZoom; - if (hasMapContent) { - WidgetsBinding.instance.addPostFrameCallback((_) { - if (mounted) { - _mapController.move(center, initialZoom); - } - }); - } + WidgetsBinding.instance.addPostFrameCallback((_) { + if (mounted) { + _mapController.move(center, initialZoom); + } + }); } final allowBack = !connector.isConnected; @@ -770,6 +810,12 @@ class _MapScreenState extends State onSecondaryTap: (_, latLng) { _handleMapContextPress(context, connector, latLng); }, + onMapEvent: (event) { + if (event is MapEventMoveEnd || + event is MapEventFlingAnimationEnd) { + _saveLastCamera(); + } + }, onPositionChanged: (camera, hasGesture) { // Track zoom in half-step buckets so cluster/marker // detail levels update without rebuilding every frame. @@ -926,6 +972,20 @@ class _MapScreenState extends State pinCount: sharedMarkers.length, ), if (_isBuildingPathTrace) _buildPathTraceOverlay(), + if (contactsWithLocation.isEmpty && + selectedContact == null && + !_isBuildingPathTrace) + Positioned( + left: 16, + right: 88, + bottom: 16, + child: Card( + child: Padding( + padding: const EdgeInsets.all(12), + child: Text(context.l10n.map_noNodesLocationHint), + ), + ), + ), if (selectedContact != null && !_isBuildingPathTrace) _buildSelectedNodeCard(context, selectedContact, connector), ], @@ -993,6 +1053,7 @@ class _MapScreenState extends State showChatNodes: settings.mapShowChatNodes, showOtherNodes: settings.mapShowOtherNodes, isBuildingPathTrace: _isBuildingPathTrace, + clusterNodes: settings.mapClusterNodes, ); if (key != _nodeMarkersCacheKey) { _nodeMarkersCacheKey = key; @@ -1008,141 +1069,100 @@ class _MapScreenState extends State return _cachedNodeMarkers; } - List<_GuessedLocation> _computeGuessedLocations( - List allContacts, + Future _startGuessedLocations( + int cacheKey, + List candidates, List withLocation, PathHistoryService pathHistory, double? maxRangeKm, - ) { - final result = <_GuessedLocation>[]; - // Paths keep the width they were learned with, so index every width. - final anchorsByPrefix = >{}; - for (final repeater in withLocation) { - if (repeater.type != advTypeRepeater) continue; - for (var width = 1; width <= 3; width++) { - if (repeater.publicKey.length < width) continue; - final prefix = PathHelper.formatHopHex( - repeater.publicKey.sublist(0, width), - ); - anchorsByPrefix.putIfAbsent(prefix, () => []).add(repeater); - } - } - - for (final contact in allContacts) { - if (contact.hasLocation) continue; - if (contact.lastSeen.isBefore( - DateTime.now().subtract(const Duration(hours: 24)), - )) { - continue; // skip stale contacts - } - - final anchorSet = {}; - - // Collect the contact-side (last-hop) repeater from every known path. - // path = [device-side hop, ..., contact-side hop] - // Only the last hop chunk is actually within radio range of the contact. - final pathSets = <(List, int)>[ - (contact.path.toList(), contact.pathHashWidth), - ...pathHistory - .getRecentPaths(contact.publicKeyHex) - .map( - (r) => ( - r.pathBytes, - Contact.inferPathHashWidth(r.hopCount, r.pathBytes.length), - ), - ), - ]; - for (final (pathBytes, hopWidth) in pathSets) { - if (pathBytes.isEmpty) continue; - final lastHop = pathBytes.sublist(max(0, pathBytes.length - hopWidth)); - if (lastHop.isEmpty) continue; - - final repeaters = anchorsByPrefix[PathHelper.formatHopHex(lastHop)]; - if (repeaters != null && repeaters.isNotEmpty) { - final repeater = repeaters.first; - anchorSet.add(LatLng(repeater.latitude!, repeater.longitude!)); - } - } - - // Filter anchors that are geometrically inconsistent with radio range. - // Two anchors more than 2 * maxRange apart cannot both be in direct radio - // range of the same node, so isolated outliers are removed. - final anchors = maxRangeKm != null && anchorSet.length > 1 - ? _filterConsistentAnchors(anchorSet.toList(), maxRangeKm) - : anchorSet.toList(); - - if (anchors.isEmpty) continue; - - final LatLng position; - if (anchors.length == 1) { - // Spread single-anchor guesses around the anchor so they remain visible. - position = _offsetGuessedPosition( - anchors[0], - contact, - radiusMeters: 330, - ); - if (!_checkLocationPlausibility( - position.latitude, - position.longitude, - )) { - continue; // discard implausible guesses near (0, 0) - } - } else { - double lat = 0, lon = 0, weight = 1.0, totalWeight = 0; - for (final a in anchors) { - lat += a.latitude * weight; - lon += a.longitude * weight; - totalWeight += weight; - // weight subsequent anchors less to create a bias towards the first (if more than 2) - weight = weight / 2; - } - position = _offsetGuessedPosition( - LatLng(lat / totalWeight, lon / totalWeight), - contact, - radiusMeters: anchors.length >= 3 ? 80 : 120, - ); - if (!_checkLocationPlausibility( - position.latitude, - position.longitude, - )) { - continue; // discard implausible guesses near (0, 0 - } - } - result.add( - _GuessedLocation( - contact: contact, - position: position, - highConfidence: anchors.length >= 2, - ), + ) async { + if (_guessInFlight) { + _guessRerun = () => _startGuessedLocations( + cacheKey, + candidates, + withLocation, + pathHistory, + maxRangeKm, ); + return; } - - return result; - } - - LatLng _offsetGuessedPosition( - LatLng anchor, - Contact contact, { - required double radiusMeters, - }) { - final seed = _guessSeed(contact.publicKey); - final angle = ((seed & 0xFFFF) / 0x10000) * 2 * pi; - final latOffsetDeg = (radiusMeters / 111320.0) * cos(angle); - final lonScale = max(cos(anchor.latitude * pi / 180.0).abs(), 0.2); - final lonOffsetDeg = (radiusMeters / (111320.0 * lonScale)) * sin(angle); - return LatLng( - anchor.latitude + latOffsetDeg, - anchor.longitude + lonOffsetDeg, + _guessInFlight = true; + final connector = context.read(); + final selfLat = connector.selfLatitude; + final selfLon = connector.selfLongitude; + // Old paths say little about where a node is now. + final cutoff = DateTime.now().subtract(_guessMaxAge); + final eligible = candidates + .where((c) => !c.hasLocation && c.lastSeen.isAfter(cutoff)) + .toList(); + for (final c in eligible) { + final key = c.publicKeyHex; + if (pathHistory.isCached(key) || _storedPaths.containsKey(key)) continue; + _storedPaths[key] = await pathHistory.readStoredPaths(key); + } + if (!mounted) { + _guessInFlight = false; + return; + } + List pathsFor(String key) => pathHistory.isCached(key) + ? pathHistory.peekRecentPaths(key) + : _storedPaths[key] ?? const []; + final input = ( + candidates: [ + for (final c in eligible) + ( + publicKey: c.publicKey, + paths: [ + (c.path.toList(), c.pathHashWidth), + for (final r in pathsFor(c.publicKeyHex)) + ( + r.pathBytes, + Contact.inferPathHashWidth(r.hopCount, r.pathBytes.length), + ), + ], + ), + ], + anchors: [ + for (final r in withLocation) + if (r.type == advTypeRepeater || r.type == advTypeRoom) + (r.publicKey, r.latitude!, r.longitude!), + ], + selfPosition: + selfLat != null && + selfLon != null && + isPlausibleLocation(selfLat, selfLon) + ? (selfLat, selfLon) + : null, + maxRangeKm: maxRangeKm, ); - } - - int _guessSeed(Uint8List publicKey) { - var seed = 0x811C9DC5; - for (final byte in publicKey) { - seed ^= byte; - seed = (seed * 0x01000193) & 0x7FFFFFFF; + List<(int, double, double, bool)> placed; + try { + placed = await compute(estimateGuessedLocations, input); + } catch (e) { + debugPrint('Guessed location estimate failed: $e'); + placed = const []; + } finally { + _guessInFlight = false; } - return seed; + final rerun = _guessRerun; + _guessRerun = null; + if (!mounted) return; + if (!context.read().settings.mapShowGuessedLocations) { + return; + } + // Show this result even if inputs moved on; it is newer than what is on + // screen, and the queued rerun replaces it shortly. + rerun?.call(); + setState(() { + _cachedGuessedLocations = [ + for (final (index, lat, lon, highConfidence) in placed) + _GuessedLocation( + contact: eligible[index], + position: LatLng(lat, lon), + highConfidence: highConfidence, + ), + ]; + }); } /// Estimates the free-space maximum LoRa range in km from the connected @@ -1191,20 +1211,6 @@ class _MapScreenState extends State } } - /// Removes anchors that have no neighbour within 2 * maxRangeKm. - /// A node cannot be simultaneously in radio range of two points farther apart - /// than twice the expected maximum range. - List _filterConsistentAnchors( - List anchors, - double maxRangeKm, - ) { - const distance = Distance(); - final maxDistM = maxRangeKm * 2000; - return anchors - .where((a) => anchors.any((b) => b != a && distance(a, b) <= maxDistM)) - .toList(); - } - List _buildGuessedMarker( List<_GuessedLocation> guessed, { required bool showLabels, @@ -1381,7 +1387,10 @@ class _MapScreenState extends State } } - if (_zoom >= _clusterOffZoom || overlapsMode || _isBuildingPathTrace) { + if (!settings.mapClusterNodes || + _zoom >= _clusterOffZoom || + overlapsMode || + _isBuildingPathTrace) { for (final contact in items) { addNode(contact); } @@ -1833,6 +1842,7 @@ class _MapScreenState extends State ? IconButton( color: _overlayPrimaryTextColor, icon: const Icon(Icons.close, size: 18), + tooltip: context.l10n.common_clearSearch, onPressed: () { setState(() { _searchQuery = ''; @@ -1954,6 +1964,14 @@ class _MapScreenState extends State !settings.mapShowChatNodes, ), ), + _mapChip( + label: context.l10n.map_groupChip, + selected: settings.mapClusterNodes, + color: MapPalette.cluster, + onTap: () => settingsService.setMapClusterNodes( + !settings.mapClusterNodes, + ), + ), ]; if (constraints.maxWidth < 600) { @@ -1996,45 +2014,53 @@ class _MapScreenState extends State final accent = color ?? MapPalette.selected; return Padding( padding: const EdgeInsets.only(right: 6), - child: Material( - color: selected - ? Color.alphaBlend( - accent.withValues(alpha: 0.34), - _overlayPanelColor, - ) - : _overlayPanelColor, - shape: StadiumBorder( - side: BorderSide( - color: selected ? accent : _overlayBorderColor, - width: selected ? 1.5 : 1, + child: Semantics( + button: true, + selected: selected, + child: Material( + color: selected + ? Color.alphaBlend( + accent.withValues(alpha: 0.34), + _overlayPanelColor, + ) + : _overlayPanelColor, + shape: StadiumBorder( + side: BorderSide( + color: selected ? accent : _overlayBorderColor, + width: selected ? 1.5 : 1, + ), ), - ), - clipBehavior: Clip.antiAlias, - child: InkWell( - onTap: () { - HapticFeedback.selectionClick(); - onTap(); - }, - child: Padding( - padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 7), - child: Row( - mainAxisSize: MainAxisSize.min, - children: [ - if (selected) ...[ - Icon(Icons.check, size: 13, color: _overlayPrimaryTextColor), - const SizedBox(width: 4), - ], - Text( - label, - style: TextStyle( - fontSize: 12.5, - fontWeight: FontWeight.w600, - color: selected - ? _overlayPrimaryTextColor - : _overlaySecondaryTextColor, + clipBehavior: Clip.antiAlias, + child: InkWell( + onTap: () { + HapticFeedback.selectionClick(); + onTap(); + }, + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 7), + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + if (selected) ...[ + Icon( + Icons.check, + size: 13, + color: _overlayPrimaryTextColor, + ), + const SizedBox(width: 4), + ], + Text( + label, + style: TextStyle( + fontSize: 12.5, + fontWeight: FontWeight.w600, + color: selected + ? _overlayPrimaryTextColor + : _overlaySecondaryTextColor, + ), ), - ), - ], + ], + ), ), ), ), @@ -2393,6 +2419,7 @@ class _MapScreenState extends State IconButton( color: _overlayPrimaryTextColor, icon: const Icon(Icons.close, size: 20), + tooltip: context.l10n.common_close, onPressed: _clearSelection, ), ], @@ -2527,6 +2554,12 @@ class _MapScreenState extends State } _showRoomLogin(context, contact); }), + action(context.l10n.map_manageServer, Icons.room_preferences, () { + if (!contact.isActive) { + connector.importDiscoveredContact(contact); + } + _showRoomLogin(context, contact, manage: true); + }), ]; default: return const []; @@ -2706,13 +2739,16 @@ class _MapScreenState extends State ); } - void _showRoomLogin(BuildContext context, Contact room) { + void _showRoomLogin( + BuildContext context, + Contact room, { + bool manage = false, + }) { showDialog( context: context, builder: (context) => RoomLoginDialog( room: room, - // onLogin(password, isAdmin) isAdmin not used for room caht screen - onLogin: (password, _) { + onLogin: (password, isAdmin) { final connector = context.read(); final unread = connector.getUnreadCountForContactKey( room.publicKeyHex, @@ -2721,8 +2757,13 @@ class _MapScreenState extends State Navigator.push( context, MaterialPageRoute( - builder: (context) => - ChatScreen(contact: room, initialUnreadCount: unread), + builder: (context) => manage + ? RepeaterHubScreen( + repeater: room, + password: password, + isAdmin: isAdmin, + ) + : ChatScreen(contact: room, initialUnreadCount: unread), ), ); }, @@ -2792,6 +2833,18 @@ class _MapScreenState extends State child: Text(context.l10n.map_joinRoom), ), ); + actions.add( + FilledButton( + onPressed: () { + if (!contact.isActive) { + connector.importDiscoveredContact(contact); + } + Navigator.pop(sheetContext); + _showRoomLogin(context, contact, manage: true); + }, + child: Text(context.l10n.map_manageServer), + ), + ); } return SafeArea( child: SingleChildScrollView( @@ -3438,6 +3491,16 @@ class _MapScreenState extends State onChanged: (value) => service.setMapShowMarkers(value), ), + SwitchListTile( + title: Text(sheetContext.l10n.map_clusterNodes), + subtitle: Text( + sheetContext.l10n.map_clusterNodesSubtitle, + ), + value: settings.mapClusterNodes, + dense: true, + onChanged: (value) => + service.setMapClusterNodes(value), + ), SwitchListTile( title: Text( sheetContext.l10n.map_showGuessedLocations, @@ -3838,42 +3901,32 @@ class _MapConnectorSnapshot { ), ); + // Only detect that a conversation changed; _collectSharedMarkers does the + // per-message scan when this signature moves. final markerParts = [connector.selfName]; for (final contact in connector.contacts) { - markerParts.add(contact.publicKeyHex); - markerParts.add(contact.name); - for (final message in connector.getMessages(contact)) { - if (!message.text.trimLeft().startsWith('m:')) continue; - markerParts.add( - Object.hash( - message.messageId, - message.text, - message.timestamp.millisecondsSinceEpoch, - message.isOutgoing, - ), - ); - } + final messages = connector.getMessages(contact); + markerParts.add( + Object.hash( + contact.publicKeyHex, + contact.name, + messages.length, + messages.isEmpty ? null : messages.last.messageId, + ), + ); } for (final channel in connector.channels) { + final messages = connector.getChannelMessages(channel); markerParts.add( Object.hash( channel.index, channel.name, channel.isPublicChannel, channel.isEmpty, + messages.length, + messages.isEmpty ? null : messages.last.messageId, ), ); - for (final message in connector.getChannelMessages(channel)) { - if (!message.text.trimLeft().startsWith('m:')) continue; - markerParts.add( - Object.hash( - message.messageId, - message.text, - message.senderName, - message.timestamp.millisecondsSinceEpoch, - ), - ); - } } return _MapConnectorSnapshot( @@ -3931,6 +3984,7 @@ class _NodeMarkersCacheKey { final bool showChatNodes; final bool showOtherNodes; final bool isBuildingPathTrace; + final bool clusterNodes; const _NodeMarkersCacheKey({ required this.contactsSignature, @@ -3950,6 +4004,7 @@ class _NodeMarkersCacheKey { required this.showChatNodes, required this.showOtherNodes, required this.isBuildingPathTrace, + required this.clusterNodes, }); @override @@ -3971,7 +4026,8 @@ class _NodeMarkersCacheKey { showRepeaters == other.showRepeaters && showChatNodes == other.showChatNodes && showOtherNodes == other.showOtherNodes && - isBuildingPathTrace == other.isBuildingPathTrace; + isBuildingPathTrace == other.isBuildingPathTrace && + clusterNodes == other.clusterNodes; } @override @@ -3993,6 +4049,7 @@ class _NodeMarkersCacheKey { showChatNodes, showOtherNodes, isBuildingPathTrace, + clusterNodes, ); } diff --git a/lib/screens/region_management_screen.dart b/lib/screens/region_management_screen.dart index 37dd1fd1..3997f8b9 100644 --- a/lib/screens/region_management_screen.dart +++ b/lib/screens/region_management_screen.dart @@ -78,13 +78,82 @@ class _RegionManagementScreenState extends State { ), ], ), - body: ListView.builder( - padding: const EdgeInsets.only(left: 16, right: 16, top: 8, bottom: 88), - itemCount: _regions.length, - itemBuilder: (context, index) { - final region = _regions[index]; - return _buildRegionTile(context, region); - }, + body: _regions.isEmpty + ? _buildEmptyState(context) + : ListView.builder( + padding: const EdgeInsets.only( + left: 16, + right: 16, + top: 8, + bottom: 88, + ), + itemCount: _regions.length + 1, + itemBuilder: (context, index) { + if (index == 0) return _buildDefaultRegionTile(context); + return _buildRegionTile(context, _regions[index - 1]); + }, + ), + ); + } + + Widget _buildEmptyState(BuildContext context) { + final l10n = context.l10n; + return Center( + child: Padding( + padding: const EdgeInsets.all(24), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const Icon(Icons.landscape, size: 48, color: MeshPalette.blue), + const SizedBox(height: 16), + Text( + l10n.settings_regionEmptyExplanation, + textAlign: TextAlign.center, + style: Theme.of(context).textTheme.bodyMedium, + ), + const SizedBox(height: 24), + FilledButton.icon( + icon: const Icon(Icons.travel_explore), + label: Text(l10n.settings_regionFetchFromRepeaters), + onPressed: _isFetchingRegions ? null : _showFetchRegionsDialog, + ), + const SizedBox(height: 8), + OutlinedButton.icon( + icon: const Icon(Icons.add), + label: Text(l10n.settings_regionAddRegion), + onPressed: () => _showAddRegionDialog(context), + ), + ], + ), + ), + ); + } + + Widget _buildDefaultRegionTile(BuildContext context) { + final l10n = context.l10n; + final connector = context.watch(); + final current = _regions.contains(connector.defaultRegion) + ? connector.defaultRegion + : ''; + return Padding( + padding: const EdgeInsets.only(bottom: 8), + child: DropdownButtonFormField( + key: ValueKey(current), + initialValue: current, + decoration: InputDecoration( + labelText: l10n.settings_regionDefault, + helperText: l10n.settings_regionDefaultSubtitle, + border: const OutlineInputBorder(), + ), + items: [ + DropdownMenuItem( + value: '', + child: Text(l10n.settings_regionDefaultNone), + ), + for (final region in _regions) + DropdownMenuItem(value: region, child: Text(region)), + ], + onChanged: (value) => connector.setDefaultRegion(value ?? ''), ), ); } diff --git a/lib/screens/repeater_hub_screen.dart b/lib/screens/repeater_hub_screen.dart index bb0e8243..324cd231 100644 --- a/lib/screens/repeater_hub_screen.dart +++ b/lib/screens/repeater_hub_screen.dart @@ -122,7 +122,9 @@ class RepeaterHubScreen extends StatelessWidget { ), ), StatusChip( - label: isAdmin ? 'ADMIN' : 'GUEST', + label: isAdmin + ? l10n.repeater_roleAdmin + : l10n.repeater_roleGuest, color: isAdmin ? MeshPalette.blue : scheme.onSurfaceVariant, @@ -308,46 +310,53 @@ class _HubActionTile extends StatelessWidget { final scheme = Theme.of(context).colorScheme; return ListEntrance( index: index, - child: MeshCard( - onTap: onTap, - child: Row( - children: [ - Container( - width: 44, - height: 44, - decoration: BoxDecoration( - color: accentColor.withValues(alpha: 0.12), - borderRadius: BorderRadius.circular(MeshRadii.md), - border: Border.all(color: accentColor.withValues(alpha: 0.3)), + child: Semantics( + button: true, + child: MeshCard( + onTap: onTap, + child: Row( + children: [ + Container( + width: 44, + height: 44, + decoration: BoxDecoration( + color: accentColor.withValues(alpha: 0.12), + borderRadius: BorderRadius.circular(MeshRadii.md), + border: Border.all(color: accentColor.withValues(alpha: 0.3)), + ), + alignment: Alignment.center, + child: Icon(icon, size: 22, color: accentColor), ), - alignment: Alignment.center, - child: Icon(icon, size: 22, color: accentColor), - ), - const SizedBox(width: 14), - Expanded( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - title, - style: const TextStyle( - fontWeight: FontWeight.w600, - fontSize: 15, + const SizedBox(width: 14), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + title, + style: const TextStyle( + fontWeight: FontWeight.w600, + fontSize: 15, + ), ), - ), - const SizedBox(height: 2), - Text( - subtitle, - style: TextStyle( - fontSize: 12.5, - color: scheme.onSurfaceVariant, + const SizedBox(height: 2), + Text( + subtitle, + style: TextStyle( + fontSize: 12.5, + color: scheme.onSurfaceVariant, + ), ), - ), - ], + ], + ), ), - ), - Icon(Icons.chevron_right, color: scheme.onSurfaceVariant, size: 20), - ], + Icon( + Icons.chevron_right, + color: scheme.onSurfaceVariant, + size: 20, + ), + ], + ), ), ), ); diff --git a/lib/screens/repeater_settings_screen.dart b/lib/screens/repeater_settings_screen.dart index 0f90cd94..47127041 100644 --- a/lib/screens/repeater_settings_screen.dart +++ b/lib/screens/repeater_settings_screen.dart @@ -113,6 +113,10 @@ class _RepeaterSettingsScreenState extends State { bool _refreshingIntThresh = false; bool _refreshingAgcResetInterval = false; bool _runningAction = false; + bool _loadingAll = false; + int _unansweredSections = 0; + double _loadAllProgress = 0; + final Set _loadedKeys = {}; bool _searchingForKeyPair = false; bool _stopSearchingForKeyPair = false; StreamSubscription? _frameSubscription; @@ -441,10 +445,15 @@ class _RepeaterSettingsScreenState extends State { final key = normalized.substring(4).trim(); final value = _extractGetValue(response); if (value == null) return false; - setState(() => _applyGetValue(key, value)); + setState(() { + _applyGetValue(key, value); + _loadedKeys.add(key); + }); return true; } + bool _loaded(String key) => _loadedKeys.contains(key); + /// Firmware GET replies are always `> ` (CommonCLI.cpp `sprintf(reply, "> %s", ...)`). /// Returns the first such value, trimmed; null if none found. String? _extractGetValue(String response) { @@ -469,6 +478,7 @@ class _RepeaterSettingsScreenState extends State { setState(() => setRefreshing(true)); var successCount = 0; + var answered = false; final connector = Provider.of(context, listen: false); final repeater = _resolveRepeater(connector); for (final command in commands) { @@ -478,14 +488,22 @@ class _RepeaterSettingsScreenState extends State { command, retries: 1, ); + if (!mounted) return; + answered = true; if (_handleGetResponse(command, response)) successCount += 1; await Future.delayed(const Duration(milliseconds: 200)); } catch (e) { debugPrint('Error fetching $command: $e'); } + if (!mounted) return; } - if (mounted) { + if (_loadingAll) { + // A reply we can't use usually means older firmware without that + // setting; only a section that never answered counts as a failure. + if (!answered) _unansweredSections += 1; + setState(() => setRefreshing(false)); + } else { showDismissibleSnackBar( context, content: Text( @@ -720,9 +738,52 @@ class _RepeaterSettingsScreenState extends State { } } + Future _refreshAll() async { + if (_loadingAll) return; + final sections = Function()>[ + _refreshBasicSettings, + _refreshRadioSettings, + _refreshTxPower, + _refreshRxGain, + _refreshLat, + _refreshLon, + _refreshRepeat, + _refreshAllowReadOnly, + _refreshMultiAcks, + _refreshLoopDetect, + _refreshDutyCycle, + _refreshAdvertInterval, + _refreshFloodAdvertInterval, + _refreshFloodMax, + _refreshOwnerInfo, + _refreshPathHashMode, + _refreshTxDelay, + _refreshDirectTxDelay, + _refreshIntThresh, + _refreshAgcResetInterval, + ]; + _unansweredSections = 0; + setState(() { + _loadingAll = true; + _loadAllProgress = 0; + }); + for (var i = 0; i < sections.length; i++) { + if (!mounted) return; + await sections[i](); + if (!mounted) return; + setState(() => _loadAllProgress = (i + 1) / sections.length); + } + setState(() => _loadingAll = false); + if (_unansweredSections > 0) { + showDismissibleSnackBar( + context, + content: Text(context.l10n.repeater_settingsLoadIncomplete), + backgroundColor: Theme.of(context).colorScheme.error, + ); + } + } + Future _loadSettings() async { - // Just populate with current repeater data on initial load - // User must click sync button to fetch from device setState(() { _nameController.text = widget.repeater.name; @@ -1173,13 +1234,24 @@ class _RepeaterSettingsScreenState extends State { onPressed: () => ContactRoutingSheet.show(context, contact: repeater), ), + IconButton( + icon: const Icon(Icons.refresh), + tooltip: l10n.repeater_refreshAll, + onPressed: _loadingAll || _isLoading ? null : _refreshAll, + ), if (_hasChanges) TextButton.icon( - onPressed: _isLoading ? null : _saveSettings, + onPressed: _isLoading || _loadingAll ? null : _saveSettings, icon: const Icon(Icons.save), label: Text(l10n.common_save), ), ], + bottom: _loadingAll + ? PreferredSize( + preferredSize: const Size.fromHeight(4), + child: LinearProgressIndicator(value: _loadAllProgress), + ) + : null, ), body: SafeArea( top: false, @@ -1188,6 +1260,27 @@ class _RepeaterSettingsScreenState extends State { : ListView( padding: const EdgeInsets.only(bottom: 32), children: [ + if (_loadedKeys.isEmpty && !_loadingAll) + Padding( + padding: const EdgeInsets.only(top: 16), + child: MeshCard( + child: Row( + children: [ + const Icon(Icons.info_outline, size: 20), + const SizedBox(width: 12), + Expanded( + child: Text( + context.l10n.repeater_settingsNotLoaded, + ), + ), + TextButton( + onPressed: _isLoading ? null : _refreshAll, + child: Text(context.l10n.repeater_refreshAll), + ), + ], + ), + ), + ), _buildBasicSettingsCard(), _buildRadioSettingsCard(), _buildLocationSettingsCard(), @@ -1231,6 +1324,7 @@ class _RepeaterSettingsScreenState extends State { children: [ TextField( controller: _nameController, + enabled: _loaded('name'), decoration: InputDecoration( labelText: l10n.repeater_repeaterName, helperText: l10n.repeater_repeaterNameHelper, @@ -1298,6 +1392,7 @@ class _RepeaterSettingsScreenState extends State { children: [ TextField( controller: _freqController, + enabled: _loaded('radio'), decoration: InputDecoration( labelText: l10n.repeater_frequencyMhz, helperText: l10n.repeater_frequencyRangeHelper, @@ -1315,6 +1410,7 @@ class _RepeaterSettingsScreenState extends State { Expanded( child: TextField( controller: _txPowerController, + enabled: _loaded('tx'), decoration: InputDecoration( labelText: l10n.repeater_txPower, helperText: l10n.repeater_txPowerRangeHelper, @@ -1343,14 +1439,16 @@ class _RepeaterSettingsScreenState extends State { child: Text(_formatBandwidthLabel(bw)), ); }).toList(), - onChanged: (value) { - if (value != null) { - setState(() { - _bandwidth = value; - }); - _markChanged(_SettingField.radio); - } - }, + onChanged: !_loaded('radio') + ? null + : (value) { + if (value != null) { + setState(() { + _bandwidth = value; + }); + _markChanged(_SettingField.radio); + } + }, ), const SizedBox(height: 12), DropdownButtonFormField( @@ -1361,14 +1459,16 @@ class _RepeaterSettingsScreenState extends State { items: _spreadingFactorOptions.map((sf) { return DropdownMenuItem(value: sf, child: Text('SF$sf')); }).toList(), - onChanged: (value) { - if (value != null) { - setState(() { - _spreadingFactor = value; - }); - _markChanged(_SettingField.radio); - } - }, + onChanged: !_loaded('radio') + ? null + : (value) { + if (value != null) { + setState(() { + _spreadingFactor = value; + }); + _markChanged(_SettingField.radio); + } + }, ), const SizedBox(height: 12), DropdownButtonFormField( @@ -1379,20 +1479,23 @@ class _RepeaterSettingsScreenState extends State { items: _codingRateOptions.map((cr) { return DropdownMenuItem(value: cr, child: Text('4/$cr')); }).toList(), - onChanged: (value) { - if (value != null) { - setState(() { - _codingRate = value; - }); - _markChanged(_SettingField.radio); - } - }, + onChanged: !_loaded('radio') + ? null + : (value) { + if (value != null) { + setState(() { + _codingRate = value; + }); + _markChanged(_SettingField.radio); + } + }, ), const SizedBox(height: 4), _buildFeatureToggleRow( title: l10n.repeater_rxGain, subtitle: l10n.repeater_rxGainHelper, value: _rxGainBoosted, + loaded: _loaded('radio.rxgain'), isRefreshing: _refreshingRxGain, onChanged: (v) { setState(() => _rxGainBoosted = v); @@ -1424,6 +1527,7 @@ class _RepeaterSettingsScreenState extends State { Expanded( child: TextField( controller: _latController, + enabled: _loaded('lat'), decoration: InputDecoration( labelText: l10n.repeater_latitude, helperText: l10n.repeater_latitudeHelper, @@ -1458,6 +1562,7 @@ class _RepeaterSettingsScreenState extends State { Expanded( child: TextField( controller: _lonController, + enabled: _loaded('lon'), decoration: InputDecoration( labelText: l10n.repeater_longitude, helperText: l10n.repeater_longitudeHelper, @@ -1506,6 +1611,7 @@ class _RepeaterSettingsScreenState extends State { title: l10n.repeater_packetForwarding, subtitle: l10n.repeater_packetForwardingSubtitle, value: _repeatEnabled, + loaded: _loaded('repeat'), isRefreshing: _refreshingRepeat, onChanged: (value) { setState(() { @@ -1520,6 +1626,7 @@ class _RepeaterSettingsScreenState extends State { title: l10n.repeater_guestAccess, subtitle: l10n.repeater_guestAccessSubtitle, value: _allowReadOnly, + loaded: _loaded('allow.read.only'), isRefreshing: _refreshingAllowReadOnly, onChanged: (value) { setState(() { @@ -1534,6 +1641,7 @@ class _RepeaterSettingsScreenState extends State { title: l10n.repeater_multiAcks, subtitle: l10n.repeater_multiAcksSubtitle, value: _multiAcks, + loaded: _loaded('multi.acks'), isRefreshing: _refreshingMultiAcks, onChanged: (v) { setState(() => _multiAcks = v); @@ -1568,6 +1676,7 @@ class _RepeaterSettingsScreenState extends State { required String title, required String subtitle, required bool value, + required bool loaded, required bool isRefreshing, required ValueChanged onChanged, required VoidCallback onRefresh, @@ -1579,8 +1688,8 @@ class _RepeaterSettingsScreenState extends State { child: SwitchListTile( title: Text(title), subtitle: Text(subtitle), - value: value, - onChanged: onChanged, + value: loaded && value, + onChanged: loaded ? onChanged : null, contentPadding: EdgeInsets.zero, ), ), @@ -1616,19 +1725,23 @@ class _RepeaterSettingsScreenState extends State { child: ListTile( title: Text(l10n.repeater_localAdvertInterval), subtitle: Text( - l10n.repeater_localAdvertIntervalMinutes( - _advertInterval, - ), + _loaded('advert.interval') + ? l10n.repeater_localAdvertIntervalMinutes( + _advertInterval, + ) + : '—', ), trailing: Switch( - value: _advertEnable, - onChanged: (value) { - setState(() { - _advertInterval = value ? 60 : 0; - _advertEnable = value; - }); - _markChanged(_SettingField.advertInterval); - }, + value: _loaded('advert.interval') && _advertEnable, + onChanged: !_loaded('advert.interval') + ? null + : (value) { + setState(() { + _advertInterval = value ? 60 : 0; + _advertEnable = value; + }); + _markChanged(_SettingField.advertInterval); + }, ), contentPadding: EdgeInsets.zero, ), @@ -1657,7 +1770,7 @@ class _RepeaterSettingsScreenState extends State { label: l10n.repeater_localAdvertIntervalMinutes( _advertInterval, ), - onChanged: _advertEnable + onChanged: _advertEnable && _loaded('advert.interval') ? (value) { setState(() { _advertInterval = value.toInt(); @@ -1673,19 +1786,25 @@ class _RepeaterSettingsScreenState extends State { child: ListTile( title: Text(l10n.repeater_floodAdvertInterval), subtitle: Text( - l10n.repeater_floodAdvertIntervalHours( - _floodAdvertInterval, - ), + _loaded('flood.advert.interval') + ? l10n.repeater_floodAdvertIntervalHours( + _floodAdvertInterval, + ) + : '—', ), trailing: Switch( - value: _floodAdvertEnable, - onChanged: (value) { - setState(() { - _floodAdvertInterval = value ? 3 : 0; - _floodAdvertEnable = value; - }); - _markChanged(_SettingField.floodAdvertInterval); - }, + value: + _loaded('flood.advert.interval') && + _floodAdvertEnable, + onChanged: !_loaded('flood.advert.interval') + ? null + : (value) { + setState(() { + _floodAdvertInterval = value ? 3 : 0; + _floodAdvertEnable = value; + }); + _markChanged(_SettingField.floodAdvertInterval); + }, ), contentPadding: EdgeInsets.zero, ), @@ -1714,7 +1833,8 @@ class _RepeaterSettingsScreenState extends State { label: l10n.repeater_floodAdvertIntervalHours( _floodAdvertInterval, ), - onChanged: _floodAdvertEnable + onChanged: + _floodAdvertEnable && _loaded('flood.advert.interval') ? (value) { setState(() { _floodAdvertInterval = value.toInt(); @@ -1731,7 +1851,7 @@ class _RepeaterSettingsScreenState extends State { title: Text(l10n.repeater_floodMax), subtitle: Text(l10n.repeater_floodMaxHelper), trailing: Text( - '$_floodMax', + _loaded('flood.max') ? '$_floodMax' : '—', style: const TextStyle(fontWeight: FontWeight.bold), ), contentPadding: EdgeInsets.zero, @@ -1757,10 +1877,12 @@ class _RepeaterSettingsScreenState extends State { max: 64, divisions: 64, label: '$_floodMax', - onChanged: (v) { - setState(() => _floodMax = v.toInt()); - _markChanged(_SettingField.floodMax); - }, + onChanged: !_loaded('flood.max') + ? null + : (v) { + setState(() => _floodMax = v.toInt()); + _markChanged(_SettingField.floodMax); + }, ), ], ), @@ -1784,7 +1906,7 @@ class _RepeaterSettingsScreenState extends State { children: [ Expanded( child: DropdownButtonFormField( - initialValue: _loopDetect, + initialValue: _loaded('loop.detect') ? _loopDetect : null, decoration: InputDecoration( labelText: l10n.repeater_loopDetect, helperText: l10n.repeater_loopDetectHelper, @@ -1808,12 +1930,14 @@ class _RepeaterSettingsScreenState extends State { child: Text(l10n.repeater_loopDetectStrict), ), ], - onChanged: (v) { - if (v != null) { - setState(() => _loopDetect = v); - _markChanged(_SettingField.loopDetect); - } - }, + onChanged: !_loaded('loop.detect') + ? null + : (v) { + if (v != null) { + setState(() => _loopDetect = v); + _markChanged(_SettingField.loopDetect); + } + }, ), ), _buildInlineRefreshButton( @@ -1831,7 +1955,9 @@ class _RepeaterSettingsScreenState extends State { title: Text(l10n.repeater_dutyCycle), subtitle: Text(l10n.repeater_dutyCycleHelper), trailing: Text( - l10n.repeater_dutyCyclePercent(_dutyCycle), + _loaded('dutycycle') + ? l10n.repeater_dutyCyclePercent(_dutyCycle) + : '—', style: const TextStyle(fontWeight: FontWeight.bold), ), contentPadding: EdgeInsets.zero, @@ -1857,10 +1983,12 @@ class _RepeaterSettingsScreenState extends State { max: 100, divisions: 99, label: l10n.repeater_dutyCyclePercent(_dutyCycle), - onChanged: (v) { - setState(() => _dutyCycle = v.toInt()); - _markChanged(_SettingField.dutyCycle); - }, + onChanged: !_loaded('dutycycle') + ? null + : (v) { + setState(() => _dutyCycle = v.toInt()); + _markChanged(_SettingField.dutyCycle); + }, ), ], ), @@ -1891,6 +2019,7 @@ class _RepeaterSettingsScreenState extends State { MeshCard( child: TextField( controller: _ownerInfoController, + enabled: _loaded('owner.info'), decoration: InputDecoration( labelText: l10n.repeater_ownerInfo, helperText: l10n.repeater_ownerInfoHelper, @@ -1975,23 +2104,36 @@ class _RepeaterSettingsScreenState extends State { children: [ Expanded( child: DropdownButtonFormField( - initialValue: _pathHashMode, + initialValue: _loaded('path.hash.mode') + ? _pathHashMode + : null, decoration: InputDecoration( labelText: l10n.repeater_pathHashMode, helperText: l10n.repeater_pathHashModeHelper, helperMaxLines: 5, ), - items: const [ - DropdownMenuItem(value: 0, child: Text('0')), - DropdownMenuItem(value: 1, child: Text('1')), - DropdownMenuItem(value: 2, child: Text('2')), + items: [ + DropdownMenuItem( + value: 0, + child: Text(l10n.repeater_pathHashModeOption0), + ), + DropdownMenuItem( + value: 1, + child: Text(l10n.repeater_pathHashModeOption1), + ), + DropdownMenuItem( + value: 2, + child: Text(l10n.repeater_pathHashModeOption2), + ), ], - onChanged: (v) { - if (v != null) { - setState(() => _pathHashMode = v); - _markChanged(_SettingField.pathHashMode); - } - }, + onChanged: !_loaded('path.hash.mode') + ? null + : (v) { + if (v != null) { + setState(() => _pathHashMode = v); + _markChanged(_SettingField.pathHashMode); + } + }, ), ), _buildInlineRefreshButton( @@ -2008,6 +2150,7 @@ class _RepeaterSettingsScreenState extends State { Expanded( child: TextField( controller: _txDelayController, + enabled: _loaded('txdelay'), decoration: InputDecoration( labelText: l10n.repeater_txDelay, helperText: l10n.repeater_txDelayHelper, @@ -2033,6 +2176,7 @@ class _RepeaterSettingsScreenState extends State { Expanded( child: TextField( controller: _directTxDelayController, + enabled: _loaded('direct.txdelay'), decoration: InputDecoration( labelText: l10n.repeater_directTxDelay, helperText: l10n.repeater_directTxDelayHelper, @@ -2058,6 +2202,7 @@ class _RepeaterSettingsScreenState extends State { Expanded( child: TextField( controller: _intThreshController, + enabled: _loaded('int.thresh'), decoration: InputDecoration( labelText: l10n.repeater_intThresh, helperText: l10n.repeater_intThreshHelper, @@ -2082,7 +2227,9 @@ class _RepeaterSettingsScreenState extends State { title: Text(l10n.repeater_agcResetInterval), subtitle: Text(l10n.repeater_agcResetIntervalHelper), trailing: Text( - '${_agcResetInterval}s', + _loaded('agc.reset.interval') + ? '${_agcResetInterval}s' + : '—', style: const TextStyle(fontWeight: FontWeight.bold), ), contentPadding: EdgeInsets.zero, @@ -2110,13 +2257,15 @@ class _RepeaterSettingsScreenState extends State { max: _maxAgcResetInterval.toDouble(), divisions: _maxAgcResetInterval ~/ 4, label: '${_agcResetInterval}s', - onChanged: (v) { - setState(() { - // Clamp to multiple of 4 to match firmware semantics. - _agcResetInterval = (v.toInt() ~/ 4) * 4; - }); - _markChanged(_SettingField.agcResetInterval); - }, + onChanged: !_loaded('agc.reset.interval') + ? null + : (v) { + setState(() { + // Clamp to multiple of 4 to match firmware semantics. + _agcResetInterval = (v.toInt() ~/ 4) * 4; + }); + _markChanged(_SettingField.agcResetInterval); + }, ), ], ), diff --git a/lib/screens/repeater_status_screen.dart b/lib/screens/repeater_status_screen.dart index 504ba6c0..a3661a18 100644 --- a/lib/screens/repeater_status_screen.dart +++ b/lib/screens/repeater_status_screen.dart @@ -614,23 +614,33 @@ class _RepeaterStatusScreenState extends State { } Widget _buildStatGrid(List<_StatItem> items) { - return GridView.count( - crossAxisCount: 2, - shrinkWrap: true, - physics: const NeverScrollableScrollPhysics(), - mainAxisSpacing: 8, - crossAxisSpacing: 8, - childAspectRatio: 2.2, - children: items - .map( - (item) => StatTile( + final textScaler = MediaQuery.textScalerOf(context); + return LayoutBuilder( + builder: (context, constraints) { + final columns = constraints.maxWidth / textScaler.scale(1) < 320 + ? 1 + : 2; + return GridView.builder( + shrinkWrap: true, + physics: const NeverScrollableScrollPhysics(), + itemCount: items.length, + gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: columns, + mainAxisSpacing: 8, + crossAxisSpacing: 8, + mainAxisExtent: textScaler.scale(52) + 28, + ), + itemBuilder: (context, index) { + final item = items[index]; + return StatTile( icon: item.icon, label: item.label, value: item.value, color: item.color, - ), - ) - .toList(), + ); + }, + ); + }, ); } } diff --git a/lib/screens/settings_screen.dart b/lib/screens/settings_screen.dart index bdea5d31..8885b24d 100644 --- a/lib/screens/settings_screen.dart +++ b/lib/screens/settings_screen.dart @@ -508,7 +508,10 @@ class _SettingsScreenState extends State { context, icon: Icons.sensors_outlined, title: l10n.radioStats_settingsTile, - subtitle: l10n.radioStats_settingsSubtitle, + subtitle: + connector.isConnected && !connector.supportsCompanionRadioStats + ? l10n.settings_requiresFirmware('v1.10') + : l10n.radioStats_settingsSubtitle, onTap: connector.isConnected && connector.supportsCompanionRadioStats ? () => pushCompanionRadioStatsScreen(context) : null, @@ -518,7 +521,12 @@ class _SettingsScreenState extends State { context, icon: Icons.route_outlined, title: l10n.repeater_pathHashMode, - subtitle: _pathHashModeSubtitle(context, connector.pathHashByteWidth), + subtitle: + connector.isConnected && + (connector.firmwareVerCode ?? 0) < + _minFirmwareVerCodeForPathHashMode + ? l10n.settings_requiresFirmware('v1.14') + : _pathHashModeSubtitle(context, connector.pathHashByteWidth), onTap: connector.isConnected && (connector.firmwareVerCode ?? 0) >= @@ -868,7 +876,7 @@ class _SettingsScreenState extends State { ), const SizedBox(height: 12), Text( - l10n.repeater_pathHashModeHelper, + l10n.settings_pathHashModeHelper, style: Theme.of(builderContext).textTheme.bodySmall, ), ], @@ -1334,14 +1342,29 @@ void _privacySettings(BuildContext context, MeshCoreConnector connector) { settingsService.settings.autoSendZeroHopAdvertOnGpsUpdate; final telemModeBase = [ - DropdownMenuItem(value: teleModeDeny, child: Text(l10n.settings_denyAll)), + DropdownMenuItem( + value: teleModeDeny, + child: Text( + l10n.settings_denyAll, + maxLines: 1, + overflow: TextOverflow.ellipsis, + ), + ), DropdownMenuItem( value: teleModeAllowFlags, - child: Text(l10n.settings_allowByContact), + child: Text( + l10n.settings_allowByContact, + maxLines: 1, + overflow: TextOverflow.ellipsis, + ), ), DropdownMenuItem( value: teleModeAllowAll, - child: Text(l10n.settings_allowAll), + child: Text( + l10n.settings_allowAll, + maxLines: 1, + overflow: TextOverflow.ellipsis, + ), ), ]; @@ -1349,6 +1372,7 @@ void _privacySettings(BuildContext context, MeshCoreConnector connector) { context: context, builder: (dialogContext) => StatefulBuilder( builder: (builderContext, setDialogState) => AlertDialog( + insetPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 24), title: Text(l10n.settings_privacy), content: SingleChildScrollView( child: Column( @@ -1382,6 +1406,7 @@ void _privacySettings(BuildContext context, MeshCoreConnector connector) { const SizedBox(height: 8), SwitchListTile( title: Text(l10n.settings_multiAck), + subtitle: Text(l10n.settings_multiAckSubtitle), value: multiAcks == 1, onChanged: (value) { setDialogState(() => multiAcks = value ? 1 : 0); @@ -1391,6 +1416,7 @@ void _privacySettings(BuildContext context, MeshCoreConnector connector) { const SizedBox(height: 16), DropdownButtonFormField( initialValue: telemetryMode, + isExpanded: true, decoration: InputDecoration( labelText: l10n.settings_telemetryBaseMode, border: const OutlineInputBorder(), @@ -1405,6 +1431,7 @@ void _privacySettings(BuildContext context, MeshCoreConnector connector) { const SizedBox(height: 16), DropdownButtonFormField( initialValue: telemetryLocMode, + isExpanded: true, decoration: InputDecoration( labelText: l10n.settings_telemetryLocationMode, border: const OutlineInputBorder(), @@ -1419,6 +1446,7 @@ void _privacySettings(BuildContext context, MeshCoreConnector connector) { const SizedBox(height: 16), DropdownButtonFormField( initialValue: telemetryEnvMode, + isExpanded: true, decoration: InputDecoration( labelText: l10n.settings_telemetryEnvironmentMode, border: const OutlineInputBorder(), @@ -1430,6 +1458,11 @@ void _privacySettings(BuildContext context, MeshCoreConnector connector) { } }, ), + const SizedBox(height: 8), + Text( + l10n.settings_telemetryPerContactHint, + style: Theme.of(context).textTheme.bodySmall, + ), ], ), ), @@ -1583,8 +1616,7 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> { if (preset.frequencyHz == snapshot.frequencyHz && preset.bandwidth == snapshot.bandwidth && preset.spreadingFactor == snapshot.spreadingFactor && - preset.codingRate == snapshot.codingRate && - preset.txPowerDbm == snapshot.txPowerDbm) { + preset.codingRate == snapshot.codingRate) { return i; } } @@ -1671,14 +1703,13 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> { if (offGridFreqHz == current.frequencyHz && preset.bandwidth == current.bandwidth && preset.spreadingFactor == current.spreadingFactor && - preset.codingRate == current.codingRate && - preset.txPowerDbm == current.txPowerDbm) { + preset.codingRate == current.codingRate) { return _RadioSettingsSnapshot( frequencyMHz: preset.frequencyMHz, bandwidth: preset.bandwidth, spreadingFactor: preset.spreadingFactor, codingRate: preset.codingRate, - txPowerDbm: preset.txPowerDbm, + txPowerDbm: current.txPowerDbm, ); } } @@ -1987,20 +2018,30 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> { children: [ DropdownButtonFormField( key: ValueKey(_selectedPresetIndex), - initialValue: _selectedPresetIndex, + initialValue: _selectedPresetIndex ?? -1, + isExpanded: true, decoration: InputDecoration( labelText: l10n.settings_presets, border: const OutlineInputBorder(), ), items: [ + if (_selectedPresetIndex == null) + DropdownMenuItem( + value: -1, + child: Text(l10n.settings_presetCustom), + ), for (final i in _visiblePresetIndexes()) DropdownMenuItem( value: i, - child: Text(RadioSettings.presets[i].$1), + child: Text( + RadioSettings.presets[i].$1, + maxLines: 1, + overflow: TextOverflow.ellipsis, + ), ), ], onChanged: (index) { - if (index != null) { + if (index != null && index >= 0) { _applyPreset(index); } }, @@ -2012,7 +2053,11 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> { decoration: InputDecoration( labelText: l10n.settings_frequency, border: const OutlineInputBorder(), - helperText: l10n.settings_frequencyHelper, + helperText: _clientRepeat + ? l10n.settings_clientRepeatFrequencyNote( + _frequencyController.text, + ) + : l10n.settings_frequencyHelper, errorText: _frequencyError, ), keyboardType: const TextInputType.numberWithOptions( @@ -2094,9 +2139,10 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> { decoration: InputDecoration( labelText: l10n.settings_txPower, border: const OutlineInputBorder(), - helperText: widget.connector.maxTxPower != null - ? '${l10n.settings_txPowerHelper} (max: ${widget.connector.maxTxPower} dBm)' - : l10n.settings_txPowerHelper, + helperText: l10n.settings_txPowerRangeHelper( + _minTxPowerDbm, + widget.connector.maxTxPower ?? 22, + ), errorText: _txPowerError, ), keyboardType: TextInputType.number, @@ -2111,6 +2157,11 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> { contentPadding: EdgeInsets.zero, ), ], + const SizedBox(height: 16), + Text( + l10n.settings_radioMatchWarning, + style: Theme.of(context).textTheme.bodySmall, + ), ], ), ), diff --git a/lib/screens/telemetry_screen.dart b/lib/screens/telemetry_screen.dart index 353b8a24..b5301a24 100644 --- a/lib/screens/telemetry_screen.dart +++ b/lib/screens/telemetry_screen.dart @@ -917,10 +917,12 @@ class _TelemetryScreenState extends State { ), ), const SizedBox(width: 8), - Text( - value, - style: MeshTheme.mono(fontSize: 13, color: scheme.onSurface), - textAlign: TextAlign.end, + Flexible( + child: Text( + value, + style: MeshTheme.mono(fontSize: 13, color: scheme.onSurface), + textAlign: TextAlign.end, + ), ), ], ), diff --git a/lib/services/app_settings_service.dart b/lib/services/app_settings_service.dart index 4f3a06ed..80b0e9a9 100644 --- a/lib/services/app_settings_service.dart +++ b/lib/services/app_settings_service.dart @@ -105,6 +105,10 @@ class AppSettingsService extends ChangeNotifier { await updateSettings(_settings.copyWith(mapShowGuessedLocations: value)); } + Future setMapClusterNodes(bool value) async { + await updateSettings(_settings.copyWith(mapClusterNodes: value)); + } + Future setEnableMessageTracing(bool value) async { await updateSettings(_settings.copyWith(enableMessageTracing: value)); } @@ -206,6 +210,18 @@ class AppSettingsService extends ChangeNotifier { await updateSettings(_settings.copyWith(maxMessageRetries: value)); } + Future setChannelMinHopsEnabled(bool value) async { + await updateSettings(_settings.copyWith(channelMinHopsEnabled: value)); + } + + Future setChannelMinHops(int value) async { + await updateSettings(_settings.copyWith(channelMinHops: value)); + } + + Future setChannelMinHopsRetries(int value) async { + await updateSettings(_settings.copyWith(channelMinHopsRetries: value)); + } + Future setThemeMode(String value) async { await updateSettings(_settings.copyWith(themeMode: value)); } diff --git a/lib/services/background_service.dart b/lib/services/background_service.dart index 23d5fafe..75684079 100644 --- a/lib/services/background_service.dart +++ b/lib/services/background_service.dart @@ -70,6 +70,11 @@ class BackgroundService { return AppLocalizations.delegate.load(match); } + static Future openBatteryOptimizationSettings() async { + if (!PlatformInfo.isAndroid) return; + await FlutterForegroundTask.openIgnoreBatteryOptimizationSettings(); + } + Future stop() async { if (!PlatformInfo.isAndroid) return; final running = await FlutterForegroundTask.isRunningService; diff --git a/lib/services/image_codec_service.dart b/lib/services/image_codec_service.dart index c8df95e2..fc356e84 100644 --- a/lib/services/image_codec_service.dart +++ b/lib/services/image_codec_service.dart @@ -984,6 +984,17 @@ class ImageCodecService extends ChangeNotifier implements ImageSendCodec { return bitstream; } + @override + Future decodePreview(Uint8List payload) async { + if (!canDecode) return null; + final result = await decodeBitstream( + bitstream: payload, + ratePoint: aeicRatePointForUi(kImageSendRatePoint), + resolution: kImageCodecSquareSize, + ); + return result?.pngBytes; + } + /// Encodes an already-decoded RGB image. /// /// [rgbBytes] must be exactly `512 * 512 * 3` packed 8-bit RGB. Anything else diff --git a/lib/services/notification_service.dart b/lib/services/notification_service.dart index e2cad357..f4578558 100644 --- a/lib/services/notification_service.dart +++ b/lib/services/notification_service.dart @@ -8,6 +8,7 @@ import 'package:flutter_cache_manager/flutter_cache_manager.dart'; import '../helpers/message_url_image_helper.dart'; import '../helpers/reaction_helper.dart'; import '../l10n/app_localizations.dart'; +import '../storage/prefs_manager.dart'; import '../utils/platform_info.dart'; class NotificationService { @@ -123,9 +124,11 @@ class NotificationService { // Cached "are we allowed to post notifications" result. Null = not yet // determined. Avoids calling _notifications.show() when it would only throw - // "You must request notifications permissions first" (every web build, and - // Android 13+ before the user grants the permission). + // "You must request notifications permissions first" (every web build). + // Android denials are never cached so a later grant in system settings is + // picked up without restarting the app. bool? _canNotify; + static const _permissionRequestedKey = 'notification_permission_requested'; Future _ensureCanNotify() async { if (!await _ensureInitialized()) return false; @@ -143,8 +146,9 @@ class NotificationService { AndroidFlutterLocalNotificationsPlugin >(); if (androidPlugin != null) { - final enabled = await androidPlugin.areNotificationsEnabled(); - return _canNotify = enabled ?? false; + final enabled = await androidPlugin.areNotificationsEnabled() ?? false; + if (enabled) _canNotify = true; + return enabled; } // iOS/macOS request permission during initialize(); desktop has no gate. @@ -163,8 +167,8 @@ class NotificationService { >(); if (androidPlugin != null) { final granted = await androidPlugin.requestNotificationsPermission(); - _canNotify = granted ?? false; - return _canNotify!; + if (granted == true) _canNotify = true; + return granted ?? false; } // iOS permissions are requested during initialization @@ -178,13 +182,25 @@ class NotificationService { badge: true, sound: true, ); - _canNotify = granted ?? false; - return _canNotify!; + if (granted == true) _canNotify = true; + return granted ?? false; } return true; } + /// Asks for the Android 13+ notification permission the first time it is + /// needed. Never re-prompts after the user has answered once; iOS/macOS + /// already prompt during [initialize]. + Future requestPermissionsOnce() async { + if (!PlatformInfo.isAndroid || !await _ensureInitialized()) return; + final prefs = PrefsManager.instance; + if (prefs.getBool(_permissionRequestedKey) ?? false) return; + if (await _ensureCanNotify()) return; + await prefs.setBool(_permissionRequestedKey, true); + await requestPermissions(); + } + /// Format special message types for human-readable notifications. static String formatNotificationText(String text) { final trimmed = text.trim(); diff --git a/lib/services/path_history_service.dart b/lib/services/path_history_service.dart index 5ac7028c..1de88941 100644 --- a/lib/services/path_history_service.dart +++ b/lib/services/path_history_service.dart @@ -366,6 +366,24 @@ class PathHistoryService extends ChangeNotifier { notifyListeners(); } + /// Whether this contact's history is in the in-memory cache. + bool isCached(String contactPubKeyHex) => + _cache.containsKey(contactPubKeyHex); + + /// Paths already in memory, without loading from storage or changing the + /// cache order. For bulk readers that must not churn the 50-contact cache. + List peekRecentPaths(String contactPubKeyHex) => + _cache[contactPubKeyHex]?.recentPaths ?? const []; + + /// Reads saved paths straight from storage without adding them to the + /// cache, evicting anything, or notifying listeners. + Future> readStoredPaths(String contactPubKeyHex) async { + final cached = _cache[contactPubKeyHex]; + if (cached != null) return cached.recentPaths; + final stored = await _loadHistoryFromStorage(contactPubKeyHex); + return stored?.recentPaths ?? const []; + } + List getRecentPaths(String contactPubKeyHex) { final history = _cache[contactPubKeyHex]; if (history != null) { diff --git a/lib/storage/channel_region_store.dart b/lib/storage/channel_region_store.dart index e28551a7..8d1029df 100644 --- a/lib/storage/channel_region_store.dart +++ b/lib/storage/channel_region_store.dart @@ -10,6 +10,18 @@ class ChannelRegionStore { String get keyFor => '$_keyPrefix$publicKeyHex'; + String get _defaultKey => 'default_region_$publicKeyHex'; + + String loadDefaultRegion() { + if (publicKeyHex.isEmpty) return ''; + return PrefsManager.instance.getString(_defaultKey) ?? ''; + } + + Future saveDefaultRegion(String region) async { + if (publicKeyHex.isEmpty) return; + await PrefsManager.instance.setString(_defaultKey, region); + } + Future loadRegion(int channelIndex) async { if (publicKeyHex.isEmpty) { appLogger.warn( diff --git a/lib/storage/region_store.dart b/lib/storage/region_store.dart index af532da9..eddeabc2 100644 --- a/lib/storage/region_store.dart +++ b/lib/storage/region_store.dart @@ -47,6 +47,9 @@ class RegionStore { await channelRegionStore.saveRegion(channel.index, ''); } } + if (channelRegionStore.loadDefaultRegion() == region) { + await channelRegionStore.saveDefaultRegion(''); + } regions.remove(region); saveRegions(regions); } diff --git a/lib/utils/image_save.dart b/lib/utils/image_save.dart new file mode 100644 index 00000000..17a761a5 --- /dev/null +++ b/lib/utils/image_save.dart @@ -0,0 +1,43 @@ +import 'package:file_selector/file_selector.dart'; +import 'package:flutter/foundation.dart'; +import 'package:share_plus/share_plus.dart'; + +import '../services/received_image_store.dart'; +import 'platform_info.dart'; + +/// Saves a transcript image: a save dialog on desktop, the share sheet +/// elsewhere. Reconstructed images are named as such so the file never passes +/// for a photograph. Returns false on failure; a cancelled dialog is not one. +Future saveImagePng( + Uint8List png, + ReceivedImageEntry entry, { + String? shareText, +}) async { + final name = entry.synthesized + ? 'meshcore-ai-reconstructed-${entry.streamId}.png' + : 'meshcore-${entry.streamId}.png'; + final file = XFile.fromData(png, mimeType: 'image/png', name: name); + try { + if (PlatformInfo.isDesktop) { + final location = await getSaveLocation( + suggestedName: name, + acceptedTypeGroups: const [ + XTypeGroup(label: 'PNG', extensions: ['png']), + ], + ); + if (location != null) await file.saveTo(location.path); + return true; + } + final result = await SharePlus.instance.share( + ShareParams( + files: [file], + fileNameOverrides: [name], + text: entry.synthesized ? shareText : null, + ), + ); + return result.status != ShareResultStatus.unavailable; + } catch (e) { + debugPrint('image save failed: $e'); + return false; + } +} diff --git a/lib/widgets/chat_day_separator.dart b/lib/widgets/chat_day_separator.dart new file mode 100644 index 00000000..292af8d6 --- /dev/null +++ b/lib/widgets/chat_day_separator.dart @@ -0,0 +1,65 @@ +import 'package:flutter/material.dart'; +import 'package:intl/intl.dart'; + +import '../l10n/l10n.dart'; +import '../theme/mesh_theme.dart'; + +bool isSameChatDay(DateTime a, DateTime b) { + final la = a.toLocal(); + final lb = b.toLocal(); + return la.year == lb.year && la.month == lb.month && la.day == lb.day; +} + +final Map<(String, bool), DateFormat> _timeFormats = {}; + +String formatChatTime(BuildContext context, DateTime time) { + final locale = Localizations.localeOf(context).toString(); + final use24h = MediaQuery.alwaysUse24HourFormatOf(context); + final format = _timeFormats.putIfAbsent(( + locale, + use24h, + ), () => use24h ? DateFormat.Hm(locale) : DateFormat.jm(locale)); + return format.format(time.toLocal()); +} + +String formatChatDayLabel(BuildContext context, DateTime time) { + final now = DateTime.now(); + if (isSameChatDay(time, now)) return context.l10n.chat_today; + final yesterday = DateTime(now.year, now.month, now.day - 1); + if (isSameChatDay(time, yesterday)) return context.l10n.chat_yesterday; + final locale = Localizations.localeOf(context).toString(); + return DateFormat.yMMMd(locale).format(time.toLocal()); +} + +class ChatDaySeparator extends StatelessWidget { + final DateTime day; + + const ChatDaySeparator({super.key, required this.day}); + + @override + Widget build(BuildContext context) { + final color = Theme.of(context).colorScheme.onSurfaceVariant; + final line = Expanded( + child: Container(height: 1, color: color.withValues(alpha: 0.2)), + ); + return Padding( + padding: const EdgeInsets.symmetric(vertical: 10), + child: Row( + children: [ + line, + const SizedBox(width: 10), + Text( + formatChatDayLabel(context, day), + style: MeshTheme.mono( + fontSize: 10.5, + fontWeight: FontWeight.w600, + color: color, + ), + ), + const SizedBox(width: 10), + line, + ], + ), + ); + } +} diff --git a/lib/widgets/emoji_picker.dart b/lib/widgets/emoji_picker.dart index 3a8fdf79..ab5c4edd 100644 --- a/lib/widgets/emoji_picker.dart +++ b/lib/widgets/emoji_picker.dart @@ -232,6 +232,7 @@ class EmojiPicker extends StatelessWidget { ), IconButton( icon: const Icon(Icons.close), + tooltip: l10n.common_close, onPressed: () => Navigator.pop(context), ), ], diff --git a/lib/widgets/gif_picker.dart b/lib/widgets/gif_picker.dart index 90b6261b..5205143d 100644 --- a/lib/widgets/gif_picker.dart +++ b/lib/widgets/gif_picker.dart @@ -136,6 +136,7 @@ class _GifPickerState extends State { const Spacer(), IconButton( icon: const Icon(Icons.close), + tooltip: context.l10n.common_close, onPressed: () => Navigator.pop(context), ), ], @@ -151,6 +152,7 @@ class _GifPickerState extends State { suffixIcon: _searchController.text.isNotEmpty ? IconButton( icon: const Icon(Icons.clear), + tooltip: context.l10n.common_clearSearch, onPressed: () { _searchController.clear(); _loadTrendingGifs(); diff --git a/lib/widgets/image_send_codec_binding.dart b/lib/widgets/image_send_codec_binding.dart index 02eaffdc..fe99a99b 100644 --- a/lib/widgets/image_send_codec_binding.dart +++ b/lib/widgets/image_send_codec_binding.dart @@ -121,6 +121,10 @@ abstract class ImageSendCodec { /// Implementations are expected to centre-crop to /// [kImageCodecSquareSize] square first. Future encode(Uint8List imageBytes, ImageCodecRatePoint rate); + + /// Decodes [payload] to PNG exactly as a recipient would, or null when this + /// device cannot decode. + Future decodePreview(Uint8List payload); } /// A deterministic stand-in used for widget previews and tests. @@ -157,4 +161,7 @@ class FakeImageSendCodec implements ImageSendCodec { List.generate(size, (i) => (i * 31 + rate.index) & 0xFF), ); } + + @override + Future decodePreview(Uint8List payload) async => null; } diff --git a/lib/widgets/image_send_preview_sheet.dart b/lib/widgets/image_send_preview_sheet.dart index d235a419..bcff1b42 100644 --- a/lib/widgets/image_send_preview_sheet.dart +++ b/lib/widgets/image_send_preview_sheet.dart @@ -1,10 +1,12 @@ import 'dart:typed_data'; +import 'dart:ui' as ui; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import '../connector/meshcore_connector.dart'; import '../l10n/l10n.dart'; +import '../services/image_chunk_transport.dart'; import '../utils/lora_airtime.dart'; import 'image_send_codec_binding.dart'; @@ -151,15 +153,76 @@ class _ImageSendPreviewSheetState extends State { /// does not have to touch an InheritedWidget after an await. ImageSendRadio? _radio; + /// Source `width / height`. Recipients un-stretch the 512x512 square back to + /// this shape, so both preview views use it. + double _aspect = 1; + // The shape recipients restore: the nearest supported ratio, or square. + double _recipientAspect = 1; + + bool _showReconstruction = false; + Uint8List? _reconstruction; + bool _reconstructing = false; + bool _reconstructionUnavailable = false; + @override void initState() { super.initState(); _parity = widget.initialParity; + _probeAspect(); if (widget.codec.availability == ImageCodecAvailability.ready) { _encode(); } } + Future _probeAspect() async { + try { + final buffer = await ui.ImmutableBuffer.fromUint8List(widget.imageBytes); + final descriptor = await ui.ImageDescriptor.encoded(buffer); + final ratio = descriptor.width / descriptor.height; + final code = + kImageAspectCodes[imageAspectCodeFor( + descriptor.width, + descriptor.height, + )]; + final recipientRatio = code[0] / code[1]; + descriptor.dispose(); + buffer.dispose(); + if (mounted && ratio.isFinite && ratio > 0) { + setState(() { + _aspect = ratio; + _recipientAspect = recipientRatio; + }); + } + } catch (_) {} + } + + Future _selectView(bool reconstruction) async { + setState(() => _showReconstruction = reconstruction); + final payload = _encoded; + if (!reconstruction || + payload == null || + _reconstruction != null || + _reconstructing) { + return; + } + setState(() => _reconstructing = true); + Uint8List? png; + try { + png = await widget.codec.decodePreview(payload); + } catch (_) { + png = null; + } + if (!mounted) return; + setState(() { + _reconstructing = false; + _reconstruction = png; + if (png == null) { + _reconstructionUnavailable = true; + _showReconstruction = false; + } + }); + } + Future _encode() async { final cached = _encoded; if (cached != null) return cached; @@ -297,7 +360,7 @@ class _ImageSendPreviewSheetState extends State { controller: scrollController, padding: const EdgeInsets.fromLTRB(16, 0, 16, 16), children: [ - _preview(theme, colors), + _preview(theme, colors, selected, ready), const SizedBox(height: 16), if (!ready) _unavailableBanner(theme, colors), if (ready) ...[ @@ -344,44 +407,85 @@ class _ImageSendPreviewSheetState extends State { ), ); - /// The square render. [BoxFit.fill] on a 1:1 box is exactly the 512x512 - /// centre crop the codec will take, so what is shown is what is sent. - /// /// The preview is deliberately capped in height: the packet count and airtime /// below it are the reason this screen exists and must not be pushed off the /// first screenful by a full-width square. - Widget _preview(ThemeData theme, ColorScheme colors) { + Widget _preview( + ThemeData theme, + ColorScheme colors, + _RateEstimate estimate, + bool ready, + ) { + final l10n = context.l10n; final maxSide = MediaQuery.sizeOf(context).height * 0.28; + final reconstruction = _showReconstruction ? _reconstruction : null; return Column( children: [ + if (ready) ...[ + SegmentedButton( + segments: [ + ButtonSegment( + value: false, + label: Text(l10n.imageSend_viewOriginal), + ), + ButtonSegment( + value: true, + label: Text(l10n.imageSend_viewReconstruction), + enabled: _encoded != null && !_reconstructionUnavailable, + ), + ], + selected: {_showReconstruction}, + onSelectionChanged: (s) => _selectView(s.first), + ), + const SizedBox(height: 12), + ], ConstrainedBox( constraints: BoxConstraints(maxHeight: maxSide, maxWidth: maxSide), child: ClipRRect( borderRadius: BorderRadius.circular(12), child: AspectRatio( - aspectRatio: 1, + aspectRatio: reconstruction != null ? _recipientAspect : _aspect, child: Container( color: colors.surfaceContainerHighest, - child: Image.memory( - widget.imageBytes, - fit: BoxFit.fill, - alignment: Alignment.center, - gaplessPlayback: true, - errorBuilder: (context, error, stack) => Center( - child: Icon( - Icons.broken_image_outlined, - size: 48, - color: colors.onSurfaceVariant, - ), - ), - ), + child: _showReconstruction && _reconstructing + ? const Center(child: CircularProgressIndicator()) + : Image.memory( + reconstruction ?? widget.imageBytes, + // The reconstruction is the stretched square; fill + // undoes the stretch into the recipient's shape. + fit: reconstruction != null + ? BoxFit.fill + : BoxFit.contain, + alignment: Alignment.center, + gaplessPlayback: true, + errorBuilder: (context, error, stack) => Center( + child: Icon( + Icons.broken_image_outlined, + size: 48, + color: colors.onSurfaceVariant, + ), + ), + ), ), ), ), ), + if (_reconstructionUnavailable) ...[ + const SizedBox(height: 8), + Text( + l10n.imageSend_reconstructionUnavailable, + textAlign: TextAlign.center, + style: theme.textTheme.bodySmall?.copyWith( + color: colors.onSurfaceVariant, + ), + ), + ], const SizedBox(height: 8), Text( - context.l10n.imageSend_cropNote, + l10n.imageSend_lossyNote( + estimate.payloadBytes ?? + ImageCodecRateStats.forRate(kImageSendRatePoint).meanBytes, + ), textAlign: TextAlign.center, style: theme.textTheme.bodySmall?.copyWith( color: colors.onSurfaceVariant, diff --git a/lib/widgets/mesh_ui.dart b/lib/widgets/mesh_ui.dart index cb4698bb..2943bc04 100644 --- a/lib/widgets/mesh_ui.dart +++ b/lib/widgets/mesh_ui.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; +import '../l10n/l10n.dart'; import '../theme/mesh_theme.dart'; /// MeshCore shared design kit. @@ -191,35 +192,39 @@ class StatTile extends StatelessWidget { label.toUpperCase(), style: MeshTheme.accentLabel( color: scheme.onSurfaceVariant, - fontSize: 9, + fontSize: 11, ), + maxLines: 2, overflow: TextOverflow.ellipsis, ), ), ], ), const SizedBox(height: 6), - Text.rich( - TextSpan( - text: value, - style: MeshTheme.mono( - fontSize: 17, - fontWeight: FontWeight.w600, - color: scheme.onSurface, - ), - children: [ - if (unit != null) - TextSpan( - text: ' $unit', - style: MeshTheme.mono( - fontSize: 11, - color: scheme.onSurfaceVariant, + FittedBox( + fit: BoxFit.scaleDown, + alignment: AlignmentDirectional.centerStart, + child: Text.rich( + TextSpan( + text: value, + style: MeshTheme.mono( + fontSize: 17, + fontWeight: FontWeight.w600, + color: scheme.onSurface, + ), + children: [ + if (unit != null) + TextSpan( + text: ' $unit', + style: MeshTheme.mono( + fontSize: 11, + color: scheme.onSurfaceVariant, + ), ), - ), - ], + ], + ), + maxLines: 1, ), - maxLines: 1, - overflow: TextOverflow.ellipsis, ), ], ), @@ -352,11 +357,14 @@ class RouteChip extends StatelessWidget { @override Widget build(BuildContext context) { final scheme = Theme.of(context).colorScheme; - final label = isDirect - ? (hops == null || hops == 0 - ? 'DIRECT' - : '$hops HOP${hops == 1 ? '' : 'S'}') - : 'FLOOD'; + final l10n = context.l10n; + final label = + (isDirect + ? (hops == null || hops == 0 + ? l10n.chat_direct + : l10n.chat_hopsCount(hops!)) + : l10n.routing_modeFlood) + .toUpperCase(); return Container( padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2), decoration: BoxDecoration( @@ -518,6 +526,7 @@ class BottomSheetHeader extends StatelessWidget { ?trailing, IconButton( icon: const Icon(Icons.close, size: 20), + tooltip: MaterialLocalizations.of(context).closeButtonTooltip, onPressed: () => Navigator.of(context).maybePop(), ), ], diff --git a/lib/widgets/message_status_icon.dart b/lib/widgets/message_status_icon.dart index c1971c15..d52e93d0 100644 --- a/lib/widgets/message_status_icon.dart +++ b/lib/widgets/message_status_icon.dart @@ -8,7 +8,19 @@ class MessageStatusIcon extends StatefulWidget { final bool isAcked; final bool isFailed; final bool isPending; - final bool isRepeated; + + /// Channel messages have no delivery ACK. Instead of a delivered tick they + /// show how many times the mesh was heard repeating the message. + final bool isChannel; + final int repeatCount; + + /// While the app is resending a channel message to reach more repeaters: + /// how many resends so far and the limit. + final ({int resends, int maxResends})? resendProgress; + + /// Set when resending gave up before the message was heard through the + /// required number of repeaters. + final ({int hops, int required})? hopShortfall; final double size; /// Base tint for the sent/sending state. On a colored (outgoing) bubble a @@ -21,8 +33,11 @@ class MessageStatusIcon extends StatefulWidget { required this.isAcked, this.isFailed = false, this.isPending = false, - this.isRepeated = false, - this.size = 14, + this.isChannel = false, + this.repeatCount = 0, + this.resendProgress, + this.hopShortfall, + this.size = 16, this.onColor, }); @@ -68,46 +83,91 @@ class _MessageStatusIconState extends State final colorScheme = Theme.of(context).colorScheme; final double size = widget.size; final Color baseColor = widget.onColor ?? colorScheme.onSurfaceVariant; + final Color confirmedColor = MeshPalette.signal.withValues(alpha: 0.9); + final String label; + final Widget icon; if (widget.isFailed) { - return Semantics( - label: l10n.messageStatus_failed, - child: Icon(Icons.cancel, size: size, color: colorScheme.error), + label = widget.isChannel + ? l10n.messageStatus_failedChannel + : l10n.messageStatus_failed; + icon = Icon(Icons.cancel, size: size, color: colorScheme.error); + } else if (widget.isPending) { + label = l10n.messageStatus_pending; + icon = _SendingDots( + controller: _controller, + color: baseColor, + size: size, ); + } else if (widget.isChannel && widget.hopShortfall != null) { + final shortfall = widget.hopShortfall!; + label = l10n.messageStatus_hopsNotReached( + shortfall.hops, + shortfall.required, + ); + icon = Icon( + Icons.warning_amber_rounded, + size: size, + color: MeshPalette.warn, + ); + } else if (widget.isChannel && (widget.resendProgress?.resends ?? 0) > 0) { + final progress = widget.resendProgress!; + label = l10n.messageStatus_resending( + progress.resends, + progress.maxResends, + ); + icon = Row( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(Icons.autorenew, size: size, color: MeshPalette.warn), + const SizedBox(width: 2), + Text( + '${progress.resends}/${progress.maxResends}', + style: MeshTheme.mono( + fontSize: size * 0.8, + fontWeight: FontWeight.w600, + color: MeshPalette.warn, + ), + ), + ], + ); + } else if (widget.isChannel && widget.repeatCount > 0) { + label = l10n.messageStatus_heardRepeatedCount(widget.repeatCount); + icon = Row( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(Icons.repeat, size: size, color: confirmedColor), + const SizedBox(width: 2), + Text( + '${widget.repeatCount}', + style: MeshTheme.mono( + fontSize: size * 0.8, + fontWeight: FontWeight.w600, + color: confirmedColor, + ), + ), + ], + ); + } else if (widget.isChannel) { + label = l10n.messageStatus_sentChannel; + icon = Icon(Icons.done, size: size, color: baseColor); + } else if (widget.isAcked) { + label = l10n.messageStatus_delivered; + icon = SvgPicture.asset( + 'assets/icons/done_all.svg', + width: size, + height: size, + colorFilter: ColorFilter.mode(confirmedColor, BlendMode.srcIn), + ); + } else { + label = l10n.messageStatus_sentDirect; + icon = Icon(Icons.done, size: size, color: baseColor); } - if (widget.isPending) { - return Semantics( - label: l10n.messageStatus_pending, - child: _SendingDots( - controller: _controller, - color: baseColor, - size: size, - ), - ); - } - - final bool delivered = widget.isAcked || widget.isRepeated; - final String label = widget.isRepeated - ? l10n.messageStatus_repeated - : widget.isAcked - ? l10n.messageStatus_delivered - : l10n.messageStatus_sent; - // Use palette colors: tertiary (warn/amber) for acked/repeated, base for sent. - final Color color = delivered - ? MeshPalette.signal.withValues(alpha: 0.9) - : baseColor; - - return Semantics( - label: label, - child: delivered - ? SvgPicture.asset( - 'assets/icons/done_all.svg', - width: size, - height: size, - colorFilter: ColorFilter.mode(color, BlendMode.srcIn), - ) - : Icon(Icons.done, size: size, color: color), + return Tooltip( + message: label, + triggerMode: TooltipTriggerMode.tap, + child: icon, ); } } diff --git a/lib/widgets/repeater_login_dialog.dart b/lib/widgets/repeater_login_dialog.dart index af035d49..f3567742 100644 --- a/lib/widgets/repeater_login_dialog.dart +++ b/lib/widgets/repeater_login_dialog.dart @@ -281,6 +281,9 @@ class _RepeaterLoginDialogState extends State { final repeater = _resolveRepeater(connector); final isFloodMode = repeater.pathOverride == -1; return AlertDialog( + insetPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 24), + titlePadding: const EdgeInsets.fromLTRB(16, 20, 16, 0), + contentPadding: const EdgeInsets.fromLTRB(16, 16, 16, 0), title: Row( children: [ AvatarCircle( @@ -366,6 +369,9 @@ class _RepeaterLoginDialogState extends State { ? Icons.visibility : Icons.visibility_off, ), + tooltip: _obscurePassword + ? l10n.login_showPassword + : l10n.login_hidePassword, onPressed: () { setState(() { _obscurePassword = !_obscurePassword; @@ -402,101 +408,116 @@ class _RepeaterLoginDialogState extends State { controlAffinity: ListTileControlAffinity.leading, contentPadding: EdgeInsets.zero, ), - const Divider(), - Row( + ExpansionTile( + title: Text(l10n.login_advanced), + tilePadding: EdgeInsets.zero, + childrenPadding: EdgeInsets.zero, + expandedCrossAxisAlignment: CrossAxisAlignment.start, + shape: const Border(), + collapsedShape: const Border(), children: [ - Text( - l10n.login_routing, - style: MeshTheme.accentLabel( - color: scheme.onSurfaceVariant, - fontSize: 11, - ), - ), - const Spacer(), - PopupMenuButton( - icon: Icon(isFloodMode ? Icons.waves : Icons.route), - tooltip: l10n.login_routingMode, - onSelected: (mode) async { - if (mode == 'flood') { - await connector.setPathOverride( - repeater, - pathLen: -1, - ); - } else { - await connector.setPathOverride( - repeater, - pathLen: null, - ); - } - }, - itemBuilder: (context) => [ - PopupMenuItem( - value: 'auto', - child: Row( - children: [ - Icon( - Icons.auto_mode, - size: 20, - color: !isFloodMode ? scheme.primary : null, - ), - const SizedBox(width: 8), - Text( - l10n.login_autoUseSavedPath, - style: TextStyle( - fontWeight: !isFloodMode - ? FontWeight.bold - : FontWeight.normal, - ), - ), - ], + Row( + children: [ + Text( + l10n.login_routing, + style: MeshTheme.accentLabel( + color: scheme.onSurfaceVariant, + fontSize: 11, ), ), - PopupMenuItem( - value: 'flood', - child: Row( - children: [ - Icon( - Icons.waves, - size: 20, - color: isFloodMode ? scheme.primary : null, + const Spacer(), + PopupMenuButton( + icon: Icon(isFloodMode ? Icons.waves : Icons.route), + tooltip: l10n.login_routingMode, + onSelected: (mode) async { + if (mode == 'flood') { + await connector.setPathOverride( + repeater, + pathLen: -1, + ); + } else { + await connector.setPathOverride( + repeater, + pathLen: null, + ); + } + }, + itemBuilder: (context) => [ + PopupMenuItem( + value: 'auto', + child: Row( + children: [ + Icon( + Icons.auto_mode, + size: 20, + color: !isFloodMode + ? scheme.primary + : null, + ), + const SizedBox(width: 8), + Text( + l10n.login_autoUseSavedPath, + style: TextStyle( + fontWeight: !isFloodMode + ? FontWeight.bold + : FontWeight.normal, + ), + ), + ], ), - const SizedBox(width: 8), - Text( - l10n.login_forceFloodMode, - style: TextStyle( - fontWeight: isFloodMode - ? FontWeight.bold - : FontWeight.normal, - ), + ), + PopupMenuItem( + value: 'flood', + child: Row( + children: [ + Icon( + Icons.waves, + size: 20, + color: isFloodMode + ? scheme.primary + : null, + ), + const SizedBox(width: 8), + Text( + l10n.login_forceFloodMode, + style: TextStyle( + fontWeight: isFloodMode + ? FontWeight.bold + : FontWeight.normal, + ), + ), + ], ), - ], - ), + ), + ], ), ], ), + const SizedBox(height: 4), + Text( + repeater.pathLabel( + context.l10n, + pathHashByteWidth: connector.pathHashByteWidth, + ), + style: TextStyle( + fontSize: 11, + color: scheme.onSurfaceVariant, + ), + ), + const SizedBox(height: 8), + Align( + alignment: Alignment.centerLeft, + child: TextButton.icon( + onPressed: () => ContactRoutingSheet.show( + context, + contact: repeater, + ), + icon: const Icon(Icons.timeline, size: 18), + label: Text(l10n.login_managePaths), + ), + ), ], ), - const SizedBox(height: 4), - Text( - repeater.pathLabel( - context.l10n, - pathHashByteWidth: connector.pathHashByteWidth, - ), - style: TextStyle( - fontSize: 11, - color: scheme.onSurfaceVariant, - ), - ), - const SizedBox(height: 8), - Align( - alignment: Alignment.centerLeft, - child: TextButton.icon( - onPressed: () => - ContactRoutingSheet.show(context, contact: repeater), - icon: const Icon(Icons.timeline, size: 18), - label: Text(l10n.login_managePaths), - ), - ), ], ), ), diff --git a/lib/widgets/room_login_dialog.dart b/lib/widgets/room_login_dialog.dart index df4a2958..1ed67d33 100644 --- a/lib/widgets/room_login_dialog.dart +++ b/lib/widgets/room_login_dialog.dart @@ -234,6 +234,9 @@ class _RoomLoginDialogState extends State { final repeater = _resolveRepeater(connector); final isFloodMode = repeater.pathOverride == -1; return AlertDialog( + insetPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 24), + titlePadding: const EdgeInsets.fromLTRB(16, 20, 16, 0), + contentPadding: const EdgeInsets.fromLTRB(16, 16, 16, 0), title: Row( children: [ AvatarCircle( @@ -303,6 +306,9 @@ class _RoomLoginDialogState extends State { ? Icons.visibility : Icons.visibility_off, ), + tooltip: _obscurePassword + ? l10n.login_showPassword + : l10n.login_hidePassword, onPressed: () { setState(() { _obscurePassword = !_obscurePassword; @@ -334,101 +340,116 @@ class _RoomLoginDialogState extends State { controlAffinity: ListTileControlAffinity.leading, contentPadding: EdgeInsets.zero, ), - const Divider(), - Row( + ExpansionTile( + title: Text(l10n.login_advanced), + tilePadding: EdgeInsets.zero, + childrenPadding: EdgeInsets.zero, + expandedCrossAxisAlignment: CrossAxisAlignment.start, + shape: const Border(), + collapsedShape: const Border(), children: [ - Text( - l10n.login_routing, - style: MeshTheme.accentLabel( - color: scheme.onSurfaceVariant, - fontSize: 11, - ), - ), - const Spacer(), - PopupMenuButton( - icon: Icon(isFloodMode ? Icons.waves : Icons.route), - tooltip: l10n.login_routingMode, - onSelected: (mode) async { - if (mode == 'flood') { - await connector.setPathOverride( - repeater, - pathLen: -1, - ); - } else { - await connector.setPathOverride( - repeater, - pathLen: null, - ); - } - }, - itemBuilder: (context) => [ - PopupMenuItem( - value: 'auto', - child: Row( - children: [ - Icon( - Icons.auto_mode, - size: 20, - color: !isFloodMode ? scheme.primary : null, - ), - const SizedBox(width: 8), - Text( - l10n.login_autoUseSavedPath, - style: TextStyle( - fontWeight: !isFloodMode - ? FontWeight.bold - : FontWeight.normal, - ), - ), - ], + Row( + children: [ + Text( + l10n.login_routing, + style: MeshTheme.accentLabel( + color: scheme.onSurfaceVariant, + fontSize: 11, ), ), - PopupMenuItem( - value: 'flood', - child: Row( - children: [ - Icon( - Icons.waves, - size: 20, - color: isFloodMode ? scheme.primary : null, + const Spacer(), + PopupMenuButton( + icon: Icon(isFloodMode ? Icons.waves : Icons.route), + tooltip: l10n.login_routingMode, + onSelected: (mode) async { + if (mode == 'flood') { + await connector.setPathOverride( + repeater, + pathLen: -1, + ); + } else { + await connector.setPathOverride( + repeater, + pathLen: null, + ); + } + }, + itemBuilder: (context) => [ + PopupMenuItem( + value: 'auto', + child: Row( + children: [ + Icon( + Icons.auto_mode, + size: 20, + color: !isFloodMode + ? scheme.primary + : null, + ), + const SizedBox(width: 8), + Text( + l10n.login_autoUseSavedPath, + style: TextStyle( + fontWeight: !isFloodMode + ? FontWeight.bold + : FontWeight.normal, + ), + ), + ], ), - const SizedBox(width: 8), - Text( - l10n.login_forceFloodMode, - style: TextStyle( - fontWeight: isFloodMode - ? FontWeight.bold - : FontWeight.normal, - ), + ), + PopupMenuItem( + value: 'flood', + child: Row( + children: [ + Icon( + Icons.waves, + size: 20, + color: isFloodMode + ? scheme.primary + : null, + ), + const SizedBox(width: 8), + Text( + l10n.login_forceFloodMode, + style: TextStyle( + fontWeight: isFloodMode + ? FontWeight.bold + : FontWeight.normal, + ), + ), + ], ), - ], - ), + ), + ], ), ], ), + const SizedBox(height: 4), + Text( + repeater.pathLabel( + context.l10n, + pathHashByteWidth: connector.pathHashByteWidth, + ), + style: TextStyle( + fontSize: 11, + color: scheme.onSurfaceVariant, + ), + ), + const SizedBox(height: 8), + Align( + alignment: Alignment.centerLeft, + child: TextButton.icon( + onPressed: () => ContactRoutingSheet.show( + context, + contact: repeater, + ), + icon: const Icon(Icons.timeline, size: 18), + label: Text(l10n.login_managePaths), + ), + ), ], ), - const SizedBox(height: 4), - Text( - repeater.pathLabel( - context.l10n, - pathHashByteWidth: connector.pathHashByteWidth, - ), - style: TextStyle( - fontSize: 11, - color: scheme.onSurfaceVariant, - ), - ), - const SizedBox(height: 8), - Align( - alignment: Alignment.centerLeft, - child: TextButton.icon( - onPressed: () => - ContactRoutingSheet.show(context, contact: repeater), - icon: const Icon(Icons.timeline, size: 18), - label: Text(l10n.login_managePaths), - ), - ), ], ), ), diff --git a/lib/widgets/snr_indicator.dart b/lib/widgets/snr_indicator.dart index 29512023..f485e0c0 100644 --- a/lib/widgets/snr_indicator.dart +++ b/lib/widgets/snr_indicator.dart @@ -226,79 +226,110 @@ class _SNRIndicatorState extends State { title: Text(l10n.snrIndicator_nearByRepeaters), content: SizedBox( width: double.maxFinite, - child: Scrollbar( - child: ListView.separated( - shrinkWrap: true, - padding: const EdgeInsets.symmetric(vertical: 4), - itemCount: directBestRepeaters.length, - separatorBuilder: (_, _) => const Divider(height: 1), - itemBuilder: (context, index) { - final repeater = directBestRepeaters[index]; - final allContacts = widget.connector.allContacts; + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + l10n.snrIndicator_nearByRepeatersDescription, + style: Theme.of(context).textTheme.bodySmall?.copyWith( + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), + ), + const SizedBox(height: 8), + Flexible( + child: Scrollbar( + child: ListView.separated( + shrinkWrap: true, + padding: const EdgeInsets.symmetric(vertical: 4), + itemCount: directBestRepeaters.length, + separatorBuilder: (_, _) => const Divider(height: 1), + itemBuilder: (context, index) { + final repeater = directBestRepeaters[index]; + final allContacts = widget.connector.allContacts; - final selfLat = widget.connector.selfLatitude; - final selfLon = widget.connector.selfLongitude; + final selfLat = widget.connector.selfLatitude; + final selfLon = widget.connector.selfLongitude; - LatLng? selfPoint; - if (selfLat != null && - selfLon != null && - _isValidSelfLocation(selfLat, selfLon)) { - selfPoint = LatLng(selfLat, selfLon); - } + LatLng? selfPoint; + if (selfLat != null && + selfLon != null && + _isValidSelfLocation(selfLat, selfLon)) { + selfPoint = LatLng(selfLat, selfLon); + } - final contact = _getRepeaterPrefixMatchNearLocation( - allContacts, - repeater.pubkeyPrefix, - contactKeyHex: repeater.contactKeyHex, - searchPoint: selfPoint, - preferFavorites: true, - ); + final contact = _getRepeaterPrefixMatchNearLocation( + allContacts, + repeater.pubkeyPrefix, + contactKeyHex: repeater.contactKeyHex, + searchPoint: selfPoint, + preferFavorites: true, + ); - final name = contact?.name; - final prefixLabel = PathHelper.formatHopHex( - repeater.pubkeyPrefix, - ); - final snrColor = MeshTheme.snrColor( - repeater.snr, - blocked: false, - ); + final name = contact?.name; + final prefixLabel = PathHelper.formatHopHex( + repeater.pubkeyPrefix, + ); + final snrColor = MeshTheme.snrColor( + repeater.snr, + blocked: false, + ); + final colorScheme = Theme.of(context).colorScheme; - return Padding( - padding: const EdgeInsets.symmetric( - horizontal: 16, - vertical: 10, - ), - child: Row( - children: [ - AvatarCircle( - name: name ?? prefixLabel, - size: 36, - color: snrColor, - ), - const SizedBox(width: 12), - Expanded( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, + return Padding( + padding: const EdgeInsets.symmetric( + horizontal: 16, + vertical: 10, + ), + child: Row( children: [ - Text( - name ?? prefixLabel, - style: Theme.of(context).textTheme.bodyMedium, + AvatarCircle( + name: name ?? prefixLabel, + size: 36, + color: colorScheme.onSurfaceVariant, ), - Text( - '${repeater.snr.toStringAsFixed(1)} dB • ${_formatLastUpdated(repeater.lastUpdated)}', - style: MeshTheme.mono( - fontSize: 11, - color: snrColor, + const SizedBox(width: 12), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + name ?? prefixLabel, + style: Theme.of(context) + .textTheme + .bodyMedium + ?.copyWith( + color: colorScheme.onSurface, + ), + ), + Row( + children: [ + Icon( + Icons.circle, + size: 8, + color: snrColor, + ), + const SizedBox(width: 6), + Text( + '${repeater.snr.toStringAsFixed(1)} dB • ${_formatLastUpdated(repeater.lastUpdated)}', + style: MeshTheme.mono( + fontSize: 11, + color: colorScheme.onSurfaceVariant, + ), + ), + ], + ), + ], ), ), ], ), - ), - ], + ); + }, ), - ); - }, - ), + ), + ), + ], ), ), actions: [ diff --git a/test/helpers/guessed_location_estimator_test.dart b/test/helpers/guessed_location_estimator_test.dart new file mode 100644 index 00000000..be9c0e6c --- /dev/null +++ b/test/helpers/guessed_location_estimator_test.dart @@ -0,0 +1,197 @@ +import 'dart:typed_data'; + +import 'package:flutter_test/flutter_test.dart'; +import 'package:latlong2/latlong.dart'; +import 'package:meshcore_open/helpers/guessed_location_estimator.dart'; + +const _phoenix = (33.45, -112.07); +const _casaGrande = (32.88, -111.76); +const _flagstaff = (35.20, -111.65); +const _london = (51.50, -0.12); + +Uint8List _key(List bytes) => + Uint8List.fromList([...bytes, ...List.filled(32 - bytes.length, 0)]); + +GuessInput _input({ + required List candidates, + required List<(Uint8List, double, double)> anchors, + (double, double)? self, +}) => ( + candidates: candidates, + anchors: anchors, + selfPosition: self, + maxRangeKm: null, +); + +GuessCandidate _node(List<(List, int)> paths) => + (publicKey: _key([0x99]), paths: paths); + +double _km((double, double) a, double lat, double lon) => const Distance().as( + LengthUnit.Kilometer, + LatLng(a.$1, a.$2), + LatLng(lat, lon), +); + +void main() { + test('places a node next to the repeater its path ends on', () { + final result = estimateGuessedLocations( + _input( + candidates: [ + _node([ + ([0xA1, 0xB2], 1), + ]), + ], + anchors: [ + (_key([0xA1]), _phoenix.$1, _phoenix.$2), + (_key([0xB2]), _casaGrande.$1, _casaGrande.$2), + ], + self: _phoenix, + ), + ); + + expect(result, hasLength(1)); + final (index, lat, lon, highConfidence) = result.single; + expect(index, 0); + expect(_km(_casaGrande, lat, lon), lessThan(1)); + expect(highConfidence, isFalse); + }); + + test('resolves a colliding hop prefix to the repeater in range', () { + // Two repeaters share prefix 0xB2: one in Tucson, one in London. + final result = estimateGuessedLocations( + _input( + candidates: [ + _node([ + ([0xA1, 0xB2], 1), + ]), + ], + anchors: [ + (_key([0xA1]), _phoenix.$1, _phoenix.$2), + (_key([0xB2]), _london.$1, _london.$2), + (_key([0xB2, 0x01]), _casaGrande.$1, _casaGrande.$2), + ], + self: _phoenix, + ), + ); + + final (_, lat, lon, _) = result.single; + expect(_km(_casaGrande, lat, lon), lessThan(1)); + }); + + test('skips an ambiguous prefix when there is no reference point', () { + final result = estimateGuessedLocations( + _input( + candidates: [ + _node([ + ([0xB2], 1), + ]), + ], + anchors: [ + (_key([0xB2]), _london.$1, _london.$2), + (_key([0xB2, 0x01]), _casaGrande.$1, _casaGrande.$2), + ], + ), + ); + + expect(result, isEmpty); + }); + + test('weights repeaters by how many paths ended on them', () { + final result = estimateGuessedLocations( + _input( + candidates: [ + _node([ + ([0xB2], 1), + ([0xB2], 1), + ([0xB2], 1), + ([0xC3], 1), + ]), + ], + anchors: [ + (_key([0xB2]), _phoenix.$1, _phoenix.$2), + (_key([0xC3]), _casaGrande.$1, _casaGrande.$2), + ], + ), + ); + + final (_, lat, lon, highConfidence) = result.single; + expect(highConfidence, isTrue); + // Three votes for Phoenix, one for Tucson: a quarter of the way. + expect( + lat, + closeTo(_phoenix.$1 + (_casaGrande.$1 - _phoenix.$1) / 4, 0.01), + ); + expect( + lon, + closeTo(_phoenix.$2 + (_casaGrande.$2 - _phoenix.$2) / 4, 0.01), + ); + }); + + test('result does not depend on path order', () { + List<(int, double, double, bool)> run(List<(List, int)> paths) => + estimateGuessedLocations( + _input( + candidates: [_node(paths)], + anchors: [ + (_key([0xB2]), _phoenix.$1, _phoenix.$2), + (_key([0xC3]), _flagstaff.$1, _flagstaff.$2), + ], + ), + ); + + expect( + run([ + ([0xB2], 1), + ([0xC3], 1), + ]), + run([ + ([0xC3], 1), + ([0xB2], 1), + ]), + ); + }); + + test('drops a repeater too far from the others to share one node', () { + final result = estimateGuessedLocations( + _input( + candidates: [ + _node([ + ([0xB2], 1), + ([0xC3], 1), + ([0xD4], 1), + ]), + ], + anchors: [ + (_key([0xB2]), _phoenix.$1, _phoenix.$2), + (_key([0xC3]), _casaGrande.$1, _casaGrande.$2), + (_key([0xD4]), _london.$1, _london.$2), + ], + ), + ); + + final (_, lat, lon, _) = result.single; + expect(lat, closeTo((_phoenix.$1 + _casaGrande.$1) / 2, 0.01)); + expect(lon, closeTo((_phoenix.$2 + _casaGrande.$2) / 2, 0.01)); + }); + + test('handles 2-byte hop hashes', () { + final result = estimateGuessedLocations( + _input( + candidates: [ + _node([ + ([0xA1, 0x01, 0xB2, 0x02], 2), + ]), + ], + anchors: [ + (_key([0xA1, 0x01]), _phoenix.$1, _phoenix.$2), + (_key([0xB2, 0x02]), _casaGrande.$1, _casaGrande.$2), + (_key([0xB2, 0x03]), _flagstaff.$1, _flagstaff.$2), + ], + self: _phoenix, + ), + ); + + final (_, lat, lon, _) = result.single; + expect(_km(_casaGrande, lat, lon), lessThan(1)); + }); +} diff --git a/test/models/channel_message_reply_test.dart b/test/models/channel_message_reply_test.dart new file mode 100644 index 00000000..1f350aa0 --- /dev/null +++ b/test/models/channel_message_reply_test.dart @@ -0,0 +1,29 @@ +import 'package:flutter_test/flutter_test.dart'; +import 'package:meshcore_open/models/channel_message.dart'; + +void main() { + test('outgoing reply keeps the selected target, not the latest post', () { + final older = ChannelMessage.outgoing('first post', 'Alice', 0); + ChannelMessage.outgoing('second post', 'Alice', 0); + + final reply = ChannelMessage.outgoing( + '@[Alice] answer', + 'Me', + 0, + replyTo: older, + ); + + expect(reply.replyToMessageId, older.messageId); + expect(reply.replyToSenderName, 'Alice'); + expect(reply.replyToText, 'first post'); + expect( + ChannelMessage.parseReplyMention(reply.text)?.actualMessage, + 'answer', + ); + }); + + test('outgoing message without reply has no reply target', () { + final message = ChannelMessage.outgoing('hello', 'Me', 0); + expect(message.replyToMessageId, isNull); + }); +} diff --git a/untranslated.json b/untranslated.json index 9e26dfee..cb51386f 100644 --- a/untranslated.json +++ b/untranslated.json @@ -1 +1,1293 @@ -{} \ No newline at end of file +{ + "bg": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "de": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "es": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "fr": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "hu": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "it": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "ja": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "ko": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "nl": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "pl": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "pt": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "ru": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "sk": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "sl": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "sv": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "uk": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ], + + "zh": [ + "messageStatus_failedChannel", + "messageStatus_resending", + "messageStatus_hopsNotReached", + "messageStatus_sentChannel", + "messageStatus_sentDirect", + "messageStatus_heardRepeatedCount", + "settings_regionEmptyExplanation", + "settings_regionFetchFromRepeaters", + "settings_regionDefault", + "settings_regionDefaultSubtitle", + "settings_regionDefaultNone", + "settings_telemetryPerContactHint", + "settings_multiAckSubtitle", + "settings_presetCustom", + "settings_radioMatchWarning", + "settings_txPowerRangeHelper", + "settings_clientRepeatFrequencyNote", + "settings_pathHashModeHelper", + "settings_requiresFirmware", + "appSettings_channelMinHops", + "appSettings_channelMinHopsSubtitle", + "appSettings_channelMinHopsCount", + "appSettings_channelMinHopsRetries", + "appSettings_batteryOptimization", + "appSettings_batteryOptimizationSubtitle", + "contacts_removeFromContacts", + "contacts_removeFromContactsConfirm", + "contacts_keepChatHistory", + "contacts_remove", + "contacts_discoveredNearby", + "contacts_noContactsDiscoveredHint", + "channels_hashtag", + "channels_addSectionJoin", + "channels_addSectionCreate", + "channels_dragToReorder", + "channels_regionDefaultSuffix", + "channels_regionSelectExplanation", + "channels_regionEmpty", + "channels_manageRegions", + "chat_removeGif", + "chat_cancelReply", + "chat_viewPathOnMap", + "chat_today", + "chat_yesterday", + "map_centerOnMe", + "map_noNodesLocationHint", + "map_clusterNodes", + "map_groupChip", + "map_clusterNodesSubtitle", + "map_manageServer", + "login_showPassword", + "login_hidePassword", + "login_advanced", + "common_clearSearch", + "repeater_roleAdmin", + "repeater_roleGuest", + "repeater_refreshAll", + "repeater_settingsNotLoaded", + "repeater_settingsLoadIncomplete", + "snrIndicator_nearByRepeatersDescription", + "radioStats_sectionSignal", + "radioStats_sectionAirtime", + "imageSend_lossyNote", + "imageSend_viewOriginal", + "imageSend_viewReconstruction", + "imageSend_reconstructionUnavailable", + "imageSend_modelNotDownloaded", + "receivedImage_save", + "receivedImage_shareCaption", + "receivedImage_packetInfo", + "receivedImage_parityRecovered", + "receivedImage_decodeTime", + "receivedImage_saveFailed" + ] +} From 5d7f922c588a87a585cbc3bc2f6802ca3aa3f3b5 Mon Sep 17 00:00:00 2001 From: zjs81 Date: Sun, 27 Sep 2026 11:35:55 -0700 Subject: [PATCH 2/2] Improve channel resend error handling and enhance message comparison logic --- lib/connector/meshcore_connector.dart | 35 ++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/lib/connector/meshcore_connector.dart b/lib/connector/meshcore_connector.dart index 30ef0a73..b1e736b8 100644 --- a/lib/connector/meshcore_connector.dart +++ b/lib/connector/meshcore_connector.dart @@ -3890,7 +3890,15 @@ class MeshCoreConnector extends ChangeNotifier { maxResends: maxResends, ); notifyListeners(); - await resend(); + try { + await resend(); + } catch (e) { + _appDebugLogService?.warn( + 'Channel resend failed: $e', + tag: 'Channel resend', + ); + break; + } } _appDebugLogService?.warn( 'Channel message only heard at $hops of $minHops hops; giving up', @@ -6987,12 +6995,31 @@ class MeshCoreConnector extends ChangeNotifier { } } // Second pass: heuristic fallback (outgoing echo, old messages without hash) + int? selfEchoFallback; for (int i = messages.length - 1; i >= 0; i--) { - if (_isChannelRepeat(messages[i], incoming)) { - return i; + final existing = messages[i]; + if (!_isChannelRepeat(existing, incoming)) continue; + if (!existing.isOutgoing) return i; + // Our messages sent within one second share a timestamp. Skip any + // already tied to a different packet, and prefer the one whose text + // matches; the text can differ (reply prefix, cyr2lat), so otherwise + // fall back to the newest. + final existingHash = existing.packetHash; + if (existingHash != null && + incomingHash != null && + existingHash != incomingHash) { + continue; } + if (_sameChannelText(existing.text, incoming.text)) return i; + selfEchoFallback ??= i; } - return -1; + return selfEchoFallback ?? -1; + } + + bool _sameChannelText(String a, String b) { + String strip(String text) => + ChannelMessage.parseReplyMention(text)?.actualMessage ?? text; + return a == b || strip(a) == strip(b); } bool _isChannelRepeat(ChannelMessage existing, ChannelMessage incoming) {