Fix review findings, add default flood scope, and address recent issues
Review fixes: - Keep stored message history beyond the 200-message window; stop messages leaking between radios; reset link/session state on disconnect - Accept firmware's 176-byte RX frames over USB/TCP - Hold APP_START during contact sync; contact-sync watchdog; replay DMs from not-yet-known senders; tombstone late command replies; finish channel sync on ERR_NOT_FOUND; fail region-scoped sends cleanly - DM retry watchdog when RESP_CODE_SENT never arrives; late repeater CLI replies; ACK hash collisions; UTF-8-safe name truncation - Image pipeline: delete-during-decode, lifecycle cancels, decoder memory release, entry cap, dead worker recovery, atomic model writes - Storage: deterministic reaction hash across web/native, Smaz double-decode, per-entry parsing, per-radio path history and regions, review-mode data isolation - UI: safe channel slot selection, byte-length name limits, double-send guard, mounted checks, localized hardcoded strings - Skip persisted-store reload on repeat SELF_INFO Features: - Radio default flood scope (firmware ver 11+) and explicit unscoped sends (ver 12+) - Scan for nearby nodes (#570) - Optional distinct first-hop repeater counting for channel resend (#589) - Optional region next to hop count (#580) Issues: - Message text follows system font size (#569) - Repeater/room password field accepts 20 chars (#576) - TCP auto-reconnect and keepalive (#571) - Order feeds by local receive time; flag future timestamps (#584) - Coding rate help text (#568), French "Favoris" (#575) - iOS/macOS app badge now clears Translations for all new strings in every locale.
This commit is contained in:
1 parent
a64a33d0c0
commit
25f197c979
120 files changed
+10424
-687
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -133,9 +133,8 @@ class BufferWriter {
|
||||
void writeCString(String string, int maxLength) {
|
||||
final bytes = Uint8List(maxLength);
|
||||
final encoded = utf8.encode(string);
|
||||
for (var i = 0; i < maxLength - 1 && i < encoded.length; i++) {
|
||||
bytes[i] = encoded[i];
|
||||
}
|
||||
final len = utf8BoundaryLength(encoded, maxLength - 1);
|
||||
bytes.setRange(0, len, encoded);
|
||||
writeBytes(bytes);
|
||||
}
|
||||
|
||||
@@ -215,6 +214,8 @@ const int cmdSetAutoAddConfig = 58;
|
||||
const int cmdGetAutoAddConfig = 59;
|
||||
const int cmdGetAllowedRepeatFreq = 60;
|
||||
const int cmdSetPathHashMode = 61;
|
||||
const int cmdSetDefaultFloodScope = 63; // FIRMWARE_VER_CODE 11+
|
||||
const int cmdGetDefaultFloodScope = 64; // FIRMWARE_VER_CODE 11+
|
||||
|
||||
// Text message types
|
||||
const int txtTypePlain = 0;
|
||||
@@ -265,6 +266,12 @@ const int respCodeCustomVars = 21;
|
||||
const int respCodeAutoAddConfig = 25;
|
||||
const int respCodeAllowedRepeatFreq = 26;
|
||||
const int respCodeStats = 24;
|
||||
const int respCodeDefaultFloodScope = 28;
|
||||
|
||||
/// Region name field width in SET/GET_DEFAULT_FLOOD_SCOPE frames (NUL padded,
|
||||
/// so at most 30 name bytes).
|
||||
const int defaultFloodScopeNameSize = 31;
|
||||
const int floodScopeKeySize = 16;
|
||||
|
||||
const int statsTypeCore = 0;
|
||||
const int statsTypeRadio = 1;
|
||||
@@ -333,13 +340,34 @@ const int autoAddRoomServerFlag =
|
||||
const int autoAddSensorFlag =
|
||||
1 << 4; // 0x10 - auto-add Sensor (ADV_TYPE_SENSOR)
|
||||
|
||||
/// Returns the largest prefix length of [bytes] that is at most [maxBytes]
|
||||
/// and does not end in the middle of a UTF-8 encoded character.
|
||||
int utf8BoundaryLength(List<int> bytes, int maxBytes) {
|
||||
if (bytes.length <= maxBytes) return bytes.length;
|
||||
if (maxBytes <= 0) return 0;
|
||||
var len = maxBytes;
|
||||
// Back up over continuation bytes (10xxxxxx) to the lead byte, then drop
|
||||
// that lead byte too since its character would be cut short.
|
||||
while (len > 0 && (bytes[len] & 0xC0) == 0x80) {
|
||||
len--;
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
||||
// Sizes
|
||||
const int pubKeySize = 32;
|
||||
const int signatureSize = 64;
|
||||
const int maxPathSize = 64;
|
||||
const int pathHashSize = 1;
|
||||
const int maxNameSize = 32;
|
||||
// Largest frame the app sends. Kept at 172 so commands still fit radios on
|
||||
// firmware built before MAX_FRAME_SIZE grew to 176.
|
||||
const int maxFrameSize = 172;
|
||||
// Largest frame current firmware may send (MAX_FRAME_SIZE 176, +4 bytes for
|
||||
// region transport codes). Receive paths must accept frames up to this size.
|
||||
const int maxRxFrameSize = 176;
|
||||
// Widest per-hop path hash firmware accepts on air (mode 2); 4 is reserved.
|
||||
const int maxPathHashWidth = 3;
|
||||
const int appProtocolVersion = 4;
|
||||
// Matches firmware MAX_TEXT_LEN (10 * CIPHER_BLOCK_SIZE).
|
||||
const int maxTextPayloadBytes = 160;
|
||||
@@ -599,7 +627,8 @@ Uint8List buildGetStatsFrame(int statsType) {
|
||||
return Uint8List.fromList([cmdGetStats, statsType & 0xFF]);
|
||||
}
|
||||
|
||||
/// Path hash width on air: [61][0][mode], mode 0..3 → (mode+1) bytes per hop hash.
|
||||
/// Path hash width on air: [61][0][mode], mode 0..2 → (mode+1) bytes per hop
|
||||
/// hash. Firmware rejects mode 3 (4-byte hashes are reserved).
|
||||
Uint8List buildSetPathHashModeFrame(int mode) {
|
||||
final m = mode.clamp(0, 2).toInt();
|
||||
return Uint8List.fromList([cmdSetPathHashMode, 0, m]);
|
||||
@@ -623,9 +652,7 @@ Uint8List buildSendSelfAdvertFrame({bool flood = false}) {
|
||||
// Format: [cmd][name...]
|
||||
Uint8List buildSetAdvertNameFrame(String name) {
|
||||
final nameBytes = utf8.encode(name);
|
||||
final nameLen = nameBytes.length < maxNameSize
|
||||
? nameBytes.length
|
||||
: maxNameSize - 1;
|
||||
final nameLen = utf8BoundaryLength(nameBytes, maxNameSize - 1);
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(cmdSetAdvertName);
|
||||
writer.writeBytes(Uint8List.fromList(nameBytes.sublist(0, nameLen)));
|
||||
@@ -938,9 +965,72 @@ Uint8List buildDiscoveryRequestPayload(
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
/// Node types a manual nearby-node scan asks for. Firmware repeaters and
|
||||
/// sensors answer DISCOVER_REQ; room servers and companions currently don't,
|
||||
/// but the room bit is harmless and lets future firmware reply.
|
||||
const int nodeDiscoverScanTypeMask =
|
||||
(1 << advTypeRepeater) | (1 << advTypeRoom) | (1 << advTypeSensor);
|
||||
|
||||
/// One DISCOVER_RESP, as pushed by the companion in PUSH_CODE_CONTROL_DATA:
|
||||
/// `[0x8E][snr x4 int8][rssi int8][path_len][0x9<type>][snr x4 int8][tag u32 LE][pub_key 8|32]`.
|
||||
class NodeDiscoverResponse {
|
||||
NodeDiscoverResponse({
|
||||
required this.nodeType,
|
||||
required this.snr,
|
||||
required this.rssi,
|
||||
required this.remoteSnr,
|
||||
required this.tag,
|
||||
required this.publicKey,
|
||||
});
|
||||
|
||||
final int nodeType;
|
||||
|
||||
/// SNR (dB) of the response as received by our radio.
|
||||
final double snr;
|
||||
final int rssi;
|
||||
|
||||
/// SNR (dB) of our request as heard by the responding node.
|
||||
final double remoteSnr;
|
||||
final int tag;
|
||||
|
||||
/// Full 32-byte key, or an 8-byte prefix when the request was prefix-only.
|
||||
final Uint8List publicKey;
|
||||
|
||||
bool get hasFullKey => publicKey.length == pubKeySize;
|
||||
String get publicKeyHex => pubKeyToHex(publicKey);
|
||||
}
|
||||
|
||||
/// Parses a PUSH_CODE_CONTROL_DATA frame carrying a DISCOVER_RESP, or returns
|
||||
/// null for any other or malformed frame.
|
||||
NodeDiscoverResponse? parseNodeDiscoverResponse(Uint8List frame) {
|
||||
// Push header (4) + type, snr, tag (6) + at least an 8-byte key prefix.
|
||||
if (frame.length < 4 + 6 + 8 || frame[0] != pushCodeControlData) {
|
||||
return null;
|
||||
}
|
||||
final reader = BufferReader(frame);
|
||||
reader.skipBytes(1);
|
||||
final snr = reader.readInt8() / 4.0;
|
||||
final rssi = reader.readInt8();
|
||||
reader.skipBytes(1); // path_len: responses are sent zero-hop.
|
||||
final typeByte = reader.readByte();
|
||||
if ((typeByte >> 4) != controlSubtypeDiscoverResp) return null;
|
||||
final remoteSnr = reader.readInt8() / 4.0;
|
||||
final tag = reader.readUInt32LE();
|
||||
final keyBytes = reader.readRemainingBytes();
|
||||
final keyLength = keyBytes.length >= pubKeySize ? pubKeySize : 8;
|
||||
return NodeDiscoverResponse(
|
||||
nodeType: typeByte & 0x0F,
|
||||
snr: snr,
|
||||
rssi: rssi,
|
||||
remoteSnr: remoteSnr,
|
||||
tag: tag,
|
||||
publicKey: Uint8List.fromList(keyBytes.sublist(0, keyLength)),
|
||||
);
|
||||
}
|
||||
|
||||
Uint8List _reversePathByHop(Uint8List path, int pathHashWidth) {
|
||||
if (path.isEmpty) return Uint8List(0);
|
||||
final width = pathHashWidth.clamp(1, 4).toInt();
|
||||
final width = pathHashWidth.clamp(1, maxPathHashWidth).toInt();
|
||||
if (path.length % width != 0) {
|
||||
return Uint8List.fromList(path.reversed.toList());
|
||||
}
|
||||
@@ -963,7 +1053,7 @@ Uint8List buildSendAnonReqFrame(
|
||||
int replyHopCount = 0,
|
||||
int pathHashWidth = pathHashSize,
|
||||
}) {
|
||||
final width = pathHashWidth.clamp(1, 4).toInt();
|
||||
final width = pathHashWidth.clamp(1, maxPathHashWidth).toInt();
|
||||
final path = replyPath ?? Uint8List(0);
|
||||
final encodedPathLen = ((width - 1) << 6) | (replyHopCount & 0x3F);
|
||||
final writer = BufferWriter();
|
||||
@@ -1086,6 +1176,63 @@ Uint8List buildSetFloodScopeFrame(String region) {
|
||||
return Uint8List.fromList([cmdSetFloodScope, 0, ...scope]);
|
||||
}
|
||||
|
||||
/// CMD_SET_FLOOD_SCOPE variant 1 (FIRMWARE_VER_CODE 12+): send floods with no
|
||||
/// transport scope at all, overriding the radio's default flood scope.
|
||||
Uint8List buildSetFloodScopeUnscopedFrame() {
|
||||
return Uint8List.fromList([cmdSetFloodScope, 1]);
|
||||
}
|
||||
|
||||
Uint8List buildGetDefaultFloodScopeFrame() {
|
||||
return Uint8List.fromList([cmdGetDefaultFloodScope]);
|
||||
}
|
||||
|
||||
/// CMD_SET_DEFAULT_FLOOD_SCOPE: `[63][name 31][key 16]` stores [region] as the
|
||||
/// radio's default flood scope; an empty [region] clears it (`[63]`).
|
||||
/// The name is stored without a leading '#'; the key uses the same derivation
|
||||
/// as [buildSetFloodScopeFrame].
|
||||
Uint8List buildSetDefaultFloodScopeFrame(String region) {
|
||||
final name = region.startsWith('#') ? region.substring(1) : region;
|
||||
if (name.isEmpty) return Uint8List.fromList([cmdSetDefaultFloodScope]);
|
||||
final nameBytes = utf8.encode(name);
|
||||
if (nameBytes.length >= defaultFloodScopeNameSize) {
|
||||
throw ArgumentError.value(region, 'region', 'name longer than 30 bytes');
|
||||
}
|
||||
final frame = Uint8List(1 + defaultFloodScopeNameSize + floodScopeKeySize);
|
||||
frame[0] = cmdSetDefaultFloodScope;
|
||||
frame.setRange(1, 1 + nameBytes.length, nameBytes);
|
||||
frame.setRange(
|
||||
1 + defaultFloodScopeNameSize,
|
||||
frame.length,
|
||||
floodScopeKeyForRegion(name),
|
||||
);
|
||||
return frame;
|
||||
}
|
||||
|
||||
/// Parses RESP_CODE_DEFAULT_FLOOD_SCOPE. Returns null when the radio has no
|
||||
/// default scope (`[28]` alone) or the frame is malformed.
|
||||
({String name, Uint8List key})? parseDefaultFloodScopeFrame(Uint8List frame) {
|
||||
if (frame.isEmpty || frame[0] != respCodeDefaultFloodScope) return null;
|
||||
if (frame.length < 1 + defaultFloodScopeNameSize + floodScopeKeySize) {
|
||||
return null;
|
||||
}
|
||||
final nameField = frame.sublist(1, 1 + defaultFloodScopeNameSize);
|
||||
final end = nameField.indexOf(0);
|
||||
final name = utf8
|
||||
.decode(
|
||||
end >= 0 ? nameField.sublist(0, end) : nameField,
|
||||
allowMalformed: true,
|
||||
)
|
||||
.trim();
|
||||
if (name.isEmpty) return null;
|
||||
final keyStart = 1 + defaultFloodScopeNameSize;
|
||||
return (
|
||||
name: name,
|
||||
key: Uint8List.fromList(
|
||||
frame.sublist(keyStart, keyStart + floodScopeKeySize),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Uint8List floodScopeKeyForRegion(String region) {
|
||||
final name = region.startsWith('#') ? region : '#$region';
|
||||
final hash = crypto.sha256.convert(utf8.encode(name)).bytes;
|
||||
|
||||
@@ -17,7 +17,14 @@ class PendingCommandReply {
|
||||
final Uint8List? matchKey;
|
||||
final String? channelSendQueueId;
|
||||
final Completer<void>? completer;
|
||||
final DateTime createdAt = DateTime.now();
|
||||
final DateTime createdAt;
|
||||
|
||||
/// Set when the sender gave up waiting. The entry then stays queued as a
|
||||
/// tombstone so the firmware's late reply is absorbed here instead of being
|
||||
/// credited to the next command.
|
||||
DateTime? timedOutAt;
|
||||
|
||||
bool get isTombstone => timedOutAt != null;
|
||||
|
||||
PendingCommandReply({
|
||||
required this.commandCode,
|
||||
@@ -25,7 +32,8 @@ class PendingCommandReply {
|
||||
this.matchKey,
|
||||
this.channelSendQueueId,
|
||||
this.completer,
|
||||
});
|
||||
DateTime? createdAt,
|
||||
}) : createdAt = createdAt ?? DateTime.now();
|
||||
}
|
||||
|
||||
/// Success reply for each command whose single reply is OK/ERR or a specific
|
||||
@@ -53,6 +61,7 @@ int? replyCodeForCommand(Uint8List data) {
|
||||
case cmdSetAutoAddConfig:
|
||||
case cmdSetPathHashMode:
|
||||
case cmdSendChannelData:
|
||||
case cmdSetDefaultFloodScope:
|
||||
return respCodeOk;
|
||||
case cmdSendTxtMsg:
|
||||
case cmdSendLogin:
|
||||
@@ -88,6 +97,8 @@ int? replyCodeForCommand(Uint8List data) {
|
||||
return respCodeAutoAddConfig;
|
||||
case cmdGetAllowedRepeatFreq:
|
||||
return respCodeAllowedRepeatFreq;
|
||||
case cmdGetDefaultFloodScope:
|
||||
return respCodeDefaultFloodScope;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -96,11 +107,20 @@ int? replyCodeForCommand(Uint8List data) {
|
||||
/// and answers each with OK, ERR or a specific RESP_CODE, so an ERR belongs
|
||||
/// to the oldest pending command and an OK to the oldest one expecting OK.
|
||||
class PendingCommandReplies {
|
||||
PendingCommandReplies({required this.staleAfter});
|
||||
PendingCommandReplies({
|
||||
required this.staleAfter,
|
||||
this.tombstoneLifetime = const Duration(seconds: 10),
|
||||
DateTime Function()? clock,
|
||||
}) : _clock = clock ?? DateTime.now;
|
||||
|
||||
/// Entries older than this are dropped so a lost reply cannot swallow a
|
||||
/// later, unrelated OK/ERR. Awaited entries time out in sendFrame first.
|
||||
final Duration staleAfter;
|
||||
|
||||
/// How long a timed-out entry waits for its late reply. Kept short so a
|
||||
/// reply that never comes swallows at most a brief window of replies.
|
||||
final Duration tombstoneLifetime;
|
||||
final DateTime Function() _clock;
|
||||
final List<PendingCommandReply> _queue = [];
|
||||
|
||||
int get length => _queue.length;
|
||||
@@ -123,6 +143,7 @@ class PendingCommandReplies {
|
||||
: null,
|
||||
channelSendQueueId: channelSendQueueId,
|
||||
completer: waitForReply ? Completer<void>() : null,
|
||||
createdAt: _clock(),
|
||||
);
|
||||
if (pending.completer != null) {
|
||||
// The sender awaits this future after transport I/O; attach an error
|
||||
@@ -135,11 +156,19 @@ class PendingCommandReplies {
|
||||
|
||||
void remove(PendingCommandReply pending) => _queue.remove(pending);
|
||||
|
||||
/// Marks [pending] as abandoned by its sender. It keeps its place in the
|
||||
/// FIFO so a late reply is consumed by it rather than misattributed.
|
||||
void markTimedOut(PendingCommandReply pending) {
|
||||
if (!_queue.contains(pending)) return;
|
||||
pending.timedOutAt = _clock();
|
||||
}
|
||||
|
||||
void clear() => _queue.clear();
|
||||
|
||||
/// Completes the oldest command whose success reply is [frame]'s code.
|
||||
bool completeReply(Uint8List frame) {
|
||||
if (frame.isEmpty) return false;
|
||||
_pruneStale();
|
||||
final code = frame[0];
|
||||
if (code == respCodeOk || code == respCodeErr) return false;
|
||||
final key = code == respCodeContact && frame.length >= 1 + pubKeySize
|
||||
@@ -156,20 +185,24 @@ class PendingCommandReplies {
|
||||
}
|
||||
|
||||
/// Attributes RESP_CODE_OK; commands expecting a specific reply are skipped.
|
||||
/// Returns null when no command matches or a timed-out entry absorbed it.
|
||||
PendingCommandReply? takeOk() {
|
||||
_pruneStale();
|
||||
final index = _queue.indexWhere((p) => p.replyCode == respCodeOk);
|
||||
if (index < 0) return null;
|
||||
final pending = _queue.removeAt(index);
|
||||
if (pending.isTombstone) return null;
|
||||
pending.completer?.complete();
|
||||
return pending;
|
||||
}
|
||||
|
||||
/// Attributes RESP_CODE_ERR to the oldest pending command.
|
||||
/// Returns null when nothing is pending or a timed-out entry absorbed it.
|
||||
PendingCommandReply? takeErr(int errCode) {
|
||||
_pruneStale();
|
||||
if (_queue.isEmpty) return null;
|
||||
final pending = _queue.removeAt(0);
|
||||
if (pending.isTombstone) return null;
|
||||
pending.completer?.completeError(
|
||||
Exception('Command failed with error code $errCode'),
|
||||
);
|
||||
@@ -177,7 +210,13 @@ class PendingCommandReplies {
|
||||
}
|
||||
|
||||
void _pruneStale() {
|
||||
final cutoff = DateTime.now().subtract(staleAfter);
|
||||
_queue.removeWhere((p) => p.createdAt.isBefore(cutoff));
|
||||
final now = _clock();
|
||||
final cutoff = now.subtract(staleAfter);
|
||||
final tombstoneCutoff = now.subtract(tombstoneLifetime);
|
||||
_queue.removeWhere(
|
||||
(p) =>
|
||||
p.createdAt.isBefore(cutoff) ||
|
||||
(p.timedOutAt?.isBefore(tombstoneCutoff) ?? false),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import 'dart:typed_data';
|
||||
|
||||
import '../models/channel_message.dart';
|
||||
|
||||
/// Distinct first-hop repeaters heard echoing [message], across every resend
|
||||
/// (echoes of all attempts merge into the same message's path variants).
|
||||
///
|
||||
/// Each first hop is the leading `pathHashWidth` bytes of an echo's path.
|
||||
/// Zero-hop echoes and a first hop matching our own key prefix are ignored.
|
||||
Set<String> distinctFirstHopRepeaters(
|
||||
ChannelMessage message, {
|
||||
Uint8List? selfPublicKey,
|
||||
}) {
|
||||
final width = (message.pathHashWidth ?? 1).clamp(1, 3).toInt();
|
||||
String? selfPrefix;
|
||||
if (selfPublicKey != null && selfPublicKey.length >= width) {
|
||||
selfPrefix = _hex(selfPublicKey, width);
|
||||
}
|
||||
final hops = <String>{};
|
||||
for (final path in [message.pathBytes, ...message.pathVariants]) {
|
||||
if (path.length < width) continue;
|
||||
final hop = _hex(path, width);
|
||||
if (hop != selfPrefix) hops.add(hop);
|
||||
}
|
||||
return hops;
|
||||
}
|
||||
|
||||
/// Whether a channel resend has heard [message] travel far enough:
|
||||
/// an echo through at least [minHops] repeaters, or, when
|
||||
/// [countDistinctRepeaters] is on, echoes from at least [minHops] different
|
||||
/// first-hop repeaters.
|
||||
bool channelResendSatisfied(
|
||||
ChannelMessage message, {
|
||||
required int minHops,
|
||||
required bool countDistinctRepeaters,
|
||||
Uint8List? selfPublicKey,
|
||||
}) {
|
||||
if ((message.pathLength ?? 0) >= minHops) return true;
|
||||
if (!countDistinctRepeaters) return false;
|
||||
return distinctFirstHopRepeaters(
|
||||
message,
|
||||
selfPublicKey: selfPublicKey,
|
||||
).length >=
|
||||
minHops;
|
||||
}
|
||||
|
||||
String _hex(Uint8List bytes, int length) {
|
||||
final buffer = StringBuffer();
|
||||
for (var i = 0; i < length; i++) {
|
||||
buffer.write(bytes[i].toRadixString(16).padLeft(2, '0'));
|
||||
}
|
||||
return buffer.toString();
|
||||
}
|
||||
@@ -24,7 +24,9 @@ class Cyr2Lat {
|
||||
'х': 'x',
|
||||
};
|
||||
|
||||
static final RegExp _prefixRegExp = RegExp(r'\@\[[\S\s]+\] ');
|
||||
// Non-greedy so only the leading "@[name] " mention is treated as the
|
||||
// sender prefix, not everything up to the last "] " in the message.
|
||||
static final RegExp _prefixRegExp = RegExp(r'@\[[\S\s]+?\] ');
|
||||
|
||||
static void setCharMap(Map<String, String> charMap) {
|
||||
_charMap = Map.from(charMap);
|
||||
|
||||
@@ -15,6 +15,19 @@ class LinkHandler {
|
||||
return base.copyWith(color: orange, decoration: TextDecoration.underline);
|
||||
}
|
||||
|
||||
/// The system text scale as a linear factor for [style]'s size.
|
||||
///
|
||||
/// flutter_linkify only takes a `textScaleFactor` (default 1.0, which
|
||||
/// ignores the system font size), so the ambient [TextScaler] is sampled
|
||||
/// at the style's font size to keep Android's nonlinear scaling. The
|
||||
/// in-app chat text scale is already part of `style.fontSize`.
|
||||
static double systemTextScaleFactor(BuildContext context, TextStyle style) {
|
||||
final fontSize =
|
||||
style.fontSize ?? DefaultTextStyle.of(context).style.fontSize ?? 14;
|
||||
if (fontSize <= 0) return 1.0;
|
||||
return MediaQuery.textScalerOf(context).scale(fontSize) / fontSize;
|
||||
}
|
||||
|
||||
/// Returns a [SelectableLinkify] on desktop or a [Linkify] on mobile.
|
||||
static Widget buildLinkifyText({
|
||||
required BuildContext context,
|
||||
@@ -27,6 +40,7 @@ class LinkHandler {
|
||||
const options = LinkifyOptions(humanize: false, defaultToHttps: false);
|
||||
const linkifiers = [UrlLinkifier(), EmailLinkifier()];
|
||||
void onOpen(LinkableElement link) => handleLinkTap(context, link.url);
|
||||
final textScaleFactor = systemTextScaleFactor(context, style);
|
||||
|
||||
if (PlatformInfo.isDesktop) {
|
||||
final linkify = SelectableLinkify(
|
||||
@@ -36,6 +50,7 @@ class LinkHandler {
|
||||
options: options,
|
||||
linkifiers: linkifiers,
|
||||
onOpen: onOpen,
|
||||
textScaleFactor: textScaleFactor,
|
||||
);
|
||||
if (onSecondaryTap == null) return linkify;
|
||||
return Listener(
|
||||
@@ -53,6 +68,7 @@ class LinkHandler {
|
||||
options: options,
|
||||
linkifiers: linkifiers,
|
||||
onOpen: onOpen,
|
||||
textScaleFactor: textScaleFactor,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -120,11 +120,32 @@ class ReactionHelper {
|
||||
final input = senderName != null
|
||||
? '$timestampSeconds$senderName$first5'
|
||||
: '$timestampSeconds$first5';
|
||||
// Use hashCode and take lower 16 bits, format as 4 hex chars
|
||||
final hash = input.hashCode & 0xFFFF;
|
||||
// Take the lower 16 bits of the string hash, format as 4 hex chars
|
||||
final hash = stableStringHash(input) & 0xFFFF;
|
||||
return hash.toRadixString(16).padLeft(4, '0');
|
||||
}
|
||||
|
||||
/// Platform-independent reimplementation of the Dart VM's
|
||||
/// `String.hashCode` (one-at-a-time hash over UTF-16 code units, finalized
|
||||
/// to 30 bits). Reaction hashes were originally computed with
|
||||
/// `String.hashCode`, which differs on the web (dart2js), so this keeps
|
||||
/// the wire format identical to existing native clients while giving web
|
||||
/// builds the same result.
|
||||
static int stableStringHash(String input) {
|
||||
const mask32 = 0xFFFFFFFF;
|
||||
var hash = 0;
|
||||
for (final unit in input.codeUnits) {
|
||||
hash = (hash + unit) & mask32;
|
||||
hash = (hash + ((hash << 10) & mask32)) & mask32;
|
||||
hash ^= hash >> 6;
|
||||
}
|
||||
hash = (hash + ((hash << 3) & mask32)) & mask32;
|
||||
hash ^= hash >> 11;
|
||||
hash = (hash + ((hash << 15) & mask32)) & mask32;
|
||||
hash &= 0x3FFFFFFF;
|
||||
return hash == 0 ? 1 : hash;
|
||||
}
|
||||
|
||||
// Compute the type of reaction hash used by MeshCoreOne.
|
||||
static String computeReactionHashMC1(
|
||||
int timestampSeconds,
|
||||
|
||||
+23
-1
@@ -281,19 +281,41 @@ class Smaz {
|
||||
return text;
|
||||
}
|
||||
|
||||
/// Decodes text produced by [encodeIfSmaller]. Returns null when [text] is
|
||||
/// not a compressed payload.
|
||||
///
|
||||
/// Plain text can also start with `s:` followed by base64-looking
|
||||
/// characters ("s:test"), so a payload only counts as compressed when it
|
||||
/// satisfies the encoder's invariants: valid UTF-8, re-compressing the
|
||||
/// result yields the same bytes, and the encoded form is shorter than the
|
||||
/// decoded text. Very short ambiguous inputs can still match.
|
||||
static String? tryDecodePrefixed(String text) {
|
||||
final trimmedLeft = text.trimLeft();
|
||||
if (!trimmedLeft.startsWith('s:') || trimmedLeft.length <= 2) return null;
|
||||
final encoded = trimmedLeft.substring(2);
|
||||
try {
|
||||
final compressed = _decodeBase64Flexible(encoded);
|
||||
if (compressed.isEmpty) return null;
|
||||
final decompressed = decompressBytes(compressed);
|
||||
return utf8.decode(decompressed, allowMalformed: true);
|
||||
final decoded = utf8.decode(decompressed);
|
||||
final recompressed = compressBytes(decompressed);
|
||||
if (!_bytesEqual(recompressed, compressed)) return null;
|
||||
final candidateLength = 2 + base64Encode(compressed).length;
|
||||
if (candidateLength >= decompressed.length) return null;
|
||||
return decoded;
|
||||
} catch (_) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
static bool _bytesEqual(List<int> a, List<int> b) {
|
||||
if (a.length != b.length) return false;
|
||||
for (int i = 0; i < a.length; i++) {
|
||||
if (a[i] != b[i]) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static Uint8List compressBytes(Uint8List input) {
|
||||
final out = BytesBuilder(copy: false);
|
||||
final verbatim = <int>[];
|
||||
|
||||
@@ -72,3 +72,33 @@ class Utf8LengthLimitingTextInputFormatter extends TextInputFormatter {
|
||||
bool _isLowSurrogate(int codeUnit) =>
|
||||
codeUnit >= 0xDC00 && codeUnit <= 0xDFFF;
|
||||
}
|
||||
|
||||
/// Longest name (in UTF-8 bytes) the radio stores for channels and the node
|
||||
/// advert name: a 32-byte field that keeps one byte for the NUL terminator.
|
||||
const int maxRadioNameBytes = 31;
|
||||
|
||||
int utf8ByteLength(String text) => utf8.encode(text).length;
|
||||
|
||||
/// Cuts [text] to at most [maxBytes] UTF-8 bytes without splitting a
|
||||
/// character (grapheme cluster).
|
||||
String truncateUtf8(String text, int maxBytes) {
|
||||
if (maxBytes <= 0) return '';
|
||||
if (utf8ByteLength(text) <= maxBytes) return text;
|
||||
final kept = StringBuffer();
|
||||
var used = 0;
|
||||
for (final char in text.characters) {
|
||||
final size = utf8ByteLength(char);
|
||||
if (used + size > maxBytes) break;
|
||||
kept.write(char);
|
||||
used += size;
|
||||
}
|
||||
return kept.toString();
|
||||
}
|
||||
|
||||
/// Builds `"<label> <suffix>"`, shortening [label] so the whole name fits
|
||||
/// in [maxRadioNameBytes].
|
||||
String fitRadioName(String label, String suffix) {
|
||||
final suffixPart = ' $suffix';
|
||||
final room = maxRadioNameBytes - utf8ByteLength(suffixPart);
|
||||
return '${truncateUtf8(label, room)}$suffixPart';
|
||||
}
|
||||
+54
-2
@@ -2912,7 +2912,7 @@
|
||||
"settings_telemetryPerContactHint": "За да разрешите даден контакт, отворете чата му и изберете „Настройки за контакти“ от менюто.",
|
||||
"settings_multiAckSubtitle": "Изпраща допълнителни ACK за по-надеждна доставка; използва повече време на излъчване",
|
||||
"settings_presetCustom": "Персонализиран",
|
||||
"settings_radioMatchWarning": "Всички възли, с които комуникирате, трябва да използват еднакви честота, честотна лента, SF и CR.",
|
||||
"settings_radioMatchWarning": "Всички възли, с които комуникирате, трябва да използват еднакви честота, честотна лента и SF. Скоростта на кодиране (CR) може да се различава.",
|
||||
"settings_txPowerRangeHelper": "от {min} до {max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -3069,5 +3069,57 @@
|
||||
"reviewMode_sendTest": "Тестово съобщение",
|
||||
"reviewMode_testSent": "Скоро ще пристигне тестово съобщение.",
|
||||
"reviewMode_exit": "Изход",
|
||||
"reviewMode_connectFailed": "Режимът за преглед не можа да се стартира: {error}"
|
||||
"reviewMode_connectFailed": "Режимът за преглед не можа да се стартира: {error}",
|
||||
"settings_regionUseRadioDefault": "По подразбиране на радиото ({region})",
|
||||
"settings_regionNoRegion": "Без регион (без ограничение)",
|
||||
"settings_regionRadioDefault": "Регион на радиото по подразбиране",
|
||||
"settings_regionRadioDefaultSubtitle": "Запазва се на радиото. Използва се от flood съобщения без регион — от това и от всяко друго приложение, свързано с радиото.",
|
||||
"settings_regionRadioDefaultUpdated": "Регионът на радиото по подразбиране е обновен",
|
||||
"settings_regionRadioDefaultFailed": "Регионът на радиото по подразбиране не можа да се обнови",
|
||||
"appSettings_channelMinHopsCountRepeaters": "Отчитай и други близки повторители",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "Смятай съобщението за изпратено, когато го повторят {count, plural, =1{1 близък повторител} other{{count} различни близки повторители}}, дори да не чуваш как продължава нататък.",
|
||||
"appSettings_regionOnHopsLine": "Регион до броя хопове",
|
||||
"appSettings_regionOnHopsLineSubtitle": "Показвай региона на съобщението в канала на същия ред като броя хопове, а не под него.",
|
||||
"channels_regionRadioDefaultSuffix": "(по подразбиране на радиото)",
|
||||
"channels_regionRadioDefaultApplies": "Това радио изпраща flood без регион в своя регион по подразбиране: {region}.",
|
||||
"chat_futureTimestampWarning": "Часът на това съобщение е в бъдещето, така че часовникът на подателя може да е грешен. Показано е по реда на получаване.",
|
||||
"discoveredContacts_scan": "Сканиране за близки възли",
|
||||
"discoveredContacts_scanTitle": "Близки възли",
|
||||
"discoveredContacts_scanExplanation": "Моли възлите в обхват на директна радиовръзка да се обявят. Отговарят повторители и сензори. Сървърите за стаи и компаньоните обикновено не отговарят.",
|
||||
"discoveredContacts_scanning": "Сканиране…",
|
||||
"discoveredContacts_scanFound": "{count, plural, =1{Намерен 1 възел} other{Намерени {count} възела}}",
|
||||
"discoveredContacts_scanNoResults": "Нито един възел не отговори. Повторителите ограничават честотата на отговорите, опитайте след минута.",
|
||||
"discoveredContacts_scanAgain": "Сканирай отново",
|
||||
"discoveredContacts_scanFailed": "Заявката за сканиране не можа да се изпрати.",
|
||||
"discoveredContacts_scanSignal": "Сигнал {snr} dB · чуха ни с {remoteSnr} dB",
|
||||
"discoveredContacts_scanInContacts": "Вече в контактите",
|
||||
"discoveredContacts_scanNameLater": "Името се появява след следващата обява",
|
||||
"channels_waitForSync": "Каналите все още се зареждат от радиото. Опитайте отново, когато синхронизацията приключи.",
|
||||
"channels_nameTooLong": "Името е твърде дълго (макс. {maxBytes} байта).",
|
||||
"repeater_valueRequired": "{field}: въведете стойност",
|
||||
"losMapDetailTooltip": "Детайл на картата",
|
||||
"losUnitsTooltip": "Единици",
|
||||
"losDistance": "Разстояние",
|
||||
"losClearance": "Просвет",
|
||||
"losBlockedBy": "Блокирано от",
|
||||
"losObstruction": "Препятствие",
|
||||
"losDistanceFromA": "{distance} от A",
|
||||
"losWorstBadge": "НАЙ-ЛОШО",
|
||||
"losBlockedAmount": "Блокирано {amount}",
|
||||
"losFromA": "От A",
|
||||
"losFromB": "От B",
|
||||
"losElevation": "Височина",
|
||||
"losCenterOnMap": "Центрирай на картата",
|
||||
"losStatusClear": "Ясно",
|
||||
"losStatusMarginal": "Гранично",
|
||||
"losStatusBlocked": "Блокирано",
|
||||
"losStatusCheckingShort": "Проверка",
|
||||
"losStatusNoResult": "Няма резултат",
|
||||
"losSelectedPill": "Избрано",
|
||||
"gif_tapToLoad": "Докоснете, за да заредите GIF",
|
||||
"gif_loadFailedRetry": "GIF не може да се зареди\nДокоснете за повторен опит",
|
||||
"qr_cameraPermissionDenied": "Достъпът до камерата е отказан.\nМоля, разрешете достъп до камерата в настройките.",
|
||||
"qr_cameraUnsupported": "Камерата не се поддържа на това устройство.",
|
||||
"qr_cameraStartFailed": "Камерата не можа да се стартира.\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "Моделът за изображения не можа да се изтегли: {error}"
|
||||
}
|
||||
+54
-2
@@ -3047,7 +3047,7 @@
|
||||
"settings_telemetryPerContactHint": "Um einen Kontakt zuzulassen, öffnen Sie den zugehörigen Chat und wählen Sie im Menü Kontakteinstellungen aus.",
|
||||
"settings_multiAckSubtitle": "Zusätzliche ACKs für eine bessere Zustellung senden; erhöht die Sendezeit",
|
||||
"settings_presetCustom": "Benutzerdefiniert",
|
||||
"settings_radioMatchWarning": "Alle Knoten, mit denen Sie kommunizieren, müssen dieselbe Frequenz, Bandbreite, SF und CR verwenden.",
|
||||
"settings_radioMatchWarning": "Alle Knoten, mit denen Sie kommunizieren, müssen dieselbe Frequenz, Bandbreite und SF verwenden. Die Coderate (CR) darf abweichen.",
|
||||
"settings_txPowerRangeHelper": "{min} bis {max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -3204,5 +3204,57 @@
|
||||
"reviewMode_sendTest": "Testnachricht senden",
|
||||
"reviewMode_testSent": "Eine Testnachricht trifft in Kürze ein.",
|
||||
"reviewMode_exit": "Beenden",
|
||||
"reviewMode_connectFailed": "Prüfmodus konnte nicht gestartet werden: {error}"
|
||||
"reviewMode_connectFailed": "Prüfmodus konnte nicht gestartet werden: {error}",
|
||||
"settings_regionUseRadioDefault": "Radio-Standard ({region})",
|
||||
"settings_regionNoRegion": "Keine Region (ohne Bereich)",
|
||||
"settings_regionRadioDefault": "Standardregion des Radios",
|
||||
"settings_regionRadioDefaultSubtitle": "Auf dem Radio gespeichert. Floods ohne Region verwenden sie, von dieser App und von jeder anderen App, die mit dem Radio verbunden ist.",
|
||||
"settings_regionRadioDefaultUpdated": "Standardregion des Radios aktualisiert",
|
||||
"settings_regionRadioDefaultFailed": "Standardregion des Radios konnte nicht aktualisiert werden",
|
||||
"appSettings_channelMinHopsCountRepeaters": "Auch verschiedene Repeater in der Nähe zählen",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "Die Nachricht als gesendet betrachten, wenn {count, plural, =1{1 Repeater in der Nähe} other{{count} verschiedene Repeater in der Nähe}} sie wiederholen, auch wenn Sie nicht hören, wie sie weiterläuft.",
|
||||
"appSettings_regionOnHopsLine": "Region neben der Hop-Anzahl",
|
||||
"appSettings_regionOnHopsLineSubtitle": "Die Region einer Kanalnachricht in derselben Zeile wie die Hop-Anzahl anzeigen statt darunter.",
|
||||
"channels_regionRadioDefaultSuffix": "(Radio-Standard)",
|
||||
"channels_regionRadioDefaultApplies": "Dieses Radio sendet Floods ohne Region in seiner Standardregion: {region}.",
|
||||
"chat_futureTimestampWarning": "Die Uhrzeit dieser Nachricht liegt in der Zukunft, daher könnte die Uhr des Absenders falsch gehen. Sie wird in der Reihenfolge ihres Eintreffens angezeigt.",
|
||||
"discoveredContacts_scan": "Nach Knoten in der Nähe suchen",
|
||||
"discoveredContacts_scanTitle": "Knoten in der Nähe",
|
||||
"discoveredContacts_scanExplanation": "Fordert Knoten in direkter Funkreichweite auf, sich zu melden. Repeater und Sensoren antworten. Raumserver und Companions meist nicht.",
|
||||
"discoveredContacts_scanning": "Suche läuft…",
|
||||
"discoveredContacts_scanFound": "{count, plural, =1{1 Knoten gefunden} other{{count} Knoten gefunden}}",
|
||||
"discoveredContacts_scanNoResults": "Kein Knoten hat geantwortet. Repeater begrenzen, wie oft sie antworten. Versuchen Sie es in einer Minute erneut.",
|
||||
"discoveredContacts_scanAgain": "Erneut suchen",
|
||||
"discoveredContacts_scanFailed": "Die Suchanfrage konnte nicht gesendet werden.",
|
||||
"discoveredContacts_scanSignal": "Signal {snr} dB · sie haben uns mit {remoteSnr} dB gehört",
|
||||
"discoveredContacts_scanInContacts": "Bereits in den Kontakten",
|
||||
"discoveredContacts_scanNameLater": "Name erscheint nach der nächsten Ankündigung",
|
||||
"channels_waitForSync": "Kanäle werden noch vom Radio geladen. Versuchen Sie es erneut, wenn die Synchronisierung abgeschlossen ist.",
|
||||
"channels_nameTooLong": "Name ist zu lang (max. {maxBytes} Bytes).",
|
||||
"repeater_valueRequired": "{field}: Wert eingeben",
|
||||
"losMapDetailTooltip": "Kartendetails",
|
||||
"losUnitsTooltip": "Einheiten",
|
||||
"losDistance": "Entfernung",
|
||||
"losClearance": "Freiraum",
|
||||
"losBlockedBy": "Blockiert durch",
|
||||
"losObstruction": "Hindernis",
|
||||
"losDistanceFromA": "{distance} von A",
|
||||
"losWorstBadge": "SCHLECHTESTES",
|
||||
"losBlockedAmount": "Blockiert {amount}",
|
||||
"losFromA": "Von A",
|
||||
"losFromB": "Von B",
|
||||
"losElevation": "Höhe",
|
||||
"losCenterOnMap": "Auf Karte zentrieren",
|
||||
"losStatusClear": "Frei",
|
||||
"losStatusMarginal": "Grenzwertig",
|
||||
"losStatusBlocked": "Blockiert",
|
||||
"losStatusCheckingShort": "Prüfung",
|
||||
"losStatusNoResult": "Kein Ergebnis",
|
||||
"losSelectedPill": "Ausgewählt",
|
||||
"gif_tapToLoad": "Zum Laden des GIFs tippen",
|
||||
"gif_loadFailedRetry": "GIF kann nicht geladen werden\nTippen, um es erneut zu versuchen",
|
||||
"qr_cameraPermissionDenied": "Kamerazugriff verweigert.\nBitte aktivieren Sie den Kamerazugriff in den Einstellungen.",
|
||||
"qr_cameraUnsupported": "Kamera wird auf diesem Gerät nicht unterstützt.",
|
||||
"qr_cameraStartFailed": "Kamera konnte nicht gestartet werden.\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "Das Bildmodell konnte nicht heruntergeladen werden: {error}"
|
||||
}
|
||||
+106
-2
@@ -201,6 +201,19 @@
|
||||
"settings_regionDefault": "Default region",
|
||||
"settings_regionDefaultSubtitle": "Used by channels without their own region",
|
||||
"settings_regionDefaultNone": "None",
|
||||
"settings_regionUseRadioDefault": "Radio default ({region})",
|
||||
"@settings_regionUseRadioDefault": {
|
||||
"placeholders": {
|
||||
"region": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings_regionNoRegion": "No region (unscoped)",
|
||||
"settings_regionRadioDefault": "Radio default region",
|
||||
"settings_regionRadioDefaultSubtitle": "Saved on the radio. Floods sent without a region use it, from this app and any other app connected to the radio.",
|
||||
"settings_regionRadioDefaultUpdated": "Radio default region updated",
|
||||
"settings_regionRadioDefaultFailed": "Could not update the radio default region",
|
||||
"settings_regionManagement_screenTitle": "Region Management",
|
||||
"settings_regionNameHint": "Enter region name",
|
||||
"settings_regionAddRegion": "Add region",
|
||||
@@ -296,7 +309,7 @@
|
||||
"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_radioMatchWarning": "All nodes you talk to must use the same frequency, bandwidth and SF. The coding rate (CR) can differ.",
|
||||
"settings_frequency": "Frequency (MHz)",
|
||||
"settings_frequencyHelper": "150.0 - 2500.0",
|
||||
"settings_frequencyInvalid": "Invalid frequency (150-2500 MHz)",
|
||||
@@ -389,8 +402,19 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"appSettings_channelMinHopsCountRepeaters": "Also count different nearby repeaters",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "Treat the message as sent when {count, plural, =1{1 nearby repeater} other{{count} different nearby repeaters}} repeat it, even if you can't hear it travel further.",
|
||||
"@appSettings_channelMinHopsCountRepeatersSubtitle": {
|
||||
"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_regionOnHopsLine": "Region next to hop count",
|
||||
"appSettings_regionOnHopsLineSubtitle": "Show a channel message's region on the same line as its hop count instead of below it.",
|
||||
"appSettings_notifications": "Notifications",
|
||||
"appSettings_enableNotifications": "Enable Notifications",
|
||||
"appSettings_enableNotificationsSubtitle": "Receive notifications for messages and adverts",
|
||||
@@ -808,6 +832,15 @@
|
||||
"channels_regionSelect_Title": "Select a region",
|
||||
"channels_clearRegion": "Clear region",
|
||||
"channels_regionDefaultSuffix": "(default)",
|
||||
"channels_regionRadioDefaultSuffix": "(radio default)",
|
||||
"channels_regionRadioDefaultApplies": "This radio sends floods without a region in its default region: {region}.",
|
||||
"@channels_regionRadioDefaultApplies": {
|
||||
"placeholders": {
|
||||
"region": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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",
|
||||
@@ -841,6 +874,7 @@
|
||||
},
|
||||
"chat_location": "Location",
|
||||
"chat_typeMessage": "Type a message...",
|
||||
"chat_futureTimestampWarning": "This message's time is in the future, so the sender's clock may be wrong. It is shown in the order it arrived.",
|
||||
"chat_messageTooLong": "Message too long (max {maxBytes} bytes).",
|
||||
"@chat_messageTooLong": {
|
||||
"placeholders": {
|
||||
@@ -2666,6 +2700,34 @@
|
||||
"discoveredContacts_deleteContact": "Delete Discovered Contact",
|
||||
"discoveredContacts_deleteContactAll": "Delete All Discovered Contacts",
|
||||
"discoveredContacts_deleteContactAllContent": "Are you sure you want to delete all discovered contacts?",
|
||||
"discoveredContacts_scan": "Scan for nearby nodes",
|
||||
"discoveredContacts_scanTitle": "Nearby nodes",
|
||||
"discoveredContacts_scanExplanation": "Asks nodes within direct radio range to identify themselves. Repeaters and sensors answer. Room servers and companions usually don't.",
|
||||
"discoveredContacts_scanning": "Scanning…",
|
||||
"discoveredContacts_scanFound": "{count, plural, =1{1 node found} other{{count} nodes found}}",
|
||||
"@discoveredContacts_scanFound": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"discoveredContacts_scanNoResults": "No nodes answered. Repeaters limit how often they reply, so try again in a minute.",
|
||||
"discoveredContacts_scanAgain": "Scan again",
|
||||
"discoveredContacts_scanFailed": "Could not send the scan request.",
|
||||
"discoveredContacts_scanSignal": "Signal {snr} dB · they heard us at {remoteSnr} dB",
|
||||
"@discoveredContacts_scanSignal": {
|
||||
"placeholders": {
|
||||
"snr": {
|
||||
"type": "String"
|
||||
},
|
||||
"remoteSnr": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"discoveredContacts_scanInContacts": "Already in contacts",
|
||||
"discoveredContacts_scanNameLater": "Name appears after its next advert",
|
||||
"chat_sendCooldown": "Please wait a moment before sending again.",
|
||||
"appSettings_jumpToOldestUnread": "Jump to oldest unread",
|
||||
"appSettings_jumpToOldestUnreadSubtitle": "When opening a chat with unread messages, scroll to the first unread instead of the latest.",
|
||||
@@ -3133,5 +3195,47 @@
|
||||
"reviewMode_exit": "Exit",
|
||||
"@reviewMode_exit": {"description": "Banner action that leaves review mode"},
|
||||
"reviewMode_connectFailed": "Could not start review mode: {error}",
|
||||
"@reviewMode_connectFailed": {"description": "Snackbar shown when review mode fails to connect", "placeholders": {"error": {"type": "String"}}}
|
||||
"@reviewMode_connectFailed": {"description": "Snackbar shown when review mode fails to connect", "placeholders": {"error": {"type": "String"}}},
|
||||
"channels_waitForSync": "Channels are still loading from the radio. Try again when the sync finishes.",
|
||||
"@channels_waitForSync": {"description": "Snackbar when the user tries to add a channel before the channel list has fully synced"},
|
||||
"channels_nameTooLong": "Name is too long (max {maxBytes} bytes).",
|
||||
"@channels_nameTooLong": {"description": "Snackbar when a channel name would not fit on the radio", "placeholders": {"maxBytes": {"type": "int"}}},
|
||||
"repeater_valueRequired": "{field}: enter a value",
|
||||
"@repeater_valueRequired": {"description": "Save error when a changed repeater setting was left empty", "placeholders": {"field": {"type": "String"}}},
|
||||
"losMapDetailTooltip": "Map detail",
|
||||
"losUnitsTooltip": "Units",
|
||||
"losDistance": "Distance",
|
||||
"losClearance": "Clearance",
|
||||
"losBlockedBy": "Blocked by",
|
||||
"losObstruction": "Obstruction",
|
||||
"losDistanceFromA": "{distance} from A",
|
||||
"@losDistanceFromA": {"description": "Distance of the worst obstruction from point A, e.g. \"1.2 km from A\"", "placeholders": {"distance": {"type": "String"}}},
|
||||
"losWorstBadge": "WORST",
|
||||
"@losWorstBadge": {"description": "Badge on the worst obstruction in the list"},
|
||||
"losBlockedAmount": "Blocked {amount}",
|
||||
"@losBlockedAmount": {"description": "How much an obstruction blocks the beam, e.g. \"Blocked 12 m\"", "placeholders": {"amount": {"type": "String"}}},
|
||||
"losFromA": "From A",
|
||||
"losFromB": "From B",
|
||||
"losElevation": "Elevation",
|
||||
"losCenterOnMap": "Center on map",
|
||||
"losStatusClear": "Clear",
|
||||
"@losStatusClear": {"description": "Line-of-sight status"},
|
||||
"losStatusMarginal": "Marginal",
|
||||
"@losStatusMarginal": {"description": "Line-of-sight status"},
|
||||
"losStatusBlocked": "Blocked",
|
||||
"@losStatusBlocked": {"description": "Line-of-sight status and legend entry"},
|
||||
"losStatusCheckingShort": "Checking",
|
||||
"@losStatusCheckingShort": {"description": "Line-of-sight status while the check runs"},
|
||||
"losStatusNoResult": "No result",
|
||||
"@losStatusNoResult": {"description": "Line-of-sight status when there is no result"},
|
||||
"losSelectedPill": "Selected",
|
||||
"@losSelectedPill": {"description": "Label drawn on the elevation chart at the selected point"},
|
||||
"gif_tapToLoad": "Tap to load GIF",
|
||||
"gif_loadFailedRetry": "Can't load GIF\nTap to retry",
|
||||
"qr_cameraPermissionDenied": "Camera permission denied.\nPlease enable camera access in settings.",
|
||||
"qr_cameraUnsupported": "Camera not supported on this device.",
|
||||
"qr_cameraStartFailed": "Failed to start camera.\n{details}",
|
||||
"@qr_cameraStartFailed": {"placeholders": {"details": {"type": "String"}}},
|
||||
"imageMessages_downloadFailedWithError": "The image model could not be downloaded: {error}",
|
||||
"@imageMessages_downloadFailedWithError": {"placeholders": {"error": {"type": "String"}}}
|
||||
}
|
||||
+54
-2
@@ -3046,7 +3046,7 @@
|
||||
"settings_telemetryPerContactHint": "Para permitir un contacto, abre su chat y elige Configuración de contacto en el menú.",
|
||||
"settings_multiAckSubtitle": "Enviar confirmaciones adicionales para mejorar la entrega; usa más tiempo de emisión",
|
||||
"settings_presetCustom": "Personalizado",
|
||||
"settings_radioMatchWarning": "Todos los nodos con los que hablas deben usar la misma frecuencia, ancho de banda, SF y CR.",
|
||||
"settings_radioMatchWarning": "Todos los nodos con los que hablas deben usar la misma frecuencia, ancho de banda y SF. La tasa de codificación (CR) puede ser distinta.",
|
||||
"settings_txPowerRangeHelper": "{min} a {max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -3203,5 +3203,57 @@
|
||||
"reviewMode_sendTest": "Enviar mensaje de prueba",
|
||||
"reviewMode_testSent": "En breve llegará un mensaje de prueba.",
|
||||
"reviewMode_exit": "Salir",
|
||||
"reviewMode_connectFailed": "No se pudo iniciar el modo de revisión: {error}"
|
||||
"reviewMode_connectFailed": "No se pudo iniciar el modo de revisión: {error}",
|
||||
"settings_regionUseRadioDefault": "Predeterminada de la radio ({region})",
|
||||
"settings_regionNoRegion": "Sin región (sin ámbito)",
|
||||
"settings_regionRadioDefault": "Región predeterminada de la radio",
|
||||
"settings_regionRadioDefaultSubtitle": "Guardada en la radio. Las inundaciones enviadas sin región la usan, desde esta app y desde cualquier otra app conectada a la radio.",
|
||||
"settings_regionRadioDefaultUpdated": "Región predeterminada de la radio actualizada",
|
||||
"settings_regionRadioDefaultFailed": "No se pudo actualizar la región predeterminada de la radio",
|
||||
"appSettings_channelMinHopsCountRepeaters": "Contar también repetidores cercanos distintos",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "Considerar el mensaje como enviado cuando {count, plural, =1{1 repetidor cercano} other{{count} repetidores cercanos distintos}} lo repitan, aunque no oigas que avance más.",
|
||||
"appSettings_regionOnHopsLine": "Región junto al número de saltos",
|
||||
"appSettings_regionOnHopsLineSubtitle": "Mostrar la región de un mensaje de canal en la misma línea que su número de saltos en lugar de debajo.",
|
||||
"channels_regionRadioDefaultSuffix": "(predeterminada de la radio)",
|
||||
"channels_regionRadioDefaultApplies": "Esta radio envía las inundaciones sin región en su región predeterminada: {region}.",
|
||||
"chat_futureTimestampWarning": "La hora de este mensaje está en el futuro, por lo que el reloj del remitente puede estar mal. Se muestra en el orden en que llegó.",
|
||||
"discoveredContacts_scan": "Buscar nodos cercanos",
|
||||
"discoveredContacts_scanTitle": "Nodos cercanos",
|
||||
"discoveredContacts_scanExplanation": "Pide a los nodos dentro del alcance directo de radio que se identifiquen. Los repetidores y sensores responden. Los servidores de sala y los compañeros normalmente no.",
|
||||
"discoveredContacts_scanning": "Buscando…",
|
||||
"discoveredContacts_scanFound": "{count, plural, =1{1 nodo encontrado} other{{count} nodos encontrados}}",
|
||||
"discoveredContacts_scanNoResults": "Ningún nodo respondió. Los repetidores limitan la frecuencia de sus respuestas, así que inténtalo de nuevo en un minuto.",
|
||||
"discoveredContacts_scanAgain": "Buscar de nuevo",
|
||||
"discoveredContacts_scanFailed": "No se pudo enviar la solicitud de búsqueda.",
|
||||
"discoveredContacts_scanSignal": "Señal {snr} dB · nos oyeron a {remoteSnr} dB",
|
||||
"discoveredContacts_scanInContacts": "Ya está en contactos",
|
||||
"discoveredContacts_scanNameLater": "El nombre aparece tras su próximo anuncio",
|
||||
"channels_waitForSync": "Los canales aún se están cargando desde la radio. Inténtalo de nuevo cuando termine la sincronización.",
|
||||
"channels_nameTooLong": "El nombre es demasiado largo (máx. {maxBytes} bytes).",
|
||||
"repeater_valueRequired": "{field}: introduce un valor",
|
||||
"losMapDetailTooltip": "Detalle del mapa",
|
||||
"losUnitsTooltip": "Unidades",
|
||||
"losDistance": "Distancia",
|
||||
"losClearance": "Margen libre",
|
||||
"losBlockedBy": "Bloqueado por",
|
||||
"losObstruction": "Obstáculo",
|
||||
"losDistanceFromA": "{distance} desde A",
|
||||
"losWorstBadge": "PEOR",
|
||||
"losBlockedAmount": "Bloqueado {amount}",
|
||||
"losFromA": "Desde A",
|
||||
"losFromB": "Desde B",
|
||||
"losElevation": "Elevación",
|
||||
"losCenterOnMap": "Centrar en el mapa",
|
||||
"losStatusClear": "Despejado",
|
||||
"losStatusMarginal": "Marginal",
|
||||
"losStatusBlocked": "Bloqueado",
|
||||
"losStatusCheckingShort": "Comprobando",
|
||||
"losStatusNoResult": "Sin resultado",
|
||||
"losSelectedPill": "Seleccionado",
|
||||
"gif_tapToLoad": "Toca para cargar el GIF",
|
||||
"gif_loadFailedRetry": "No se puede cargar el GIF\nToca para reintentar",
|
||||
"qr_cameraPermissionDenied": "Permiso de cámara denegado.\nActiva el acceso a la cámara en los ajustes.",
|
||||
"qr_cameraUnsupported": "Cámara no compatible con este dispositivo.",
|
||||
"qr_cameraStartFailed": "No se pudo iniciar la cámara.\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "No se pudo descargar el modelo de imagen: {error}"
|
||||
}
|
||||
+55
-3
@@ -2069,7 +2069,7 @@
|
||||
},
|
||||
"listFilter_addToFavorites": "Ajouter à mes favoris",
|
||||
"listFilter_removeFromFavorites": "Supprimer des favoris",
|
||||
"listFilter_favorites": "Préférences",
|
||||
"listFilter_favorites": "Favoris",
|
||||
"@contacts_searchFavorites": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
@@ -3046,7 +3046,7 @@
|
||||
"settings_telemetryPerContactHint": "Pour autoriser un contact, ouvrez son chat et choisissez Paramètres de contact dans le menu.",
|
||||
"settings_multiAckSubtitle": "Envoyer des ACK supplémentaires pour une meilleure livraison ; utilise plus de temps d'antenne",
|
||||
"settings_presetCustom": "Personnalisé",
|
||||
"settings_radioMatchWarning": "Tous les nœuds avec lesquels vous communiquez doivent utiliser la même fréquence, la même bande passante, le même SF et le même CR.",
|
||||
"settings_radioMatchWarning": "Tous les nœuds avec lesquels vous communiquez doivent utiliser la même fréquence, la même bande passante et le même SF. Le taux de codage (CR) peut être différent.",
|
||||
"settings_txPowerRangeHelper": "{min} à {max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -3203,5 +3203,57 @@
|
||||
"reviewMode_sendTest": "Envoyer un message test",
|
||||
"reviewMode_testSent": "Un message test arrivera sous peu.",
|
||||
"reviewMode_exit": "Quitter",
|
||||
"reviewMode_connectFailed": "Impossible de démarrer le mode revue : {error}"
|
||||
"reviewMode_connectFailed": "Impossible de démarrer le mode revue : {error}",
|
||||
"settings_regionUseRadioDefault": "Par défaut de la radio ({region})",
|
||||
"settings_regionNoRegion": "Aucune région (sans portée)",
|
||||
"settings_regionRadioDefault": "Région par défaut de la radio",
|
||||
"settings_regionRadioDefaultSubtitle": "Enregistrée sur la radio. Les floods envoyés sans région l'utilisent, depuis cette application et toute autre application connectée à la radio.",
|
||||
"settings_regionRadioDefaultUpdated": "Région par défaut de la radio mise à jour",
|
||||
"settings_regionRadioDefaultFailed": "Impossible de mettre à jour la région par défaut de la radio",
|
||||
"appSettings_channelMinHopsCountRepeaters": "Compter aussi les différents répéteurs proches",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "Considérer le message comme envoyé quand {count, plural, =1{1 répéteur proche} other{{count} répéteurs proches différents}} le répètent, même si vous ne l'entendez pas aller plus loin.",
|
||||
"appSettings_regionOnHopsLine": "Région à côté du nombre de sauts",
|
||||
"appSettings_regionOnHopsLineSubtitle": "Afficher la région d'un message de canal sur la même ligne que son nombre de sauts plutôt qu'en dessous.",
|
||||
"channels_regionRadioDefaultSuffix": "(défaut de la radio)",
|
||||
"channels_regionRadioDefaultApplies": "Cette radio envoie les floods sans région dans sa région par défaut : {region}.",
|
||||
"chat_futureTimestampWarning": "L'heure de ce message est dans le futur, l'horloge de l'expéditeur est peut-être incorrecte. Il est affiché dans l'ordre d'arrivée.",
|
||||
"discoveredContacts_scan": "Rechercher les nœuds proches",
|
||||
"discoveredContacts_scanTitle": "Nœuds proches",
|
||||
"discoveredContacts_scanExplanation": "Demande aux nœuds à portée radio directe de s'identifier. Les répéteurs et les capteurs répondent. Les serveurs de salon et les compagnons généralement pas.",
|
||||
"discoveredContacts_scanning": "Recherche…",
|
||||
"discoveredContacts_scanFound": "{count, plural, =0{Aucun nœud trouvé} =1{1 nœud trouvé} other{{count} nœuds trouvés}}",
|
||||
"discoveredContacts_scanNoResults": "Aucun nœud n'a répondu. Les répéteurs limitent la fréquence de leurs réponses, réessayez dans une minute.",
|
||||
"discoveredContacts_scanAgain": "Rechercher à nouveau",
|
||||
"discoveredContacts_scanFailed": "Impossible d'envoyer la demande de recherche.",
|
||||
"discoveredContacts_scanSignal": "Signal {snr} dB · ils nous ont reçus à {remoteSnr} dB",
|
||||
"discoveredContacts_scanInContacts": "Déjà dans les contacts",
|
||||
"discoveredContacts_scanNameLater": "Le nom apparaîtra après sa prochaine annonce",
|
||||
"channels_waitForSync": "Les canaux sont encore en cours de chargement depuis la radio. Réessayez quand la synchronisation sera terminée.",
|
||||
"channels_nameTooLong": "Le nom est trop long (max. {maxBytes} octets).",
|
||||
"repeater_valueRequired": "{field} : saisissez une valeur",
|
||||
"losMapDetailTooltip": "Détail de la carte",
|
||||
"losUnitsTooltip": "Unités",
|
||||
"losDistance": "Distance",
|
||||
"losClearance": "Dégagement",
|
||||
"losBlockedBy": "Bloqué par",
|
||||
"losObstruction": "Obstacle",
|
||||
"losDistanceFromA": "{distance} depuis A",
|
||||
"losWorstBadge": "PIRE",
|
||||
"losBlockedAmount": "Bloqué {amount}",
|
||||
"losFromA": "Depuis A",
|
||||
"losFromB": "Depuis B",
|
||||
"losElevation": "Altitude",
|
||||
"losCenterOnMap": "Centrer sur la carte",
|
||||
"losStatusClear": "Dégagé",
|
||||
"losStatusMarginal": "Limite",
|
||||
"losStatusBlocked": "Bloqué",
|
||||
"losStatusCheckingShort": "Vérification",
|
||||
"losStatusNoResult": "Aucun résultat",
|
||||
"losSelectedPill": "Sélectionné",
|
||||
"gif_tapToLoad": "Touchez pour charger le GIF",
|
||||
"gif_loadFailedRetry": "Impossible de charger le GIF\nTouchez pour réessayer",
|
||||
"qr_cameraPermissionDenied": "Autorisation de la caméra refusée.\nVeuillez activer l'accès à la caméra dans les réglages.",
|
||||
"qr_cameraUnsupported": "Caméra non prise en charge sur cet appareil.",
|
||||
"qr_cameraStartFailed": "Échec du démarrage de la caméra.\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "Le modèle d'image n'a pas pu être téléchargé : {error}"
|
||||
}
|
||||
+54
-2
@@ -2951,7 +2951,7 @@
|
||||
"settings_telemetryPerContactHint": "Ha engedélyezni szeretné a kapcsolatot, nyissa meg a csevegését, és válassza a menüben a Kapcsolati beállítások lehetőséget.",
|
||||
"settings_multiAckSubtitle": "További ACK-kat küld a jobb kézbesítés érdekében; több műsoridőt igényel",
|
||||
"settings_presetCustom": "Egyéni",
|
||||
"settings_radioMatchWarning": "Az összes csomóponttal, amelyhez kapcsolódik, azonos frekvenciát, sávszélességet, SF-et és CR-t kell használni.",
|
||||
"settings_radioMatchWarning": "Az összes csomóponttal, amelyhez kapcsolódik, azonos frekvenciát, sávszélességet és SF-et kell használni. A kódolási arány (CR) eltérhet.",
|
||||
"settings_txPowerRangeHelper": "{min}–{max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -3108,5 +3108,57 @@
|
||||
"reviewMode_sendTest": "Tesztüzenet küldése",
|
||||
"reviewMode_testSent": "Hamarosan megérkezik egy tesztüzenet.",
|
||||
"reviewMode_exit": "Kilépés",
|
||||
"reviewMode_connectFailed": "Az áttekintő mód nem indítható el: {error}"
|
||||
"reviewMode_connectFailed": "Az áttekintő mód nem indítható el: {error}",
|
||||
"settings_regionUseRadioDefault": "Rádió alapértelmezése ({region})",
|
||||
"settings_regionNoRegion": "Nincs táj (korlátlan)",
|
||||
"settings_regionRadioDefault": "A rádió alapértelmezett tája",
|
||||
"settings_regionRadioDefaultSubtitle": "A rádión van tárolva. A táj nélkül küldött elárasztásokhoz ezt használja, ebből az alkalmazásból és a rádióhoz csatlakozó bármely másik alkalmazásból is.",
|
||||
"settings_regionRadioDefaultUpdated": "A rádió alapértelmezett tája frissítve",
|
||||
"settings_regionRadioDefaultFailed": "Nem sikerült frissíteni a rádió alapértelmezett tájat",
|
||||
"appSettings_channelMinHopsCountRepeaters": "A közeli különböző átjátszókat is számolja",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "Az üzenetet elküldöttnek tekinti, ha {count, plural, =1{1 közeli átjátszó} other{{count} különböző közeli átjátszó}} továbbítja, még ha nem is hallja, hogy tovább halad.",
|
||||
"appSettings_regionOnHopsLine": "Táj a ugrásszám mellett",
|
||||
"appSettings_regionOnHopsLineSubtitle": "A csatornaüzenet tája az ugrásszámmal azonos sorban jelenik meg, nem alatta.",
|
||||
"channels_regionRadioDefaultSuffix": "(rádió alapértelmezése)",
|
||||
"channels_regionRadioDefaultApplies": "Ez a rádió a táj nélküli elárasztásokat az alapértelmezett tájában küldi: {region}.",
|
||||
"chat_futureTimestampWarning": "Az üzenet időpontja a jövőben van, ezért a feladó órája hibás lehet. Az érkezés sorrendjében látható.",
|
||||
"discoveredContacts_scan": "Közeli csomópontok keresése",
|
||||
"discoveredContacts_scanTitle": "Közeli csomópontok",
|
||||
"discoveredContacts_scanExplanation": "Felkéri a közvetlen rádiótávolságon belüli csomópontokat, hogy azonosítsák magukat. Az átjátszók és az érzékelők válaszolnak. A szobaszerverek és a kísérők általában nem.",
|
||||
"discoveredContacts_scanning": "Keresés…",
|
||||
"discoveredContacts_scanFound": "{count, plural, =1{1 csomópont található} other{{count} csomópont található}}",
|
||||
"discoveredContacts_scanNoResults": "Egy csomópont sem válaszolt. Az átjátszók korlátozzák a válaszok gyakoriságát, ezért próbálja újra egy perc múlva.",
|
||||
"discoveredContacts_scanAgain": "Keresés újra",
|
||||
"discoveredContacts_scanFailed": "Nem sikerült elküldeni a keresési kérést.",
|
||||
"discoveredContacts_scanSignal": "Jel: {snr} dB · ők {remoteSnr} dB-lel hallottak minket",
|
||||
"discoveredContacts_scanInContacts": "Már a kapcsolatok között",
|
||||
"discoveredContacts_scanNameLater": "A neve a következő hirdetése után jelenik meg",
|
||||
"channels_waitForSync": "A csatornák még töltődnek a rádióról. Próbálja újra, ha a szinkronizálás befejeződött.",
|
||||
"channels_nameTooLong": "A név túl hosszú (legfeljebb {maxBytes} bájt).",
|
||||
"repeater_valueRequired": "{field}: adjon meg értéket",
|
||||
"losMapDetailTooltip": "Térkép részletessége",
|
||||
"losUnitsTooltip": "Mértékegységek",
|
||||
"losDistance": "Távolság",
|
||||
"losClearance": "Szabad tér",
|
||||
"losBlockedBy": "Akadályozó",
|
||||
"losObstruction": "Akadály",
|
||||
"losDistanceFromA": "{distance} A-tól",
|
||||
"losWorstBadge": "LEGROSSZABB",
|
||||
"losBlockedAmount": "Takarás: {amount}",
|
||||
"losFromA": "A-tól",
|
||||
"losFromB": "B-től",
|
||||
"losElevation": "Magasság",
|
||||
"losCenterOnMap": "Középre a térképen",
|
||||
"losStatusClear": "Szabad",
|
||||
"losStatusMarginal": "Határeset",
|
||||
"losStatusBlocked": "Takart",
|
||||
"losStatusCheckingShort": "Ellenőrzés",
|
||||
"losStatusNoResult": "Nincs eredmény",
|
||||
"losSelectedPill": "Kiválasztva",
|
||||
"gif_tapToLoad": "Koppintson a GIF betöltéséhez",
|
||||
"gif_loadFailedRetry": "A GIF nem tölthető be\nKoppintson az újrapróbáláshoz",
|
||||
"qr_cameraPermissionDenied": "Kamera-engedély megtagadva.\nEngedélyezze a kamera hozzáférést a beállításokban.",
|
||||
"qr_cameraUnsupported": "A kamera nem támogatott ezen az eszközön.",
|
||||
"qr_cameraStartFailed": "A kamera indítása sikertelen.\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "A képmodell letöltése sikertelen: {error}"
|
||||
}
|
||||
+54
-2
@@ -3051,7 +3051,7 @@
|
||||
"settings_telemetryPerContactHint": "Per consentire un contatto, apri la sua chat e scegli Impostazioni di contatto dal menu.",
|
||||
"settings_multiAckSubtitle": "Invia ACK aggiuntivi per una consegna migliore; usa più tempo di trasmissione",
|
||||
"settings_presetCustom": "Personalizzato",
|
||||
"settings_radioMatchWarning": "Tutti i nodi con cui parli devono usare la stessa frequenza, larghezza di banda, SF e CR.",
|
||||
"settings_radioMatchWarning": "Tutti i nodi con cui parli devono usare la stessa frequenza, larghezza di banda e SF. Il coding rate (CR) può essere diverso.",
|
||||
"settings_txPowerRangeHelper": "{min} - {max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -3203,5 +3203,57 @@
|
||||
"reviewMode_sendTest": "Invia messaggio di prova",
|
||||
"reviewMode_testSent": "A breve arriverà un messaggio di prova.",
|
||||
"reviewMode_exit": "Esci",
|
||||
"reviewMode_connectFailed": "Impossibile avviare la modalità revisione: {error}"
|
||||
"reviewMode_connectFailed": "Impossibile avviare la modalità revisione: {error}",
|
||||
"settings_regionUseRadioDefault": "Predefinita della radio ({region})",
|
||||
"settings_regionNoRegion": "Nessuna regione (senza ambito)",
|
||||
"settings_regionRadioDefault": "Regione predefinita della radio",
|
||||
"settings_regionRadioDefaultSubtitle": "Salvata sulla radio. I flood inviati senza regione la usano, da questa app e da qualsiasi altra app collegata alla radio.",
|
||||
"settings_regionRadioDefaultUpdated": "Regione predefinita della radio aggiornata",
|
||||
"settings_regionRadioDefaultFailed": "Impossibile aggiornare la regione predefinita della radio",
|
||||
"appSettings_channelMinHopsCountRepeaters": "Conta anche i diversi ripetitori vicini",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "Considera il messaggio inviato quando {count, plural, =1{1 ripetitore vicino} other{{count} ripetitori vicini diversi}} lo ripetono, anche se non senti che prosegue oltre.",
|
||||
"appSettings_regionOnHopsLine": "Regione accanto al numero di salti",
|
||||
"appSettings_regionOnHopsLineSubtitle": "Mostra la regione di un messaggio di canale sulla stessa riga del numero di salti invece che sotto.",
|
||||
"channels_regionRadioDefaultSuffix": "(predefinita della radio)",
|
||||
"channels_regionRadioDefaultApplies": "Questa radio invia i flood senza regione nella sua regione predefinita: {region}.",
|
||||
"chat_futureTimestampWarning": "L'ora di questo messaggio è nel futuro, quindi l'orologio del mittente potrebbe essere sbagliato. Viene mostrato nell'ordine di arrivo.",
|
||||
"discoveredContacts_scan": "Cerca nodi vicini",
|
||||
"discoveredContacts_scanTitle": "Nodi vicini",
|
||||
"discoveredContacts_scanExplanation": "Chiede ai nodi nel raggio radio diretto di identificarsi. Ripetitori e sensori rispondono. I room server e i companion di solito no.",
|
||||
"discoveredContacts_scanning": "Ricerca in corso…",
|
||||
"discoveredContacts_scanFound": "{count, plural, =1{1 nodo trovato} other{{count} nodi trovati}}",
|
||||
"discoveredContacts_scanNoResults": "Nessun nodo ha risposto. I ripetitori limitano la frequenza delle risposte, riprova tra un minuto.",
|
||||
"discoveredContacts_scanAgain": "Cerca di nuovo",
|
||||
"discoveredContacts_scanFailed": "Impossibile inviare la richiesta di ricerca.",
|
||||
"discoveredContacts_scanSignal": "Segnale {snr} dB · ci hanno sentito a {remoteSnr} dB",
|
||||
"discoveredContacts_scanInContacts": "Già nei contatti",
|
||||
"discoveredContacts_scanNameLater": "Il nome appare dopo il prossimo annuncio",
|
||||
"channels_waitForSync": "I canali sono ancora in caricamento dalla radio. Riprova quando la sincronizzazione è terminata.",
|
||||
"channels_nameTooLong": "Il nome è troppo lungo (max {maxBytes} byte).",
|
||||
"repeater_valueRequired": "{field}: inserisci un valore",
|
||||
"losMapDetailTooltip": "Dettaglio mappa",
|
||||
"losUnitsTooltip": "Unità",
|
||||
"losDistance": "Distanza",
|
||||
"losClearance": "Margine libero",
|
||||
"losBlockedBy": "Bloccato da",
|
||||
"losObstruction": "Ostacolo",
|
||||
"losDistanceFromA": "{distance} da A",
|
||||
"losWorstBadge": "PEGGIORE",
|
||||
"losBlockedAmount": "Bloccato {amount}",
|
||||
"losFromA": "Da A",
|
||||
"losFromB": "Da B",
|
||||
"losElevation": "Elevazione",
|
||||
"losCenterOnMap": "Centra sulla mappa",
|
||||
"losStatusClear": "Libero",
|
||||
"losStatusMarginal": "Al limite",
|
||||
"losStatusBlocked": "Bloccato",
|
||||
"losStatusCheckingShort": "Controllo",
|
||||
"losStatusNoResult": "Nessun risultato",
|
||||
"losSelectedPill": "Selezionato",
|
||||
"gif_tapToLoad": "Tocca per caricare la GIF",
|
||||
"gif_loadFailedRetry": "Impossibile caricare la GIF\nTocca per riprovare",
|
||||
"qr_cameraPermissionDenied": "Permesso della fotocamera negato.\nAbilita l'accesso alla fotocamera nelle impostazioni.",
|
||||
"qr_cameraUnsupported": "Fotocamera non supportata su questo dispositivo.",
|
||||
"qr_cameraStartFailed": "Avvio della fotocamera non riuscito.\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "Impossibile scaricare il modello di immagine: {error}"
|
||||
}
|
||||
+54
-2
@@ -3046,7 +3046,7 @@
|
||||
"settings_telemetryPerContactHint": "連絡先に許可するには、そのチャットを開いてメニューから「連絡先設定」を選択してください。",
|
||||
"settings_multiAckSubtitle": "配信を確実にするため ACK を追加送信します。放送時間が長くなります",
|
||||
"settings_presetCustom": "カスタム",
|
||||
"settings_radioMatchWarning": "通信するすべてのノードで、周波数・帯域幅・伝播係数・コーディング速度を揃える必要があります。",
|
||||
"settings_radioMatchWarning": "通信するすべてのノードで、周波数・帯域幅・伝播係数を揃える必要があります。コーディング速度(CR)は異なっていても構いません。",
|
||||
"settings_txPowerRangeHelper": "{min}~{max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -3203,5 +3203,57 @@
|
||||
"reviewMode_sendTest": "テストメッセージを送信",
|
||||
"reviewMode_testSent": "まもなくテストメッセージが届きます。",
|
||||
"reviewMode_exit": "終了",
|
||||
"reviewMode_connectFailed": "レビューモードを開始できませんでした: {error}"
|
||||
"reviewMode_connectFailed": "レビューモードを開始できませんでした: {error}",
|
||||
"settings_regionUseRadioDefault": "無線機の既定({region})",
|
||||
"settings_regionNoRegion": "地域なし(スコープなし)",
|
||||
"settings_regionRadioDefault": "無線機の既定の地域",
|
||||
"settings_regionRadioDefaultSubtitle": "無線機に保存されます。地域を指定せずに送るフラッドは、このアプリや無線機に接続した他のアプリからでも、この地域を使います。",
|
||||
"settings_regionRadioDefaultUpdated": "無線機の既定の地域を更新しました",
|
||||
"settings_regionRadioDefaultFailed": "無線機の既定の地域を更新できませんでした",
|
||||
"appSettings_channelMinHopsCountRepeaters": "近くの別のリピータも数える",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "{count, plural, =1{近くのリピータ 1 台} other{近くの異なるリピータ {count} 台}}が再送したら、それ以上先に届くのが聞こえなくても送信済みとみなします。",
|
||||
"appSettings_regionOnHopsLine": "ホップ数の横に地域を表示",
|
||||
"appSettings_regionOnHopsLineSubtitle": "チャンネルメッセージの地域を、ホップ数の下ではなく同じ行に表示します。",
|
||||
"channels_regionRadioDefaultSuffix": "(無線機の既定)",
|
||||
"channels_regionRadioDefaultApplies": "この無線機は、地域なしのフラッドを既定の地域で送信します:{region}。",
|
||||
"chat_futureTimestampWarning": "このメッセージの時刻は未来です。送信者の時計がずれている可能性があります。届いた順に表示しています。",
|
||||
"discoveredContacts_scan": "近くのノードをスキャン",
|
||||
"discoveredContacts_scanTitle": "近くのノード",
|
||||
"discoveredContacts_scanExplanation": "直接電波が届く範囲のノードに応答を求めます。リピータとセンサーが応答します。ルームサーバーやコンパニオンは通常応答しません。",
|
||||
"discoveredContacts_scanning": "スキャン中…",
|
||||
"discoveredContacts_scanFound": "{count, plural, =1{1 件のノードが見つかりました} other{{count} 件のノードが見つかりました}}",
|
||||
"discoveredContacts_scanNoResults": "応答したノードはありません。リピータは応答頻度を制限しているため、1 分ほど待ってからもう一度お試しください。",
|
||||
"discoveredContacts_scanAgain": "もう一度スキャン",
|
||||
"discoveredContacts_scanFailed": "スキャン要求を送信できませんでした。",
|
||||
"discoveredContacts_scanSignal": "信号 {snr} dB ・ 相手の受信 {remoteSnr} dB",
|
||||
"discoveredContacts_scanInContacts": "すでに連絡先にあります",
|
||||
"discoveredContacts_scanNameLater": "次のアドバートの後に名前が表示されます",
|
||||
"channels_waitForSync": "チャンネルは無線機からまだ読み込み中です。同期が完了してからもう一度お試しください。",
|
||||
"channels_nameTooLong": "名前が長すぎます(最大 {maxBytes} バイト)。",
|
||||
"repeater_valueRequired": "{field}:値を入力してください",
|
||||
"losMapDetailTooltip": "地図の詳細",
|
||||
"losUnitsTooltip": "単位",
|
||||
"losDistance": "距離",
|
||||
"losClearance": "クリアランス",
|
||||
"losBlockedBy": "遮蔽物",
|
||||
"losObstruction": "障害物",
|
||||
"losDistanceFromA": "A から {distance}",
|
||||
"losWorstBadge": "最悪",
|
||||
"losBlockedAmount": "遮断量 {amount}",
|
||||
"losFromA": "A から",
|
||||
"losFromB": "B から",
|
||||
"losElevation": "標高",
|
||||
"losCenterOnMap": "地図の中心に表示",
|
||||
"losStatusClear": "クリア",
|
||||
"losStatusMarginal": "境界",
|
||||
"losStatusBlocked": "遮断",
|
||||
"losStatusCheckingShort": "確認中",
|
||||
"losStatusNoResult": "結果なし",
|
||||
"losSelectedPill": "選択中",
|
||||
"gif_tapToLoad": "タップして GIF を読み込む",
|
||||
"gif_loadFailedRetry": "GIF を読み込めません\nタップして再試行",
|
||||
"qr_cameraPermissionDenied": "カメラの権限が拒否されました。\n設定でカメラへのアクセスを有効にしてください。",
|
||||
"qr_cameraUnsupported": "この端末ではカメラがサポートされていません。",
|
||||
"qr_cameraStartFailed": "カメラを起動できませんでした。\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "画像モデルをダウンロードできませんでした:{error}"
|
||||
}
|
||||
+54
-2
@@ -3046,7 +3046,7 @@
|
||||
"settings_telemetryPerContactHint": "연락처에 허용하려면 해당 채팅을 열고 메뉴에서 연락처 설정을 선택하세요.",
|
||||
"settings_multiAckSubtitle": "전달을 개선하기 위해 ACK를 추가로 전송합니다. 방송 시간이 더 필요합니다",
|
||||
"settings_presetCustom": "사용자 지정",
|
||||
"settings_radioMatchWarning": "통신하는 모든 노드가 동일한 주파수, 대역폭, 확산 계수, 코딩 속도를 사용해야 합니다.",
|
||||
"settings_radioMatchWarning": "통신하는 모든 노드가 동일한 주파수, 대역폭, 확산 계수를 사용해야 합니다. 코딩 속도(CR)는 달라도 됩니다.",
|
||||
"settings_txPowerRangeHelper": "{min}~{max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -3203,5 +3203,57 @@
|
||||
"reviewMode_sendTest": "테스트 메시지 보내기",
|
||||
"reviewMode_testSent": "잠시 후 테스트 메시지가 도착합니다.",
|
||||
"reviewMode_exit": "나가기",
|
||||
"reviewMode_connectFailed": "검토 모드를 시작할 수 없습니다: {error}"
|
||||
"reviewMode_connectFailed": "검토 모드를 시작할 수 없습니다: {error}",
|
||||
"settings_regionUseRadioDefault": "무전기 기본값 ({region})",
|
||||
"settings_regionNoRegion": "지역 없음 (범위 미지정)",
|
||||
"settings_regionRadioDefault": "무전기 기본 지역",
|
||||
"settings_regionRadioDefaultSubtitle": "무전기에 저장됩니다. 지역 없이 보내는 플러딩은 이 앱과 무전기에 연결된 다른 앱 모두 이 지역을 사용합니다.",
|
||||
"settings_regionRadioDefaultUpdated": "무전기 기본 지역을 업데이트했습니다",
|
||||
"settings_regionRadioDefaultFailed": "무전기 기본 지역을 업데이트하지 못했습니다",
|
||||
"appSettings_channelMinHopsCountRepeaters": "근처의 다른 리피터도 포함",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "{count, plural, =1{근처 리피터 1대} other{근처의 서로 다른 리피터 {count}대}}가 다시 전송하면, 그 너머로 전달되는 것이 들리지 않아도 전송된 것으로 처리합니다.",
|
||||
"appSettings_regionOnHopsLine": "홉 수 옆에 지역 표시",
|
||||
"appSettings_regionOnHopsLineSubtitle": "채널 메시지의 지역을 홉 수 아래가 아닌 같은 줄에 표시합니다.",
|
||||
"channels_regionRadioDefaultSuffix": "(무전기 기본값)",
|
||||
"channels_regionRadioDefaultApplies": "이 무전기는 지역 없는 플러딩을 기본 지역으로 보냅니다: {region}.",
|
||||
"chat_futureTimestampWarning": "이 메시지의 시간이 미래입니다. 보낸 사람의 시계가 잘못되었을 수 있습니다. 도착한 순서대로 표시됩니다.",
|
||||
"discoveredContacts_scan": "근처 노드 스캔",
|
||||
"discoveredContacts_scanTitle": "근처 노드",
|
||||
"discoveredContacts_scanExplanation": "직접 전파가 닿는 범위의 노드에게 응답을 요청합니다. 리피터와 센서가 응답합니다. 룸 서버와 컴패니언은 보통 응답하지 않습니다.",
|
||||
"discoveredContacts_scanning": "스캔 중…",
|
||||
"discoveredContacts_scanFound": "{count, plural, =1{노드 1개 발견} other{노드 {count}개 발견}}",
|
||||
"discoveredContacts_scanNoResults": "응답한 노드가 없습니다. 리피터는 응답 횟수를 제한하므로 1분 후에 다시 시도하세요.",
|
||||
"discoveredContacts_scanAgain": "다시 스캔",
|
||||
"discoveredContacts_scanFailed": "스캔 요청을 보내지 못했습니다.",
|
||||
"discoveredContacts_scanSignal": "신호 {snr} dB · 상대방 수신 {remoteSnr} dB",
|
||||
"discoveredContacts_scanInContacts": "이미 연락처에 있음",
|
||||
"discoveredContacts_scanNameLater": "다음 어드버트 후에 이름이 표시됩니다",
|
||||
"channels_waitForSync": "채널을 무전기에서 아직 불러오는 중입니다. 동기화가 끝난 후 다시 시도하세요.",
|
||||
"channels_nameTooLong": "이름이 너무 깁니다 (최대 {maxBytes}바이트).",
|
||||
"repeater_valueRequired": "{field}: 값을 입력하세요",
|
||||
"losMapDetailTooltip": "지도 상세",
|
||||
"losUnitsTooltip": "단위",
|
||||
"losDistance": "거리",
|
||||
"losClearance": "여유 공간",
|
||||
"losBlockedBy": "가로막는 대상",
|
||||
"losObstruction": "장애물",
|
||||
"losDistanceFromA": "A에서 {distance}",
|
||||
"losWorstBadge": "최악",
|
||||
"losBlockedAmount": "{amount} 차단됨",
|
||||
"losFromA": "A 기준",
|
||||
"losFromB": "B 기준",
|
||||
"losElevation": "고도",
|
||||
"losCenterOnMap": "지도 중앙으로",
|
||||
"losStatusClear": "양호",
|
||||
"losStatusMarginal": "경계",
|
||||
"losStatusBlocked": "차단됨",
|
||||
"losStatusCheckingShort": "확인 중",
|
||||
"losStatusNoResult": "결과 없음",
|
||||
"losSelectedPill": "선택됨",
|
||||
"gif_tapToLoad": "탭하여 GIF 불러오기",
|
||||
"gif_loadFailedRetry": "GIF를 불러올 수 없습니다\n탭하여 다시 시도",
|
||||
"qr_cameraPermissionDenied": "카메라 권한이 거부되었습니다.\n설정에서 카메라 접근을 허용해 주세요.",
|
||||
"qr_cameraUnsupported": "이 기기는 카메라를 지원하지 않습니다.",
|
||||
"qr_cameraStartFailed": "카메라를 시작하지 못했습니다.\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "이미지 모델을 다운로드하지 못했습니다: {error}"
|
||||
}
|
||||
@@ -880,6 +880,42 @@ abstract class AppLocalizations {
|
||||
/// **'None'**
|
||||
String get settings_regionDefaultNone;
|
||||
|
||||
/// No description provided for @settings_regionUseRadioDefault.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Radio default ({region})'**
|
||||
String settings_regionUseRadioDefault(String region);
|
||||
|
||||
/// No description provided for @settings_regionNoRegion.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'No region (unscoped)'**
|
||||
String get settings_regionNoRegion;
|
||||
|
||||
/// No description provided for @settings_regionRadioDefault.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Radio default region'**
|
||||
String get settings_regionRadioDefault;
|
||||
|
||||
/// No description provided for @settings_regionRadioDefaultSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Saved on the radio. Floods sent without a region use it, from this app and any other app connected to the radio.'**
|
||||
String get settings_regionRadioDefaultSubtitle;
|
||||
|
||||
/// No description provided for @settings_regionRadioDefaultUpdated.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Radio default region updated'**
|
||||
String get settings_regionRadioDefaultUpdated;
|
||||
|
||||
/// No description provided for @settings_regionRadioDefaultFailed.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Could not update the radio default region'**
|
||||
String get settings_regionRadioDefaultFailed;
|
||||
|
||||
/// No description provided for @settings_regionManagement_screenTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -1369,7 +1405,7 @@ abstract class AppLocalizations {
|
||||
/// 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.'**
|
||||
/// **'All nodes you talk to must use the same frequency, bandwidth and SF. The coding rate (CR) can differ.'**
|
||||
String get settings_radioMatchWarning;
|
||||
|
||||
/// No description provided for @settings_frequency.
|
||||
@@ -1654,6 +1690,18 @@ abstract class AppLocalizations {
|
||||
/// **'Resend up to {count, plural, =1{1 time} other{{count} times}}'**
|
||||
String appSettings_channelMinHopsRetries(int count);
|
||||
|
||||
/// No description provided for @appSettings_channelMinHopsCountRepeaters.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Also count different nearby repeaters'**
|
||||
String get appSettings_channelMinHopsCountRepeaters;
|
||||
|
||||
/// No description provided for @appSettings_channelMinHopsCountRepeatersSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Treat the message as sent when {count, plural, =1{1 nearby repeater} other{{count} different nearby repeaters}} repeat it, even if you can\'t hear it travel further.'**
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count);
|
||||
|
||||
/// No description provided for @appSettings_enableMessageTracing.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -1666,6 +1714,18 @@ abstract class AppLocalizations {
|
||||
/// **'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_regionOnHopsLine.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Region next to hop count'**
|
||||
String get appSettings_regionOnHopsLine;
|
||||
|
||||
/// No description provided for @appSettings_regionOnHopsLineSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Show a channel message\'s region on the same line as its hop count instead of below it.'**
|
||||
String get appSettings_regionOnHopsLineSubtitle;
|
||||
|
||||
/// No description provided for @appSettings_notifications.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -2890,6 +2950,18 @@ abstract class AppLocalizations {
|
||||
/// **'(default)'**
|
||||
String get channels_regionDefaultSuffix;
|
||||
|
||||
/// No description provided for @channels_regionRadioDefaultSuffix.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'(radio default)'**
|
||||
String get channels_regionRadioDefaultSuffix;
|
||||
|
||||
/// No description provided for @channels_regionRadioDefaultApplies.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'This radio sends floods without a region in its default region: {region}.'**
|
||||
String channels_regionRadioDefaultApplies(String region);
|
||||
|
||||
/// No description provided for @channels_regionSelectExplanation.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -2962,6 +3034,12 @@ abstract class AppLocalizations {
|
||||
/// **'Type a message...'**
|
||||
String get chat_typeMessage;
|
||||
|
||||
/// No description provided for @chat_futureTimestampWarning.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'This message\'s time is in the future, so the sender\'s clock may be wrong. It is shown in the order it arrived.'**
|
||||
String get chat_futureTimestampWarning;
|
||||
|
||||
/// No description provided for @chat_messageTooLong.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -8272,6 +8350,72 @@ abstract class AppLocalizations {
|
||||
/// **'Are you sure you want to delete all discovered contacts?'**
|
||||
String get discoveredContacts_deleteContactAllContent;
|
||||
|
||||
/// No description provided for @discoveredContacts_scan.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Scan for nearby nodes'**
|
||||
String get discoveredContacts_scan;
|
||||
|
||||
/// No description provided for @discoveredContacts_scanTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Nearby nodes'**
|
||||
String get discoveredContacts_scanTitle;
|
||||
|
||||
/// No description provided for @discoveredContacts_scanExplanation.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Asks nodes within direct radio range to identify themselves. Repeaters and sensors answer. Room servers and companions usually don\'t.'**
|
||||
String get discoveredContacts_scanExplanation;
|
||||
|
||||
/// No description provided for @discoveredContacts_scanning.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Scanning…'**
|
||||
String get discoveredContacts_scanning;
|
||||
|
||||
/// No description provided for @discoveredContacts_scanFound.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'{count, plural, =1{1 node found} other{{count} nodes found}}'**
|
||||
String discoveredContacts_scanFound(int count);
|
||||
|
||||
/// No description provided for @discoveredContacts_scanNoResults.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'No nodes answered. Repeaters limit how often they reply, so try again in a minute.'**
|
||||
String get discoveredContacts_scanNoResults;
|
||||
|
||||
/// No description provided for @discoveredContacts_scanAgain.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Scan again'**
|
||||
String get discoveredContacts_scanAgain;
|
||||
|
||||
/// No description provided for @discoveredContacts_scanFailed.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Could not send the scan request.'**
|
||||
String get discoveredContacts_scanFailed;
|
||||
|
||||
/// No description provided for @discoveredContacts_scanSignal.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Signal {snr} dB · they heard us at {remoteSnr} dB'**
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr);
|
||||
|
||||
/// No description provided for @discoveredContacts_scanInContacts.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Already in contacts'**
|
||||
String get discoveredContacts_scanInContacts;
|
||||
|
||||
/// No description provided for @discoveredContacts_scanNameLater.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Name appears after its next advert'**
|
||||
String get discoveredContacts_scanNameLater;
|
||||
|
||||
/// No description provided for @chat_sendCooldown.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -9363,6 +9507,174 @@ abstract class AppLocalizations {
|
||||
/// In en, this message translates to:
|
||||
/// **'Could not start review mode: {error}'**
|
||||
String reviewMode_connectFailed(String error);
|
||||
|
||||
/// Snackbar when the user tries to add a channel before the channel list has fully synced
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Channels are still loading from the radio. Try again when the sync finishes.'**
|
||||
String get channels_waitForSync;
|
||||
|
||||
/// Snackbar when a channel name would not fit on the radio
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Name is too long (max {maxBytes} bytes).'**
|
||||
String channels_nameTooLong(int maxBytes);
|
||||
|
||||
/// Save error when a changed repeater setting was left empty
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'{field}: enter a value'**
|
||||
String repeater_valueRequired(String field);
|
||||
|
||||
/// No description provided for @losMapDetailTooltip.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Map detail'**
|
||||
String get losMapDetailTooltip;
|
||||
|
||||
/// No description provided for @losUnitsTooltip.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Units'**
|
||||
String get losUnitsTooltip;
|
||||
|
||||
/// No description provided for @losDistance.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Distance'**
|
||||
String get losDistance;
|
||||
|
||||
/// No description provided for @losClearance.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Clearance'**
|
||||
String get losClearance;
|
||||
|
||||
/// No description provided for @losBlockedBy.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Blocked by'**
|
||||
String get losBlockedBy;
|
||||
|
||||
/// No description provided for @losObstruction.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Obstruction'**
|
||||
String get losObstruction;
|
||||
|
||||
/// Distance of the worst obstruction from point A, e.g. "1.2 km from A"
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'{distance} from A'**
|
||||
String losDistanceFromA(String distance);
|
||||
|
||||
/// Badge on the worst obstruction in the list
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'WORST'**
|
||||
String get losWorstBadge;
|
||||
|
||||
/// How much an obstruction blocks the beam, e.g. "Blocked 12 m"
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Blocked {amount}'**
|
||||
String losBlockedAmount(String amount);
|
||||
|
||||
/// No description provided for @losFromA.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'From A'**
|
||||
String get losFromA;
|
||||
|
||||
/// No description provided for @losFromB.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'From B'**
|
||||
String get losFromB;
|
||||
|
||||
/// No description provided for @losElevation.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Elevation'**
|
||||
String get losElevation;
|
||||
|
||||
/// No description provided for @losCenterOnMap.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Center on map'**
|
||||
String get losCenterOnMap;
|
||||
|
||||
/// Line-of-sight status
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Clear'**
|
||||
String get losStatusClear;
|
||||
|
||||
/// Line-of-sight status
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Marginal'**
|
||||
String get losStatusMarginal;
|
||||
|
||||
/// Line-of-sight status and legend entry
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Blocked'**
|
||||
String get losStatusBlocked;
|
||||
|
||||
/// Line-of-sight status while the check runs
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Checking'**
|
||||
String get losStatusCheckingShort;
|
||||
|
||||
/// Line-of-sight status when there is no result
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'No result'**
|
||||
String get losStatusNoResult;
|
||||
|
||||
/// Label drawn on the elevation chart at the selected point
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Selected'**
|
||||
String get losSelectedPill;
|
||||
|
||||
/// No description provided for @gif_tapToLoad.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Tap to load GIF'**
|
||||
String get gif_tapToLoad;
|
||||
|
||||
/// No description provided for @gif_loadFailedRetry.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Can\'t load GIF\nTap to retry'**
|
||||
String get gif_loadFailedRetry;
|
||||
|
||||
/// No description provided for @qr_cameraPermissionDenied.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Camera permission denied.\nPlease enable camera access in settings.'**
|
||||
String get qr_cameraPermissionDenied;
|
||||
|
||||
/// No description provided for @qr_cameraUnsupported.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Camera not supported on this device.'**
|
||||
String get qr_cameraUnsupported;
|
||||
|
||||
/// No description provided for @qr_cameraStartFailed.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Failed to start camera.\n{details}'**
|
||||
String qr_cameraStartFailed(String details);
|
||||
|
||||
/// No description provided for @imageMessages_downloadFailedWithError.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'The image model could not be downloaded: {error}'**
|
||||
String imageMessages_downloadFailedWithError(String error);
|
||||
}
|
||||
|
||||
class _AppLocalizationsDelegate
|
||||
|
||||
@@ -435,6 +435,29 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'Няма';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return 'По подразбиране на радиото ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => 'Без регион (без ограничение)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => 'Регион на радиото по подразбиране';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'Запазва се на радиото. Използва се от flood съобщения без регион — от това и от всяко друго приложение, свързано с радиото.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated =>
|
||||
'Регионът на радиото по подразбиране е обновен';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed =>
|
||||
'Регионът на радиото по подразбиране не можа да се обнови';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => 'Регионално управление';
|
||||
|
||||
@@ -715,7 +738,7 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'Всички възли, с които комуникирате, трябва да използват еднакви честота, честотна лента, SF и CR.';
|
||||
'Всички възли, с които комуникирате, трябва да използват еднакви честота, честотна лента и SF. Скоростта на кодиране (CR) може да се различава.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Честота (MHz)';
|
||||
@@ -881,6 +904,21 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
return 'Повторно изпращане до $_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters =>
|
||||
'Отчитай и други близки повторители';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count различни близки повторители',
|
||||
one: '1 близък повторител',
|
||||
);
|
||||
return 'Смятай съобщението за изпратено, когато го повторят $_temp0, дори да не чуваш как продължава нататък.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Разрешаване на проследяване на съобщения';
|
||||
@@ -889,6 +927,13 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Показване на подробни метаданни за маршрутизация и синхронизация за съобщения';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => 'Регион до броя хопове';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'Показвай региона на съобщението в канала на същия ред като броя хопове, а не под него.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Уведомления';
|
||||
|
||||
@@ -1608,6 +1653,15 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(по подразбиране)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix =>
|
||||
'(по подразбиране на радиото)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'Това радио изпраща flood без регион в своя регион по подразбиране: $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'Разпространяваните в този канал съобщения ще се препращат само от повторители в избрания регион.';
|
||||
@@ -1651,6 +1705,10 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'Въведете съобщение...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'Часът на това съобщение е в бъдещето, така че часовникът на подателя може да е грешен. Показано е по реда на получаване.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'Съобщението е твърде дълго (макс $maxBytes байта).';
|
||||
@@ -4827,6 +4885,53 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'Сигурни ли сте, че искате да изтриете всички открити контакти?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => 'Сканиране за близки възли';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => 'Близки възли';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'Моли възлите в обхват на директна радиовръзка да се обявят. Отговарят повторители и сензори. Сървърите за стаи и компаньоните обикновено не отговарят.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'Сканиране…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: 'Намерени $count възела',
|
||||
one: 'Намерен 1 възел',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'Нито един възел не отговори. Повторителите ограничават честотата на отговорите, опитайте след минута.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'Сканирай отново';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed =>
|
||||
'Заявката за сканиране не можа да се изпрати.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return 'Сигнал $snr dB · чуха ни с $remoteSnr dB';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'Вече в контактите';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater =>
|
||||
'Името се появява след следващата обява';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown =>
|
||||
'Моля, изчакайте малко, преди да изпратите отново.';
|
||||
@@ -5516,4 +5621,104 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Режимът за преглед не можа да се стартира: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'Каналите все още се зареждат от радиото. Опитайте отново, когато синхронизацията приключи.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return 'Името е твърде дълго (макс. $maxBytes байта).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field: въведете стойност';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Детайл на картата';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => 'Единици';
|
||||
|
||||
@override
|
||||
String get losDistance => 'Разстояние';
|
||||
|
||||
@override
|
||||
String get losClearance => 'Просвет';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => 'Блокирано от';
|
||||
|
||||
@override
|
||||
String get losObstruction => 'Препятствие';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '$distance от A';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => 'НАЙ-ЛОШО';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return 'Блокирано $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'От A';
|
||||
|
||||
@override
|
||||
String get losFromB => 'От B';
|
||||
|
||||
@override
|
||||
String get losElevation => 'Височина';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => 'Центрирай на картата';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'Ясно';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => 'Гранично';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => 'Блокирано';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => 'Проверка';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => 'Няма резултат';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => 'Избрано';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'Докоснете, за да заредите GIF';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry =>
|
||||
'GIF не може да се зареди\nДокоснете за повторен опит';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'Достъпът до камерата е отказан.\nМоля, разрешете достъп до камерата в настройките.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported =>
|
||||
'Камерата не се поддържа на това устройство.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'Камерата не можа да се стартира.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return 'Моделът за изображения не можа да се изтегли: $error';
|
||||
}
|
||||
}
|
||||
@@ -437,6 +437,29 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'Keine';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return 'Radio-Standard ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => 'Keine Region (ohne Bereich)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => 'Standardregion des Radios';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'Auf dem Radio gespeichert. Floods ohne Region verwenden sie, von dieser App und von jeder anderen App, die mit dem Radio verbunden ist.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated =>
|
||||
'Standardregion des Radios aktualisiert';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed =>
|
||||
'Standardregion des Radios konnte nicht aktualisiert werden';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => 'Regions-Verwaltung';
|
||||
|
||||
@@ -710,7 +733,7 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'Alle Knoten, mit denen Sie kommunizieren, müssen dieselbe Frequenz, Bandbreite, SF und CR verwenden.';
|
||||
'Alle Knoten, mit denen Sie kommunizieren, müssen dieselbe Frequenz, Bandbreite und SF verwenden. Die Coderate (CR) darf abweichen.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frequenz (MHz)';
|
||||
@@ -876,6 +899,21 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
return 'Bis zu $_temp0 erneut senden';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters =>
|
||||
'Auch verschiedene Repeater in der Nähe zählen';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count verschiedene Repeater in der Nähe',
|
||||
one: '1 Repeater in der Nähe',
|
||||
);
|
||||
return 'Die Nachricht als gesendet betrachten, wenn $_temp0 sie wiederholen, auch wenn Sie nicht hören, wie sie weiterläuft.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Nachrichtenverfolgung aktivieren';
|
||||
@@ -884,6 +922,13 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Detaillierte Routing- und Zeitmetadaten für Nachrichten anzeigen';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => 'Region neben der Hop-Anzahl';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'Die Region einer Kanalnachricht in derselben Zeile wie die Hop-Anzahl anzeigen statt darunter.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Benachrichtigungen';
|
||||
|
||||
@@ -1606,6 +1651,14 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(Standard)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(Radio-Standard)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'Dieses Radio sendet Floods ohne Region in seiner Standardregion: $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'Flood-Nachrichten in diesem Kanal werden nur von Repeatern in der ausgewählten Region weitergeleitet.';
|
||||
@@ -1650,6 +1703,10 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'Nachricht eingeben...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'Die Uhrzeit dieser Nachricht liegt in der Zukunft, daher könnte die Uhr des Absenders falsch gehen. Sie wird in der Reihenfolge ihres Eintreffens angezeigt.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'Nachricht zu lang (max. $maxBytes Bytes).';
|
||||
@@ -4840,6 +4897,53 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'Sind Sie sicher, dass Sie alle gefundenen Kontakte löschen möchten?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => 'Nach Knoten in der Nähe suchen';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => 'Knoten in der Nähe';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'Fordert Knoten in direkter Funkreichweite auf, sich zu melden. Repeater und Sensoren antworten. Raumserver und Companions meist nicht.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'Suche läuft…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count Knoten gefunden',
|
||||
one: '1 Knoten gefunden',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'Kein Knoten hat geantwortet. Repeater begrenzen, wie oft sie antworten. Versuchen Sie es in einer Minute erneut.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'Erneut suchen';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed =>
|
||||
'Die Suchanfrage konnte nicht gesendet werden.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return 'Signal $snr dB · sie haben uns mit $remoteSnr dB gehört';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'Bereits in den Kontakten';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater =>
|
||||
'Name erscheint nach der nächsten Ankündigung';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown =>
|
||||
'Bitte warten Sie einen Moment, bevor Sie erneut senden.';
|
||||
@@ -5533,4 +5637,104 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Prüfmodus konnte nicht gestartet werden: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'Kanäle werden noch vom Radio geladen. Versuchen Sie es erneut, wenn die Synchronisierung abgeschlossen ist.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return 'Name ist zu lang (max. $maxBytes Bytes).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field: Wert eingeben';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Kartendetails';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => 'Einheiten';
|
||||
|
||||
@override
|
||||
String get losDistance => 'Entfernung';
|
||||
|
||||
@override
|
||||
String get losClearance => 'Freiraum';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => 'Blockiert durch';
|
||||
|
||||
@override
|
||||
String get losObstruction => 'Hindernis';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '$distance von A';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => 'SCHLECHTESTES';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return 'Blockiert $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'Von A';
|
||||
|
||||
@override
|
||||
String get losFromB => 'Von B';
|
||||
|
||||
@override
|
||||
String get losElevation => 'Höhe';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => 'Auf Karte zentrieren';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'Frei';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => 'Grenzwertig';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => 'Blockiert';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => 'Prüfung';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => 'Kein Ergebnis';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => 'Ausgewählt';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'Zum Laden des GIFs tippen';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry =>
|
||||
'GIF kann nicht geladen werden\nTippen, um es erneut zu versuchen';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'Kamerazugriff verweigert.\nBitte aktivieren Sie den Kamerazugriff in den Einstellungen.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported =>
|
||||
'Kamera wird auf diesem Gerät nicht unterstützt.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'Kamera konnte nicht gestartet werden.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return 'Das Bildmodell konnte nicht heruntergeladen werden: $error';
|
||||
}
|
||||
}
|
||||
@@ -431,6 +431,29 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'None';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return 'Radio default ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => 'No region (unscoped)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => 'Radio default region';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'Saved on the radio. Floods sent without a region use it, from this app and any other app connected to the radio.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated =>
|
||||
'Radio default region updated';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed =>
|
||||
'Could not update the radio default region';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => 'Region Management';
|
||||
|
||||
@@ -698,7 +721,7 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'All nodes you talk to must use the same frequency, bandwidth, SF and CR.';
|
||||
'All nodes you talk to must use the same frequency, bandwidth and SF. The coding rate (CR) can differ.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frequency (MHz)';
|
||||
@@ -864,6 +887,21 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
return 'Resend up to $_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters =>
|
||||
'Also count different nearby repeaters';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count different nearby repeaters',
|
||||
one: '1 nearby repeater',
|
||||
);
|
||||
return 'Treat the message as sent when $_temp0 repeat it, even if you can\'t hear it travel further.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Show full repeater path in messages';
|
||||
@@ -872,6 +910,13 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Also show repeat counts and trip times. Long-press a message and choose Path for full details.';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => 'Region next to hop count';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'Show a channel message\'s region on the same line as its hop count instead of below it.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Notifications';
|
||||
|
||||
@@ -1577,6 +1622,14 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(default)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(radio default)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'This radio sends floods without a region in its default region: $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'Flood messages on this channel will only be forwarded by repeaters in the selected region.';
|
||||
@@ -1620,6 +1673,10 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'Type a message...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'This message\'s time is in the future, so the sender\'s clock may be wrong. It is shown in the order it arrived.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'Message too long (max $maxBytes bytes).';
|
||||
@@ -4758,6 +4815,53 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'Are you sure you want to delete all discovered contacts?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => 'Scan for nearby nodes';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => 'Nearby nodes';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'Asks nodes within direct radio range to identify themselves. Repeaters and sensors answer. Room servers and companions usually don\'t.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'Scanning…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count nodes found',
|
||||
one: '1 node found',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'No nodes answered. Repeaters limit how often they reply, so try again in a minute.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'Scan again';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed =>
|
||||
'Could not send the scan request.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return 'Signal $snr dB · they heard us at $remoteSnr dB';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'Already in contacts';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater =>
|
||||
'Name appears after its next advert';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown => 'Please wait a moment before sending again.';
|
||||
|
||||
@@ -5439,4 +5543,102 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Could not start review mode: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'Channels are still loading from the radio. Try again when the sync finishes.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return 'Name is too long (max $maxBytes bytes).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field: enter a value';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Map detail';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => 'Units';
|
||||
|
||||
@override
|
||||
String get losDistance => 'Distance';
|
||||
|
||||
@override
|
||||
String get losClearance => 'Clearance';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => 'Blocked by';
|
||||
|
||||
@override
|
||||
String get losObstruction => 'Obstruction';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '$distance from A';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => 'WORST';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return 'Blocked $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'From A';
|
||||
|
||||
@override
|
||||
String get losFromB => 'From B';
|
||||
|
||||
@override
|
||||
String get losElevation => 'Elevation';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => 'Center on map';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'Clear';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => 'Marginal';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => 'Blocked';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => 'Checking';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => 'No result';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => 'Selected';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'Tap to load GIF';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry => 'Can\'t load GIF\nTap to retry';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'Camera permission denied.\nPlease enable camera access in settings.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported => 'Camera not supported on this device.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'Failed to start camera.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return 'The image model could not be downloaded: $error';
|
||||
}
|
||||
}
|
||||
@@ -435,6 +435,29 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'Ninguna';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return 'Predeterminada de la radio ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => 'Sin región (sin ámbito)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => 'Región predeterminada de la radio';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'Guardada en la radio. Las inundaciones enviadas sin región la usan, desde esta app y desde cualquier otra app conectada a la radio.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated =>
|
||||
'Región predeterminada de la radio actualizada';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed =>
|
||||
'No se pudo actualizar la región predeterminada de la radio';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => 'Gestión de Regiones';
|
||||
|
||||
@@ -709,7 +732,7 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'Todos los nodos con los que hablas deben usar la misma frecuencia, ancho de banda, SF y CR.';
|
||||
'Todos los nodos con los que hablas deben usar la misma frecuencia, ancho de banda y SF. La tasa de codificación (CR) puede ser distinta.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frecuencia (MHz)';
|
||||
@@ -875,6 +898,21 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
return 'Reenviar hasta $_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters =>
|
||||
'Contar también repetidores cercanos distintos';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count repetidores cercanos distintos',
|
||||
one: '1 repetidor cercano',
|
||||
);
|
||||
return 'Considerar el mensaje como enviado cuando $_temp0 lo repitan, aunque no oigas que avance más.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Habilitar seguimiento de mensajes';
|
||||
@@ -883,6 +921,13 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Mostrar metadatos detallados de enrutamiento y tiempo para los mensajes';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => 'Región junto al número de saltos';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'Mostrar la región de un mensaje de canal en la misma línea que su número de saltos en lugar de debajo.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Notificaciones';
|
||||
|
||||
@@ -1603,6 +1648,15 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(predeterminada)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix =>
|
||||
'(predeterminada de la radio)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'Esta radio envía las inundaciones sin región en su región predeterminada: $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'Los mensajes de inundación de este canal solo los reenviarán los repetidores de la región seleccionada.';
|
||||
@@ -1646,6 +1700,10 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'Escribe un mensaje...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'La hora de este mensaje está en el futuro, por lo que el reloj del remitente puede estar mal. Se muestra en el orden en que llegó.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'Mensaje demasiado largo (máximo $maxBytes bytes).';
|
||||
@@ -4832,6 +4890,53 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'¿Está seguro de que desea eliminar todos los contactos descubiertos!';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => 'Buscar nodos cercanos';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => 'Nodos cercanos';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'Pide a los nodos dentro del alcance directo de radio que se identifiquen. Los repetidores y sensores responden. Los servidores de sala y los compañeros normalmente no.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'Buscando…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count nodos encontrados',
|
||||
one: '1 nodo encontrado',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'Ningún nodo respondió. Los repetidores limitan la frecuencia de sus respuestas, así que inténtalo de nuevo en un minuto.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'Buscar de nuevo';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed =>
|
||||
'No se pudo enviar la solicitud de búsqueda.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return 'Señal $snr dB · nos oyeron a $remoteSnr dB';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'Ya está en contactos';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater =>
|
||||
'El nombre aparece tras su próximo anuncio';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown =>
|
||||
'Por favor, espere un momento antes de reenviar.';
|
||||
@@ -5522,4 +5627,104 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'No se pudo iniciar el modo de revisión: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'Los canales aún se están cargando desde la radio. Inténtalo de nuevo cuando termine la sincronización.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return 'El nombre es demasiado largo (máx. $maxBytes bytes).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field: introduce un valor';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Detalle del mapa';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => 'Unidades';
|
||||
|
||||
@override
|
||||
String get losDistance => 'Distancia';
|
||||
|
||||
@override
|
||||
String get losClearance => 'Margen libre';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => 'Bloqueado por';
|
||||
|
||||
@override
|
||||
String get losObstruction => 'Obstáculo';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '$distance desde A';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => 'PEOR';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return 'Bloqueado $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'Desde A';
|
||||
|
||||
@override
|
||||
String get losFromB => 'Desde B';
|
||||
|
||||
@override
|
||||
String get losElevation => 'Elevación';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => 'Centrar en el mapa';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'Despejado';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => 'Marginal';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => 'Bloqueado';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => 'Comprobando';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => 'Sin resultado';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => 'Seleccionado';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'Toca para cargar el GIF';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry =>
|
||||
'No se puede cargar el GIF\nToca para reintentar';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'Permiso de cámara denegado.\nActiva el acceso a la cámara en los ajustes.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported =>
|
||||
'Cámara no compatible con este dispositivo.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'No se pudo iniciar la cámara.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return 'No se pudo descargar el modelo de imagen: $error';
|
||||
}
|
||||
}
|
||||
@@ -437,6 +437,29 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'Aucune';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return 'Par défaut de la radio ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => 'Aucune région (sans portée)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => 'Région par défaut de la radio';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'Enregistrée sur la radio. Les floods envoyés sans région l\'utilisent, depuis cette application et toute autre application connectée à la radio.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated =>
|
||||
'Région par défaut de la radio mise à jour';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed =>
|
||||
'Impossible de mettre à jour la région par défaut de la radio';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => 'Gestion de région';
|
||||
|
||||
@@ -715,7 +738,7 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'Tous les nœuds avec lesquels vous communiquez doivent utiliser la même fréquence, la même bande passante, le même SF et le même CR.';
|
||||
'Tous les nœuds avec lesquels vous communiquez doivent utiliser la même fréquence, la même bande passante et le même SF. Le taux de codage (CR) peut être différent.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Fréquence (MHz)';
|
||||
@@ -881,6 +904,21 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
return 'Renvoyer jusqu\'à $_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters =>
|
||||
'Compter aussi les différents répéteurs proches';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count répéteurs proches différents',
|
||||
one: '1 répéteur proche',
|
||||
);
|
||||
return 'Considérer le message comme envoyé quand $_temp0 le répètent, même si vous ne l\'entendez pas aller plus loin.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Activer le traçage des messages';
|
||||
@@ -889,6 +927,13 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Afficher les métadonnées détaillées de routage et de synchronisation des messages';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => 'Région à côté du nombre de sauts';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'Afficher la région d\'un message de canal sur la même ligne que son nombre de sauts plutôt qu\'en dessous.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Notifications';
|
||||
|
||||
@@ -1608,6 +1653,14 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(par défaut)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(défaut de la radio)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'Cette radio envoie les floods sans région dans sa région par défaut : $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'Les messages flood de ce canal ne seront relayés que par les répéteurs de la région sélectionnée.';
|
||||
@@ -1651,6 +1704,10 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'Saisir un message...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'L\'heure de ce message est dans le futur, l\'horloge de l\'expéditeur est peut-être incorrecte. Il est affiché dans l\'ordre d\'arrivée.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'Message trop long (max $maxBytes octets).';
|
||||
@@ -4311,7 +4368,7 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String get listFilter_all => 'Tout';
|
||||
|
||||
@override
|
||||
String get listFilter_favorites => 'Préférences';
|
||||
String get listFilter_favorites => 'Favoris';
|
||||
|
||||
@override
|
||||
String get listFilter_addToFavorites => 'Ajouter à mes favoris';
|
||||
@@ -4854,6 +4911,54 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'Êtes-vous sûr de vouloir supprimer tous les contacts découverts ?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => 'Rechercher les nœuds proches';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => 'Nœuds proches';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'Demande aux nœuds à portée radio directe de s\'identifier. Les répéteurs et les capteurs répondent. Les serveurs de salon et les compagnons généralement pas.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'Recherche…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count nœuds trouvés',
|
||||
one: '1 nœud trouvé',
|
||||
zero: 'Aucun nœud trouvé',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'Aucun nœud n\'a répondu. Les répéteurs limitent la fréquence de leurs réponses, réessayez dans une minute.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'Rechercher à nouveau';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed =>
|
||||
'Impossible d\'envoyer la demande de recherche.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return 'Signal $snr dB · ils nous ont reçus à $remoteSnr dB';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'Déjà dans les contacts';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater =>
|
||||
'Le nom apparaîtra après sa prochaine annonce';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown =>
|
||||
'Veuillez patienter un instant avant de réessayer.';
|
||||
@@ -5546,4 +5651,104 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Impossible de démarrer le mode revue : $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'Les canaux sont encore en cours de chargement depuis la radio. Réessayez quand la synchronisation sera terminée.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return 'Le nom est trop long (max. $maxBytes octets).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field : saisissez une valeur';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Détail de la carte';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => 'Unités';
|
||||
|
||||
@override
|
||||
String get losDistance => 'Distance';
|
||||
|
||||
@override
|
||||
String get losClearance => 'Dégagement';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => 'Bloqué par';
|
||||
|
||||
@override
|
||||
String get losObstruction => 'Obstacle';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '$distance depuis A';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => 'PIRE';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return 'Bloqué $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'Depuis A';
|
||||
|
||||
@override
|
||||
String get losFromB => 'Depuis B';
|
||||
|
||||
@override
|
||||
String get losElevation => 'Altitude';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => 'Centrer sur la carte';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'Dégagé';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => 'Limite';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => 'Bloqué';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => 'Vérification';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => 'Aucun résultat';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => 'Sélectionné';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'Touchez pour charger le GIF';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry =>
|
||||
'Impossible de charger le GIF\nTouchez pour réessayer';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'Autorisation de la caméra refusée.\nVeuillez activer l\'accès à la caméra dans les réglages.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported =>
|
||||
'Caméra non prise en charge sur cet appareil.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'Échec du démarrage de la caméra.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return 'Le modèle d\'image n\'a pas pu être téléchargé : $error';
|
||||
}
|
||||
}
|
||||
@@ -433,6 +433,29 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'Nincs';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return 'Rádió alapértelmezése ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => 'Nincs táj (korlátlan)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => 'A rádió alapértelmezett tája';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'A rádión van tárolva. A táj nélkül küldött elárasztásokhoz ezt használja, ebből az alkalmazásból és a rádióhoz csatlakozó bármely másik alkalmazásból is.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated =>
|
||||
'A rádió alapértelmezett tája frissítve';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed =>
|
||||
'Nem sikerült frissíteni a rádió alapértelmezett tájat';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => 'Regionális Kezelés';
|
||||
|
||||
@@ -706,7 +729,7 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'Az összes csomóponttal, amelyhez kapcsolódik, azonos frekvenciát, sávszélességet, SF-et és CR-t kell használni.';
|
||||
'Az összes csomóponttal, amelyhez kapcsolódik, azonos frekvenciát, sávszélességet és SF-et kell használni. A kódolási arány (CR) eltérhet.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frekvencia (MHz)';
|
||||
@@ -874,6 +897,21 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
return 'Legfeljebb $_temp0 újraküldés';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters =>
|
||||
'A közeli különböző átjátszókat is számolja';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count különböző közeli átjátszó',
|
||||
one: '1 közeli átjátszó',
|
||||
);
|
||||
return 'Az üzenetet elküldöttnek tekinti, ha $_temp0 továbbítja, még ha nem is hallja, hogy tovább halad.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing => 'Üzenetkövetés engedélyezése';
|
||||
|
||||
@@ -881,6 +919,13 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Az üzenetek részletes útválasztási és időzítési metaadatainak megjelenítése';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => 'Táj a ugrásszám mellett';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'A csatornaüzenet tája az ugrásszámmal azonos sorban jelenik meg, nem alatta.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Értesítések';
|
||||
|
||||
@@ -1598,6 +1643,14 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(alapértelmezett)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(rádió alapértelmezése)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'Ez a rádió a táj nélküli elárasztásokat az alapértelmezett tájában küldi: $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'A csatorna elárasztási üzeneteit csak a kiválasztott táj átjátszói továbbítják.';
|
||||
@@ -1641,6 +1694,10 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'Írjon be egy üzenetet...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'Az üzenet időpontja a jövőben van, ezért a feladó órája hibás lehet. Az érkezés sorrendjében látható.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'Az üzenet túl hosszú (max. $maxBytes bájt).';
|
||||
@@ -4828,6 +4885,53 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'Biztosan törli az összes felfedezett névjegyet?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => 'Közeli csomópontok keresése';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => 'Közeli csomópontok';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'Felkéri a közvetlen rádiótávolságon belüli csomópontokat, hogy azonosítsák magukat. Az átjátszók és az érzékelők válaszolnak. A szobaszerverek és a kísérők általában nem.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'Keresés…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count csomópont található',
|
||||
one: '1 csomópont található',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'Egy csomópont sem válaszolt. Az átjátszók korlátozzák a válaszok gyakoriságát, ezért próbálja újra egy perc múlva.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'Keresés újra';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed =>
|
||||
'Nem sikerült elküldeni a keresési kérést.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return 'Jel: $snr dB · ők $remoteSnr dB-lel hallottak minket';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'Már a kapcsolatok között';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater =>
|
||||
'A neve a következő hirdetése után jelenik meg';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown =>
|
||||
'Kérjük, várjon egy pillanatot, mielőtt újra elküldi.';
|
||||
@@ -5512,4 +5616,104 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Az áttekintő mód nem indítható el: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'A csatornák még töltődnek a rádióról. Próbálja újra, ha a szinkronizálás befejeződött.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return 'A név túl hosszú (legfeljebb $maxBytes bájt).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field: adjon meg értéket';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Térkép részletessége';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => 'Mértékegységek';
|
||||
|
||||
@override
|
||||
String get losDistance => 'Távolság';
|
||||
|
||||
@override
|
||||
String get losClearance => 'Szabad tér';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => 'Akadályozó';
|
||||
|
||||
@override
|
||||
String get losObstruction => 'Akadály';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '$distance A-tól';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => 'LEGROSSZABB';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return 'Takarás: $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'A-tól';
|
||||
|
||||
@override
|
||||
String get losFromB => 'B-től';
|
||||
|
||||
@override
|
||||
String get losElevation => 'Magasság';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => 'Középre a térképen';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'Szabad';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => 'Határeset';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => 'Takart';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => 'Ellenőrzés';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => 'Nincs eredmény';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => 'Kiválasztva';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'Koppintson a GIF betöltéséhez';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry =>
|
||||
'A GIF nem tölthető be\nKoppintson az újrapróbáláshoz';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'Kamera-engedély megtagadva.\nEngedélyezze a kamera hozzáférést a beállításokban.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported =>
|
||||
'A kamera nem támogatott ezen az eszközön.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'A kamera indítása sikertelen.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return 'A képmodell letöltése sikertelen: $error';
|
||||
}
|
||||
}
|
||||
@@ -437,6 +437,29 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'Nessuna';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return 'Predefinita della radio ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => 'Nessuna regione (senza ambito)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => 'Regione predefinita della radio';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'Salvata sulla radio. I flood inviati senza regione la usano, da questa app e da qualsiasi altra app collegata alla radio.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated =>
|
||||
'Regione predefinita della radio aggiornata';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed =>
|
||||
'Impossibile aggiornare la regione predefinita della radio';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => 'Gestione Regionale';
|
||||
|
||||
@@ -713,7 +736,7 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'Tutti i nodi con cui parli devono usare la stessa frequenza, larghezza di banda, SF e CR.';
|
||||
'Tutti i nodi con cui parli devono usare la stessa frequenza, larghezza di banda e SF. Il coding rate (CR) può essere diverso.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frequenza (MHz)';
|
||||
@@ -879,6 +902,21 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
return 'Rinvia fino a $_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters =>
|
||||
'Conta anche i diversi ripetitori vicini';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count ripetitori vicini diversi',
|
||||
one: '1 ripetitore vicino',
|
||||
);
|
||||
return 'Considera il messaggio inviato quando $_temp0 lo ripetono, anche se non senti che prosegue oltre.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Abilita tracciamento messaggi';
|
||||
@@ -887,6 +925,14 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Mostra metadati dettagliati su instradamento e tempi per i messaggi';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine =>
|
||||
'Regione accanto al numero di salti';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'Mostra la regione di un messaggio di canale sulla stessa riga del numero di salti invece che sotto.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Notifiche';
|
||||
|
||||
@@ -1606,6 +1652,14 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(predefinita)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(predefinita della radio)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'Questa radio invia i flood senza regione nella sua regione predefinita: $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'I messaggi flood di questo canale verranno inoltrati solo dai ripetitori della regione selezionata.';
|
||||
@@ -1649,6 +1703,10 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'Digita un messaggio...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'L\'ora di questo messaggio è nel futuro, quindi l\'orologio del mittente potrebbe essere sbagliato. Viene mostrato nell\'ordine di arrivo.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'Messaggio troppo lungo (massimo $maxBytes byte).';
|
||||
@@ -4836,6 +4894,53 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'Sei sicuro di voler eliminare tutti i contatti scoperti?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => 'Cerca nodi vicini';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => 'Nodi vicini';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'Chiede ai nodi nel raggio radio diretto di identificarsi. Ripetitori e sensori rispondono. I room server e i companion di solito no.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'Ricerca in corso…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count nodi trovati',
|
||||
one: '1 nodo trovato',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'Nessun nodo ha risposto. I ripetitori limitano la frequenza delle risposte, riprova tra un minuto.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'Cerca di nuovo';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed =>
|
||||
'Impossibile inviare la richiesta di ricerca.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return 'Segnale $snr dB · ci hanno sentito a $remoteSnr dB';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'Già nei contatti';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater =>
|
||||
'Il nome appare dopo il prossimo annuncio';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown =>
|
||||
'Si prega di attendere un momento prima di inviare nuovamente.';
|
||||
@@ -5528,4 +5633,104 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Impossibile avviare la modalità revisione: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'I canali sono ancora in caricamento dalla radio. Riprova quando la sincronizzazione è terminata.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return 'Il nome è troppo lungo (max $maxBytes byte).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field: inserisci un valore';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Dettaglio mappa';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => 'Unità';
|
||||
|
||||
@override
|
||||
String get losDistance => 'Distanza';
|
||||
|
||||
@override
|
||||
String get losClearance => 'Margine libero';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => 'Bloccato da';
|
||||
|
||||
@override
|
||||
String get losObstruction => 'Ostacolo';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '$distance da A';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => 'PEGGIORE';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return 'Bloccato $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'Da A';
|
||||
|
||||
@override
|
||||
String get losFromB => 'Da B';
|
||||
|
||||
@override
|
||||
String get losElevation => 'Elevazione';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => 'Centra sulla mappa';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'Libero';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => 'Al limite';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => 'Bloccato';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => 'Controllo';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => 'Nessun risultato';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => 'Selezionato';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'Tocca per caricare la GIF';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry =>
|
||||
'Impossibile caricare la GIF\nTocca per riprovare';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'Permesso della fotocamera negato.\nAbilita l\'accesso alla fotocamera nelle impostazioni.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported =>
|
||||
'Fotocamera non supportata su questo dispositivo.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'Avvio della fotocamera non riuscito.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return 'Impossibile scaricare il modello di immagine: $error';
|
||||
}
|
||||
}
|
||||
@@ -415,6 +415,27 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'なし';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return '無線機の既定($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => '地域なし(スコープなし)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => '無線機の既定の地域';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'無線機に保存されます。地域を指定せずに送るフラッドは、このアプリや無線機に接続した他のアプリからでも、この地域を使います。';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated => '無線機の既定の地域を更新しました';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed => '無線機の既定の地域を更新できませんでした';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => '地域管理';
|
||||
|
||||
@@ -673,7 +694,7 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'通信するすべてのノードで、周波数・帯域幅・伝播係数・コーディング速度を揃える必要があります。';
|
||||
'通信するすべてのノードで、周波数・帯域幅・伝播係数を揃える必要があります。コーディング速度(CR)は異なっていても構いません。';
|
||||
|
||||
@override
|
||||
String get settings_frequency => '周波数 (MHz)';
|
||||
@@ -838,6 +859,20 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
return '$_temp0まで再送信';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters => '近くの別のリピータも数える';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '近くの異なるリピータ $count 台',
|
||||
one: '近くのリピータ 1 台',
|
||||
);
|
||||
return '$_temp0が再送したら、それ以上先に届くのが聞こえなくても送信済みとみなします。';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing => 'メッセージ追跡を有効にする';
|
||||
|
||||
@@ -845,6 +880,13 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'メッセージの詳細な経路とタイミングのメタデータを表示します';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => 'ホップ数の横に地域を表示';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'チャンネルメッセージの地域を、ホップ数の下ではなく同じ行に表示します。';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => '通知';
|
||||
|
||||
@@ -1524,6 +1566,14 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(デフォルト)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(無線機の既定)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'この無線機は、地域なしのフラッドを既定の地域で送信します:$region。';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'このチャンネルのフラッドメッセージは、選択した地域内のリピータだけが転送します。';
|
||||
@@ -1567,6 +1617,10 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'メッセージを入力してください…';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'このメッセージの時刻は未来です。送信者の時計がずれている可能性があります。届いた順に表示しています。';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'メッセージが長すぎます($maxBytes バイトを超えています)';
|
||||
@@ -4590,6 +4644,51 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'本当に、見つけたすべての連絡先を削除してもよろしいですか?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => '近くのノードをスキャン';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => '近くのノード';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'直接電波が届く範囲のノードに応答を求めます。リピータとセンサーが応答します。ルームサーバーやコンパニオンは通常応答しません。';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'スキャン中…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count 件のノードが見つかりました',
|
||||
one: '1 件のノードが見つかりました',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'応答したノードはありません。リピータは応答頻度を制限しているため、1 分ほど待ってからもう一度お試しください。';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'もう一度スキャン';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed => 'スキャン要求を送信できませんでした。';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return '信号 $snr dB ・ 相手の受信 $remoteSnr dB';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'すでに連絡先にあります';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater => '次のアドバートの後に名前が表示されます';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown => '再度送信する前に、しばらくお待ちください。';
|
||||
|
||||
@@ -5253,4 +5352,102 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'レビューモードを開始できませんでした: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'チャンネルは無線機からまだ読み込み中です。同期が完了してからもう一度お試しください。';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return '名前が長すぎます(最大 $maxBytes バイト)。';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field:値を入力してください';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => '地図の詳細';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => '単位';
|
||||
|
||||
@override
|
||||
String get losDistance => '距離';
|
||||
|
||||
@override
|
||||
String get losClearance => 'クリアランス';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => '遮蔽物';
|
||||
|
||||
@override
|
||||
String get losObstruction => '障害物';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return 'A から $distance';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => '最悪';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return '遮断量 $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'A から';
|
||||
|
||||
@override
|
||||
String get losFromB => 'B から';
|
||||
|
||||
@override
|
||||
String get losElevation => '標高';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => '地図の中心に表示';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'クリア';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => '境界';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => '遮断';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => '確認中';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => '結果なし';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => '選択中';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'タップして GIF を読み込む';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry => 'GIF を読み込めません\nタップして再試行';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'カメラの権限が拒否されました。\n設定でカメラへのアクセスを有効にしてください。';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported => 'この端末ではカメラがサポートされていません。';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'カメラを起動できませんでした。\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return '画像モデルをダウンロードできませんでした:$error';
|
||||
}
|
||||
}
|
||||
@@ -415,6 +415,27 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => '없음';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return '무전기 기본값 ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => '지역 없음 (범위 미지정)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => '무전기 기본 지역';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'무전기에 저장됩니다. 지역 없이 보내는 플러딩은 이 앱과 무전기에 연결된 다른 앱 모두 이 지역을 사용합니다.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated => '무전기 기본 지역을 업데이트했습니다';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed => '무전기 기본 지역을 업데이트하지 못했습니다';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => '지역 관리';
|
||||
|
||||
@@ -675,7 +696,7 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'통신하는 모든 노드가 동일한 주파수, 대역폭, 확산 계수, 코딩 속도를 사용해야 합니다.';
|
||||
'통신하는 모든 노드가 동일한 주파수, 대역폭, 확산 계수를 사용해야 합니다. 코딩 속도(CR)는 달라도 됩니다.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => '주파수 (MHz)';
|
||||
@@ -840,6 +861,20 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
return '$_temp0까지 재전송';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters => '근처의 다른 리피터도 포함';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '근처의 서로 다른 리피터 $count대',
|
||||
one: '근처 리피터 1대',
|
||||
);
|
||||
return '$_temp0가 다시 전송하면, 그 너머로 전달되는 것이 들리지 않아도 전송된 것으로 처리합니다.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing => '메시지 추적 기능 활성화';
|
||||
|
||||
@@ -847,6 +882,13 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'메시지에 대한 상세한 경로 및 시간 정보를 표시';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => '홉 수 옆에 지역 표시';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'채널 메시지의 지역을 홉 수 아래가 아닌 같은 줄에 표시합니다.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => '알림';
|
||||
|
||||
@@ -1529,6 +1571,14 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(기본값)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(무전기 기본값)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return '이 무전기는 지역 없는 플러딩을 기본 지역으로 보냅니다: $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'이 채널의 플러딩 메시지는 선택한 지역 안의 리피터만 전달합니다.';
|
||||
@@ -1572,6 +1622,10 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => '메시지를 입력하세요...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'이 메시지의 시간이 미래입니다. 보낸 사람의 시계가 잘못되었을 수 있습니다. 도착한 순서대로 표시됩니다.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return '메시지가 너무 길어서 (최대 $maxBytes 바이트).';
|
||||
@@ -4600,6 +4654,51 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'정말로 모든 검색된 연락처를 삭제하시겠습니까?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => '근처 노드 스캔';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => '근처 노드';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'직접 전파가 닿는 범위의 노드에게 응답을 요청합니다. 리피터와 센서가 응답합니다. 룸 서버와 컴패니언은 보통 응답하지 않습니다.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => '스캔 중…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '노드 $count개 발견',
|
||||
one: '노드 1개 발견',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'응답한 노드가 없습니다. 리피터는 응답 횟수를 제한하므로 1분 후에 다시 시도하세요.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => '다시 스캔';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed => '스캔 요청을 보내지 못했습니다.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return '신호 $snr dB · 상대방 수신 $remoteSnr dB';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => '이미 연락처에 있음';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater => '다음 어드버트 후에 이름이 표시됩니다';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown => '다시 보내기 전에 잠시 기다려 주시기 바랍니다.';
|
||||
|
||||
@@ -5263,4 +5362,102 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return '검토 모드를 시작할 수 없습니다: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'채널을 무전기에서 아직 불러오는 중입니다. 동기화가 끝난 후 다시 시도하세요.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return '이름이 너무 깁니다 (최대 $maxBytes바이트).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field: 값을 입력하세요';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => '지도 상세';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => '단위';
|
||||
|
||||
@override
|
||||
String get losDistance => '거리';
|
||||
|
||||
@override
|
||||
String get losClearance => '여유 공간';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => '가로막는 대상';
|
||||
|
||||
@override
|
||||
String get losObstruction => '장애물';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return 'A에서 $distance';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => '최악';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return '$amount 차단됨';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'A 기준';
|
||||
|
||||
@override
|
||||
String get losFromB => 'B 기준';
|
||||
|
||||
@override
|
||||
String get losElevation => '고도';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => '지도 중앙으로';
|
||||
|
||||
@override
|
||||
String get losStatusClear => '양호';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => '경계';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => '차단됨';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => '확인 중';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => '결과 없음';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => '선택됨';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => '탭하여 GIF 불러오기';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry => 'GIF를 불러올 수 없습니다\n탭하여 다시 시도';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'카메라 권한이 거부되었습니다.\n설정에서 카메라 접근을 허용해 주세요.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported => '이 기기는 카메라를 지원하지 않습니다.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return '카메라를 시작하지 못했습니다.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return '이미지 모델을 다운로드하지 못했습니다: $error';
|
||||
}
|
||||
}
|
||||
@@ -433,6 +433,29 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'Geen';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return 'Standaard van radio ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => 'Geen regio (onbeperkt)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => 'Standaardregio van radio';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'Opgeslagen op de radio. Floods zonder regio gebruiken deze, vanuit deze app en vanuit elke andere app die met de radio is verbonden.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated =>
|
||||
'Standaardregio van radio bijgewerkt';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed =>
|
||||
'Kan de standaardregio van de radio niet bijwerken';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => 'Regiobeheer';
|
||||
|
||||
@@ -706,7 +729,7 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'Alle nodes waarmee je communiceert moeten dezelfde frequentie, bandbreedte, SF en CR gebruiken.';
|
||||
'Alle nodes waarmee je communiceert moeten dezelfde frequentie, bandbreedte en SF gebruiken. De coderingssnelheid (CR) mag verschillen.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frequentie (MHz)';
|
||||
@@ -872,6 +895,21 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
return 'Maximaal $_temp0 opnieuw verzenden';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters =>
|
||||
'Tel ook verschillende repeaters in de buurt mee';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count verschillende repeaters in de buurt',
|
||||
one: '1 repeater in de buurt',
|
||||
);
|
||||
return 'Beschouw het bericht als verzonden wanneer $_temp0 het herhalen, ook als je niet hoort dat het verder reist.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Volledig repeaterpad in berichten tonen';
|
||||
@@ -880,6 +918,13 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Toont ook herhalingsaantallen en reistijden. Houd een bericht ingedrukt en kies Pad voor alle details.';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => 'Regio naast aantal hops';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'Toon de regio van een kanaalbericht op dezelfde regel als het aantal hops in plaats van eronder.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Notificaties';
|
||||
|
||||
@@ -1593,6 +1638,14 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(standaard)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(standaard van radio)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'Deze radio verstuurt floods zonder regio in zijn standaardregio: $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'Flood-berichten op dit kanaal worden alleen doorgestuurd door repeaters in de geselecteerde regio.';
|
||||
@@ -1636,6 +1689,10 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'Typ een bericht...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'De tijd van dit bericht ligt in de toekomst, dus de klok van de afzender klopt mogelijk niet. Het wordt getoond in de volgorde van ontvangst.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'Bericht is te lang (max $maxBytes bytes).';
|
||||
@@ -4804,6 +4861,53 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'Weet je zeker dat je alle ontdekte contacten wilt verwijderen?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => 'Zoeken naar nodes in de buurt';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => 'Nodes in de buurt';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'Vraagt nodes binnen direct radiobereik zich bekend te maken. Repeaters en sensoren antwoorden. Room servers en companions meestal niet.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'Zoeken…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count nodes gevonden',
|
||||
one: '1 node gevonden',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'Geen enkele node antwoordde. Repeaters beperken hoe vaak ze antwoorden, dus probeer het over een minuut opnieuw.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'Opnieuw zoeken';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed =>
|
||||
'Kan het zoekverzoek niet verzenden.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return 'Signaal $snr dB · zij hoorden ons met $remoteSnr dB';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'Al in contacten';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater =>
|
||||
'Naam verschijnt na de volgende advert';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown => 'Wacht even voordat je opnieuw verzendt.';
|
||||
|
||||
@@ -5490,4 +5594,104 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Beoordelingsmodus kon niet worden gestart: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'Kanalen worden nog van de radio geladen. Probeer het opnieuw als de synchronisatie klaar is.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return 'Naam is te lang (max. $maxBytes bytes).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field: voer een waarde in';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Kaartdetail';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => 'Eenheden';
|
||||
|
||||
@override
|
||||
String get losDistance => 'Afstand';
|
||||
|
||||
@override
|
||||
String get losClearance => 'Vrije ruimte';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => 'Geblokkeerd door';
|
||||
|
||||
@override
|
||||
String get losObstruction => 'Obstakel';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '$distance van A';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => 'SLECHTST';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return '$amount geblokkeerd';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'Van A';
|
||||
|
||||
@override
|
||||
String get losFromB => 'Van B';
|
||||
|
||||
@override
|
||||
String get losElevation => 'Hoogte';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => 'Centreren op kaart';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'Vrij';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => 'Marginaal';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => 'Geblokkeerd';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => 'Controleren';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => 'Geen resultaat';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => 'Geselecteerd';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'Tik om GIF te laden';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry =>
|
||||
'Kan GIF niet laden\nTik om opnieuw te proberen';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'Cameratoestemming geweigerd.\nSchakel cameratoegang in bij de instellingen.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported =>
|
||||
'Camera wordt niet ondersteund op dit apparaat.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'Kan de camera niet starten.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return 'Het afbeeldingsmodel kon niet worden gedownload: $error';
|
||||
}
|
||||
}
|
||||
@@ -441,6 +441,29 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'Brak';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return 'Domyślny region radia ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => 'Brak regionu (bez ograniczenia)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => 'Domyślny region radia';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'Zapisany w radiu. Używają go floody wysłane bez regionu, z tej aplikacji i z każdej innej aplikacji połączonej z radiem.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated =>
|
||||
'Zaktualizowano domyślny region radia';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed =>
|
||||
'Nie udało się zaktualizować domyślnego regionu radia';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => 'Zarządzanie Regionami';
|
||||
|
||||
@@ -716,7 +739,7 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'Wszystkie węzły, z którymi rozmawiasz, muszą używać tej samej częstotliwości, przepustowości, SF i CR.';
|
||||
'Wszystkie węzły, z którymi rozmawiasz, muszą używać tej samej częstotliwości, przepustowości i SF. Współczynnik kodowania (CR) może się różnić.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Częstotliwość (MHz)';
|
||||
@@ -885,6 +908,23 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
return 'Wyślij ponownie maksymalnie $_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters =>
|
||||
'Licz także różne pobliskie przekaźniki';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count różnego pobliskiego przekaźnika',
|
||||
many: '$count różnych pobliskich przekaźników',
|
||||
few: '$count różne pobliskie przekaźniki',
|
||||
one: '1 pobliski przekaźnik',
|
||||
);
|
||||
return 'Uznaj wiadomość za wysłaną, gdy powtórzy ją $_temp0, nawet jeśli nie słyszysz, jak idzie dalej.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing => 'Włącz śledzenie wiadomości';
|
||||
|
||||
@@ -892,6 +932,13 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Pokaż szczegółowe metadane trasowania i czasu dla wiadomości';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => 'Region obok liczby hopów';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'Pokaż region wiadomości kanału w tym samym wierszu co liczba hopów, zamiast pod nią.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Powiadomienia';
|
||||
|
||||
@@ -1619,6 +1666,14 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(domyślny)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(domyślny radia)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'To radio wysyła floody bez regionu w swoim regionie domyślnym: $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'Wiadomości flood na tym kanale będą przekazywane tylko przez przekaźniki z wybranego regionu.';
|
||||
@@ -1663,6 +1718,10 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'Wpisz wiadomość...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'Czas tej wiadomości jest w przyszłości, więc zegar nadawcy może być błędny. Wiadomość jest pokazana w kolejności odbioru.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'Wiadomość jest za długa (maksymalnie $maxBytes bajtów).';
|
||||
@@ -4859,6 +4918,55 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'Czy na pewno chcesz usunąć wszystkie znalezione kontakty?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => 'Skanuj pobliskie węzły';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => 'Pobliskie węzły';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'Prosi węzły w bezpośrednim zasięgu radia o zgłoszenie się. Odpowiadają przekaźniki i czujniki. Serwery pokoi i companiony zwykle nie.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'Skanowanie…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: 'Znaleziono $count węzła',
|
||||
many: 'Znaleziono $count węzłów',
|
||||
few: 'Znaleziono $count węzły',
|
||||
one: 'Znaleziono 1 węzeł',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'Żaden węzeł nie odpowiedział. Przekaźniki ograniczają częstotliwość odpowiedzi, więc spróbuj ponownie za minutę.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'Skanuj ponownie';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed =>
|
||||
'Nie udało się wysłać żądania skanowania.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return 'Sygnał $snr dB · usłyszeli nas z $remoteSnr dB';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'Już w kontaktach';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater =>
|
||||
'Nazwa pojawi się po następnym ogłoszeniu';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown =>
|
||||
'Prosimy o chwilowe oczekiwanie przed ponownym wysłaniem.';
|
||||
@@ -5550,4 +5658,104 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Nie udało się uruchomić trybu recenzji: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'Kanały są jeszcze wczytywane z radia. Spróbuj ponownie po zakończeniu synchronizacji.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return 'Nazwa jest za długa (maks. $maxBytes bajtów).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field: wpisz wartość';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Szczegóły mapy';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => 'Jednostki';
|
||||
|
||||
@override
|
||||
String get losDistance => 'Odległość';
|
||||
|
||||
@override
|
||||
String get losClearance => 'Prześwit';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => 'Zablokowane przez';
|
||||
|
||||
@override
|
||||
String get losObstruction => 'Przeszkoda';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '$distance od A';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => 'NAJGORSZA';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return 'Zablokowane $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'Od A';
|
||||
|
||||
@override
|
||||
String get losFromB => 'Od B';
|
||||
|
||||
@override
|
||||
String get losElevation => 'Wysokość';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => 'Wyśrodkuj na mapie';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'Wolne';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => 'Graniczne';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => 'Zablokowane';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => 'Sprawdzanie';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => 'Brak wyniku';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => 'Wybrano';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'Dotknij, aby wczytać GIF';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry =>
|
||||
'Nie można wczytać GIF-a\nDotknij, aby spróbować ponownie';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'Odmowa dostępu do aparatu.\nWłącz dostęp do aparatu w ustawieniach.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported =>
|
||||
'Aparat nie jest obsługiwany na tym urządzeniu.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'Nie udało się uruchomić aparatu.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return 'Nie udało się pobrać modelu obrazów: $error';
|
||||
}
|
||||
}
|
||||
@@ -437,6 +437,29 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'Nenhuma';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return 'Padrão do rádio ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => 'Sem região (sem escopo)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => 'Região padrão do rádio';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'Salva no rádio. Floods enviados sem região a utilizam, a partir deste app e de qualquer outro app conectado ao rádio.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated =>
|
||||
'Região padrão do rádio atualizada';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed =>
|
||||
'Não foi possível atualizar a região padrão do rádio';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => 'Gestão de Região';
|
||||
|
||||
@@ -712,7 +735,7 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'Todos os nós com os quais você fala devem usar a mesma frequência, largura de banda, SF e CR.';
|
||||
'Todos os nós com os quais você fala devem usar a mesma frequência, largura de banda e SF. A taxa de codificação (CR) pode ser diferente.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frequência (MHz)';
|
||||
@@ -878,6 +901,21 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
return 'Reenviar até $_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters =>
|
||||
'Contar também repetidores próximos diferentes';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count repetidores próximos diferentes',
|
||||
one: '1 repetidor próximo',
|
||||
);
|
||||
return 'Considerar a mensagem como enviada quando $_temp0 a repetirem, mesmo que você não a ouça avançar mais.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Ativar rastreamento de mensagens';
|
||||
@@ -886,6 +924,14 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Mostrar metadados detalhados de roteamento e tempo para as mensagens';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine =>
|
||||
'Região ao lado da contagem de saltos';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'Mostra a região de uma mensagem de canal na mesma linha da contagem de saltos, em vez de abaixo dela.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Notificações';
|
||||
|
||||
@@ -1603,6 +1649,14 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(padrão)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(padrão do rádio)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'Este rádio envia floods sem região na sua região padrão: $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'As mensagens de inundação deste canal só serão encaminhadas por repetidores da região selecionada.';
|
||||
@@ -1646,6 +1700,10 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'Digite uma mensagem...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'O horário desta mensagem está no futuro, então o relógio do remetente pode estar errado. Ela é exibida na ordem em que chegou.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'Mensagem muito longa (máximo $maxBytes bytes).';
|
||||
@@ -4832,6 +4890,53 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'Tem certeza de que deseja excluir todos os contatos descobertos?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => 'Buscar nós próximos';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => 'Nós próximos';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'Pede aos nós ao alcance direto do rádio que se identifiquem. Repetidores e sensores respondem. Servidores de sala e companheiros geralmente não.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'Buscando…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count nós encontrados',
|
||||
one: '1 nó encontrado',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'Nenhum nó respondeu. Os repetidores limitam a frequência das respostas, então tente novamente em um minuto.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'Buscar novamente';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed =>
|
||||
'Não foi possível enviar a solicitação de busca.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return 'Sinal $snr dB · eles nos ouviram a $remoteSnr dB';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'Já está nos contatos';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater =>
|
||||
'O nome aparece após o próximo anúncio';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown =>
|
||||
'Por favor, aguarde um momento antes de reenviar.';
|
||||
@@ -5518,4 +5623,104 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Não foi possível iniciar o modo de revisão: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'Os canais ainda estão sendo carregados do rádio. Tente novamente quando a sincronização terminar.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return 'O nome é muito longo (máx. $maxBytes bytes).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field: insira um valor';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Detalhe do mapa';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => 'Unidades';
|
||||
|
||||
@override
|
||||
String get losDistance => 'Distância';
|
||||
|
||||
@override
|
||||
String get losClearance => 'Folga';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => 'Bloqueado por';
|
||||
|
||||
@override
|
||||
String get losObstruction => 'Obstrução';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '$distance de A';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => 'PIOR';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return 'Bloqueado $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'De A';
|
||||
|
||||
@override
|
||||
String get losFromB => 'De B';
|
||||
|
||||
@override
|
||||
String get losElevation => 'Elevação';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => 'Centralizar no mapa';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'Livre';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => 'Marginal';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => 'Bloqueado';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => 'Verificando';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => 'Sem resultado';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => 'Selecionado';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'Toque para carregar o GIF';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry =>
|
||||
'Não foi possível carregar o GIF\nToque para tentar novamente';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'Permissão da câmera negada.\nAtive o acesso à câmera nas configurações.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported =>
|
||||
'Câmera não compatível com este dispositivo.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'Falha ao iniciar a câmera.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return 'Não foi possível baixar o modelo de imagem: $error';
|
||||
}
|
||||
}
|
||||
@@ -436,6 +436,29 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'Нет';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return 'По умолчанию на радио ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => 'Без региона (без ограничения)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => 'Регион радио по умолчанию';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'Сохраняется на радио. Его используют рассылки flood без региона — из этого и любого другого приложения, подключённого к радио.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated =>
|
||||
'Регион радио по умолчанию обновлён';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed =>
|
||||
'Не удалось обновить регион радио по умолчанию';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => 'Управление регионами';
|
||||
|
||||
@@ -713,7 +736,7 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'Все узлы, с которыми вы общаетесь, должны использовать одинаковые частоту, полосу пропускания, SF и CR.';
|
||||
'Все узлы, с которыми вы общаетесь, должны использовать одинаковые частоту, полосу пропускания и SF. Скорость кодирования (CR) может отличаться.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Частота (МГц)';
|
||||
@@ -880,6 +903,23 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
return 'Повторять до $_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters =>
|
||||
'Также учитывать другие ближайшие репитеры';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count разных ближайших репитера',
|
||||
many: '$count разных ближайших репитеров',
|
||||
few: '$count разных ближайших репитера',
|
||||
one: '$count ближайший репитер',
|
||||
);
|
||||
return 'Считать сообщение отправленным, когда его повторят $_temp0, даже если вы не слышите, как оно идёт дальше.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Включить трассировку сообщений';
|
||||
@@ -888,6 +928,13 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Показывать подробные метаданные о маршрутизации и времени для сообщений';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => 'Регион рядом с числом хопов';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'Показывать регион сообщения канала в одной строке с числом хопов, а не под ней.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Уведомления';
|
||||
|
||||
@@ -1606,6 +1653,14 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(по умолчанию)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(по умолчанию на радио)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'Это радио отправляет flood без региона в свой регион по умолчанию: $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'Сообщения рассылки в этом канале будут пересылаться только ретрансляторами в выбранном регионе.';
|
||||
@@ -1649,6 +1704,10 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'Напишите сообщение...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'Время этого сообщения в будущем, поэтому часы отправителя могут быть неверны. Сообщение показано в порядке получения.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'Сообщение слишком длинное (макс. $maxBytes байт).';
|
||||
@@ -4844,6 +4903,55 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'Вы уверены, что хотите удалить все обнаруженные контакты?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => 'Сканировать ближайшие ноды';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => 'Ближайшие ноды';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'Просит ноды в зоне прямой радиосвязи представиться. Отвечают репитеры и датчики. Серверы комнат и компаньоны обычно не отвечают.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'Сканирование…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: 'Найдено $count нод',
|
||||
many: 'Найдено $count нод',
|
||||
few: 'Найдено $count ноды',
|
||||
one: 'Найдена $count нода',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'Ни одна нода не ответила. Репитеры ограничивают частоту ответов, повторите через минуту.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'Сканировать снова';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed =>
|
||||
'Не удалось отправить запрос сканирования.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return 'Сигнал $snr дБ · нас услышали с $remoteSnr дБ';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'Уже в контактах';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater =>
|
||||
'Имя появится после следующего анонса';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown =>
|
||||
'Пожалуйста, подождите немного, прежде чем отправлять сообщение снова.';
|
||||
@@ -5536,4 +5644,104 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Не удалось запустить режим проверки: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'Каналы ещё загружаются с радио. Повторите после завершения синхронизации.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return 'Имя слишком длинное (макс. $maxBytes байт).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field: введите значение';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Детализация карты';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => 'Единицы';
|
||||
|
||||
@override
|
||||
String get losDistance => 'Расстояние';
|
||||
|
||||
@override
|
||||
String get losClearance => 'Просвет';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => 'Заблокировано';
|
||||
|
||||
@override
|
||||
String get losObstruction => 'Препятствие';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '$distance от A';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => 'ХУДШЕЕ';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return 'Перекрыто на $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'От A';
|
||||
|
||||
@override
|
||||
String get losFromB => 'От B';
|
||||
|
||||
@override
|
||||
String get losElevation => 'Высота';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => 'Центрировать на карте';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'Чисто';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => 'На грани';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => 'Заблокировано';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => 'Проверка';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => 'Нет результата';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => 'Выбрано';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'Нажмите, чтобы загрузить GIF';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry =>
|
||||
'Не удаётся загрузить GIF\nНажмите, чтобы повторить';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'Доступ к камере запрещён.\nВключите доступ к камере в настройках.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported =>
|
||||
'Камера не поддерживается на этом устройстве.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'Не удалось запустить камеру.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return 'Не удалось загрузить модель изображений: $error';
|
||||
}
|
||||
}
|
||||
@@ -435,6 +435,29 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'Žiadny';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return 'Predvolené rádia ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => 'Bez regiónu (bez obmedzenia)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => 'Predvolený región rádia';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'Uložené v rádiu. Používajú ho flood správy odoslané bez regiónu, z tejto aplikácie aj z každej inej aplikácie pripojenej k rádiu.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated =>
|
||||
'Predvolený región rádia bol aktualizovaný';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed =>
|
||||
'Predvolený región rádia sa nepodarilo aktualizovať';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => 'Regiónne vedenie';
|
||||
|
||||
@@ -705,7 +728,7 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'Všetky uzly, s ktorými komunikujete, musia používať rovnakú frekvenciu, šírku pásma, SF a CR.';
|
||||
'Všetky uzly, s ktorými komunikujete, musia používať rovnakú frekvenciu, šírku pásma a SF. Rýchlosť kódovania (CR) sa môže líšiť.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frekvencia (MHz)';
|
||||
@@ -872,6 +895,23 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
return 'Odoslať znova najviac $_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters =>
|
||||
'Počítať aj rôzne blízke opakovače';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count rôznych blízkych opakovačov',
|
||||
many: '$count rôznych blízkych opakovačov',
|
||||
few: '$count rôzne blízke opakovače',
|
||||
one: '1 blízky opakovač',
|
||||
);
|
||||
return 'Správu považovať za odoslanú, keď ju zopakuje $_temp0, aj keď nepočujete, ako putuje ďalej.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing => 'Povoliť sledovanie správ';
|
||||
|
||||
@@ -879,6 +919,13 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Zobraziť podrobné metadáta o smerovaní a časovaní správ';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => 'Región vedľa počtu skokov';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'Zobraziť región správy kanála v rovnakom riadku ako počet skokov namiesto pod ním.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Upozornenia';
|
||||
|
||||
@@ -1594,6 +1641,14 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(predvolený)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(predvolený pre rádio)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'Toto rádio odosiela flood správy bez regiónu vo svojom predvolenom regióne: $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'Flood správy na tomto kanáli budú preposielané iba opakovačmi z vybraného regiónu.';
|
||||
@@ -1637,6 +1692,10 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'Napište správu...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'Čas tejto správy je v budúcnosti, takže hodiny odosielateľa môžu byť nesprávne. Zobrazuje sa v poradí, v akom prišla.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'Správa je príliš dlhá (max $maxBytes bytov).';
|
||||
@@ -4813,6 +4872,55 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'Ste si istí, že chcete zmazať všetky objavené kontakty?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => 'Vyhľadať blízke uzly';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => 'Blízke uzly';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'Požiada uzly v priamom dosahu rádia, aby sa identifikovali. Odpovedajú opakovače a senzory. Room servery a companiony zvyčajne nie.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'Vyhľadávam…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: 'Nájdených $count uzlov',
|
||||
many: 'Nájdených $count uzlov',
|
||||
few: 'Nájdené $count uzly',
|
||||
one: 'Nájdený 1 uzol',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'Žiadny uzol neodpovedal. Opakovače obmedzujú frekvenciu odpovedí, skúste to znova o minútu.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'Vyhľadať znova';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed =>
|
||||
'Požiadavku na vyhľadávanie sa nepodarilo odoslať.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return 'Signál $snr dB · oni nás počuli na $remoteSnr dB';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'Už v kontaktoch';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater =>
|
||||
'Meno sa zobrazí po jeho ďalšom inzeráte';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown => 'Prosím, počkajte chvíľu, než zašlete znova.';
|
||||
|
||||
@@ -5499,4 +5607,104 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Režim kontroly sa nepodarilo spustiť: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'Kanály sa ešte načítavajú z rádia. Skúste to znova po dokončení synchronizácie.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return 'Názov je príliš dlhý (max. $maxBytes bajtov).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field: zadajte hodnotu';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Detail mapy';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => 'Jednotky';
|
||||
|
||||
@override
|
||||
String get losDistance => 'Vzdialenosť';
|
||||
|
||||
@override
|
||||
String get losClearance => 'Voľný priestor';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => 'Blokované';
|
||||
|
||||
@override
|
||||
String get losObstruction => 'Prekážka';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '$distance od A';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => 'NAJHORŠIA';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return 'Blokované $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'Od A';
|
||||
|
||||
@override
|
||||
String get losFromB => 'Od B';
|
||||
|
||||
@override
|
||||
String get losElevation => 'Výška';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => 'Vycentrovať na mape';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'Voľné';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => 'Hraničné';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => 'Blokované';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => 'Kontrola';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => 'Žiadny výsledok';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => 'Vybrané';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'Klepnutím načítate GIF';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry =>
|
||||
'GIF sa nepodarilo načítať\nKlepnutím skúste znova';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'Povolenie kamery bolo zamietnuté.\nPovoľte prístup ku kamere v nastaveniach.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported =>
|
||||
'Kamera nie je na tomto zariadení podporovaná.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'Kameru sa nepodarilo spustiť.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return 'Model obrázkov sa nepodarilo stiahnuť: $error';
|
||||
}
|
||||
}
|
||||
@@ -434,6 +434,29 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'Brez';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return 'Privzeto za radio ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => 'Brez regije (neomejeno)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => 'Privzeta regija radia';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'Shranjeno v radiu. Uporabljajo jo flood sporočila, poslana brez regije, iz te aplikacije in iz vsake druge aplikacije, povezane z radiem.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated =>
|
||||
'Privzeta regija radia je posodobljena';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed =>
|
||||
'Privzete regije radia ni bilo mogoče posodobiti';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => 'Regijonsko upravljanje';
|
||||
|
||||
@@ -704,7 +727,7 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'Vsa vozlišča, s katerimi komunicirate, morajo uporabljati enako frekvenco, pasovno širino, SF in CR.';
|
||||
'Vsa vozlišča, s katerimi komunicirate, morajo uporabljati enako frekvenco, pasovno širino in SF. Hitrost kodiranja (CR) se lahko razlikuje.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frekvenca (MHz)';
|
||||
@@ -871,6 +894,23 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
return 'Pošlite največ $_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters =>
|
||||
'Štej tudi različne ponovitelje v bližini';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count različnih ponoviteljev v bližini',
|
||||
few: '$count različni ponovitelji v bližini',
|
||||
two: '$count različna ponovitelja v bližini',
|
||||
one: '1 ponovitelj v bližini',
|
||||
);
|
||||
return 'Sporočilo štej za poslano, ko ga ponovi $_temp0, tudi če ne slišite, da potuje naprej.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing => 'Omogoči sledenje sporočilom';
|
||||
|
||||
@@ -878,6 +918,13 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Prikaži podrobne metapodatke o usmerjanju in časovnem usklajevanju sporočil';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => 'Regija ob številu skokov';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'Regijo sporočila kanala prikaži v isti vrstici kot število skokov, ne pod njim.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Obvestila';
|
||||
|
||||
@@ -1592,6 +1639,14 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(privzeta)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(privzeto za radio)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'To radio pošilja flood sporočila brez regije v svoji privzeti regiji: $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'Sporočila flood na tem kanalu bodo posredovana samo s ponovitelji iz izbrane regije.';
|
||||
@@ -1636,6 +1691,10 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'Vnesi sporočilo...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'Čas tega sporočila je v prihodnosti, zato je ura pošiljatelja morda napačna. Prikazano je v vrstnem redu prispetja.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'Pošiljanje sporočila je onemogočeno, saj je preveliko (maksimalno $maxBytes byte-ov).';
|
||||
@@ -4813,6 +4872,55 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'Ste prepričani, da želite izbrisati vse odkrite kontakte?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => 'Poišči vozlišča v bližini';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => 'Vozlišča v bližini';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'Vozlišča v neposrednem dosegu radia prosi, naj se predstavijo. Odgovorijo ponovitelji in senzorji. Strežniki sob in spremljevalci običajno ne.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'Iskanje …';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: 'Najdenih $count vozlišč',
|
||||
few: 'Najdena $count vozlišča',
|
||||
two: 'Najdeni $count vozlišči',
|
||||
one: 'Najdeno 1 vozlišče',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'Nobeno vozlišče ni odgovorilo. Ponovitelji omejujejo pogostost odgovorov, zato poskusite znova čez minuto.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'Išči znova';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed =>
|
||||
'Zahtevka za iskanje ni bilo mogoče poslati.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return 'Signal $snr dB · slišali so nas pri $remoteSnr dB';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'Že med stiki';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater =>
|
||||
'Ime se prikaže po naslednjem oglasu';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown =>
|
||||
'Prosimo, počakajte trenutek, preden pošljete ponovno.';
|
||||
@@ -5503,4 +5611,103 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Načina pregleda ni bilo mogoče zagnati: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'Kanali se še nalagajo iz radia. Poskusite znova, ko se sinhronizacija konča.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return 'Ime je predolgo (največ $maxBytes bajtov).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field: vnesite vrednost';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Podrobnost zemljevida';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => 'Enote';
|
||||
|
||||
@override
|
||||
String get losDistance => 'Razdalja';
|
||||
|
||||
@override
|
||||
String get losClearance => 'Prosti prostor';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => 'Blokirano';
|
||||
|
||||
@override
|
||||
String get losObstruction => 'Ovira';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '$distance od A';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => 'NAJSLABŠA';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return 'Blokirano $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'Od A';
|
||||
|
||||
@override
|
||||
String get losFromB => 'Od B';
|
||||
|
||||
@override
|
||||
String get losElevation => 'Višina';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => 'Središči na zemljevidu';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'Prosto';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => 'Mejno';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => 'Blokirano';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => 'Preverjanje';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => 'Ni rezultata';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => 'Izbrano';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'Tapnite za nalaganje GIF-a';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry =>
|
||||
'GIF-a ni mogoče naložiti\nTapnite za ponovni poskus';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'Dovoljenje za kamero zavrnjeno.\nOmogočite dostop do kamere v nastavitvah.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported => 'Kamera na tej napravi ni podprta.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'Kamere ni bilo mogoče zagnati.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return 'Slikovnega modela ni bilo mogoče prenesti: $error';
|
||||
}
|
||||
}
|
||||
@@ -432,6 +432,29 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'Ingen';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return 'Radions standard ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => 'Ingen region (utan begränsning)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => 'Radions standardregion';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'Sparas på radion. Floods som skickas utan region använder den, från den här appen och från alla andra appar som är anslutna till radion.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated =>
|
||||
'Radions standardregion uppdaterad';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed =>
|
||||
'Det gick inte att uppdatera radions standardregion';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => 'Regionhantering';
|
||||
|
||||
@@ -699,7 +722,7 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'Alla noder du kommunicerar med måste använda samma frekvens, bandbredd, SF och CR.';
|
||||
'Alla noder du kommunicerar med måste använda samma frekvens, bandbredd och SF. Kodningshastigheten (CR) får skilja sig.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frekvens (MHz)';
|
||||
@@ -865,6 +888,21 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
return 'Skicka om upp till $_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters =>
|
||||
'Räkna även olika repeatrar i närheten';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count olika repeatrar i närheten',
|
||||
one: '1 repeater i närheten',
|
||||
);
|
||||
return 'Betrakta meddelandet som skickat när $_temp0 upprepar det, även om du inte hör det färdas vidare.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing => 'Aktivera meddelandespårning';
|
||||
|
||||
@@ -872,6 +910,13 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Visa detaljerad routing- och tidsmetadata för meddelanden';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => 'Region bredvid hoppantal';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'Visa ett kanalmeddelandes region på samma rad som dess hoppantal i stället för under det.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Notifieringar';
|
||||
|
||||
@@ -1581,6 +1626,14 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(standard)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(radions standard)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'Den här radion skickar floods utan region i sin standardregion: $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'Flood-meddelanden i den här kanalen vidarebefordras bara av repeatrar i den valda regionen.';
|
||||
@@ -1626,6 +1679,10 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'Skriv ett meddelande...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'Det här meddelandets tid ligger i framtiden, så avsändarens klocka kan vara fel. Det visas i den ordning det kom in.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'Meddelandet är för långt (max $maxBytes byte).';
|
||||
@@ -4788,6 +4845,53 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'Är du säker på att du vill ta bort alla upptäckta kontakter?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => 'Sök efter noder i närheten';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => 'Noder i närheten';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'Ber noder inom direkt radioräckvidd att identifiera sig. Repeatrar och sensorer svarar. Rumsservrar och companions gör det oftast inte.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'Söker…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count noder hittades',
|
||||
one: '1 nod hittades',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'Inga noder svarade. Repeatrar begränsar hur ofta de svarar, så försök igen om en minut.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'Sök igen';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed =>
|
||||
'Det gick inte att skicka sökförfrågan.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return 'Signal $snr dB · de hörde oss med $remoteSnr dB';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'Finns redan i kontakter';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater =>
|
||||
'Namnet visas efter nästa annons';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown =>
|
||||
'Vänligen vänta en stund innan du skickar igen.';
|
||||
@@ -5473,4 +5577,103 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Det gick inte att starta granskningsläget: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'Kanalerna laddas fortfarande från radion. Försök igen när synkroniseringen är klar.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return 'Namnet är för långt (max $maxBytes byte).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field: ange ett värde';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Kartdetaljer';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => 'Enheter';
|
||||
|
||||
@override
|
||||
String get losDistance => 'Avstånd';
|
||||
|
||||
@override
|
||||
String get losClearance => 'Frigång';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => 'Blockeras av';
|
||||
|
||||
@override
|
||||
String get losObstruction => 'Hinder';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '$distance från A';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => 'VÄRST';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return 'Blockerad $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'Från A';
|
||||
|
||||
@override
|
||||
String get losFromB => 'Från B';
|
||||
|
||||
@override
|
||||
String get losElevation => 'Höjd';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => 'Centrera på kartan';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'Fri';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => 'Marginell';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => 'Blockerad';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => 'Kontrollerar';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => 'Inget resultat';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => 'Vald';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'Tryck för att ladda GIF';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry =>
|
||||
'Det gick inte att ladda GIF\nTryck för att försöka igen';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'Kamerabehörighet nekades.\nAktivera kameraåtkomst i inställningarna.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported => 'Kameran stöds inte på den här enheten.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'Det gick inte att starta kameran.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return 'Bildmodellen kunde inte laddas ned: $error';
|
||||
}
|
||||
}
|
||||
@@ -434,6 +434,29 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => 'Немає';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return 'Типово для радіо ($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => 'Без регіону (без обмеження)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => 'Типовий регіон радіо';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'Зберігається на радіо. Його використовують flood-розсилки без регіону — із цього та будь-якого іншого застосунку, підключеного до радіо.';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated =>
|
||||
'Типовий регіон радіо оновлено';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed =>
|
||||
'Не вдалося оновити типовий регіон радіо';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => 'Рégіональний управління';
|
||||
|
||||
@@ -707,7 +730,7 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning =>
|
||||
'Усі вузли, з якими ви спілкуєтесь, мають використовувати однакові частоту, смугу пропускання, SF та CR.';
|
||||
'Усі вузли, з якими ви спілкуєтесь, мають використовувати однакові частоту, смугу пропускання та SF. Швидкість кодування (CR) може відрізнятися.';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Частота (МГц)';
|
||||
@@ -873,6 +896,23 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
return 'Повторювати до $_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters =>
|
||||
'Також враховувати інші найближчі ретранслятори';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count різного найближчого ретранслятора',
|
||||
many: '$count різних найближчих ретрансляторів',
|
||||
few: '$count різні найближчі ретранслятори',
|
||||
one: '$count найближчий ретранслятор',
|
||||
);
|
||||
return 'Вважати повідомлення надісланим, коли його повторять $_temp0, навіть якщо ви не чуєте, як воно йде далі.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Увімкнути відстеження повідомлень';
|
||||
@@ -881,6 +921,13 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Показувати детальні метадані про маршрутизацію та час для повідомлень';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => 'Регіон поруч із кількістю хопів';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'Показувати регіон повідомлення каналу в одному рядку з кількістю хопів, а не під ним.';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Сповіщення';
|
||||
|
||||
@@ -1595,6 +1642,14 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(за замовчуванням)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(типово для радіо)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return 'Це радіо надсилає flood без регіону у свій типовий регіон: $region.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation =>
|
||||
'Повідомлення, що розсилаються в цьому каналі, пересилатимуть лише ретранслятори у вибраному регіоні.';
|
||||
@@ -1639,6 +1694,10 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => 'Введіть повідомлення...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning =>
|
||||
'Час цього повідомлення в майбутньому, тож годинник відправника може бути неточним. Повідомлення показано в порядку отримання.';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return 'Повідомлення занадто довге (макс. $maxBytes байт).';
|
||||
@@ -4844,6 +4903,55 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
String get discoveredContacts_deleteContactAllContent =>
|
||||
'Ви впевнені, що хочете видалити всі виявлені контакти?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => 'Сканувати найближчі вузли';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => 'Найближчі вузли';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'Просить вузли в зоні прямого радіозв’язку відрекомендуватися. Відповідають ретранслятори та датчики. Сервери кімнат і компаньйони зазвичай не відповідають.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => 'Сканування…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: 'Знайдено $count вузла',
|
||||
many: 'Знайдено $count вузлів',
|
||||
few: 'Знайдено $count вузли',
|
||||
one: 'Знайдено $count вузол',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults =>
|
||||
'Жоден вузол не відповів. Ретранслятори обмежують частоту відповідей, спробуйте за хвилину.';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => 'Сканувати знову';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed =>
|
||||
'Не вдалося надіслати запит сканування.';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return 'Сигнал $snr дБ · нас почули з $remoteSnr дБ';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => 'Уже в контактах';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater =>
|
||||
'Ім’я з’явиться після наступного оголошення';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown =>
|
||||
'Будь ласка, зачекайте трохи, перш ніж відправляти знову.';
|
||||
@@ -5539,4 +5647,104 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Не вдалося запустити режим перевірки: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync =>
|
||||
'Канали ще завантажуються з радіо. Спробуйте після завершення синхронізації.';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return 'Ім’я задовге (макс. $maxBytes байт).';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field: введіть значення';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Деталізація карти';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => 'Одиниці';
|
||||
|
||||
@override
|
||||
String get losDistance => 'Відстань';
|
||||
|
||||
@override
|
||||
String get losClearance => 'Просвіт';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => 'Заблоковано';
|
||||
|
||||
@override
|
||||
String get losObstruction => 'Перешкода';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '$distance від A';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => 'НАЙГІРША';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return 'Перекрито на $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => 'Від A';
|
||||
|
||||
@override
|
||||
String get losFromB => 'Від B';
|
||||
|
||||
@override
|
||||
String get losElevation => 'Висота';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => 'Центрувати на карті';
|
||||
|
||||
@override
|
||||
String get losStatusClear => 'Чисто';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => 'На межі';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => 'Заблоковано';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => 'Перевірка';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => 'Немає результату';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => 'Вибрано';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => 'Торкніться, щоб завантажити GIF';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry =>
|
||||
'Не вдається завантажити GIF\nТоркніться, щоб повторити';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied =>
|
||||
'Доступ до камери заборонено.\nУвімкніть доступ до камери в налаштуваннях.';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported =>
|
||||
'Камера не підтримується на цьому пристрої.';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return 'Не вдалося запустити камеру.\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return 'Не вдалося завантажити модель зображень: $error';
|
||||
}
|
||||
}
|
||||
@@ -411,6 +411,27 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get settings_regionDefaultNone => '无';
|
||||
|
||||
@override
|
||||
String settings_regionUseRadioDefault(String region) {
|
||||
return '电台默认($region)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get settings_regionNoRegion => '无地区(不限范围)';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefault => '电台默认地区';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultSubtitle =>
|
||||
'保存在电台上。不指定地区发送的泛洪会使用它,本应用和连接此电台的其他应用都一样。';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultUpdated => '电台默认地区已更新';
|
||||
|
||||
@override
|
||||
String get settings_regionRadioDefaultFailed => '无法更新电台默认地区';
|
||||
|
||||
@override
|
||||
String get settings_regionManagement_screenTitle => '区域管理';
|
||||
|
||||
@@ -664,7 +685,8 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
String get settings_presetCustom => '自定义';
|
||||
|
||||
@override
|
||||
String get settings_radioMatchWarning => '你通信的所有节点必须使用相同的频率、带宽、扩频因子和编码速率。';
|
||||
String get settings_radioMatchWarning =>
|
||||
'你通信的所有节点必须使用相同的频率、带宽和扩频因子。编码速率(CR)可以不同。';
|
||||
|
||||
@override
|
||||
String get settings_frequency => '频率 (MHz)';
|
||||
@@ -828,12 +850,33 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
return '最多重发 $_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_channelMinHopsCountRepeaters => '同时统计附近不同的中继器';
|
||||
|
||||
@override
|
||||
String appSettings_channelMinHopsCountRepeatersSubtitle(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '附近 $count 个不同的中继器',
|
||||
one: '附近 1 个中继器',
|
||||
);
|
||||
return '当$_temp0转发该消息时,即使听不到它继续传播,也视为已发送。';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing => '启用消息追踪';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracingSubtitle => '显示消息的详细路由和时间元数据';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLine => '在跳数旁显示地区';
|
||||
|
||||
@override
|
||||
String get appSettings_regionOnHopsLineSubtitle =>
|
||||
'将频道消息的地区与跳数显示在同一行,而不是在其下方。';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => '通知';
|
||||
|
||||
@@ -1507,6 +1550,14 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get channels_regionDefaultSuffix => '(默认)';
|
||||
|
||||
@override
|
||||
String get channels_regionRadioDefaultSuffix => '(电台默认)';
|
||||
|
||||
@override
|
||||
String channels_regionRadioDefaultApplies(String region) {
|
||||
return '此电台会用默认地区发送未指定地区的泛洪:$region。';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_regionSelectExplanation => '此频道的泛洪消息只会由所选地区内的中继器转发。';
|
||||
|
||||
@@ -1549,6 +1600,9 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get chat_typeMessage => '输入消息...';
|
||||
|
||||
@override
|
||||
String get chat_futureTimestampWarning => '此消息的时间在未来,发送方的时钟可能有误。已按到达顺序显示。';
|
||||
|
||||
@override
|
||||
String chat_messageTooLong(int maxBytes) {
|
||||
return '消息过长(最多 $maxBytes 字节)';
|
||||
@@ -4474,6 +4528,50 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get discoveredContacts_deleteContactAllContent => '您确定要删除所有发现的联系人吗?';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scan => '扫描附近节点';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanTitle => '附近节点';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanExplanation =>
|
||||
'请求直接无线电范围内的节点自报身份。中继器和传感器会响应,房间服务器和伴侣设备通常不会。';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanning => '正在扫描…';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanFound(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '发现 $count 个节点',
|
||||
one: '发现 1 个节点',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNoResults => '没有节点响应。中继器会限制回复频率,请一分钟后重试。';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanAgain => '重新扫描';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanFailed => '无法发送扫描请求。';
|
||||
|
||||
@override
|
||||
String discoveredContacts_scanSignal(String snr, String remoteSnr) {
|
||||
return '信号 $snr dB · 对方收到我们为 $remoteSnr dB';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanInContacts => '已在联系人中';
|
||||
|
||||
@override
|
||||
String get discoveredContacts_scanNameLater => '下次广播后将显示名称';
|
||||
|
||||
@override
|
||||
String get chat_sendCooldown => '请稍等片刻后再尝试发送。';
|
||||
|
||||
@@ -5129,4 +5227,100 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return '无法启动审核模式:$error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_waitForSync => '频道仍在从电台加载。请在同步完成后重试。';
|
||||
|
||||
@override
|
||||
String channels_nameTooLong(int maxBytes) {
|
||||
return '名称过长(最多 $maxBytes 字节)。';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_valueRequired(String field) {
|
||||
return '$field:请输入值';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => '地图细节';
|
||||
|
||||
@override
|
||||
String get losUnitsTooltip => '单位';
|
||||
|
||||
@override
|
||||
String get losDistance => '距离';
|
||||
|
||||
@override
|
||||
String get losClearance => '净空';
|
||||
|
||||
@override
|
||||
String get losBlockedBy => '阻挡物';
|
||||
|
||||
@override
|
||||
String get losObstruction => '障碍物';
|
||||
|
||||
@override
|
||||
String losDistanceFromA(String distance) {
|
||||
return '距 A $distance';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losWorstBadge => '最严重';
|
||||
|
||||
@override
|
||||
String losBlockedAmount(String amount) {
|
||||
return '阻挡 $amount';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losFromA => '自 A';
|
||||
|
||||
@override
|
||||
String get losFromB => '自 B';
|
||||
|
||||
@override
|
||||
String get losElevation => '海拔';
|
||||
|
||||
@override
|
||||
String get losCenterOnMap => '居中显示';
|
||||
|
||||
@override
|
||||
String get losStatusClear => '畅通';
|
||||
|
||||
@override
|
||||
String get losStatusMarginal => '临界';
|
||||
|
||||
@override
|
||||
String get losStatusBlocked => '受阻';
|
||||
|
||||
@override
|
||||
String get losStatusCheckingShort => '检查中';
|
||||
|
||||
@override
|
||||
String get losStatusNoResult => '无结果';
|
||||
|
||||
@override
|
||||
String get losSelectedPill => '已选';
|
||||
|
||||
@override
|
||||
String get gif_tapToLoad => '点按加载 GIF';
|
||||
|
||||
@override
|
||||
String get gif_loadFailedRetry => '无法加载 GIF\n点按重试';
|
||||
|
||||
@override
|
||||
String get qr_cameraPermissionDenied => '相机权限被拒绝。\n请在设置中启用相机访问。';
|
||||
|
||||
@override
|
||||
String get qr_cameraUnsupported => '此设备不支持相机。';
|
||||
|
||||
@override
|
||||
String qr_cameraStartFailed(String details) {
|
||||
return '无法启动相机。\n$details';
|
||||
}
|
||||
|
||||
@override
|
||||
String imageMessages_downloadFailedWithError(String error) {
|
||||
return '无法下载图像模型:$error';
|
||||
}
|
||||
}
|
||||
+54
-2
@@ -146,7 +146,7 @@
|
||||
"settings_infoChannelCount": "Aantal Kanalen",
|
||||
"settings_presets": "Voorinstellingen",
|
||||
"settings_presetCustom": "Aangepast",
|
||||
"settings_radioMatchWarning": "Alle nodes waarmee je communiceert moeten dezelfde frequentie, bandbreedte, SF en CR gebruiken.",
|
||||
"settings_radioMatchWarning": "Alle nodes waarmee je communiceert moeten dezelfde frequentie, bandbreedte en SF gebruiken. De coderingssnelheid (CR) mag verschillen.",
|
||||
"settings_frequency": "Frequentie (MHz)",
|
||||
"settings_frequencyHelper": "150.0 - 2500.0",
|
||||
"settings_frequencyInvalid": "Ongeldige frequentie (150-2500 MHz)",
|
||||
@@ -2970,5 +2970,57 @@
|
||||
"reviewMode_sendTest": "Testbericht sturen",
|
||||
"reviewMode_testSent": "Er komt zo een testbericht binnen.",
|
||||
"reviewMode_exit": "Afsluiten",
|
||||
"reviewMode_connectFailed": "Beoordelingsmodus kon niet worden gestart: {error}"
|
||||
"reviewMode_connectFailed": "Beoordelingsmodus kon niet worden gestart: {error}",
|
||||
"settings_regionUseRadioDefault": "Standaard van radio ({region})",
|
||||
"settings_regionNoRegion": "Geen regio (onbeperkt)",
|
||||
"settings_regionRadioDefault": "Standaardregio van radio",
|
||||
"settings_regionRadioDefaultSubtitle": "Opgeslagen op de radio. Floods zonder regio gebruiken deze, vanuit deze app en vanuit elke andere app die met de radio is verbonden.",
|
||||
"settings_regionRadioDefaultUpdated": "Standaardregio van radio bijgewerkt",
|
||||
"settings_regionRadioDefaultFailed": "Kan de standaardregio van de radio niet bijwerken",
|
||||
"appSettings_channelMinHopsCountRepeaters": "Tel ook verschillende repeaters in de buurt mee",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "Beschouw het bericht als verzonden wanneer {count, plural, =1{1 repeater in de buurt} other{{count} verschillende repeaters in de buurt}} het herhalen, ook als je niet hoort dat het verder reist.",
|
||||
"appSettings_regionOnHopsLine": "Regio naast aantal hops",
|
||||
"appSettings_regionOnHopsLineSubtitle": "Toon de regio van een kanaalbericht op dezelfde regel als het aantal hops in plaats van eronder.",
|
||||
"channels_regionRadioDefaultSuffix": "(standaard van radio)",
|
||||
"channels_regionRadioDefaultApplies": "Deze radio verstuurt floods zonder regio in zijn standaardregio: {region}.",
|
||||
"chat_futureTimestampWarning": "De tijd van dit bericht ligt in de toekomst, dus de klok van de afzender klopt mogelijk niet. Het wordt getoond in de volgorde van ontvangst.",
|
||||
"discoveredContacts_scan": "Zoeken naar nodes in de buurt",
|
||||
"discoveredContacts_scanTitle": "Nodes in de buurt",
|
||||
"discoveredContacts_scanExplanation": "Vraagt nodes binnen direct radiobereik zich bekend te maken. Repeaters en sensoren antwoorden. Room servers en companions meestal niet.",
|
||||
"discoveredContacts_scanning": "Zoeken…",
|
||||
"discoveredContacts_scanFound": "{count, plural, =1{1 node gevonden} other{{count} nodes gevonden}}",
|
||||
"discoveredContacts_scanNoResults": "Geen enkele node antwoordde. Repeaters beperken hoe vaak ze antwoorden, dus probeer het over een minuut opnieuw.",
|
||||
"discoveredContacts_scanAgain": "Opnieuw zoeken",
|
||||
"discoveredContacts_scanFailed": "Kan het zoekverzoek niet verzenden.",
|
||||
"discoveredContacts_scanSignal": "Signaal {snr} dB · zij hoorden ons met {remoteSnr} dB",
|
||||
"discoveredContacts_scanInContacts": "Al in contacten",
|
||||
"discoveredContacts_scanNameLater": "Naam verschijnt na de volgende advert",
|
||||
"channels_waitForSync": "Kanalen worden nog van de radio geladen. Probeer het opnieuw als de synchronisatie klaar is.",
|
||||
"channels_nameTooLong": "Naam is te lang (max. {maxBytes} bytes).",
|
||||
"repeater_valueRequired": "{field}: voer een waarde in",
|
||||
"losMapDetailTooltip": "Kaartdetail",
|
||||
"losUnitsTooltip": "Eenheden",
|
||||
"losDistance": "Afstand",
|
||||
"losClearance": "Vrije ruimte",
|
||||
"losBlockedBy": "Geblokkeerd door",
|
||||
"losObstruction": "Obstakel",
|
||||
"losDistanceFromA": "{distance} van A",
|
||||
"losWorstBadge": "SLECHTST",
|
||||
"losBlockedAmount": "{amount} geblokkeerd",
|
||||
"losFromA": "Van A",
|
||||
"losFromB": "Van B",
|
||||
"losElevation": "Hoogte",
|
||||
"losCenterOnMap": "Centreren op kaart",
|
||||
"losStatusClear": "Vrij",
|
||||
"losStatusMarginal": "Marginaal",
|
||||
"losStatusBlocked": "Geblokkeerd",
|
||||
"losStatusCheckingShort": "Controleren",
|
||||
"losStatusNoResult": "Geen resultaat",
|
||||
"losSelectedPill": "Geselecteerd",
|
||||
"gif_tapToLoad": "Tik om GIF te laden",
|
||||
"gif_loadFailedRetry": "Kan GIF niet laden\nTik om opnieuw te proberen",
|
||||
"qr_cameraPermissionDenied": "Cameratoestemming geweigerd.\nSchakel cameratoegang in bij de instellingen.",
|
||||
"qr_cameraUnsupported": "Camera wordt niet ondersteund op dit apparaat.",
|
||||
"qr_cameraStartFailed": "Kan de camera niet starten.\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "Het afbeeldingsmodel kon niet worden gedownload: {error}"
|
||||
}
|
||||
+54
-2
@@ -2951,7 +2951,7 @@
|
||||
"settings_telemetryPerContactHint": "Aby zezwolić kontaktowi, otwórz jego czat i wybierz Ustawienia kontaktów z menu.",
|
||||
"settings_multiAckSubtitle": "Wysyłaj dodatkowe potwierdzenia ACK dla lepszego dostarczenia; zużywa więcej czasu w eterze",
|
||||
"settings_presetCustom": "Niestandardowy",
|
||||
"settings_radioMatchWarning": "Wszystkie węzły, z którymi rozmawiasz, muszą używać tej samej częstotliwości, przepustowości, SF i CR.",
|
||||
"settings_radioMatchWarning": "Wszystkie węzły, z którymi rozmawiasz, muszą używać tej samej częstotliwości, przepustowości i SF. Współczynnik kodowania (CR) może się różnić.",
|
||||
"settings_txPowerRangeHelper": "{min} do {max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -3108,5 +3108,57 @@
|
||||
"reviewMode_sendTest": "Wyślij wiadomość testową",
|
||||
"reviewMode_testSent": "Wiadomość testowa wkrótce nadejdzie.",
|
||||
"reviewMode_exit": "Wyjdź",
|
||||
"reviewMode_connectFailed": "Nie udało się uruchomić trybu recenzji: {error}"
|
||||
"reviewMode_connectFailed": "Nie udało się uruchomić trybu recenzji: {error}",
|
||||
"settings_regionUseRadioDefault": "Domyślny region radia ({region})",
|
||||
"settings_regionNoRegion": "Brak regionu (bez ograniczenia)",
|
||||
"settings_regionRadioDefault": "Domyślny region radia",
|
||||
"settings_regionRadioDefaultSubtitle": "Zapisany w radiu. Używają go floody wysłane bez regionu, z tej aplikacji i z każdej innej aplikacji połączonej z radiem.",
|
||||
"settings_regionRadioDefaultUpdated": "Zaktualizowano domyślny region radia",
|
||||
"settings_regionRadioDefaultFailed": "Nie udało się zaktualizować domyślnego regionu radia",
|
||||
"appSettings_channelMinHopsCountRepeaters": "Licz także różne pobliskie przekaźniki",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "Uznaj wiadomość za wysłaną, gdy powtórzy ją {count, plural, =1{1 pobliski przekaźnik} few{{count} różne pobliskie przekaźniki} many{{count} różnych pobliskich przekaźników} other{{count} różnego pobliskiego przekaźnika}}, nawet jeśli nie słyszysz, jak idzie dalej.",
|
||||
"appSettings_regionOnHopsLine": "Region obok liczby hopów",
|
||||
"appSettings_regionOnHopsLineSubtitle": "Pokaż region wiadomości kanału w tym samym wierszu co liczba hopów, zamiast pod nią.",
|
||||
"channels_regionRadioDefaultSuffix": "(domyślny radia)",
|
||||
"channels_regionRadioDefaultApplies": "To radio wysyła floody bez regionu w swoim regionie domyślnym: {region}.",
|
||||
"chat_futureTimestampWarning": "Czas tej wiadomości jest w przyszłości, więc zegar nadawcy może być błędny. Wiadomość jest pokazana w kolejności odbioru.",
|
||||
"discoveredContacts_scan": "Skanuj pobliskie węzły",
|
||||
"discoveredContacts_scanTitle": "Pobliskie węzły",
|
||||
"discoveredContacts_scanExplanation": "Prosi węzły w bezpośrednim zasięgu radia o zgłoszenie się. Odpowiadają przekaźniki i czujniki. Serwery pokoi i companiony zwykle nie.",
|
||||
"discoveredContacts_scanning": "Skanowanie…",
|
||||
"discoveredContacts_scanFound": "{count, plural, =1{Znaleziono 1 węzeł} few{Znaleziono {count} węzły} many{Znaleziono {count} węzłów} other{Znaleziono {count} węzła}}",
|
||||
"discoveredContacts_scanNoResults": "Żaden węzeł nie odpowiedział. Przekaźniki ograniczają częstotliwość odpowiedzi, więc spróbuj ponownie za minutę.",
|
||||
"discoveredContacts_scanAgain": "Skanuj ponownie",
|
||||
"discoveredContacts_scanFailed": "Nie udało się wysłać żądania skanowania.",
|
||||
"discoveredContacts_scanSignal": "Sygnał {snr} dB · usłyszeli nas z {remoteSnr} dB",
|
||||
"discoveredContacts_scanInContacts": "Już w kontaktach",
|
||||
"discoveredContacts_scanNameLater": "Nazwa pojawi się po następnym ogłoszeniu",
|
||||
"channels_waitForSync": "Kanały są jeszcze wczytywane z radia. Spróbuj ponownie po zakończeniu synchronizacji.",
|
||||
"channels_nameTooLong": "Nazwa jest za długa (maks. {maxBytes} bajtów).",
|
||||
"repeater_valueRequired": "{field}: wpisz wartość",
|
||||
"losMapDetailTooltip": "Szczegóły mapy",
|
||||
"losUnitsTooltip": "Jednostki",
|
||||
"losDistance": "Odległość",
|
||||
"losClearance": "Prześwit",
|
||||
"losBlockedBy": "Zablokowane przez",
|
||||
"losObstruction": "Przeszkoda",
|
||||
"losDistanceFromA": "{distance} od A",
|
||||
"losWorstBadge": "NAJGORSZA",
|
||||
"losBlockedAmount": "Zablokowane {amount}",
|
||||
"losFromA": "Od A",
|
||||
"losFromB": "Od B",
|
||||
"losElevation": "Wysokość",
|
||||
"losCenterOnMap": "Wyśrodkuj na mapie",
|
||||
"losStatusClear": "Wolne",
|
||||
"losStatusMarginal": "Graniczne",
|
||||
"losStatusBlocked": "Zablokowane",
|
||||
"losStatusCheckingShort": "Sprawdzanie",
|
||||
"losStatusNoResult": "Brak wyniku",
|
||||
"losSelectedPill": "Wybrano",
|
||||
"gif_tapToLoad": "Dotknij, aby wczytać GIF",
|
||||
"gif_loadFailedRetry": "Nie można wczytać GIF-a\nDotknij, aby spróbować ponownie",
|
||||
"qr_cameraPermissionDenied": "Odmowa dostępu do aparatu.\nWłącz dostęp do aparatu w ustawieniach.",
|
||||
"qr_cameraUnsupported": "Aparat nie jest obsługiwany na tym urządzeniu.",
|
||||
"qr_cameraStartFailed": "Nie udało się uruchomić aparatu.\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "Nie udało się pobrać modelu obrazów: {error}"
|
||||
}
|
||||
+54
-2
@@ -2912,7 +2912,7 @@
|
||||
"settings_telemetryPerContactHint": "Para permitir um contato, abra o chat dele e escolha Configurações de Contato no menu.",
|
||||
"settings_multiAckSubtitle": "Enviar confirmações adicionais para melhorar a entrega; usa mais tempo de transmissão",
|
||||
"settings_presetCustom": "Personalizado",
|
||||
"settings_radioMatchWarning": "Todos os nós com os quais você fala devem usar a mesma frequência, largura de banda, SF e CR.",
|
||||
"settings_radioMatchWarning": "Todos os nós com os quais você fala devem usar a mesma frequência, largura de banda e SF. A taxa de codificação (CR) pode ser diferente.",
|
||||
"settings_txPowerRangeHelper": "{min} a {max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -3069,5 +3069,57 @@
|
||||
"reviewMode_sendTest": "Enviar mensagem de teste",
|
||||
"reviewMode_testSent": "Uma mensagem de teste chegará em breve.",
|
||||
"reviewMode_exit": "Sair",
|
||||
"reviewMode_connectFailed": "Não foi possível iniciar o modo de revisão: {error}"
|
||||
"reviewMode_connectFailed": "Não foi possível iniciar o modo de revisão: {error}",
|
||||
"settings_regionUseRadioDefault": "Padrão do rádio ({region})",
|
||||
"settings_regionNoRegion": "Sem região (sem escopo)",
|
||||
"settings_regionRadioDefault": "Região padrão do rádio",
|
||||
"settings_regionRadioDefaultSubtitle": "Salva no rádio. Floods enviados sem região a utilizam, a partir deste app e de qualquer outro app conectado ao rádio.",
|
||||
"settings_regionRadioDefaultUpdated": "Região padrão do rádio atualizada",
|
||||
"settings_regionRadioDefaultFailed": "Não foi possível atualizar a região padrão do rádio",
|
||||
"appSettings_channelMinHopsCountRepeaters": "Contar também repetidores próximos diferentes",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "Considerar a mensagem como enviada quando {count, plural, =1{1 repetidor próximo} other{{count} repetidores próximos diferentes}} a repetirem, mesmo que você não a ouça avançar mais.",
|
||||
"appSettings_regionOnHopsLine": "Região ao lado da contagem de saltos",
|
||||
"appSettings_regionOnHopsLineSubtitle": "Mostra a região de uma mensagem de canal na mesma linha da contagem de saltos, em vez de abaixo dela.",
|
||||
"channels_regionRadioDefaultSuffix": "(padrão do rádio)",
|
||||
"channels_regionRadioDefaultApplies": "Este rádio envia floods sem região na sua região padrão: {region}.",
|
||||
"chat_futureTimestampWarning": "O horário desta mensagem está no futuro, então o relógio do remetente pode estar errado. Ela é exibida na ordem em que chegou.",
|
||||
"discoveredContacts_scan": "Buscar nós próximos",
|
||||
"discoveredContacts_scanTitle": "Nós próximos",
|
||||
"discoveredContacts_scanExplanation": "Pede aos nós ao alcance direto do rádio que se identifiquem. Repetidores e sensores respondem. Servidores de sala e companheiros geralmente não.",
|
||||
"discoveredContacts_scanning": "Buscando…",
|
||||
"discoveredContacts_scanFound": "{count, plural, =1{1 nó encontrado} other{{count} nós encontrados}}",
|
||||
"discoveredContacts_scanNoResults": "Nenhum nó respondeu. Os repetidores limitam a frequência das respostas, então tente novamente em um minuto.",
|
||||
"discoveredContacts_scanAgain": "Buscar novamente",
|
||||
"discoveredContacts_scanFailed": "Não foi possível enviar a solicitação de busca.",
|
||||
"discoveredContacts_scanSignal": "Sinal {snr} dB · eles nos ouviram a {remoteSnr} dB",
|
||||
"discoveredContacts_scanInContacts": "Já está nos contatos",
|
||||
"discoveredContacts_scanNameLater": "O nome aparece após o próximo anúncio",
|
||||
"channels_waitForSync": "Os canais ainda estão sendo carregados do rádio. Tente novamente quando a sincronização terminar.",
|
||||
"channels_nameTooLong": "O nome é muito longo (máx. {maxBytes} bytes).",
|
||||
"repeater_valueRequired": "{field}: insira um valor",
|
||||
"losMapDetailTooltip": "Detalhe do mapa",
|
||||
"losUnitsTooltip": "Unidades",
|
||||
"losDistance": "Distância",
|
||||
"losClearance": "Folga",
|
||||
"losBlockedBy": "Bloqueado por",
|
||||
"losObstruction": "Obstrução",
|
||||
"losDistanceFromA": "{distance} de A",
|
||||
"losWorstBadge": "PIOR",
|
||||
"losBlockedAmount": "Bloqueado {amount}",
|
||||
"losFromA": "De A",
|
||||
"losFromB": "De B",
|
||||
"losElevation": "Elevação",
|
||||
"losCenterOnMap": "Centralizar no mapa",
|
||||
"losStatusClear": "Livre",
|
||||
"losStatusMarginal": "Marginal",
|
||||
"losStatusBlocked": "Bloqueado",
|
||||
"losStatusCheckingShort": "Verificando",
|
||||
"losStatusNoResult": "Sem resultado",
|
||||
"losSelectedPill": "Selecionado",
|
||||
"gif_tapToLoad": "Toque para carregar o GIF",
|
||||
"gif_loadFailedRetry": "Não foi possível carregar o GIF\nToque para tentar novamente",
|
||||
"qr_cameraPermissionDenied": "Permissão da câmera negada.\nAtive o acesso à câmera nas configurações.",
|
||||
"qr_cameraUnsupported": "Câmera não compatível com este dispositivo.",
|
||||
"qr_cameraStartFailed": "Falha ao iniciar a câmera.\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "Não foi possível baixar o modelo de imagem: {error}"
|
||||
}
|
||||
+54
-2
@@ -2215,7 +2215,7 @@
|
||||
"settings_telemetryPerContactHint": "Чтобы разрешить контакт, откройте его чат и выберите «Настройки контактов» в меню.",
|
||||
"settings_multiAckSubtitle": "Отправлять дополнительные ACK для лучшей доставки; расходует больше времени в эфире",
|
||||
"settings_presetCustom": "Пользовательский",
|
||||
"settings_radioMatchWarning": "Все узлы, с которыми вы общаетесь, должны использовать одинаковые частоту, полосу пропускания, SF и CR.",
|
||||
"settings_radioMatchWarning": "Все узлы, с которыми вы общаетесь, должны использовать одинаковые частоту, полосу пропускания и SF. Скорость кодирования (CR) может отличаться.",
|
||||
"settings_txPowerRangeHelper": "от {min} до {max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -2372,5 +2372,57 @@
|
||||
"reviewMode_sendTest": "Тестовое сообщение",
|
||||
"reviewMode_testSent": "Скоро придёт тестовое сообщение.",
|
||||
"reviewMode_exit": "Выйти",
|
||||
"reviewMode_connectFailed": "Не удалось запустить режим проверки: {error}"
|
||||
"reviewMode_connectFailed": "Не удалось запустить режим проверки: {error}",
|
||||
"settings_regionUseRadioDefault": "По умолчанию на радио ({region})",
|
||||
"settings_regionNoRegion": "Без региона (без ограничения)",
|
||||
"settings_regionRadioDefault": "Регион радио по умолчанию",
|
||||
"settings_regionRadioDefaultSubtitle": "Сохраняется на радио. Его используют рассылки flood без региона — из этого и любого другого приложения, подключённого к радио.",
|
||||
"settings_regionRadioDefaultUpdated": "Регион радио по умолчанию обновлён",
|
||||
"settings_regionRadioDefaultFailed": "Не удалось обновить регион радио по умолчанию",
|
||||
"appSettings_channelMinHopsCountRepeaters": "Также учитывать другие ближайшие репитеры",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "Считать сообщение отправленным, когда его повторят {count, plural, one{{count} ближайший репитер} few{{count} разных ближайших репитера} many{{count} разных ближайших репитеров} other{{count} разных ближайших репитера}}, даже если вы не слышите, как оно идёт дальше.",
|
||||
"appSettings_regionOnHopsLine": "Регион рядом с числом хопов",
|
||||
"appSettings_regionOnHopsLineSubtitle": "Показывать регион сообщения канала в одной строке с числом хопов, а не под ней.",
|
||||
"channels_regionRadioDefaultSuffix": "(по умолчанию на радио)",
|
||||
"channels_regionRadioDefaultApplies": "Это радио отправляет flood без региона в свой регион по умолчанию: {region}.",
|
||||
"chat_futureTimestampWarning": "Время этого сообщения в будущем, поэтому часы отправителя могут быть неверны. Сообщение показано в порядке получения.",
|
||||
"discoveredContacts_scan": "Сканировать ближайшие ноды",
|
||||
"discoveredContacts_scanTitle": "Ближайшие ноды",
|
||||
"discoveredContacts_scanExplanation": "Просит ноды в зоне прямой радиосвязи представиться. Отвечают репитеры и датчики. Серверы комнат и компаньоны обычно не отвечают.",
|
||||
"discoveredContacts_scanning": "Сканирование…",
|
||||
"discoveredContacts_scanFound": "{count, plural, one{Найдена {count} нода} few{Найдено {count} ноды} many{Найдено {count} нод} other{Найдено {count} нод}}",
|
||||
"discoveredContacts_scanNoResults": "Ни одна нода не ответила. Репитеры ограничивают частоту ответов, повторите через минуту.",
|
||||
"discoveredContacts_scanAgain": "Сканировать снова",
|
||||
"discoveredContacts_scanFailed": "Не удалось отправить запрос сканирования.",
|
||||
"discoveredContacts_scanSignal": "Сигнал {snr} дБ · нас услышали с {remoteSnr} дБ",
|
||||
"discoveredContacts_scanInContacts": "Уже в контактах",
|
||||
"discoveredContacts_scanNameLater": "Имя появится после следующего анонса",
|
||||
"channels_waitForSync": "Каналы ещё загружаются с радио. Повторите после завершения синхронизации.",
|
||||
"channels_nameTooLong": "Имя слишком длинное (макс. {maxBytes} байт).",
|
||||
"repeater_valueRequired": "{field}: введите значение",
|
||||
"losMapDetailTooltip": "Детализация карты",
|
||||
"losUnitsTooltip": "Единицы",
|
||||
"losDistance": "Расстояние",
|
||||
"losClearance": "Просвет",
|
||||
"losBlockedBy": "Заблокировано",
|
||||
"losObstruction": "Препятствие",
|
||||
"losDistanceFromA": "{distance} от A",
|
||||
"losWorstBadge": "ХУДШЕЕ",
|
||||
"losBlockedAmount": "Перекрыто на {amount}",
|
||||
"losFromA": "От A",
|
||||
"losFromB": "От B",
|
||||
"losElevation": "Высота",
|
||||
"losCenterOnMap": "Центрировать на карте",
|
||||
"losStatusClear": "Чисто",
|
||||
"losStatusMarginal": "На грани",
|
||||
"losStatusBlocked": "Заблокировано",
|
||||
"losStatusCheckingShort": "Проверка",
|
||||
"losStatusNoResult": "Нет результата",
|
||||
"losSelectedPill": "Выбрано",
|
||||
"gif_tapToLoad": "Нажмите, чтобы загрузить GIF",
|
||||
"gif_loadFailedRetry": "Не удаётся загрузить GIF\nНажмите, чтобы повторить",
|
||||
"qr_cameraPermissionDenied": "Доступ к камере запрещён.\nВключите доступ к камере в настройках.",
|
||||
"qr_cameraUnsupported": "Камера не поддерживается на этом устройстве.",
|
||||
"qr_cameraStartFailed": "Не удалось запустить камеру.\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "Не удалось загрузить модель изображений: {error}"
|
||||
}
|
||||
+54
-2
@@ -2913,7 +2913,7 @@
|
||||
"settings_telemetryPerContactHint": "Ak chcete povoliť kontaktu, otvorte jeho chat a v ponuke vyberte Nastavenia kontaktov.",
|
||||
"settings_multiAckSubtitle": "Odosielajte ďalšie ACK pre lepšie doručenie; spotrebuje viac času vysielania",
|
||||
"settings_presetCustom": "Vlastné",
|
||||
"settings_radioMatchWarning": "Všetky uzly, s ktorými komunikujete, musia používať rovnakú frekvenciu, šírku pásma, SF a CR.",
|
||||
"settings_radioMatchWarning": "Všetky uzly, s ktorými komunikujete, musia používať rovnakú frekvenciu, šírku pásma a SF. Rýchlosť kódovania (CR) sa môže líšiť.",
|
||||
"settings_txPowerRangeHelper": "{min} až {max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -3070,5 +3070,57 @@
|
||||
"reviewMode_sendTest": "Poslať testovaciu správu",
|
||||
"reviewMode_testSent": "Čoskoro príde testovacia správa.",
|
||||
"reviewMode_exit": "Ukončiť",
|
||||
"reviewMode_connectFailed": "Režim kontroly sa nepodarilo spustiť: {error}"
|
||||
"reviewMode_connectFailed": "Režim kontroly sa nepodarilo spustiť: {error}",
|
||||
"settings_regionUseRadioDefault": "Predvolené rádia ({region})",
|
||||
"settings_regionNoRegion": "Bez regiónu (bez obmedzenia)",
|
||||
"settings_regionRadioDefault": "Predvolený región rádia",
|
||||
"settings_regionRadioDefaultSubtitle": "Uložené v rádiu. Používajú ho flood správy odoslané bez regiónu, z tejto aplikácie aj z každej inej aplikácie pripojenej k rádiu.",
|
||||
"settings_regionRadioDefaultUpdated": "Predvolený región rádia bol aktualizovaný",
|
||||
"settings_regionRadioDefaultFailed": "Predvolený región rádia sa nepodarilo aktualizovať",
|
||||
"appSettings_channelMinHopsCountRepeaters": "Počítať aj rôzne blízke opakovače",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "Správu považovať za odoslanú, keď ju zopakuje {count, plural, =1{1 blízky opakovač} few{{count} rôzne blízke opakovače} many{{count} rôznych blízkych opakovačov} other{{count} rôznych blízkych opakovačov}}, aj keď nepočujete, ako putuje ďalej.",
|
||||
"appSettings_regionOnHopsLine": "Región vedľa počtu skokov",
|
||||
"appSettings_regionOnHopsLineSubtitle": "Zobraziť región správy kanála v rovnakom riadku ako počet skokov namiesto pod ním.",
|
||||
"channels_regionRadioDefaultSuffix": "(predvolený pre rádio)",
|
||||
"channels_regionRadioDefaultApplies": "Toto rádio odosiela flood správy bez regiónu vo svojom predvolenom regióne: {region}.",
|
||||
"chat_futureTimestampWarning": "Čas tejto správy je v budúcnosti, takže hodiny odosielateľa môžu byť nesprávne. Zobrazuje sa v poradí, v akom prišla.",
|
||||
"discoveredContacts_scan": "Vyhľadať blízke uzly",
|
||||
"discoveredContacts_scanTitle": "Blízke uzly",
|
||||
"discoveredContacts_scanExplanation": "Požiada uzly v priamom dosahu rádia, aby sa identifikovali. Odpovedajú opakovače a senzory. Room servery a companiony zvyčajne nie.",
|
||||
"discoveredContacts_scanning": "Vyhľadávam…",
|
||||
"discoveredContacts_scanFound": "{count, plural, =1{Nájdený 1 uzol} few{Nájdené {count} uzly} many{Nájdených {count} uzlov} other{Nájdených {count} uzlov}}",
|
||||
"discoveredContacts_scanNoResults": "Žiadny uzol neodpovedal. Opakovače obmedzujú frekvenciu odpovedí, skúste to znova o minútu.",
|
||||
"discoveredContacts_scanAgain": "Vyhľadať znova",
|
||||
"discoveredContacts_scanFailed": "Požiadavku na vyhľadávanie sa nepodarilo odoslať.",
|
||||
"discoveredContacts_scanSignal": "Signál {snr} dB · oni nás počuli na {remoteSnr} dB",
|
||||
"discoveredContacts_scanInContacts": "Už v kontaktoch",
|
||||
"discoveredContacts_scanNameLater": "Meno sa zobrazí po jeho ďalšom inzeráte",
|
||||
"channels_waitForSync": "Kanály sa ešte načítavajú z rádia. Skúste to znova po dokončení synchronizácie.",
|
||||
"channels_nameTooLong": "Názov je príliš dlhý (max. {maxBytes} bajtov).",
|
||||
"repeater_valueRequired": "{field}: zadajte hodnotu",
|
||||
"losMapDetailTooltip": "Detail mapy",
|
||||
"losUnitsTooltip": "Jednotky",
|
||||
"losDistance": "Vzdialenosť",
|
||||
"losClearance": "Voľný priestor",
|
||||
"losBlockedBy": "Blokované",
|
||||
"losObstruction": "Prekážka",
|
||||
"losDistanceFromA": "{distance} od A",
|
||||
"losWorstBadge": "NAJHORŠIA",
|
||||
"losBlockedAmount": "Blokované {amount}",
|
||||
"losFromA": "Od A",
|
||||
"losFromB": "Od B",
|
||||
"losElevation": "Výška",
|
||||
"losCenterOnMap": "Vycentrovať na mape",
|
||||
"losStatusClear": "Voľné",
|
||||
"losStatusMarginal": "Hraničné",
|
||||
"losStatusBlocked": "Blokované",
|
||||
"losStatusCheckingShort": "Kontrola",
|
||||
"losStatusNoResult": "Žiadny výsledok",
|
||||
"losSelectedPill": "Vybrané",
|
||||
"gif_tapToLoad": "Klepnutím načítate GIF",
|
||||
"gif_loadFailedRetry": "GIF sa nepodarilo načítať\nKlepnutím skúste znova",
|
||||
"qr_cameraPermissionDenied": "Povolenie kamery bolo zamietnuté.\nPovoľte prístup ku kamere v nastaveniach.",
|
||||
"qr_cameraUnsupported": "Kamera nie je na tomto zariadení podporovaná.",
|
||||
"qr_cameraStartFailed": "Kameru sa nepodarilo spustiť.\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "Model obrázkov sa nepodarilo stiahnuť: {error}"
|
||||
}
|
||||
+54
-2
@@ -2913,7 +2913,7 @@
|
||||
"settings_telemetryPerContactHint": "Da stiku dovolite, odprite njegov klepet in v meniju izberite Nastavitve stika.",
|
||||
"settings_multiAckSubtitle": "Pošiljajte dodatna potrdila ACK za boljšo dostavo; porabi več časa v etru",
|
||||
"settings_presetCustom": "Po meri",
|
||||
"settings_radioMatchWarning": "Vsa vozlišča, s katerimi komunicirate, morajo uporabljati enako frekvenco, pasovno širino, SF in CR.",
|
||||
"settings_radioMatchWarning": "Vsa vozlišča, s katerimi komunicirate, morajo uporabljati enako frekvenco, pasovno širino in SF. Hitrost kodiranja (CR) se lahko razlikuje.",
|
||||
"settings_txPowerRangeHelper": "Od {min} do {max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -3070,5 +3070,57 @@
|
||||
"reviewMode_sendTest": "Pošlji testno sporočilo",
|
||||
"reviewMode_testSent": "Kmalu bo prispelo testno sporočilo.",
|
||||
"reviewMode_exit": "Izhod",
|
||||
"reviewMode_connectFailed": "Načina pregleda ni bilo mogoče zagnati: {error}"
|
||||
"reviewMode_connectFailed": "Načina pregleda ni bilo mogoče zagnati: {error}",
|
||||
"settings_regionUseRadioDefault": "Privzeto za radio ({region})",
|
||||
"settings_regionNoRegion": "Brez regije (neomejeno)",
|
||||
"settings_regionRadioDefault": "Privzeta regija radia",
|
||||
"settings_regionRadioDefaultSubtitle": "Shranjeno v radiu. Uporabljajo jo flood sporočila, poslana brez regije, iz te aplikacije in iz vsake druge aplikacije, povezane z radiem.",
|
||||
"settings_regionRadioDefaultUpdated": "Privzeta regija radia je posodobljena",
|
||||
"settings_regionRadioDefaultFailed": "Privzete regije radia ni bilo mogoče posodobiti",
|
||||
"appSettings_channelMinHopsCountRepeaters": "Štej tudi različne ponovitelje v bližini",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "Sporočilo štej za poslano, ko ga ponovi {count, plural, =1{1 ponovitelj v bližini} two{{count} različna ponovitelja v bližini} few{{count} različni ponovitelji v bližini} other{{count} različnih ponoviteljev v bližini}}, tudi če ne slišite, da potuje naprej.",
|
||||
"appSettings_regionOnHopsLine": "Regija ob številu skokov",
|
||||
"appSettings_regionOnHopsLineSubtitle": "Regijo sporočila kanala prikaži v isti vrstici kot število skokov, ne pod njim.",
|
||||
"channels_regionRadioDefaultSuffix": "(privzeto za radio)",
|
||||
"channels_regionRadioDefaultApplies": "To radio pošilja flood sporočila brez regije v svoji privzeti regiji: {region}.",
|
||||
"chat_futureTimestampWarning": "Čas tega sporočila je v prihodnosti, zato je ura pošiljatelja morda napačna. Prikazano je v vrstnem redu prispetja.",
|
||||
"discoveredContacts_scan": "Poišči vozlišča v bližini",
|
||||
"discoveredContacts_scanTitle": "Vozlišča v bližini",
|
||||
"discoveredContacts_scanExplanation": "Vozlišča v neposrednem dosegu radia prosi, naj se predstavijo. Odgovorijo ponovitelji in senzorji. Strežniki sob in spremljevalci običajno ne.",
|
||||
"discoveredContacts_scanning": "Iskanje …",
|
||||
"discoveredContacts_scanFound": "{count, plural, =1{Najdeno 1 vozlišče} two{Najdeni {count} vozlišči} few{Najdena {count} vozlišča} other{Najdenih {count} vozlišč}}",
|
||||
"discoveredContacts_scanNoResults": "Nobeno vozlišče ni odgovorilo. Ponovitelji omejujejo pogostost odgovorov, zato poskusite znova čez minuto.",
|
||||
"discoveredContacts_scanAgain": "Išči znova",
|
||||
"discoveredContacts_scanFailed": "Zahtevka za iskanje ni bilo mogoče poslati.",
|
||||
"discoveredContacts_scanSignal": "Signal {snr} dB · slišali so nas pri {remoteSnr} dB",
|
||||
"discoveredContacts_scanInContacts": "Že med stiki",
|
||||
"discoveredContacts_scanNameLater": "Ime se prikaže po naslednjem oglasu",
|
||||
"channels_waitForSync": "Kanali se še nalagajo iz radia. Poskusite znova, ko se sinhronizacija konča.",
|
||||
"channels_nameTooLong": "Ime je predolgo (največ {maxBytes} bajtov).",
|
||||
"repeater_valueRequired": "{field}: vnesite vrednost",
|
||||
"losMapDetailTooltip": "Podrobnost zemljevida",
|
||||
"losUnitsTooltip": "Enote",
|
||||
"losDistance": "Razdalja",
|
||||
"losClearance": "Prosti prostor",
|
||||
"losBlockedBy": "Blokirano",
|
||||
"losObstruction": "Ovira",
|
||||
"losDistanceFromA": "{distance} od A",
|
||||
"losWorstBadge": "NAJSLABŠA",
|
||||
"losBlockedAmount": "Blokirano {amount}",
|
||||
"losFromA": "Od A",
|
||||
"losFromB": "Od B",
|
||||
"losElevation": "Višina",
|
||||
"losCenterOnMap": "Središči na zemljevidu",
|
||||
"losStatusClear": "Prosto",
|
||||
"losStatusMarginal": "Mejno",
|
||||
"losStatusBlocked": "Blokirano",
|
||||
"losStatusCheckingShort": "Preverjanje",
|
||||
"losStatusNoResult": "Ni rezultata",
|
||||
"losSelectedPill": "Izbrano",
|
||||
"gif_tapToLoad": "Tapnite za nalaganje GIF-a",
|
||||
"gif_loadFailedRetry": "GIF-a ni mogoče naložiti\nTapnite za ponovni poskus",
|
||||
"qr_cameraPermissionDenied": "Dovoljenje za kamero zavrnjeno.\nOmogočite dostop do kamere v nastavitvah.",
|
||||
"qr_cameraUnsupported": "Kamera na tej napravi ni podprta.",
|
||||
"qr_cameraStartFailed": "Kamere ni bilo mogoče zagnati.\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "Slikovnega modela ni bilo mogoče prenesti: {error}"
|
||||
}
|
||||
+54
-2
@@ -2913,7 +2913,7 @@
|
||||
"settings_telemetryPerContactHint": "För att tillåta en kontakt öppnar du chatten och väljer Kontaktinställningar i menyn.",
|
||||
"settings_multiAckSubtitle": "Skicka extra ACK för bättre leverans; använder mer sändningstid",
|
||||
"settings_presetCustom": "Anpassad",
|
||||
"settings_radioMatchWarning": "Alla noder du kommunicerar med måste använda samma frekvens, bandbredd, SF och CR.",
|
||||
"settings_radioMatchWarning": "Alla noder du kommunicerar med måste använda samma frekvens, bandbredd och SF. Kodningshastigheten (CR) får skilja sig.",
|
||||
"settings_txPowerRangeHelper": "{min} till {max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -3070,5 +3070,57 @@
|
||||
"reviewMode_sendTest": "Skicka testmeddelande",
|
||||
"reviewMode_testSent": "Ett testmeddelande kommer snart.",
|
||||
"reviewMode_exit": "Avsluta",
|
||||
"reviewMode_connectFailed": "Det gick inte att starta granskningsläget: {error}"
|
||||
"reviewMode_connectFailed": "Det gick inte att starta granskningsläget: {error}",
|
||||
"settings_regionUseRadioDefault": "Radions standard ({region})",
|
||||
"settings_regionNoRegion": "Ingen region (utan begränsning)",
|
||||
"settings_regionRadioDefault": "Radions standardregion",
|
||||
"settings_regionRadioDefaultSubtitle": "Sparas på radion. Floods som skickas utan region använder den, från den här appen och från alla andra appar som är anslutna till radion.",
|
||||
"settings_regionRadioDefaultUpdated": "Radions standardregion uppdaterad",
|
||||
"settings_regionRadioDefaultFailed": "Det gick inte att uppdatera radions standardregion",
|
||||
"appSettings_channelMinHopsCountRepeaters": "Räkna även olika repeatrar i närheten",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "Betrakta meddelandet som skickat när {count, plural, =1{1 repeater i närheten} other{{count} olika repeatrar i närheten}} upprepar det, även om du inte hör det färdas vidare.",
|
||||
"appSettings_regionOnHopsLine": "Region bredvid hoppantal",
|
||||
"appSettings_regionOnHopsLineSubtitle": "Visa ett kanalmeddelandes region på samma rad som dess hoppantal i stället för under det.",
|
||||
"channels_regionRadioDefaultSuffix": "(radions standard)",
|
||||
"channels_regionRadioDefaultApplies": "Den här radion skickar floods utan region i sin standardregion: {region}.",
|
||||
"chat_futureTimestampWarning": "Det här meddelandets tid ligger i framtiden, så avsändarens klocka kan vara fel. Det visas i den ordning det kom in.",
|
||||
"discoveredContacts_scan": "Sök efter noder i närheten",
|
||||
"discoveredContacts_scanTitle": "Noder i närheten",
|
||||
"discoveredContacts_scanExplanation": "Ber noder inom direkt radioräckvidd att identifiera sig. Repeatrar och sensorer svarar. Rumsservrar och companions gör det oftast inte.",
|
||||
"discoveredContacts_scanning": "Söker…",
|
||||
"discoveredContacts_scanFound": "{count, plural, =1{1 nod hittades} other{{count} noder hittades}}",
|
||||
"discoveredContacts_scanNoResults": "Inga noder svarade. Repeatrar begränsar hur ofta de svarar, så försök igen om en minut.",
|
||||
"discoveredContacts_scanAgain": "Sök igen",
|
||||
"discoveredContacts_scanFailed": "Det gick inte att skicka sökförfrågan.",
|
||||
"discoveredContacts_scanSignal": "Signal {snr} dB · de hörde oss med {remoteSnr} dB",
|
||||
"discoveredContacts_scanInContacts": "Finns redan i kontakter",
|
||||
"discoveredContacts_scanNameLater": "Namnet visas efter nästa annons",
|
||||
"channels_waitForSync": "Kanalerna laddas fortfarande från radion. Försök igen när synkroniseringen är klar.",
|
||||
"channels_nameTooLong": "Namnet är för långt (max {maxBytes} byte).",
|
||||
"repeater_valueRequired": "{field}: ange ett värde",
|
||||
"losMapDetailTooltip": "Kartdetaljer",
|
||||
"losUnitsTooltip": "Enheter",
|
||||
"losDistance": "Avstånd",
|
||||
"losClearance": "Frigång",
|
||||
"losBlockedBy": "Blockeras av",
|
||||
"losObstruction": "Hinder",
|
||||
"losDistanceFromA": "{distance} från A",
|
||||
"losWorstBadge": "VÄRST",
|
||||
"losBlockedAmount": "Blockerad {amount}",
|
||||
"losFromA": "Från A",
|
||||
"losFromB": "Från B",
|
||||
"losElevation": "Höjd",
|
||||
"losCenterOnMap": "Centrera på kartan",
|
||||
"losStatusClear": "Fri",
|
||||
"losStatusMarginal": "Marginell",
|
||||
"losStatusBlocked": "Blockerad",
|
||||
"losStatusCheckingShort": "Kontrollerar",
|
||||
"losStatusNoResult": "Inget resultat",
|
||||
"losSelectedPill": "Vald",
|
||||
"gif_tapToLoad": "Tryck för att ladda GIF",
|
||||
"gif_loadFailedRetry": "Det gick inte att ladda GIF\nTryck för att försöka igen",
|
||||
"qr_cameraPermissionDenied": "Kamerabehörighet nekades.\nAktivera kameraåtkomst i inställningarna.",
|
||||
"qr_cameraUnsupported": "Kameran stöds inte på den här enheten.",
|
||||
"qr_cameraStartFailed": "Det gick inte att starta kameran.\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "Bildmodellen kunde inte laddas ned: {error}"
|
||||
}
|
||||
+54
-2
@@ -2892,7 +2892,7 @@
|
||||
"settings_telemetryPerContactHint": "Щоб дозволити контакт, відкрийте його чат і виберіть «Налаштування контактів» в меню.",
|
||||
"settings_multiAckSubtitle": "Надсилати додаткові ACK для кращої доставки; використовує більше часу в ефірі",
|
||||
"settings_presetCustom": "Власний",
|
||||
"settings_radioMatchWarning": "Усі вузли, з якими ви спілкуєтесь, мають використовувати однакові частоту, смугу пропускання, SF та CR.",
|
||||
"settings_radioMatchWarning": "Усі вузли, з якими ви спілкуєтесь, мають використовувати однакові частоту, смугу пропускання та SF. Швидкість кодування (CR) може відрізнятися.",
|
||||
"settings_txPowerRangeHelper": "від {min} до {max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -3049,5 +3049,57 @@
|
||||
"reviewMode_sendTest": "Тестове повідомлення",
|
||||
"reviewMode_testSent": "Незабаром надійде тестове повідомлення.",
|
||||
"reviewMode_exit": "Вийти",
|
||||
"reviewMode_connectFailed": "Не вдалося запустити режим перевірки: {error}"
|
||||
"reviewMode_connectFailed": "Не вдалося запустити режим перевірки: {error}",
|
||||
"settings_regionUseRadioDefault": "Типово для радіо ({region})",
|
||||
"settings_regionNoRegion": "Без регіону (без обмеження)",
|
||||
"settings_regionRadioDefault": "Типовий регіон радіо",
|
||||
"settings_regionRadioDefaultSubtitle": "Зберігається на радіо. Його використовують flood-розсилки без регіону — із цього та будь-якого іншого застосунку, підключеного до радіо.",
|
||||
"settings_regionRadioDefaultUpdated": "Типовий регіон радіо оновлено",
|
||||
"settings_regionRadioDefaultFailed": "Не вдалося оновити типовий регіон радіо",
|
||||
"appSettings_channelMinHopsCountRepeaters": "Також враховувати інші найближчі ретранслятори",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "Вважати повідомлення надісланим, коли його повторять {count, plural, one{{count} найближчий ретранслятор} few{{count} різні найближчі ретранслятори} many{{count} різних найближчих ретрансляторів} other{{count} різного найближчого ретранслятора}}, навіть якщо ви не чуєте, як воно йде далі.",
|
||||
"appSettings_regionOnHopsLine": "Регіон поруч із кількістю хопів",
|
||||
"appSettings_regionOnHopsLineSubtitle": "Показувати регіон повідомлення каналу в одному рядку з кількістю хопів, а не під ним.",
|
||||
"channels_regionRadioDefaultSuffix": "(типово для радіо)",
|
||||
"channels_regionRadioDefaultApplies": "Це радіо надсилає flood без регіону у свій типовий регіон: {region}.",
|
||||
"chat_futureTimestampWarning": "Час цього повідомлення в майбутньому, тож годинник відправника може бути неточним. Повідомлення показано в порядку отримання.",
|
||||
"discoveredContacts_scan": "Сканувати найближчі вузли",
|
||||
"discoveredContacts_scanTitle": "Найближчі вузли",
|
||||
"discoveredContacts_scanExplanation": "Просить вузли в зоні прямого радіозв’язку відрекомендуватися. Відповідають ретранслятори та датчики. Сервери кімнат і компаньйони зазвичай не відповідають.",
|
||||
"discoveredContacts_scanning": "Сканування…",
|
||||
"discoveredContacts_scanFound": "{count, plural, one{Знайдено {count} вузол} few{Знайдено {count} вузли} many{Знайдено {count} вузлів} other{Знайдено {count} вузла}}",
|
||||
"discoveredContacts_scanNoResults": "Жоден вузол не відповів. Ретранслятори обмежують частоту відповідей, спробуйте за хвилину.",
|
||||
"discoveredContacts_scanAgain": "Сканувати знову",
|
||||
"discoveredContacts_scanFailed": "Не вдалося надіслати запит сканування.",
|
||||
"discoveredContacts_scanSignal": "Сигнал {snr} дБ · нас почули з {remoteSnr} дБ",
|
||||
"discoveredContacts_scanInContacts": "Уже в контактах",
|
||||
"discoveredContacts_scanNameLater": "Ім’я з’явиться після наступного оголошення",
|
||||
"channels_waitForSync": "Канали ще завантажуються з радіо. Спробуйте після завершення синхронізації.",
|
||||
"channels_nameTooLong": "Ім’я задовге (макс. {maxBytes} байт).",
|
||||
"repeater_valueRequired": "{field}: введіть значення",
|
||||
"losMapDetailTooltip": "Деталізація карти",
|
||||
"losUnitsTooltip": "Одиниці",
|
||||
"losDistance": "Відстань",
|
||||
"losClearance": "Просвіт",
|
||||
"losBlockedBy": "Заблоковано",
|
||||
"losObstruction": "Перешкода",
|
||||
"losDistanceFromA": "{distance} від A",
|
||||
"losWorstBadge": "НАЙГІРША",
|
||||
"losBlockedAmount": "Перекрито на {amount}",
|
||||
"losFromA": "Від A",
|
||||
"losFromB": "Від B",
|
||||
"losElevation": "Висота",
|
||||
"losCenterOnMap": "Центрувати на карті",
|
||||
"losStatusClear": "Чисто",
|
||||
"losStatusMarginal": "На межі",
|
||||
"losStatusBlocked": "Заблоковано",
|
||||
"losStatusCheckingShort": "Перевірка",
|
||||
"losStatusNoResult": "Немає результату",
|
||||
"losSelectedPill": "Вибрано",
|
||||
"gif_tapToLoad": "Торкніться, щоб завантажити GIF",
|
||||
"gif_loadFailedRetry": "Не вдається завантажити GIF\nТоркніться, щоб повторити",
|
||||
"qr_cameraPermissionDenied": "Доступ до камери заборонено.\nУвімкніть доступ до камери в налаштуваннях.",
|
||||
"qr_cameraUnsupported": "Камера не підтримується на цьому пристрої.",
|
||||
"qr_cameraStartFailed": "Не вдалося запустити камеру.\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "Не вдалося завантажити модель зображень: {error}"
|
||||
}
|
||||
+54
-2
@@ -2917,7 +2917,7 @@
|
||||
"settings_telemetryPerContactHint": "要允许某个联系人,请打开其聊天并从菜单中选择“联系人设置”。",
|
||||
"settings_multiAckSubtitle": "发送额外的 ACK 以提高送达率;会占用更多空中时间",
|
||||
"settings_presetCustom": "自定义",
|
||||
"settings_radioMatchWarning": "你通信的所有节点必须使用相同的频率、带宽、扩频因子和编码速率。",
|
||||
"settings_radioMatchWarning": "你通信的所有节点必须使用相同的频率、带宽和扩频因子。编码速率(CR)可以不同。",
|
||||
"settings_txPowerRangeHelper": "{min} 至 {max} dBm",
|
||||
"@settings_txPowerRangeHelper": {
|
||||
"placeholders": {
|
||||
@@ -3074,5 +3074,57 @@
|
||||
"reviewMode_sendTest": "发送测试消息",
|
||||
"reviewMode_testSent": "测试消息即将送达。",
|
||||
"reviewMode_exit": "退出",
|
||||
"reviewMode_connectFailed": "无法启动审核模式:{error}"
|
||||
"reviewMode_connectFailed": "无法启动审核模式:{error}",
|
||||
"settings_regionUseRadioDefault": "电台默认({region})",
|
||||
"settings_regionNoRegion": "无地区(不限范围)",
|
||||
"settings_regionRadioDefault": "电台默认地区",
|
||||
"settings_regionRadioDefaultSubtitle": "保存在电台上。不指定地区发送的泛洪会使用它,本应用和连接此电台的其他应用都一样。",
|
||||
"settings_regionRadioDefaultUpdated": "电台默认地区已更新",
|
||||
"settings_regionRadioDefaultFailed": "无法更新电台默认地区",
|
||||
"appSettings_channelMinHopsCountRepeaters": "同时统计附近不同的中继器",
|
||||
"appSettings_channelMinHopsCountRepeatersSubtitle": "当{count, plural, =1{附近 1 个中继器} other{附近 {count} 个不同的中继器}}转发该消息时,即使听不到它继续传播,也视为已发送。",
|
||||
"appSettings_regionOnHopsLine": "在跳数旁显示地区",
|
||||
"appSettings_regionOnHopsLineSubtitle": "将频道消息的地区与跳数显示在同一行,而不是在其下方。",
|
||||
"channels_regionRadioDefaultSuffix": "(电台默认)",
|
||||
"channels_regionRadioDefaultApplies": "此电台会用默认地区发送未指定地区的泛洪:{region}。",
|
||||
"chat_futureTimestampWarning": "此消息的时间在未来,发送方的时钟可能有误。已按到达顺序显示。",
|
||||
"discoveredContacts_scan": "扫描附近节点",
|
||||
"discoveredContacts_scanTitle": "附近节点",
|
||||
"discoveredContacts_scanExplanation": "请求直接无线电范围内的节点自报身份。中继器和传感器会响应,房间服务器和伴侣设备通常不会。",
|
||||
"discoveredContacts_scanning": "正在扫描…",
|
||||
"discoveredContacts_scanFound": "{count, plural, =1{发现 1 个节点} other{发现 {count} 个节点}}",
|
||||
"discoveredContacts_scanNoResults": "没有节点响应。中继器会限制回复频率,请一分钟后重试。",
|
||||
"discoveredContacts_scanAgain": "重新扫描",
|
||||
"discoveredContacts_scanFailed": "无法发送扫描请求。",
|
||||
"discoveredContacts_scanSignal": "信号 {snr} dB · 对方收到我们为 {remoteSnr} dB",
|
||||
"discoveredContacts_scanInContacts": "已在联系人中",
|
||||
"discoveredContacts_scanNameLater": "下次广播后将显示名称",
|
||||
"channels_waitForSync": "频道仍在从电台加载。请在同步完成后重试。",
|
||||
"channels_nameTooLong": "名称过长(最多 {maxBytes} 字节)。",
|
||||
"repeater_valueRequired": "{field}:请输入值",
|
||||
"losMapDetailTooltip": "地图细节",
|
||||
"losUnitsTooltip": "单位",
|
||||
"losDistance": "距离",
|
||||
"losClearance": "净空",
|
||||
"losBlockedBy": "阻挡物",
|
||||
"losObstruction": "障碍物",
|
||||
"losDistanceFromA": "距 A {distance}",
|
||||
"losWorstBadge": "最严重",
|
||||
"losBlockedAmount": "阻挡 {amount}",
|
||||
"losFromA": "自 A",
|
||||
"losFromB": "自 B",
|
||||
"losElevation": "海拔",
|
||||
"losCenterOnMap": "居中显示",
|
||||
"losStatusClear": "畅通",
|
||||
"losStatusMarginal": "临界",
|
||||
"losStatusBlocked": "受阻",
|
||||
"losStatusCheckingShort": "检查中",
|
||||
"losStatusNoResult": "无结果",
|
||||
"losSelectedPill": "已选",
|
||||
"gif_tapToLoad": "点按加载 GIF",
|
||||
"gif_loadFailedRetry": "无法加载 GIF\n点按重试",
|
||||
"qr_cameraPermissionDenied": "相机权限被拒绝。\n请在设置中启用相机访问。",
|
||||
"qr_cameraUnsupported": "此设备不支持相机。",
|
||||
"qr_cameraStartFailed": "无法启动相机。\n{details}",
|
||||
"imageMessages_downloadFailedWithError": "无法下载图像模型:{error}"
|
||||
}
|
||||
+11
-3
@@ -378,14 +378,22 @@ class _MeshCoreAppState extends State<MeshCoreApp> with WidgetsBindingObserver {
|
||||
@override
|
||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||
super.didChangeAppLifecycleState(state);
|
||||
widget.receivedImageStore.setForeground(state == AppLifecycleState.resumed);
|
||||
// `inactive` is still on screen (iOS Control Center, a call banner, a Face
|
||||
// ID prompt), so it must not cancel a decode and mark the image corrupt.
|
||||
widget.receivedImageStore.setForeground(
|
||||
state == AppLifecycleState.resumed || state == AppLifecycleState.inactive,
|
||||
);
|
||||
// ~2.7 GiB resident in a backgrounded app is a low-memory-killer kill, so
|
||||
// unlike the translation stack the graph is dropped on background rather
|
||||
// than held until the radio disconnects.
|
||||
// than held until the radio disconnects. The store keeps its queue: the
|
||||
// cancelled decode goes back on it and resumes when the app returns. Only
|
||||
// a real memory warning (didHaveMemoryPressure) parks everything.
|
||||
if (state == AppLifecycleState.paused ||
|
||||
state == AppLifecycleState.hidden) {
|
||||
unawaited(widget.imageCodecService.handleMemoryPressure());
|
||||
unawaited(widget.receivedImageStore.handleMemoryPressure());
|
||||
}
|
||||
if (state == AppLifecycleState.resumed) {
|
||||
widget.connector.syncAppBadge();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -91,6 +91,7 @@ class AppSettings {
|
||||
final bool mapShowGuessedLocations;
|
||||
final bool mapClusterNodes;
|
||||
final bool enableMessageTracing;
|
||||
final bool regionOnHopsLine;
|
||||
final Map<String, double>? mapCacheBounds;
|
||||
final int mapCacheMinZoom;
|
||||
final int mapCacheMaxZoom;
|
||||
@@ -112,6 +113,10 @@ class AppSettings {
|
||||
final bool channelMinHopsEnabled;
|
||||
final int channelMinHops;
|
||||
final int channelMinHopsRetries;
|
||||
|
||||
/// When on, hearing the message repeated by at least [channelMinHops]
|
||||
/// different first-hop repeaters also satisfies the channel resend.
|
||||
final bool channelMinHopsCountRepeaters;
|
||||
final String themeMode;
|
||||
final String? languageOverride; // null = system default
|
||||
final bool appDebugLogEnabled;
|
||||
@@ -198,6 +203,7 @@ class AppSettings {
|
||||
this.mapShowGuessedLocations = true,
|
||||
this.mapClusterNodes = true,
|
||||
this.enableMessageTracing = false,
|
||||
this.regionOnHopsLine = false,
|
||||
this.mapCacheBounds,
|
||||
this.mapCacheMinZoom = 10,
|
||||
this.mapCacheMaxZoom = 15,
|
||||
@@ -219,6 +225,7 @@ class AppSettings {
|
||||
this.channelMinHopsEnabled = false,
|
||||
this.channelMinHops = 2,
|
||||
this.channelMinHopsRetries = 1,
|
||||
this.channelMinHopsCountRepeaters = false,
|
||||
this.themeMode = 'system',
|
||||
this.languageOverride,
|
||||
this.appDebugLogEnabled = false,
|
||||
@@ -277,6 +284,7 @@ class AppSettings {
|
||||
'map_show_guessed_locations': mapShowGuessedLocations,
|
||||
'map_cluster_nodes': mapClusterNodes,
|
||||
'enable_message_tracing': enableMessageTracing,
|
||||
'region_on_hops_line': regionOnHopsLine,
|
||||
'map_cache_bounds': mapCacheBounds,
|
||||
'map_cache_min_zoom': mapCacheMinZoom,
|
||||
'map_cache_max_zoom': mapCacheMaxZoom,
|
||||
@@ -299,6 +307,7 @@ class AppSettings {
|
||||
'channel_min_hops_enabled': channelMinHopsEnabled,
|
||||
'channel_min_hops': channelMinHops,
|
||||
'channel_min_hops_retries': channelMinHopsRetries,
|
||||
'channel_min_hops_count_repeaters': channelMinHopsCountRepeaters,
|
||||
'theme_mode': themeMode,
|
||||
'language_override': languageOverride,
|
||||
'app_debug_log_enabled': appDebugLogEnabled,
|
||||
@@ -359,6 +368,7 @@ class AppSettings {
|
||||
json['map_show_guessed_locations'] as bool? ?? true,
|
||||
mapClusterNodes: json['map_cluster_nodes'] as bool? ?? true,
|
||||
enableMessageTracing: json['enable_message_tracing'] as bool? ?? false,
|
||||
regionOnHopsLine: json['region_on_hops_line'] as bool? ?? false,
|
||||
mapCacheBounds: (json['map_cache_bounds'] as Map?)?.map(
|
||||
(key, value) => MapEntry(key.toString(), (value as num).toDouble()),
|
||||
),
|
||||
@@ -389,6 +399,8 @@ class AppSettings {
|
||||
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,
|
||||
channelMinHopsCountRepeaters:
|
||||
json['channel_min_hops_count_repeaters'] as bool? ?? false,
|
||||
themeMode: json['theme_mode'] as String? ?? 'system',
|
||||
languageOverride: json['language_override'] as String?,
|
||||
appDebugLogEnabled: json['app_debug_log_enabled'] as bool? ?? false,
|
||||
@@ -500,6 +512,7 @@ class AppSettings {
|
||||
bool? mapShowGuessedLocations,
|
||||
bool? mapClusterNodes,
|
||||
bool? enableMessageTracing,
|
||||
bool? regionOnHopsLine,
|
||||
Object? mapCacheBounds = _unset,
|
||||
int? mapCacheMinZoom,
|
||||
int? mapCacheMaxZoom,
|
||||
@@ -521,6 +534,7 @@ class AppSettings {
|
||||
bool? channelMinHopsEnabled,
|
||||
int? channelMinHops,
|
||||
int? channelMinHopsRetries,
|
||||
bool? channelMinHopsCountRepeaters,
|
||||
String? themeMode,
|
||||
Object? languageOverride = _unset,
|
||||
bool? appDebugLogEnabled,
|
||||
@@ -564,6 +578,7 @@ class AppSettings {
|
||||
mapShowGuessedLocations ?? this.mapShowGuessedLocations,
|
||||
mapClusterNodes: mapClusterNodes ?? this.mapClusterNodes,
|
||||
enableMessageTracing: enableMessageTracing ?? this.enableMessageTracing,
|
||||
regionOnHopsLine: regionOnHopsLine ?? this.regionOnHopsLine,
|
||||
mapCacheBounds: mapCacheBounds == _unset
|
||||
? this.mapCacheBounds
|
||||
: mapCacheBounds as Map<String, double>?,
|
||||
@@ -597,6 +612,8 @@ class AppSettings {
|
||||
channelMinHops: channelMinHops ?? this.channelMinHops,
|
||||
channelMinHopsRetries:
|
||||
channelMinHopsRetries ?? this.channelMinHopsRetries,
|
||||
channelMinHopsCountRepeaters:
|
||||
channelMinHopsCountRepeaters ?? this.channelMinHopsCountRepeaters,
|
||||
themeMode: themeMode ?? this.themeMode,
|
||||
languageOverride: languageOverride == _unset
|
||||
? this.languageOverride
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'dart:typed_data';
|
||||
import '../connector/meshcore_protocol.dart';
|
||||
import '../helpers/reaction_helper.dart';
|
||||
import '../helpers/smaz.dart';
|
||||
import 'message.dart' show futureTimestampTolerance;
|
||||
import 'translation_support.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
|
||||
@@ -36,6 +37,11 @@ class ChannelMessage {
|
||||
final MessageTranslationStatus translationStatus;
|
||||
final String? translationModelId;
|
||||
final DateTime timestamp;
|
||||
|
||||
/// Local clock time when this message was added (received or sent). Feeds
|
||||
/// are ordered by it so a sender clock running ahead cannot pin a message
|
||||
/// to the bottom; [timestamp] stays the sender's identity time.
|
||||
final DateTime receivedAt;
|
||||
final bool isOutgoing;
|
||||
final ChannelMessageStatus status;
|
||||
final List<Repeat> repeats;
|
||||
@@ -63,6 +69,7 @@ class ChannelMessage {
|
||||
this.translationStatus = MessageTranslationStatus.none,
|
||||
this.translationModelId,
|
||||
required this.timestamp,
|
||||
DateTime? receivedAt,
|
||||
required this.isOutgoing,
|
||||
this.status = ChannelMessageStatus.pending,
|
||||
this.repeats = const [],
|
||||
@@ -82,6 +89,7 @@ class ChannelMessage {
|
||||
}) : messageId =
|
||||
messageId ??
|
||||
'${timestamp.millisecondsSinceEpoch}_${senderName.hashCode}_${text.hashCode}',
|
||||
receivedAt = receivedAt ?? timestamp,
|
||||
reactions = reactions ?? {},
|
||||
pathBytes = pathBytes ?? Uint8List(0),
|
||||
pathVariants = _mergePathVariants(
|
||||
@@ -92,6 +100,11 @@ class ChannelMessage {
|
||||
String? get senderKeyHex =>
|
||||
senderKey != null ? pubKeyToHex(senderKey!) : null;
|
||||
|
||||
/// True when the sender's clock put [timestamp] clearly ahead of the time
|
||||
/// this device received the message.
|
||||
bool get hasFutureTimestamp =>
|
||||
timestamp.difference(receivedAt) > futureTimestampTolerance;
|
||||
|
||||
ChannelMessage copyWith({
|
||||
ChannelMessageStatus? status,
|
||||
List<Repeat>? repeats,
|
||||
@@ -130,6 +143,7 @@ class ChannelMessage {
|
||||
? this.translationModelId
|
||||
: translationModelId as String?,
|
||||
timestamp: timestamp,
|
||||
receivedAt: receivedAt,
|
||||
isOutgoing: isOutgoing,
|
||||
status: status ?? this.status,
|
||||
repeats: repeats ?? this.repeats,
|
||||
@@ -225,6 +239,7 @@ class ChannelMessage {
|
||||
senderName: senderName,
|
||||
text: decodedText,
|
||||
timestamp: DateTime.fromMillisecondsSinceEpoch(timestampRaw * 1000),
|
||||
receivedAt: DateTime.now(),
|
||||
isOutgoing: false,
|
||||
status: ChannelMessageStatus.sent,
|
||||
pathLength: pathLen,
|
||||
|
||||
@@ -5,12 +5,34 @@ import 'translation_support.dart';
|
||||
|
||||
enum MessageStatus { pending, sent, delivered, failed }
|
||||
|
||||
/// How far a sender timestamp may run ahead of the local receive time before
|
||||
/// the UI flags it as a wrong clock.
|
||||
const Duration futureTimestampTolerance = Duration(minutes: 5);
|
||||
|
||||
/// Receive time for a persisted message JSON record. Records written before
|
||||
/// `receivedAt` existed fall back to the sender timestamp, capped at now so a
|
||||
/// stored future-dated message stops sorting below everything received later.
|
||||
DateTime legacyAwareReceivedAt(Map<String, dynamic> json) {
|
||||
final stored = json['receivedAt'];
|
||||
if (stored is int) return DateTime.fromMillisecondsSinceEpoch(stored);
|
||||
final timestamp = DateTime.fromMillisecondsSinceEpoch(
|
||||
json['timestamp'] as int,
|
||||
);
|
||||
final now = DateTime.now();
|
||||
return timestamp.isAfter(now) ? now : timestamp;
|
||||
}
|
||||
|
||||
class Message {
|
||||
static const Object _unset = Object();
|
||||
|
||||
final Uint8List senderKey; // For outgoing msgs, gets used as recipientKey
|
||||
final String text;
|
||||
final DateTime timestamp;
|
||||
|
||||
/// Local clock time when this message was added (received or sent). Feeds
|
||||
/// are ordered by it so a sender clock running ahead cannot pin a message
|
||||
/// to the bottom; [timestamp] stays the sender's identity time.
|
||||
final DateTime receivedAt;
|
||||
final bool isOutgoing;
|
||||
final bool isCli;
|
||||
final MessageStatus status;
|
||||
@@ -38,6 +60,7 @@ class Message {
|
||||
required this.senderKey,
|
||||
required this.text,
|
||||
required this.timestamp,
|
||||
DateTime? receivedAt,
|
||||
required this.isOutgoing,
|
||||
this.isCli = false,
|
||||
this.status = MessageStatus.pending,
|
||||
@@ -61,6 +84,7 @@ class Message {
|
||||
}) : messageId =
|
||||
messageId ??
|
||||
'${timestamp.millisecondsSinceEpoch}_${pubKeyToHex(senderKey)}_${text.hashCode}',
|
||||
receivedAt = receivedAt ?? timestamp,
|
||||
pathBytes = pathBytes ?? Uint8List(0),
|
||||
fourByteRoomContactKey = fourByteRoomContactKey ?? Uint8List(0),
|
||||
reactions = reactions ?? {},
|
||||
@@ -68,6 +92,11 @@ class Message {
|
||||
|
||||
String get senderKeyHex => pubKeyToHex(senderKey);
|
||||
|
||||
/// True when the sender's clock put [timestamp] clearly ahead of the time
|
||||
/// this device received the message.
|
||||
bool get hasFutureTimestamp =>
|
||||
timestamp.difference(receivedAt) > futureTimestampTolerance;
|
||||
|
||||
Message copyWith({
|
||||
MessageStatus? status,
|
||||
int? retryCount,
|
||||
@@ -92,6 +121,7 @@ class Message {
|
||||
senderKey: senderKey,
|
||||
text: text,
|
||||
timestamp: timestamp,
|
||||
receivedAt: receivedAt,
|
||||
isOutgoing: isOutgoing,
|
||||
isCli: isCli ?? this.isCli,
|
||||
status: status ?? this.status,
|
||||
@@ -145,6 +175,7 @@ class Message {
|
||||
senderKey: senderKey,
|
||||
text: text,
|
||||
timestamp: DateTime.fromMillisecondsSinceEpoch(timestampRaw * 1000),
|
||||
receivedAt: DateTime.now(),
|
||||
isOutgoing: false,
|
||||
isCli: false,
|
||||
status: MessageStatus.delivered,
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import '../services/app_settings_service.dart';
|
||||
import '../services/storage_service.dart';
|
||||
import '../services/timeout_prediction_service.dart';
|
||||
import '../storage/legacy_key_migration.dart';
|
||||
import '../storage/prefs_manager.dart';
|
||||
import 'review_radio.dart';
|
||||
@@ -7,6 +9,11 @@ import 'review_radio.dart';
|
||||
/// interrupted session (crash, app killed) is still undone on the next launch.
|
||||
const _savedMutedChannelsKey = 'review_mode_saved_muted_channels';
|
||||
|
||||
/// Prefix for snapshots of app-wide repeater keys (saved passwords, clock sync
|
||||
/// toggles) taken when review mode starts. An empty snapshot means the key did
|
||||
/// not exist.
|
||||
const _savedGlobalKeyPrefix = 'review_mode_saved_global_';
|
||||
|
||||
/// Deletes every persisted per-radio preference written while review mode was
|
||||
/// active. All per-radio stores (contacts, channels, messages, unread counts,
|
||||
/// channel/contact settings, regions, discovery cache, path history, ...) embed
|
||||
@@ -26,11 +33,19 @@ Future<void> clearReviewModeData() async {
|
||||
/// The simulated radio's scope never adopts legacy unscoped keys, so real
|
||||
/// radio data cannot be pulled into it. Channel mutes are app-wide and keyed
|
||||
/// by channel name (muting the simulated "Public" would mute the real one),
|
||||
/// so the current mutes are saved for [endReviewModeSession] to put back.
|
||||
/// so the current mutes are saved for [endReviewModeSession] to put back, as
|
||||
/// are the app-wide repeater keys. Delivery timing is not recorded meanwhile.
|
||||
Future<void> beginReviewModeSession(AppSettingsService? settings) async {
|
||||
scopesWithoutLegacyMigration.add(ReviewRadio.storagePrefix);
|
||||
TimeoutPredictionService.recordingSuspended = true;
|
||||
await clearReviewModeData();
|
||||
final prefs = PrefsManager.instance;
|
||||
for (final key in StorageService.globalRepeaterKeys) {
|
||||
final savedKey = '$_savedGlobalKeyPrefix$key';
|
||||
// An earlier interrupted session's snapshot holds the real state.
|
||||
if (prefs.containsKey(savedKey)) continue;
|
||||
await prefs.setString(savedKey, prefs.getString(key) ?? '');
|
||||
}
|
||||
// An earlier interrupted session's record holds the real pre-review state.
|
||||
if (settings != null && !prefs.containsKey(_savedMutedChannelsKey)) {
|
||||
await prefs.setStringList(
|
||||
@@ -40,12 +55,24 @@ Future<void> beginReviewModeSession(AppSettingsService? settings) async {
|
||||
}
|
||||
}
|
||||
|
||||
/// Deletes the review session's data and restores the channel mutes saved by
|
||||
/// [beginReviewModeSession]. Also called at startup to finish a session that
|
||||
/// Deletes the review session's data and restores the channel mutes and
|
||||
/// repeater keys saved by [beginReviewModeSession]. Also called at startup to finish a session that
|
||||
/// was interrupted; it does nothing when no session was left behind.
|
||||
Future<void> endReviewModeSession(AppSettingsService? settings) async {
|
||||
TimeoutPredictionService.recordingSuspended = false;
|
||||
await clearReviewModeData();
|
||||
final prefs = PrefsManager.instance;
|
||||
for (final key in StorageService.globalRepeaterKeys) {
|
||||
final savedKey = '$_savedGlobalKeyPrefix$key';
|
||||
final saved = prefs.getString(savedKey);
|
||||
if (saved == null) continue;
|
||||
if (saved.isEmpty) {
|
||||
await prefs.remove(key);
|
||||
} else {
|
||||
await prefs.setString(key, saved);
|
||||
}
|
||||
await prefs.remove(savedKey);
|
||||
}
|
||||
final savedMutes = prefs.getStringList(_savedMutedChannelsKey);
|
||||
if (savedMutes == null || settings == null) return;
|
||||
await settings.updateSettings(
|
||||
|
||||
@@ -15,6 +15,7 @@ class ReviewRadio {
|
||||
this.scheduledMessageInterval = const Duration(seconds: 45),
|
||||
this.ackDelay = const Duration(milliseconds: 1500),
|
||||
this.replyDelay = const Duration(seconds: 4),
|
||||
this.firmwareVerCode = ReviewScript.firmwareVerCode,
|
||||
}) {
|
||||
_seedState();
|
||||
}
|
||||
@@ -30,6 +31,13 @@ class ReviewRadio {
|
||||
final Duration ackDelay;
|
||||
final Duration replyDelay;
|
||||
|
||||
/// FIRMWARE_VER_CODE reported in DEVICE_INFO (tests use older values to
|
||||
/// exercise version gates).
|
||||
final int firmwareVerCode;
|
||||
|
||||
// Default flood scope (CMD_SET/GET_DEFAULT_FLOOD_SCOPE): name field + key.
|
||||
Uint8List? _defaultFloodScope;
|
||||
|
||||
final StreamController<Uint8List> _controller =
|
||||
StreamController<Uint8List>.broadcast();
|
||||
final List<Uint8List> _outbox = [];
|
||||
@@ -174,7 +182,7 @@ class ReviewRadio {
|
||||
case cmdDeviceQuery:
|
||||
_emit([
|
||||
ReviewFrames.deviceInfo(
|
||||
firmwareVerCode: ReviewScript.firmwareVerCode,
|
||||
firmwareVerCode: firmwareVerCode,
|
||||
maxContacts: ReviewScript.maxContacts,
|
||||
maxChannels: ReviewScript.maxChannels,
|
||||
),
|
||||
@@ -247,6 +255,25 @@ class ReviewRadio {
|
||||
]),
|
||||
]);
|
||||
break;
|
||||
case cmdGetDefaultFloodScope when firmwareVerCode < 11:
|
||||
case cmdSetDefaultFloodScope when firmwareVerCode < 11:
|
||||
_emit([ReviewFrames.err()]);
|
||||
break;
|
||||
case cmdGetDefaultFloodScope:
|
||||
_emit([
|
||||
Uint8List.fromList([
|
||||
respCodeDefaultFloodScope,
|
||||
...?_defaultFloodScope,
|
||||
]),
|
||||
]);
|
||||
break;
|
||||
case cmdSetDefaultFloodScope:
|
||||
_defaultFloodScope =
|
||||
frame.length >= 1 + defaultFloodScopeNameSize + floodScopeKeySize
|
||||
? Uint8List.fromList(frame.sublist(1))
|
||||
: null;
|
||||
_emit([ReviewFrames.ok()]);
|
||||
break;
|
||||
case cmdGetStats:
|
||||
_emit([
|
||||
frame.length >= 2 && frame[1] == statsTypeRadio
|
||||
@@ -300,6 +327,10 @@ class ReviewRadio {
|
||||
case cmdSendAnonReq:
|
||||
_emit([ReviewFrames.err()]);
|
||||
break;
|
||||
case cmdSendControlData:
|
||||
_emit([ReviewFrames.ok()]);
|
||||
_handleNodeDiscover(frame);
|
||||
break;
|
||||
case cmdSendTelemetryReq:
|
||||
// The 4-byte "self" form is answered with a push the app does not
|
||||
// track; remote requests are answered with ERR.
|
||||
@@ -452,6 +483,44 @@ class ReviewRadio {
|
||||
}
|
||||
}
|
||||
|
||||
/// Pushes [frame] to the app as if the radio had sent it.
|
||||
@visibleForTesting
|
||||
void emitForTest(Uint8List frame) => _emit([frame]);
|
||||
|
||||
/// Answers a DISCOVER_REQ the way firmware repeaters and sensors do: one
|
||||
/// zero-hop DISCOVER_RESP per matching node, echoing the request tag.
|
||||
void _handleNodeDiscover(Uint8List frame) {
|
||||
// [cmd][0x8<flags>][type mask][tag u32][since u32]
|
||||
if (frame.length < 7 || (frame[1] >> 4) != controlSubtypeDiscoverReq) {
|
||||
return;
|
||||
}
|
||||
final prefixOnly = (frame[1] & 0x01) != 0;
|
||||
final typeMask = frame[2];
|
||||
final tag = frame.sublist(3, 7);
|
||||
var snrQuarterDb = 40;
|
||||
for (final c in _contacts) {
|
||||
if (c.type != advTypeRepeater && c.type != advTypeSensor) continue;
|
||||
if ((typeMask & (1 << c.type)) == 0) continue;
|
||||
final key = prefixOnly ? c.publicKey.sublist(0, 8) : c.publicKey;
|
||||
final snr = snrQuarterDb;
|
||||
snrQuarterDb -= 12;
|
||||
_later(ackDelay, () {
|
||||
_emit([
|
||||
Uint8List.fromList([
|
||||
pushCodeControlData,
|
||||
snr & 0xFF,
|
||||
(-60) & 0xFF,
|
||||
0, // path_len: zero-hop
|
||||
(controlSubtypeDiscoverResp << 4) | c.type,
|
||||
(snr - 8) & 0xFF,
|
||||
...tag,
|
||||
...key,
|
||||
]),
|
||||
]);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
void _handleLogin(Uint8List frame) {
|
||||
// [cmd][pub_key x32][password...]
|
||||
_Contact? contact;
|
||||
|
||||
@@ -628,6 +628,18 @@ class AppSettingsScreen extends StatelessWidget {
|
||||
},
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 4,
|
||||
),
|
||||
secondary: const Icon(Icons.short_text, size: 20),
|
||||
title: Text(context.l10n.appSettings_regionOnHopsLine),
|
||||
subtitle: Text(context.l10n.appSettings_regionOnHopsLineSubtitle),
|
||||
value: settingsService.settings.regionOnHopsLine,
|
||||
onChanged: settingsService.setRegionOnHopsLine,
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
@@ -672,6 +684,21 @@ class AppSettingsScreen extends StatelessWidget {
|
||||
settingsService.setChannelMinHopsRetries(value.toInt()),
|
||||
),
|
||||
),
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 4,
|
||||
),
|
||||
secondary: const Icon(Icons.hub_outlined, size: 20),
|
||||
title: Text(context.l10n.appSettings_channelMinHopsCountRepeaters),
|
||||
subtitle: Text(
|
||||
context.l10n.appSettings_channelMinHopsCountRepeatersSubtitle(
|
||||
settingsService.settings.channelMinHops,
|
||||
),
|
||||
),
|
||||
value: settingsService.settings.channelMinHopsCountRepeaters,
|
||||
onChanged: settingsService.setChannelMinHopsCountRepeaters,
|
||||
),
|
||||
],
|
||||
const Divider(height: 1, indent: 16),
|
||||
_ScrollIntoViewOnce(
|
||||
@@ -854,11 +881,15 @@ class AppSettingsScreen extends StatelessWidget {
|
||||
ImageCodecModelSpec spec,
|
||||
) async {
|
||||
final messenger = ScaffoldMessenger.of(context);
|
||||
final failed = context.l10n.imageMessages_downloadFailed;
|
||||
final l10n = context.l10n;
|
||||
try {
|
||||
await codec.downloadPresetModel(spec);
|
||||
} on Exception catch (error) {
|
||||
messenger.showSnackBar(SnackBar(content: Text('$failed $error')));
|
||||
messenger.showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(l10n.imageMessages_downloadFailedWithError('$error')),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ import '../widgets/sync_progress_overlay.dart';
|
||||
import '../widgets/translated_message_content.dart';
|
||||
import '../widgets/unread_divider.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../widgets/future_timestamp_indicator.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import 'app_settings_screen.dart';
|
||||
import 'channel_message_path_screen.dart';
|
||||
@@ -97,6 +98,9 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
|
||||
MeshCoreConnector? _connector;
|
||||
DateTime? _lastChannelSendAt;
|
||||
// True while a send is awaiting outgoing translation, so a second tap
|
||||
// can't send the same text again.
|
||||
bool _isSendingText = false;
|
||||
bool _channelSkipNextBottomSnap = false;
|
||||
String? _unreadDividerMessageId;
|
||||
|
||||
@@ -342,8 +346,14 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
final defaultSuffix = ownRegion.isEmpty
|
||||
? ' ${context.l10n.channels_regionDefaultSuffix}'
|
||||
: '';
|
||||
final radioDefault = connector.defaultFloodScopeName;
|
||||
final regionText = region.isNotEmpty
|
||||
? ' • ${context.l10n.channels_regionSetTo(region)}$defaultSuffix'
|
||||
: radioDefault != null &&
|
||||
connector.channelUsesRadioDefaultScope(
|
||||
widget.channel.index,
|
||||
)
|
||||
? ' • ${context.l10n.channels_regionSetTo(radioDefault)} ${context.l10n.channels_regionRadioDefaultSuffix}'
|
||||
: '';
|
||||
return Text(
|
||||
'$privacy$regionText',
|
||||
@@ -600,6 +610,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
) {
|
||||
final settingsService = context.watch<AppSettingsService>();
|
||||
final enableTracing = settingsService.settings.enableMessageTracing;
|
||||
final regionOnHopsLine = settingsService.settings.regionOnHopsLine;
|
||||
final isOutgoing = message.isOutgoing;
|
||||
final scheme = Theme.of(context).colorScheme;
|
||||
final gifId = GifHelper.parseGif(message.text);
|
||||
@@ -851,9 +862,8 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
_RouteRegionChips(
|
||||
sameLine: regionOnHopsLine,
|
||||
children: [
|
||||
RouteChip(
|
||||
isDirect: (message.pathLength ?? -1) >= 0,
|
||||
@@ -861,7 +871,9 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
),
|
||||
if (message.region?.isNotEmpty ?? false)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 2),
|
||||
padding: regionOnHopsLine
|
||||
? EdgeInsets.zero
|
||||
: const EdgeInsets.only(top: 2),
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 6,
|
||||
@@ -929,6 +941,10 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
color: metaColor,
|
||||
),
|
||||
),
|
||||
if (message.hasFutureTimestamp) ...[
|
||||
const SizedBox(width: 4),
|
||||
FutureTimestampIndicator(size: 16 * textScale),
|
||||
],
|
||||
if (enableTracing &&
|
||||
!isOutgoing &&
|
||||
message.repeatCount > 0) ...[
|
||||
@@ -1552,6 +1568,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
previewPng: previewPng,
|
||||
rate: aeicRatePointForUi(result.rate),
|
||||
chunkCount: chunkSet.dataChunkCount,
|
||||
aspectCode: await _aspectCodeOf(sourceBytes),
|
||||
);
|
||||
} on Exception catch (error) {
|
||||
debugPrint('outgoing image registration failed: $error');
|
||||
@@ -2237,8 +2254,22 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
}
|
||||
|
||||
Future<void> _sendMessage() async {
|
||||
if (_isSendingText) return;
|
||||
_isSendingText = true;
|
||||
try {
|
||||
await _sendMessageInner();
|
||||
} finally {
|
||||
_isSendingText = false;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _sendMessageInner() async {
|
||||
final text = _textController.text.trim();
|
||||
if (text.isEmpty) return;
|
||||
// Capture the reply target now; the user may change it while the
|
||||
// outgoing translation runs.
|
||||
final replyTo = _replyingToMessage;
|
||||
final replyRegion = _useReplyRegion ? replyTo?.region : null;
|
||||
|
||||
final now = DateTime.now();
|
||||
if (_lastChannelSendAt != null &&
|
||||
@@ -2282,10 +2313,9 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (_replyingToMessage != null) {
|
||||
messageText = '@[${_replyingToMessage!.senderName}] $messageText';
|
||||
if (replyTo != null) {
|
||||
messageText = '@[${replyTo.senderName}] $messageText';
|
||||
}
|
||||
final replyRegion = _useReplyRegion ? _replyingToMessage?.region : null;
|
||||
|
||||
final maxBytes = maxChannelMessageBytes(connector.selfName);
|
||||
final outboundText = connector.prepareChannelOutboundText(
|
||||
@@ -2309,9 +2339,13 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
}
|
||||
// end transform
|
||||
|
||||
final replyTo = _replyingToMessage;
|
||||
_textController.clear();
|
||||
_cancelReply();
|
||||
// Keep anything the user typed or a new reply picked during translation.
|
||||
if (_textController.text.trim() == text) {
|
||||
_textController.clear();
|
||||
}
|
||||
if (identical(_replyingToMessage, replyTo)) {
|
||||
_cancelReply();
|
||||
}
|
||||
_textFieldFocusNode.requestFocus();
|
||||
connector.sendChannelMessage(
|
||||
widget.channel,
|
||||
@@ -2575,6 +2609,62 @@ class _RegionSelectDialog extends StatefulWidget {
|
||||
class _RegionSelectDialogState extends State<_RegionSelectDialog> {
|
||||
final RegionStore regionStore = RegionStore();
|
||||
|
||||
bool _canForceUnscoped(BuildContext context) =>
|
||||
context.read<MeshCoreConnector>().supportsExplicitUnscopedFlood;
|
||||
|
||||
bool _hasOwnAssignment(BuildContext context) {
|
||||
final connector = context.read<MeshCoreConnector>();
|
||||
final index = widget.channel.index;
|
||||
return connector.hasChannelRegion(index) ||
|
||||
connector.isChannelExplicitlyUnscoped(index);
|
||||
}
|
||||
|
||||
/// On firmware that cannot force an unscoped flood, explain that floods
|
||||
/// without a region still use the radio's default region.
|
||||
List<Widget> _buildRadioDefaultNote(BuildContext context) {
|
||||
final connector = context.read<MeshCoreConnector>();
|
||||
final radioDefault = connector.defaultFloodScopeName;
|
||||
if (radioDefault == null || connector.supportsExplicitUnscopedFlood) {
|
||||
return const [];
|
||||
}
|
||||
return [
|
||||
const SizedBox(height: 8),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: Text(
|
||||
context.l10n.channels_regionRadioDefaultApplies(radioDefault),
|
||||
style: Theme.of(context).textTheme.bodyMedium,
|
||||
),
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
Widget _buildUnscopedTile(BuildContext context) {
|
||||
final connector = context.read<MeshCoreConnector>();
|
||||
final selected = connector.isChannelExplicitlyUnscoped(
|
||||
widget.channel.index,
|
||||
);
|
||||
return ListTile(
|
||||
leading: Icon(
|
||||
Icons.public_off,
|
||||
color: selected ? MeshPalette.blue : null,
|
||||
),
|
||||
title: Text(context.l10n.settings_regionNoRegion),
|
||||
trailing: selected
|
||||
? const Icon(Icons.check, color: MeshPalette.blue)
|
||||
: null,
|
||||
tileColor: selected ? MeshPalette.blueBg : null,
|
||||
onTap: () {
|
||||
// Tapping the already-selected option clears it back to the default.
|
||||
connector.setChannelRegion(
|
||||
widget.channel.index,
|
||||
selected ? '' : kUnscopedRegion,
|
||||
);
|
||||
Navigator.pop(context);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
List<Region> regions = [];
|
||||
int selectedIndex = -1;
|
||||
|
||||
@@ -2615,7 +2705,9 @@ class _RegionSelectDialogState extends State<_RegionSelectDialog> {
|
||||
style: Theme.of(context).textTheme.bodySmall,
|
||||
),
|
||||
),
|
||||
..._buildRadioDefaultNote(context),
|
||||
const SizedBox(height: 8),
|
||||
if (_canForceUnscoped(context)) _buildUnscopedTile(context),
|
||||
if (regions.isEmpty)
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(24),
|
||||
@@ -2653,11 +2745,7 @@ class _RegionSelectDialogState extends State<_RegionSelectDialog> {
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
TextButton(
|
||||
onPressed:
|
||||
context
|
||||
.read<MeshCoreConnector>()
|
||||
.getChannelRegion(widget.channel.index)
|
||||
.isEmpty
|
||||
onPressed: !_hasOwnAssignment(context)
|
||||
? null
|
||||
: () {
|
||||
context.read<MeshCoreConnector>().setChannelRegion(
|
||||
@@ -2861,7 +2949,9 @@ class _ChannelChatRow {
|
||||
|
||||
const _ChannelChatRow({this.message, this.image});
|
||||
|
||||
DateTime get timestamp => message?.timestamp ?? image!.firstSeen;
|
||||
/// Local arrival time, used for ordering and day separators so a sender
|
||||
/// clock running ahead cannot pin a row to the bottom (#584).
|
||||
DateTime get timestamp => message?.receivedAt ?? image!.firstSeen;
|
||||
|
||||
/// Stable identity for the scroll-to-message [GlobalKey] map. The `aeic:`
|
||||
/// prefix keeps a stream id from ever colliding with a message id.
|
||||
@@ -2890,3 +2980,33 @@ ReceivedImageStrings _receivedImageStrings(BuildContext context) {
|
||||
openSettings: l10n.receivedImage_openSettings,
|
||||
);
|
||||
}
|
||||
|
||||
/// A message's route chip and region chip: stacked by default, or side by
|
||||
/// side (wrapping on narrow bubbles) when "Region next to hop count" is on.
|
||||
class _RouteRegionChips extends StatelessWidget {
|
||||
const _RouteRegionChips({required this.sameLine, required this.children});
|
||||
|
||||
final bool sameLine;
|
||||
final List<Widget> children;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (sameLine) {
|
||||
// Flexible bounds the Wrap's width inside the bubble's Row so a long
|
||||
// region name wraps under the hop chip instead of overflowing.
|
||||
return Flexible(
|
||||
child: Wrap(
|
||||
spacing: 4,
|
||||
runSpacing: 2,
|
||||
crossAxisAlignment: WrapCrossAlignment.center,
|
||||
children: children,
|
||||
),
|
||||
);
|
||||
}
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: children,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -30,6 +30,7 @@ import '../widgets/sync_progress_overlay.dart';
|
||||
import '../widgets/unread_badge.dart';
|
||||
import '../helpers/gif_helper.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../helpers/utf8_length_limiter.dart';
|
||||
import 'channel_chat_screen.dart';
|
||||
import 'community_qr_scanner_screen.dart';
|
||||
import 'contacts_screen.dart';
|
||||
@@ -399,6 +400,9 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
? context.l10n.channels_regionSetTo(
|
||||
connector.getChannelRegion(channel.index),
|
||||
)
|
||||
: connector.isChannelExplicitlyUnscoped(channel.index) &&
|
||||
connector.supportsExplicitUnscopedFlood
|
||||
? context.l10n.channels_regionNotSet
|
||||
: '';
|
||||
switch (channelType) {
|
||||
case ChannelType.communityPublic:
|
||||
@@ -836,17 +840,7 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
|
||||
void _showAddChannelDialog(BuildContext context) {
|
||||
final connector = context.read<MeshCoreConnector>();
|
||||
final nextIndex = _findNextAvailableIndex(
|
||||
connector.channels,
|
||||
connector.maxChannels,
|
||||
);
|
||||
if (nextIndex == null) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.channels_noFreeSlots),
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (_resolveFreeChannelSlot(context, connector) == null) return;
|
||||
final hasPublicChannel = connector.channels.any((c) => c.isPublicChannel);
|
||||
int? selectedOption;
|
||||
final nameController = TextEditingController();
|
||||
@@ -958,7 +952,11 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
labelText: sheetContext.l10n.channels_channelName,
|
||||
border: const OutlineInputBorder(),
|
||||
),
|
||||
maxLength: 31,
|
||||
inputFormatters: const [
|
||||
Utf8LengthLimitingTextInputFormatter(
|
||||
maxRadioNameBytes,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
@@ -980,6 +978,11 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
);
|
||||
return;
|
||||
}
|
||||
final nextIndex = _resolveFreeChannelSlot(
|
||||
context,
|
||||
connector,
|
||||
);
|
||||
if (nextIndex == null) return;
|
||||
final psk = randomBytes(16);
|
||||
Navigator.pop(sheetContext);
|
||||
await connector.setChannel(
|
||||
@@ -1023,7 +1026,11 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
labelText: sheetContext.l10n.channels_channelName,
|
||||
border: const OutlineInputBorder(),
|
||||
),
|
||||
maxLength: 31,
|
||||
inputFormatters: const [
|
||||
Utf8LengthLimitingTextInputFormatter(
|
||||
maxRadioNameBytes,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
@@ -1071,6 +1078,11 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
);
|
||||
return;
|
||||
}
|
||||
final nextIndex = _resolveFreeChannelSlot(
|
||||
context,
|
||||
connector,
|
||||
);
|
||||
if (nextIndex == null) return;
|
||||
Navigator.pop(sheetContext);
|
||||
connector.setChannel(nextIndex, name, psk);
|
||||
if (context.mounted) {
|
||||
@@ -1103,6 +1115,11 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
Expanded(
|
||||
child: FilledButton(
|
||||
onPressed: () {
|
||||
final nextIndex = _resolveFreeChannelSlot(
|
||||
context,
|
||||
connector,
|
||||
);
|
||||
if (nextIndex == null) return;
|
||||
final psk = Channel.parsePskHex(
|
||||
Channel.publicChannelPsk,
|
||||
);
|
||||
@@ -1214,7 +1231,21 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
border: const OutlineInputBorder(),
|
||||
prefixIcon: const Icon(Icons.tag),
|
||||
),
|
||||
maxLength: 31,
|
||||
inputFormatters: [
|
||||
Utf8LengthLimitingTextInputFormatter(
|
||||
maxRadioNameBytes,
|
||||
encoder: (text) {
|
||||
final tag = text.trim().startsWith('#')
|
||||
? text.trim().substring(1)
|
||||
: text.trim();
|
||||
if (!isRegularHashtag &&
|
||||
selectedCommunity != null) {
|
||||
return '${selectedCommunity!.name} #$tag';
|
||||
}
|
||||
return '#$tag';
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
// Privacy hint for community hashtags
|
||||
@@ -1259,6 +1290,27 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
if (hashtag.startsWith('#')) {
|
||||
hashtag = hashtag.substring(1);
|
||||
}
|
||||
if (!isRegularHashtag &&
|
||||
selectedCommunity != null &&
|
||||
utf8ByteLength(
|
||||
'${selectedCommunity!.name} #$hashtag',
|
||||
) >
|
||||
maxRadioNameBytes) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(
|
||||
sheetContext.l10n.channels_nameTooLong(
|
||||
maxRadioNameBytes,
|
||||
),
|
||||
),
|
||||
);
|
||||
return;
|
||||
}
|
||||
final nextIndex = _resolveFreeChannelSlot(
|
||||
context,
|
||||
connector,
|
||||
);
|
||||
if (nextIndex == null) return;
|
||||
final String channelName;
|
||||
|
||||
final Uint8List psk;
|
||||
@@ -1369,7 +1421,13 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
border: const OutlineInputBorder(),
|
||||
prefixIcon: const Icon(Icons.groups),
|
||||
),
|
||||
maxLength: 31,
|
||||
inputFormatters: [
|
||||
Utf8LengthLimitingTextInputFormatter(
|
||||
maxRadioNameBytes,
|
||||
encoder: (text) =>
|
||||
'$text ${sheetContext.l10n.channels_public}',
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
CheckboxListTile(
|
||||
@@ -1408,6 +1466,16 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
return;
|
||||
}
|
||||
|
||||
final nextIndex = addPublicChannel
|
||||
? _resolveFreeChannelSlot(
|
||||
context,
|
||||
connector,
|
||||
)
|
||||
: null;
|
||||
if (addPublicChannel && nextIndex == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Create community with random secret
|
||||
final community = Community.create(
|
||||
id: const Uuid().v4(),
|
||||
@@ -1418,11 +1486,13 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
await _communityStore.addCommunity(community);
|
||||
|
||||
// Optionally add the community public channel to the device
|
||||
if (addPublicChannel) {
|
||||
if (nextIndex != null) {
|
||||
final psk = community
|
||||
.deriveCommunityPublicPsk();
|
||||
final channelName =
|
||||
'${community.name} $publicLabel';
|
||||
final channelName = fitRadioName(
|
||||
community.name,
|
||||
publicLabel,
|
||||
);
|
||||
connector.setChannel(
|
||||
nextIndex,
|
||||
channelName,
|
||||
@@ -1602,7 +1672,9 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
labelText: sheetContext.l10n.channels_channelName,
|
||||
border: const OutlineInputBorder(),
|
||||
),
|
||||
maxLength: 31,
|
||||
inputFormatters: const [
|
||||
Utf8LengthLimitingTextInputFormatter(maxRadioNameBytes),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
TextField(
|
||||
@@ -1835,17 +1907,52 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
);
|
||||
}
|
||||
|
||||
/// Picks a free channel slot at the moment the user commits, or shows why
|
||||
/// none can be used. Slots are only trusted after a complete channel sync:
|
||||
/// while syncing, a slot that hasn't been fetched yet looks empty and
|
||||
/// writing to it would overwrite the channel stored on the radio.
|
||||
int? _resolveFreeChannelSlot(
|
||||
BuildContext context,
|
||||
MeshCoreConnector connector,
|
||||
) {
|
||||
if (connector.isSyncingChannels || !connector.hasLoadedChannels) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.channels_waitForSync),
|
||||
);
|
||||
return null;
|
||||
}
|
||||
final index = _findNextAvailableIndex(
|
||||
connector.channels,
|
||||
connector.maxChannels,
|
||||
connector.unconfirmedChannelSlots,
|
||||
);
|
||||
if (index == null) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.channels_noFreeSlots),
|
||||
);
|
||||
}
|
||||
return index;
|
||||
}
|
||||
|
||||
void _addPublicChannel(BuildContext context, MeshCoreConnector connector) {
|
||||
final index = _resolveFreeChannelSlot(context, connector);
|
||||
if (index == null) return;
|
||||
final psk = Channel.parsePskHex(Channel.publicChannelPsk);
|
||||
connector.setChannel(0, context.l10n.channels_public, psk);
|
||||
connector.setChannel(index, context.l10n.channels_public, psk);
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.channels_publicChannelAdded),
|
||||
);
|
||||
}
|
||||
|
||||
int? _findNextAvailableIndex(List<Channel> channels, int maxChannels) {
|
||||
final usedIndices = channels.map((c) => c.index).toSet();
|
||||
int? _findNextAvailableIndex(
|
||||
List<Channel> channels,
|
||||
int maxChannels,
|
||||
Set<int> unconfirmedSlots,
|
||||
) {
|
||||
final usedIndices = {...channels.map((c) => c.index), ...unconfirmedSlots};
|
||||
for (int i = 0; i < maxChannels; i++) {
|
||||
if (!usedIndices.contains(i)) return i;
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@ import '../l10n/l10n.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../widgets/unread_divider.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../widgets/future_timestamp_indicator.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import 'telemetry_screen.dart';
|
||||
|
||||
@@ -82,6 +83,9 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
Message? _pendingUnreadScrollTarget;
|
||||
String? _unreadDividerMessageId;
|
||||
DateTime? _lastTextSendAt;
|
||||
// True while a send is awaiting outgoing translation, so a second tap
|
||||
// can't send the same text again.
|
||||
bool _isSendingText = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -435,14 +439,15 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
final startsDay =
|
||||
messageIndex == reversedMessages.length - 1 ||
|
||||
!isSameChatDay(
|
||||
reversedMessages[messageIndex + 1].timestamp,
|
||||
message.timestamp,
|
||||
reversedMessages[messageIndex + 1].receivedAt,
|
||||
message.receivedAt,
|
||||
);
|
||||
final child = isUnreadAnchor || startsDay
|
||||
? Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (startsDay) ChatDaySeparator(day: message.timestamp),
|
||||
if (startsDay)
|
||||
ChatDaySeparator(day: message.receivedAt),
|
||||
if (isUnreadAnchor) const UnreadDivider(),
|
||||
bubble,
|
||||
],
|
||||
@@ -663,6 +668,16 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
}
|
||||
|
||||
Future<void> _sendMessage(MeshCoreConnector connector) async {
|
||||
if (_isSendingText) return;
|
||||
_isSendingText = true;
|
||||
try {
|
||||
await _sendMessageInner(connector);
|
||||
} finally {
|
||||
_isSendingText = false;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _sendMessageInner(MeshCoreConnector connector) async {
|
||||
final text = _textController.text.trim();
|
||||
if (text.isEmpty) return;
|
||||
|
||||
@@ -731,7 +746,10 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
}
|
||||
// end transform
|
||||
|
||||
_textController.clear();
|
||||
// Keep anything the user typed while translation was running.
|
||||
if (_textController.text.trim() == text) {
|
||||
_textController.clear();
|
||||
}
|
||||
_textFieldFocusNode.requestFocus();
|
||||
connector.sendMessage(
|
||||
_resolveContact(connector),
|
||||
@@ -1644,6 +1662,10 @@ class _MessageBubble extends StatelessWidget {
|
||||
color: metaColor,
|
||||
),
|
||||
),
|
||||
if (message.hasFutureTimestamp)
|
||||
FutureTimestampIndicator(
|
||||
size: 16 * textScale,
|
||||
),
|
||||
if (isOutgoing) ...[
|
||||
const SizedBox(width: 2),
|
||||
MessageStatusIcon(
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'package:uuid/uuid.dart';
|
||||
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../helpers/utf8_length_limiter.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../models/community.dart';
|
||||
import '../storage/community_store.dart';
|
||||
@@ -369,15 +370,33 @@ class _CommunityQrScannerScreenState extends State<CommunityQrScannerScreen> {
|
||||
_communityStore.setPublicKeyHex = connector.selfPublicKeyHex;
|
||||
await _communityStore.addCommunity(community);
|
||||
|
||||
// Optionally add the community public channel to the device
|
||||
// Optionally add the community public channel to the device. Only trust
|
||||
// free slots after a complete channel sync; mid-sync, unfetched slots
|
||||
// look empty and writing one would overwrite an existing channel.
|
||||
if (addPublicChannel && context.mounted) {
|
||||
final connector = context.read<MeshCoreConnector>();
|
||||
final nextIndex = _findNextAvailableChannelIndex(connector);
|
||||
final slotsKnown =
|
||||
connector.hasLoadedChannels && !connector.isSyncingChannels;
|
||||
final nextIndex = slotsKnown
|
||||
? _findNextAvailableChannelIndex(connector)
|
||||
: null;
|
||||
|
||||
if (nextIndex != null) {
|
||||
final psk = community.deriveCommunityPublicPsk();
|
||||
final channelName = '${community.name} Public';
|
||||
final channelName = fitRadioName(
|
||||
community.name,
|
||||
context.l10n.channels_public,
|
||||
);
|
||||
connector.setChannel(nextIndex, channelName, psk);
|
||||
} else {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(
|
||||
slotsKnown
|
||||
? context.l10n.channels_noFreeSlots
|
||||
: context.l10n.channels_waitForSync,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -394,7 +413,10 @@ class _CommunityQrScannerScreenState extends State<CommunityQrScannerScreen> {
|
||||
}
|
||||
|
||||
int? _findNextAvailableChannelIndex(MeshCoreConnector connector) {
|
||||
final usedIndices = connector.channels.map((c) => c.index).toSet();
|
||||
final usedIndices = {
|
||||
...connector.channels.map((c) => c.index),
|
||||
...connector.unconfirmedChannelSlots,
|
||||
};
|
||||
for (int i = 0; i < connector.maxChannels; i++) {
|
||||
if (!usedIndices.contains(i)) return i;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ import '../utils/platform_info.dart';
|
||||
import '../widgets/app_bar.dart';
|
||||
import '../widgets/list_filter_widget.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import '../widgets/node_scan_sheet.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
|
||||
enum DiscoverySortOption { lastSeen, name, type }
|
||||
@@ -105,6 +106,12 @@ class _DiscoveryScreenState extends State<DiscoveryScreen> {
|
||||
),
|
||||
centerTitle: true,
|
||||
actions: [
|
||||
if (connector.isConnected && connector.supportsNodeDiscover)
|
||||
IconButton(
|
||||
tooltip: l10n.discoveredContacts_scan,
|
||||
icon: const Icon(Icons.radar),
|
||||
onPressed: () => showNodeScanSheet(context, connector),
|
||||
),
|
||||
PopupMenuButton(
|
||||
itemBuilder: (context) => [
|
||||
PopupMenuItem(
|
||||
|
||||
@@ -650,7 +650,7 @@ class _LineOfSightMapScreenState extends State<LineOfSightMapScreen> {
|
||||
? LosPalette.selected
|
||||
: LosPalette.textMuted,
|
||||
icon: const Icon(Icons.layers_outlined),
|
||||
tooltip: 'Map detail',
|
||||
tooltip: context.l10n.losMapDetailTooltip,
|
||||
onPressed: () =>
|
||||
setState(() => _showTerrainLayer = !_showTerrainLayer),
|
||||
),
|
||||
@@ -664,7 +664,7 @@ class _LineOfSightMapScreenState extends State<LineOfSightMapScreen> {
|
||||
fontWeight: FontWeight.w800,
|
||||
),
|
||||
),
|
||||
tooltip: 'Units',
|
||||
tooltip: context.l10n.losUnitsTooltip,
|
||||
onPressed: () => context.read<AppSettingsService>().setUnitSystem(
|
||||
isImperial ? UnitSystem.metric : UnitSystem.imperial,
|
||||
),
|
||||
@@ -736,21 +736,25 @@ class _LineOfSightMapScreenState extends State<LineOfSightMapScreen> {
|
||||
Row(
|
||||
children: [
|
||||
_summaryMetric(
|
||||
'Distance',
|
||||
context.l10n.losDistance,
|
||||
segment == null
|
||||
? '--'
|
||||
: '${_formatDistanceValue(segment.totalDistanceMeters, isImperial)} $distanceUnit',
|
||||
),
|
||||
_summaryMetric(
|
||||
segment?.isClear == true ? 'Clearance' : 'Blocked by',
|
||||
segment?.isClear == true
|
||||
? context.l10n.losClearance
|
||||
: context.l10n.losBlockedBy,
|
||||
amount,
|
||||
valueColor: color,
|
||||
),
|
||||
_summaryMetric(
|
||||
'Obstruction',
|
||||
context.l10n.losObstruction,
|
||||
worst == null
|
||||
? '--'
|
||||
: '${_formatDistanceValue(worst.distanceMeters, isImperial)} $distanceUnit from A',
|
||||
: context.l10n.losDistanceFromA(
|
||||
'${_formatDistanceValue(worst.distanceMeters, isImperial)} $distanceUnit',
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -840,18 +844,18 @@ class _LineOfSightMapScreenState extends State<LineOfSightMapScreen> {
|
||||
if (isWorst)
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 5,
|
||||
horizontal: 7,
|
||||
vertical: 2,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: LosPalette.blocked,
|
||||
borderRadius: BorderRadius.circular(99),
|
||||
),
|
||||
child: const Text(
|
||||
'WORST',
|
||||
child: Text(
|
||||
context.l10n.losWorstBadge,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 8,
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w900,
|
||||
),
|
||||
),
|
||||
@@ -860,7 +864,9 @@ class _LineOfSightMapScreenState extends State<LineOfSightMapScreen> {
|
||||
),
|
||||
const Spacer(),
|
||||
Text(
|
||||
'Blocked ${_formatHeightValue(obstruction.obstructionMeters, isImperial)} $heightUnit',
|
||||
context.l10n.losBlockedAmount(
|
||||
'${_formatHeightValue(obstruction.obstructionMeters, isImperial)} $heightUnit',
|
||||
),
|
||||
style: const TextStyle(
|
||||
color: LosPalette.textMuted,
|
||||
fontSize: 11,
|
||||
@@ -890,9 +896,9 @@ class _LineOfSightMapScreenState extends State<LineOfSightMapScreen> {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Text(
|
||||
'Selected obstruction',
|
||||
style: TextStyle(
|
||||
Text(
|
||||
context.l10n.losSelectedObstructionTitle,
|
||||
style: const TextStyle(
|
||||
color: LosPalette.text,
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w800,
|
||||
@@ -904,19 +910,19 @@ class _LineOfSightMapScreenState extends State<LineOfSightMapScreen> {
|
||||
runSpacing: 10,
|
||||
children: [
|
||||
_detailValue(
|
||||
'Blocked by',
|
||||
context.l10n.losBlockedBy,
|
||||
'${_formatHeightValue(obstruction.obstructionMeters, isImperial)} $heightUnit',
|
||||
),
|
||||
_detailValue(
|
||||
'From A',
|
||||
context.l10n.losFromA,
|
||||
'${_formatDistanceValue(obstruction.distanceMeters, isImperial)} $distanceUnit',
|
||||
),
|
||||
_detailValue(
|
||||
'From B',
|
||||
context.l10n.losFromB,
|
||||
'${_formatDistanceValue(segment.totalDistanceMeters - obstruction.distanceMeters, isImperial)} $distanceUnit',
|
||||
),
|
||||
_detailValue(
|
||||
'Elevation',
|
||||
context.l10n.losElevation,
|
||||
'${_formatHeightValue(obstruction.terrainMeters, isImperial)} $heightUnit',
|
||||
),
|
||||
],
|
||||
@@ -927,7 +933,7 @@ class _LineOfSightMapScreenState extends State<LineOfSightMapScreen> {
|
||||
child: OutlinedButton.icon(
|
||||
onPressed: () => _centerOnObstruction(obstruction),
|
||||
icon: const Icon(Icons.center_focus_strong, size: 17),
|
||||
label: const Text('Center on map'),
|
||||
label: Text(context.l10n.losCenterOnMap),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -1368,6 +1374,7 @@ class _LineOfSightMapScreenState extends State<LineOfSightMapScreen> {
|
||||
terrainLabel: context.l10n.losLegendTerrain,
|
||||
losBeamLabel: context.l10n.losLegendLosBeam,
|
||||
radioHorizonLabel: context.l10n.losLegendRadioHorizon,
|
||||
selectedLabel: context.l10n.losSelectedPill,
|
||||
selectedSampleIndex: _selectedObstruction?.sampleIndex,
|
||||
),
|
||||
),
|
||||
@@ -1406,6 +1413,7 @@ class _LineOfSightMapScreenState extends State<LineOfSightMapScreen> {
|
||||
terrainLabel: context.l10n.losLegendTerrain,
|
||||
losBeamLabel: context.l10n.losLegendLosBeam,
|
||||
radioHorizonLabel: context.l10n.losLegendRadioHorizon,
|
||||
selectedLabel: context.l10n.losSelectedPill,
|
||||
selectedSampleIndex: _selectedObstruction?.sampleIndex,
|
||||
),
|
||||
),
|
||||
@@ -1675,13 +1683,15 @@ class _LineOfSightMapScreenState extends State<LineOfSightMapScreen> {
|
||||
String _statusLabel(_LosDisplayStatus status) {
|
||||
switch (status) {
|
||||
case _LosDisplayStatus.clear:
|
||||
return 'Clear';
|
||||
return context.l10n.losStatusClear;
|
||||
case _LosDisplayStatus.marginal:
|
||||
return 'Marginal';
|
||||
return context.l10n.losStatusMarginal;
|
||||
case _LosDisplayStatus.blocked:
|
||||
return 'Blocked';
|
||||
return context.l10n.losStatusBlocked;
|
||||
case _LosDisplayStatus.unknown:
|
||||
return _loading ? 'Checking' : 'No result';
|
||||
return _loading
|
||||
? context.l10n.losStatusCheckingShort
|
||||
: context.l10n.losStatusNoResult;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1832,6 +1842,7 @@ class _LosProfilePainter extends CustomPainter {
|
||||
final String terrainLabel;
|
||||
final String losBeamLabel;
|
||||
final String radioHorizonLabel;
|
||||
final String selectedLabel;
|
||||
final int? selectedSampleIndex;
|
||||
|
||||
const _LosProfilePainter({
|
||||
@@ -1842,6 +1853,7 @@ class _LosProfilePainter extends CustomPainter {
|
||||
required this.terrainLabel,
|
||||
required this.losBeamLabel,
|
||||
required this.radioHorizonLabel,
|
||||
required this.selectedLabel,
|
||||
this.selectedSampleIndex,
|
||||
});
|
||||
|
||||
@@ -2128,7 +2140,7 @@ class _LosProfilePainter extends CustomPainter {
|
||||
final labelY = math.max(topPadding + 2, selectedPoint.dy - 27);
|
||||
_paintPill(
|
||||
canvas,
|
||||
'Selected',
|
||||
selectedLabel,
|
||||
Offset(
|
||||
selectedPoint.dx.clamp(42.0, size.width - 42).toDouble(),
|
||||
labelY,
|
||||
@@ -2216,6 +2228,7 @@ class _LosProfilePainter extends CustomPainter {
|
||||
oldDelegate.terrainLabel != terrainLabel ||
|
||||
oldDelegate.losBeamLabel != losBeamLabel ||
|
||||
oldDelegate.radioHorizonLabel != radioHorizonLabel ||
|
||||
oldDelegate.selectedLabel != selectedLabel ||
|
||||
oldDelegate.selectedSampleIndex != selectedSampleIndex;
|
||||
}
|
||||
|
||||
@@ -2259,7 +2272,7 @@ class _LosLegend extends StatelessWidget {
|
||||
_LegendEntry(terrainLabel, LosPalette.terrain),
|
||||
_LegendEntry(losBeamLabel, LosPalette.beam),
|
||||
_LegendEntry(radioHorizonLabel, LosPalette.horizon),
|
||||
const _LegendEntry('Blocked', LosPalette.blocked),
|
||||
_LegendEntry(context.l10n.losStatusBlocked, LosPalette.blocked),
|
||||
];
|
||||
|
||||
const swatchSize = 12.0;
|
||||
|
||||
@@ -139,6 +139,7 @@ class _MapCacheScreenState extends State<MapCacheScreen> {
|
||||
}
|
||||
|
||||
void _updateEstimate() {
|
||||
if (!mounted) return;
|
||||
if (_selectedBounds == null) {
|
||||
setState(() {
|
||||
_estimatedTiles = 0;
|
||||
|
||||
@@ -40,6 +40,7 @@ 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 '../helpers/utf8_length_limiter.dart';
|
||||
import 'repeater_hub_screen.dart';
|
||||
import 'settings_screen.dart';
|
||||
import 'line_of_sight_map_screen.dart';
|
||||
@@ -2639,7 +2640,7 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
||||
flags: payload.flags,
|
||||
fromName: message.senderName,
|
||||
sourceLabel: channel.name.isEmpty
|
||||
? 'Channel ${channel.index}'
|
||||
? context.l10n.channels_channelIndex(channel.index)
|
||||
: channel.name,
|
||||
timestamp: message.timestamp,
|
||||
isChannel: true,
|
||||
@@ -3119,7 +3120,22 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
||||
return;
|
||||
}
|
||||
|
||||
final label = await _promptForLabel(context, defaultLabel);
|
||||
// The whole `m:lat,lon|label|flags` text must fit in one message to
|
||||
// either a contact or a channel, so the label gets what's left.
|
||||
final maxMessageBytes = min(
|
||||
maxContactMessageBytes(),
|
||||
maxChannelMessageBytes(connector.selfName),
|
||||
);
|
||||
final label = await _promptForLabel(
|
||||
context,
|
||||
defaultLabel,
|
||||
maxBytes: maxMessageBytes,
|
||||
encode: (text) => _formatMarkerMessage(
|
||||
position,
|
||||
text.trim().replaceAll('|', '/'),
|
||||
flags,
|
||||
),
|
||||
);
|
||||
if (label == null || !mounted) return;
|
||||
|
||||
final markerText = _formatMarkerMessage(position, label, flags);
|
||||
@@ -3135,9 +3151,13 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
||||
|
||||
Future<String?> _promptForLabel(
|
||||
BuildContext context,
|
||||
String defaultLabel,
|
||||
) async {
|
||||
final controller = TextEditingController(text: defaultLabel);
|
||||
String defaultLabel, {
|
||||
required int maxBytes,
|
||||
required String Function(String label) encode,
|
||||
}) async {
|
||||
final fixedBytes = utf8ByteLength(encode(''));
|
||||
final fittedDefault = truncateUtf8(defaultLabel, maxBytes - fixedBytes);
|
||||
final controller = TextEditingController(text: fittedDefault);
|
||||
controller.selection = TextSelection(
|
||||
baseOffset: 0,
|
||||
extentOffset: controller.text.length,
|
||||
@@ -3152,6 +3172,9 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
||||
hintText: context.l10n.map_label,
|
||||
border: const OutlineInputBorder(),
|
||||
),
|
||||
inputFormatters: [
|
||||
Utf8LengthLimitingTextInputFormatter(maxBytes, encoder: encode),
|
||||
],
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
@@ -3163,7 +3186,7 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
||||
final label = controller.text.trim().replaceAll('|', '/');
|
||||
Navigator.pop(
|
||||
dialogContext,
|
||||
label.isEmpty ? defaultLabel : label,
|
||||
label.isEmpty ? fittedDefault : label,
|
||||
);
|
||||
},
|
||||
child: Text(context.l10n.common_continue),
|
||||
@@ -3173,6 +3196,15 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
||||
);
|
||||
}
|
||||
|
||||
bool _markerFits(BuildContext context, String markerText, int maxBytes) {
|
||||
if (utf8ByteLength(markerText) <= maxBytes) return true;
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.chat_messageTooLong(maxBytes)),
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
String _formatMarkerMessage(LatLng position, String label, String flags) {
|
||||
final lat = position.latitude.toStringAsFixed(6);
|
||||
final lon = position.longitude.toStringAsFixed(6);
|
||||
@@ -3249,6 +3281,13 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
||||
title: Text(contact.name),
|
||||
onTap: () {
|
||||
Navigator.pop(sheetContext);
|
||||
if (!_markerFits(
|
||||
context,
|
||||
markerText,
|
||||
maxContactMessageBytes(),
|
||||
)) {
|
||||
return;
|
||||
}
|
||||
liveConnector.sendMessage(contact, markerText);
|
||||
},
|
||||
);
|
||||
@@ -3284,7 +3323,9 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
||||
) {
|
||||
final isPublic = _isPublicChannel(channel);
|
||||
final label = channel.name.isEmpty
|
||||
? 'Channel ${channel.index}'
|
||||
? context.l10n.channels_channelIndex(
|
||||
channel.index,
|
||||
)
|
||||
: channel.name;
|
||||
return ListTile(
|
||||
leading: Icon(
|
||||
@@ -3299,7 +3340,15 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
||||
final canSend = isPublic
|
||||
? await _confirmPublicShare(context, label)
|
||||
: true;
|
||||
if (canSend) {
|
||||
if (canSend &&
|
||||
context.mounted &&
|
||||
_markerFits(
|
||||
context,
|
||||
markerText,
|
||||
maxChannelMessageBytes(
|
||||
liveConnector.selfName,
|
||||
),
|
||||
)) {
|
||||
liveConnector.sendChannelMessage(
|
||||
channel,
|
||||
markerText,
|
||||
|
||||
@@ -110,6 +110,9 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
bool _showNodeLabels = true;
|
||||
Contact? _targetContact;
|
||||
Uint8List? _sentTagBytes;
|
||||
// Tag the radio reported in RESP_CODE_SENT for the current trace; reset
|
||||
// on every new trace so a late reply to an earlier one isn't accepted.
|
||||
Uint8List? _sentAckTag;
|
||||
// Live path resolved at trace time; used by the response handler for
|
||||
// endpoint inference so it matches the path that was actually traced.
|
||||
Uint8List _tracedPath = Uint8List(0);
|
||||
@@ -449,6 +452,7 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
);
|
||||
|
||||
final sentTag = DateTime.now().millisecondsSinceEpoch ~/ 1000;
|
||||
_sentAckTag = null;
|
||||
_sentTagBytes = Uint8List(4)
|
||||
..[0] = sentTag & 0xFF
|
||||
..[1] = (sentTag >> 8) & 0xFF
|
||||
@@ -470,7 +474,6 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
|
||||
void _setupFrameListener() {
|
||||
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
|
||||
Uint8List tagData = Uint8List(4);
|
||||
// Listen for incoming text messages from the repeater
|
||||
_frameSubscription = connector.receivedFrames.listen((frame) {
|
||||
if (frame.isEmpty) return;
|
||||
@@ -481,7 +484,7 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
if (code == respCodeSent && _awaitingTraceSent) {
|
||||
_awaitingTraceSent = false;
|
||||
frameBuffer.skipBytes(1); //reserved
|
||||
tagData = frameBuffer.readBytes(4);
|
||||
_sentAckTag = frameBuffer.readBytes(4);
|
||||
final timeoutMilliseconds = frameBuffer.readUInt32LE();
|
||||
|
||||
// Start timeout timer for trace response
|
||||
@@ -512,7 +515,7 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
if (frame.length >= 12 &&
|
||||
code == pushCodeTraceData &&
|
||||
(listEquals(frame.sublist(4, 8), _sentTagBytes) ||
|
||||
listEquals(frame.sublist(4, 8), tagData))) {
|
||||
listEquals(frame.sublist(4, 8), _sentAckTag))) {
|
||||
_timeoutTimer?.cancel();
|
||||
if (!mounted) return;
|
||||
_handleTraceResponse(frame);
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:meshcore_open/connector/meshcore_connector.dart';
|
||||
import 'package:meshcore_open/connector/meshcore_protocol.dart';
|
||||
import 'package:meshcore_open/helpers/snack_bar_builder.dart';
|
||||
import 'package:meshcore_open/l10n/l10n.dart';
|
||||
import 'package:meshcore_open/models/contact.dart';
|
||||
import 'package:meshcore_open/storage/region_store.dart';
|
||||
@@ -89,7 +90,15 @@ class _RegionManagementScreenState extends State<RegionManagementScreen> {
|
||||
),
|
||||
itemCount: _regions.length + 1,
|
||||
itemBuilder: (context, index) {
|
||||
if (index == 0) return _buildDefaultRegionTile(context);
|
||||
if (index == 0) {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
_buildDefaultRegionTile(context),
|
||||
_buildRadioDefaultRegionTile(context),
|
||||
],
|
||||
);
|
||||
}
|
||||
return _buildRegionTile(context, _regions[index - 1]);
|
||||
},
|
||||
),
|
||||
@@ -99,11 +108,16 @@ class _RegionManagementScreenState extends State<RegionManagementScreen> {
|
||||
Widget _buildEmptyState(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
return Center(
|
||||
child: Padding(
|
||||
child: SingleChildScrollView(
|
||||
padding: const EdgeInsets.all(24),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
// The radio may hold a default region set by firmware or another
|
||||
// client even when this app's list is empty; keep it clearable.
|
||||
_buildRadioDefaultRegionTile(context),
|
||||
const SizedBox(height: 16),
|
||||
const Icon(Icons.landscape, size: 48, color: MeshPalette.blue),
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
@@ -132,9 +146,16 @@ class _RegionManagementScreenState extends State<RegionManagementScreen> {
|
||||
Widget _buildDefaultRegionTile(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
final connector = context.watch<MeshCoreConnector>();
|
||||
final current = _regions.contains(connector.defaultRegion)
|
||||
? connector.defaultRegion
|
||||
final canForceUnscoped = connector.supportsExplicitUnscopedFlood;
|
||||
final appDefault = connector.defaultRegion;
|
||||
final current =
|
||||
_regions.contains(appDefault) ||
|
||||
(appDefault == kUnscopedRegion && canForceUnscoped)
|
||||
? appDefault
|
||||
: '';
|
||||
final radioDefault = connector.supportsDefaultFloodScope
|
||||
? connector.defaultFloodScopeName
|
||||
: null;
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(bottom: 8),
|
||||
child: DropdownButtonFormField<Region>(
|
||||
@@ -148,8 +169,17 @@ class _RegionManagementScreenState extends State<RegionManagementScreen> {
|
||||
items: [
|
||||
DropdownMenuItem(
|
||||
value: '',
|
||||
child: Text(l10n.settings_regionDefaultNone),
|
||||
child: Text(
|
||||
radioDefault == null
|
||||
? l10n.settings_regionDefaultNone
|
||||
: l10n.settings_regionUseRadioDefault(radioDefault),
|
||||
),
|
||||
),
|
||||
if (canForceUnscoped)
|
||||
DropdownMenuItem(
|
||||
value: kUnscopedRegion,
|
||||
child: Text(l10n.settings_regionNoRegion),
|
||||
),
|
||||
for (final region in _regions)
|
||||
DropdownMenuItem(value: region, child: Text(region)),
|
||||
],
|
||||
@@ -158,6 +188,63 @@ class _RegionManagementScreenState extends State<RegionManagementScreen> {
|
||||
);
|
||||
}
|
||||
|
||||
/// The radio's own default flood scope (firmware ver 11+). Hidden on older
|
||||
/// firmware, which has no such setting.
|
||||
Widget _buildRadioDefaultRegionTile(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
final connector = context.watch<MeshCoreConnector>();
|
||||
if (!connector.supportsDefaultFloodScope) return const SizedBox.shrink();
|
||||
final radioDefault = connector.defaultFloodScopeName ?? '';
|
||||
final options = <Region>[
|
||||
..._regions,
|
||||
if (radioDefault.isNotEmpty && !_regions.contains(radioDefault))
|
||||
radioDefault,
|
||||
];
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(top: 8, bottom: 8),
|
||||
child: DropdownButtonFormField<Region>(
|
||||
key: ValueKey('radio-default-$radioDefault'),
|
||||
initialValue: radioDefault,
|
||||
decoration: InputDecoration(
|
||||
labelText: l10n.settings_regionRadioDefault,
|
||||
helperText: l10n.settings_regionRadioDefaultSubtitle,
|
||||
helperMaxLines: 3,
|
||||
border: const OutlineInputBorder(),
|
||||
),
|
||||
items: [
|
||||
DropdownMenuItem(
|
||||
value: '',
|
||||
child: Text(l10n.settings_regionDefaultNone),
|
||||
),
|
||||
for (final region in options)
|
||||
DropdownMenuItem(value: region, child: Text(region)),
|
||||
],
|
||||
onChanged: (value) => _setRadioDefaultRegion(connector, value ?? ''),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _setRadioDefaultRegion(
|
||||
MeshCoreConnector connector,
|
||||
Region region,
|
||||
) async {
|
||||
final l10n = context.l10n;
|
||||
try {
|
||||
await connector.setDefaultFloodScope(region);
|
||||
if (!mounted) return;
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(l10n.settings_regionRadioDefaultUpdated),
|
||||
);
|
||||
} catch (_) {
|
||||
if (!mounted) return;
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(l10n.settings_regionRadioDefaultFailed),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
void _showAddRegionDialog(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
final controller = TextEditingController();
|
||||
|
||||
@@ -127,6 +127,18 @@ class _RepeaterCliScreenState extends State<RepeaterCliScreen> {
|
||||
'text': command,
|
||||
'timestamp': DateTime.now().toString(),
|
||||
});
|
||||
// The repeater enters load mode as soon as it receives the command, and
|
||||
// its reply may take a full timeout (or be lost). Switch modes now so
|
||||
// lines typed meanwhile go out verbatim instead of as `XX|` commands; a
|
||||
// blank line always ends it safely.
|
||||
if (startsRegionLoad) {
|
||||
_regionLoadActive = true;
|
||||
_commandHistory.add({
|
||||
'type': 'response',
|
||||
'text': context.l10n.repeater_cliRegionLoadActive,
|
||||
'timestamp': DateTime.now().toString(),
|
||||
});
|
||||
}
|
||||
});
|
||||
_commandController.clear();
|
||||
_historyIndex = -1;
|
||||
@@ -178,19 +190,6 @@ class _RepeaterCliScreenState extends State<RepeaterCliScreen> {
|
||||
}
|
||||
}
|
||||
|
||||
// The reply to `region load` may be lost even though the repeater entered
|
||||
// load mode, so enter it regardless; a blank line always ends it safely.
|
||||
if (startsRegionLoad && mounted) {
|
||||
setState(() {
|
||||
_regionLoadActive = true;
|
||||
_commandHistory.add({
|
||||
'type': 'response',
|
||||
'text': context.l10n.repeater_cliRegionLoadActive,
|
||||
'timestamp': DateTime.now().toString(),
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
_scrollToBottom();
|
||||
}
|
||||
|
||||
|
||||
@@ -92,6 +92,7 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
bool _isLoading = false;
|
||||
bool _hasChanges = false;
|
||||
final Set<_SettingField> _dirtyFields = {};
|
||||
final Set<_SettingField> _editedDuringSave = {};
|
||||
bool _refreshingBasic = false;
|
||||
bool _refreshingRadio = false;
|
||||
bool _refreshingTxPower = false;
|
||||
@@ -826,6 +827,61 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
retainDirty.add(field);
|
||||
}
|
||||
|
||||
// Fields whose edits this save attempts. Anything edited while the
|
||||
// commands are in flight stays dirty afterwards (see _markChanged).
|
||||
final savingFields = Set<_SettingField>.of(_dirtyFields);
|
||||
_editedDuringSave.clear();
|
||||
|
||||
// A changed text field that was emptied has nothing to send; report it
|
||||
// instead of silently skipping it and claiming the save succeeded.
|
||||
void requireText(
|
||||
_SettingField field,
|
||||
TextEditingController controller,
|
||||
String label,
|
||||
) {
|
||||
if (_dirtyFields.contains(field) && controller.text.trim().isEmpty) {
|
||||
reject(field, l10n.repeater_valueRequired(label));
|
||||
}
|
||||
}
|
||||
|
||||
requireText(
|
||||
_SettingField.name,
|
||||
_nameController,
|
||||
l10n.repeater_repeaterName,
|
||||
);
|
||||
requireText(
|
||||
_SettingField.radio,
|
||||
_freqController,
|
||||
l10n.repeater_frequencyMhz,
|
||||
);
|
||||
requireText(
|
||||
_SettingField.txPower,
|
||||
_txPowerController,
|
||||
l10n.repeater_txPower,
|
||||
);
|
||||
requireText(_SettingField.lat, _latController, l10n.repeater_latitude);
|
||||
requireText(_SettingField.lon, _lonController, l10n.repeater_longitude);
|
||||
requireText(
|
||||
_SettingField.prvKey,
|
||||
_prvKeyController,
|
||||
l10n.repeater_prvKey,
|
||||
);
|
||||
requireText(
|
||||
_SettingField.txDelay,
|
||||
_txDelayController,
|
||||
l10n.repeater_txDelay,
|
||||
);
|
||||
requireText(
|
||||
_SettingField.directTxDelay,
|
||||
_directTxDelayController,
|
||||
l10n.repeater_directTxDelay,
|
||||
);
|
||||
requireText(
|
||||
_SettingField.intThresh,
|
||||
_intThreshController,
|
||||
l10n.repeater_intThresh,
|
||||
);
|
||||
|
||||
if (_dirtyFields.contains(_SettingField.name) &&
|
||||
_nameController.text.isNotEmpty) {
|
||||
pending.add((
|
||||
@@ -1098,9 +1154,13 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
}
|
||||
setState(() {
|
||||
_isLoading = false;
|
||||
// Only drop fields that were actually sent successfully; keep failed
|
||||
// ones and anything edited while the save was running.
|
||||
_dirtyFields
|
||||
..clear()
|
||||
..addAll(retainDirty);
|
||||
..removeAll(savingFields)
|
||||
..addAll(retainDirty)
|
||||
..addAll(_editedDuringSave);
|
||||
_editedDuringSave.clear();
|
||||
_hasChanges = _dirtyFields.isNotEmpty || passwordsFailed;
|
||||
});
|
||||
|
||||
@@ -1144,6 +1204,7 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
|
||||
void _markChanged(_SettingField field) {
|
||||
_dirtyFields.add(field);
|
||||
if (_isLoading) _editedDuringSave.add(field);
|
||||
_flagHasChanges();
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,10 @@ class _ScannerScreenState extends State<ScannerScreen> {
|
||||
if (_connector.state == MeshCoreConnectionState.disconnected) {
|
||||
_changedNavigation = false;
|
||||
} else if (_connector.state == MeshCoreConnectionState.connected &&
|
||||
_connector.activeTransport == MeshCoreTransportType.bluetooth &&
|
||||
// TCP lands here after an auto-reconnect: a dropped link popped
|
||||
// back to this screen, and the TCP screen is no longer on the stack.
|
||||
(_connector.activeTransport == MeshCoreTransportType.bluetooth ||
|
||||
_connector.activeTransport == MeshCoreTransportType.tcp) &&
|
||||
isCurrentRoute &&
|
||||
!_changedNavigation) {
|
||||
_changedNavigation = true;
|
||||
|
||||
@@ -15,6 +15,7 @@ import '../services/app_debug_log_service.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../widgets/app_bar.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../helpers/utf8_length_limiter.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import 'app_settings_screen.dart';
|
||||
import 'app_debug_log_screen.dart';
|
||||
@@ -796,6 +797,9 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
|
||||
void _editNodeName(BuildContext context, MeshCoreConnector connector) {
|
||||
final l10n = context.l10n;
|
||||
// The dialog's own context is gone after it pops, so report back
|
||||
// through the screen's context.
|
||||
final screenContext = context;
|
||||
final controller = TextEditingController(text: connector.selfName ?? '');
|
||||
showDialog(
|
||||
context: context,
|
||||
@@ -807,7 +811,9 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
hintText: l10n.settings_nodeNameHint,
|
||||
border: const OutlineInputBorder(),
|
||||
),
|
||||
maxLength: 31,
|
||||
inputFormatters: const [
|
||||
Utf8LengthLimitingTextInputFormatter(maxRadioNameBytes),
|
||||
],
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
@@ -825,9 +831,9 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
Navigator.pop(context);
|
||||
await connector.setNodeName(name);
|
||||
await connector.refreshDeviceInfo();
|
||||
if (!context.mounted) return;
|
||||
if (!screenContext.mounted) return;
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
screenContext,
|
||||
content: Text(l10n.settings_nodeNameUpdated),
|
||||
);
|
||||
},
|
||||
@@ -936,7 +942,8 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
// Safe access to custom vars - may be null before device responds
|
||||
final customVars = connector.currentCustomVars ?? {};
|
||||
final bool hasGPS = customVars.containsKey("gps");
|
||||
bool isGPSEnabled = customVars["gps"] == "1";
|
||||
final bool initialGPSEnabled = customVars["gps"] == "1";
|
||||
bool isGPSEnabled = initialGPSEnabled;
|
||||
|
||||
final currentInterval = settingsService.resolvedGpsIntervalSeconds(
|
||||
customVars,
|
||||
@@ -944,6 +951,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
intervalController.text = currentInterval.toString();
|
||||
|
||||
String? intervalError;
|
||||
String? locationError;
|
||||
|
||||
showDialog(
|
||||
context: context,
|
||||
@@ -967,9 +975,16 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
const SizedBox(height: 16),
|
||||
TextField(
|
||||
controller: lonController,
|
||||
onChanged: (_) {
|
||||
if (locationError != null) {
|
||||
setDialogState(() => locationError = null);
|
||||
}
|
||||
},
|
||||
decoration: InputDecoration(
|
||||
labelText: l10n.settings_longitude,
|
||||
border: const OutlineInputBorder(),
|
||||
errorText: locationError,
|
||||
errorMaxLines: 2,
|
||||
),
|
||||
keyboardType: const TextInputType.numberWithOptions(
|
||||
decimal: true,
|
||||
@@ -1000,14 +1015,9 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
title: l10n.settings_locationGPSEnable,
|
||||
subtitle: l10n.settings_locationGPSEnableSubtitle,
|
||||
value: isGPSEnabled,
|
||||
onChanged: (value) async {
|
||||
setDialogState(() => isGPSEnabled = value);
|
||||
if (value) {
|
||||
await connector.setCustomVar("gps:1");
|
||||
} else {
|
||||
await connector.setCustomVar("gps:0");
|
||||
}
|
||||
},
|
||||
// Applied on Save so Cancel leaves the device untouched.
|
||||
onChanged: (value) =>
|
||||
setDialogState(() => isGPSEnabled = value),
|
||||
),
|
||||
],
|
||||
],
|
||||
@@ -1019,6 +1029,8 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () async {
|
||||
// Validate every field before closing so a typo doesn't
|
||||
// discard the input or leave half the changes applied.
|
||||
int? interval;
|
||||
if (hasGPS) {
|
||||
final intervalText = intervalController.text.trim();
|
||||
@@ -1035,54 +1047,53 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
}
|
||||
}
|
||||
|
||||
final latText = latController.text.trim();
|
||||
final lonText = lonController.text.trim();
|
||||
double? lat;
|
||||
double? lon;
|
||||
if (latText.isNotEmpty || lonText.isNotEmpty) {
|
||||
lat = latText.isNotEmpty
|
||||
? double.tryParse(latText)
|
||||
: connector.selfLatitude;
|
||||
lon = lonText.isNotEmpty
|
||||
? double.tryParse(lonText)
|
||||
: connector.selfLongitude;
|
||||
if (lat == null || lon == null) {
|
||||
setDialogState(() {
|
||||
locationError = l10n.settings_locationBothRequired;
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (lat < -90 || lat > 90 || lon < -180 || lon > 180) {
|
||||
setDialogState(() {
|
||||
locationError = l10n.settings_locationInvalid;
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Navigator.pop(dialogContext);
|
||||
|
||||
var changed = false;
|
||||
if (hasGPS && isGPSEnabled != initialGPSEnabled) {
|
||||
await connector.setCustomVar(
|
||||
isGPSEnabled ? "gps:1" : "gps:0",
|
||||
);
|
||||
changed = true;
|
||||
}
|
||||
if (interval != null) {
|
||||
await settingsService.setGpsIntervalSeconds(
|
||||
interval,
|
||||
writeToDevice: (value) =>
|
||||
connector.setCustomVar("gps_interval:$value"),
|
||||
);
|
||||
await connector.refreshDeviceInfo();
|
||||
if (!context.mounted) return;
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(l10n.settings_locationUpdated),
|
||||
);
|
||||
changed = true;
|
||||
}
|
||||
|
||||
final latText = latController.text.trim();
|
||||
final lonText = lonController.text.trim();
|
||||
if (latText.isEmpty && lonText.isEmpty) {
|
||||
return;
|
||||
if (lat != null && lon != null) {
|
||||
await connector.setNodeLocation(lat: lat, lon: lon);
|
||||
changed = true;
|
||||
}
|
||||
|
||||
final currentLat = connector.selfLatitude;
|
||||
final currentLon = connector.selfLongitude;
|
||||
final lat = latText.isNotEmpty
|
||||
? double.tryParse(latText)
|
||||
: currentLat;
|
||||
final lon = lonText.isNotEmpty
|
||||
? double.tryParse(lonText)
|
||||
: currentLon;
|
||||
if (lat == null || lon == null) {
|
||||
if (!context.mounted) return;
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(l10n.settings_locationBothRequired),
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (lat < -90 || lat > 90 || lon < -180 || lon > 180) {
|
||||
if (!context.mounted) return;
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(l10n.settings_locationInvalid),
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
await connector.setNodeLocation(lat: lat, lon: lon);
|
||||
if (!changed) return;
|
||||
await connector.refreshDeviceInfo();
|
||||
if (!context.mounted) return;
|
||||
showDismissibleSnackBar(
|
||||
|
||||
@@ -113,6 +113,10 @@ class AppSettingsService extends ChangeNotifier {
|
||||
await updateSettings(_settings.copyWith(enableMessageTracing: value));
|
||||
}
|
||||
|
||||
Future<void> setRegionOnHopsLine(bool value) async {
|
||||
await updateSettings(_settings.copyWith(regionOnHopsLine: value));
|
||||
}
|
||||
|
||||
Future<void> setMapCacheBounds(Map<String, double>? value) async {
|
||||
await updateSettings(_settings.copyWith(mapCacheBounds: value));
|
||||
}
|
||||
@@ -222,6 +226,12 @@ class AppSettingsService extends ChangeNotifier {
|
||||
await updateSettings(_settings.copyWith(channelMinHopsRetries: value));
|
||||
}
|
||||
|
||||
Future<void> setChannelMinHopsCountRepeaters(bool value) async {
|
||||
await updateSettings(
|
||||
_settings.copyWith(channelMinHopsCountRepeaters: value),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> setThemeMode(String value) async {
|
||||
await updateSettings(_settings.copyWith(themeMode: value));
|
||||
}
|
||||
|
||||
@@ -1117,10 +1117,15 @@ class ImageReassembler {
|
||||
|
||||
_FinishOutcome? _assemble(_PendingImage entry, {required bool recovered}) {
|
||||
final first = entry.bodies[0];
|
||||
// Chunk 0 must hold the metadata byte; anything shorter cannot
|
||||
// be a chunk 0 from this framing, so keep waiting rather than guessing.
|
||||
if (first == null || first.length < kImageChunkZeroMetadataBytes) {
|
||||
return null;
|
||||
if (first == null) return null;
|
||||
// Chunk 0 must hold the metadata byte; anything shorter cannot be a chunk
|
||||
// 0 from this framing. Every chunk is already here, so waiting would only
|
||||
// leave the stream on "receiving" until the TTL reports it as incomplete.
|
||||
if (first.length < kImageChunkZeroMetadataBytes) {
|
||||
return const _FinishOutcome.failed(
|
||||
ImageChunkStatus.unsupportedFormat,
|
||||
ImageReassemblyFailureReason.unsupportedFormat,
|
||||
);
|
||||
}
|
||||
final metadata = ImageStreamMetadata.decode(first[0]);
|
||||
final out = BytesBuilder();
|
||||
|
||||
@@ -487,6 +487,9 @@ class OnnxImageCodecBackend implements ImageCodecBackend {
|
||||
bool Function()? shouldCancel,
|
||||
}) async {
|
||||
_checkRatePoint(ratePoint);
|
||||
// A previous decode leaves the 2.16 GiB synthesis session resident; the
|
||||
// entropy graph must never be created on top of it.
|
||||
await releaseDecoderSession();
|
||||
final codec = await _ensureEntropy(resolution, forDecode: false);
|
||||
try {
|
||||
// The entropy session stays up on purpose: a second photo is free.
|
||||
@@ -509,6 +512,9 @@ class OnnxImageCodecBackend implements ImageCodecBackend {
|
||||
bool Function()? shouldCancel,
|
||||
}) async {
|
||||
_checkRatePoint(ratePoint);
|
||||
// Same rule in the other direction: the previous decode's synthesis
|
||||
// session is still up, and the entropy graph is about to load.
|
||||
await releaseDecoderSession();
|
||||
final codec = await _ensureEntropy(resolution, forDecode: true);
|
||||
final Float32List yHat;
|
||||
try {
|
||||
|
||||
@@ -99,7 +99,11 @@ class ImageCodecFileStore {
|
||||
}) async {
|
||||
final directoryPath = await modelDirectoryPath();
|
||||
final file = File('$directoryPath/$fileName');
|
||||
final sink = file.openWrite();
|
||||
// Written under a hidden temp name and renamed into place, so a kill
|
||||
// mid-write never leaves a truncated file under the real name, which the
|
||||
// startup scan would register as an installed model.
|
||||
final temp = File(_tempPathFor(directoryPath, fileName));
|
||||
final sink = temp.openWrite();
|
||||
var fileSizeBytes = 0;
|
||||
var completed = false;
|
||||
try {
|
||||
@@ -110,16 +114,22 @@ class ImageCodecFileStore {
|
||||
completed = true;
|
||||
} finally {
|
||||
await sink.close();
|
||||
if (!completed && file.existsSync()) {
|
||||
await file.delete();
|
||||
if (!completed && temp.existsSync()) {
|
||||
await temp.delete();
|
||||
}
|
||||
}
|
||||
await temp.rename(file.path);
|
||||
return DownloadedCodecFile(
|
||||
localPath: file.path,
|
||||
fileSizeBytes: fileSizeBytes,
|
||||
);
|
||||
}
|
||||
|
||||
/// Hidden (leading dot), so [scanDownloadedModels] never lists it and sweeps
|
||||
/// it as junk if a kill leaves it behind.
|
||||
static String _tempPathFor(String directoryPath, String fileName) =>
|
||||
'$directoryPath/.$fileName.part';
|
||||
|
||||
Future<String> chunkFilePath(String fileName, int index) async {
|
||||
final dir = await modelDirectoryPath();
|
||||
return '$dir/.${fileName}_chunk_$index';
|
||||
@@ -195,7 +205,11 @@ class ImageCodecFileStore {
|
||||
}) async {
|
||||
final dir = await modelDirectoryPath();
|
||||
final finalPath = '$dir/$fileName';
|
||||
final sink = File(finalPath).openWrite();
|
||||
// Merged into a hidden temp file first, for the same reason as
|
||||
// [writeModelBytes]: a kill mid-merge must not leave a truncated file
|
||||
// under the real name.
|
||||
final tempPath = _tempPathFor(dir, fileName);
|
||||
final sink = File(tempPath).openWrite();
|
||||
var totalSize = 0;
|
||||
var completed = false;
|
||||
try {
|
||||
@@ -208,6 +222,7 @@ class ImageCodecFileStore {
|
||||
} finally {
|
||||
await sink.close();
|
||||
if (completed) {
|
||||
await File(tempPath).rename(finalPath);
|
||||
for (final chunkPath in chunkPaths) {
|
||||
final file = File(chunkPath);
|
||||
if (file.existsSync()) {
|
||||
@@ -219,9 +234,9 @@ class ImageCodecFileStore {
|
||||
// merge target is thrown away. (The previous version deleted the chunks
|
||||
// unconditionally, which is why an interrupted 872 MB download restarted
|
||||
// from zero.)
|
||||
final finalFile = File(finalPath);
|
||||
if (finalFile.existsSync()) {
|
||||
await finalFile.delete();
|
||||
final tempFile = File(tempPath);
|
||||
if (tempFile.existsSync()) {
|
||||
await tempFile.delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -413,17 +413,26 @@ class ImageCodecService extends ChangeNotifier implements ImageSendCodec {
|
||||
for (final asset in spec.assets) asset.fileName,
|
||||
};
|
||||
|
||||
// A file only counts when its size matches the registry: one cut short by
|
||||
// a kill mid-write must not register the bundle as installed, or every
|
||||
// decode fails and reads as "corrupt". Only enforced where a digest pins
|
||||
// the file, since the size is otherwise advisory.
|
||||
bool intact(ImageCodecModelAsset asset) {
|
||||
final file = onDisk[asset.fileName];
|
||||
if (file == null) return false;
|
||||
if (!asset.hasChecksum || asset.sizeBytes <= 0) return true;
|
||||
return file.fileSizeBytes == asset.sizeBytes;
|
||||
}
|
||||
|
||||
for (final spec in imageCodecPresetModels) {
|
||||
final graphFile = onDisk[spec.fileName];
|
||||
if (graphFile == null) continue;
|
||||
final present = [
|
||||
for (final asset in spec.assets)
|
||||
if (onDisk.containsKey(asset.fileName)) asset.fileName,
|
||||
if (intact(asset)) asset.fileName,
|
||||
];
|
||||
final existing = existingByPath[graphFile.localPath];
|
||||
final complete = spec.assets.every(
|
||||
(asset) => onDisk.containsKey(asset.fileName),
|
||||
);
|
||||
final complete = spec.assets.every(intact);
|
||||
merged.add(
|
||||
ImageCodecModelRecord(
|
||||
id: spec.id,
|
||||
@@ -437,8 +446,7 @@ class ImageCodecService extends ChangeNotifier implements ImageSendCodec {
|
||||
assetFileNames: present,
|
||||
assetRoles: {
|
||||
for (final asset in spec.assets)
|
||||
if (onDisk.containsKey(asset.fileName))
|
||||
asset.fileName: asset.role,
|
||||
if (intact(asset)) asset.fileName: asset.role,
|
||||
},
|
||||
bundleVersion: complete ? kImageCodecBundleVersion : 0,
|
||||
),
|
||||
@@ -1360,8 +1368,14 @@ class ImageCodecService extends ChangeNotifier implements ImageSendCodec {
|
||||
await pendingRelease;
|
||||
} catch (_) {}
|
||||
}
|
||||
if (_session != null && _loadedBundle == bundle) {
|
||||
return _session;
|
||||
final cached = _session;
|
||||
if (cached != null && cached.isDead) {
|
||||
// The worker isolate died; its port answers nothing. Spawn a fresh one
|
||||
// rather than hanging every later job on it.
|
||||
_session = null;
|
||||
_loadedBundle = null;
|
||||
} else if (cached != null && _loadedBundle == bundle) {
|
||||
return cached;
|
||||
}
|
||||
if (bundle == _failedBundle) {
|
||||
return null;
|
||||
|
||||
@@ -79,6 +79,11 @@ class ImageCodecSession {
|
||||
final Map<int, Completer<void>> _pendingReleases = {};
|
||||
int _nextJobId = 1;
|
||||
bool _disposed = false;
|
||||
bool _dead = false;
|
||||
|
||||
/// True once the worker isolate has died. A dead session can never answer
|
||||
/// again, so the owner must drop it and spawn a new one.
|
||||
bool get isDead => _dead;
|
||||
|
||||
ImageCodecSession._({
|
||||
required Isolate isolate,
|
||||
@@ -121,12 +126,16 @@ class ImageCodecSession {
|
||||
});
|
||||
|
||||
errors.listen((message) {
|
||||
final description = message is List && message.isNotEmpty
|
||||
// `null` is the onExit notification: the isolate is gone without an
|
||||
// error report (killed, or a native crash).
|
||||
final description = message == null
|
||||
? 'exited'
|
||||
: message is List && message.isNotEmpty
|
||||
? message.first.toString()
|
||||
: message.toString();
|
||||
final active = session;
|
||||
if (active != null) {
|
||||
active._failAll(StateError('Image codec isolate died: $description'));
|
||||
active._markDead(StateError('Image codec isolate died: $description'));
|
||||
} else if (!handshake.isCompleted) {
|
||||
handshake.complete({'type': 'fatal', 'error': description});
|
||||
}
|
||||
@@ -146,6 +155,7 @@ class ImageCodecSession {
|
||||
),
|
||||
errorsAreFatal: true,
|
||||
onError: errors.sendPort,
|
||||
onExit: errors.sendPort,
|
||||
debugName: 'image-codec',
|
||||
);
|
||||
} catch (_) {
|
||||
@@ -359,6 +369,18 @@ class ImageCodecSession {
|
||||
}
|
||||
}
|
||||
|
||||
/// The worker died on its own. Fail what is pending and refuse new work,
|
||||
/// or the next job would be sent to a dead port and wait forever.
|
||||
void _markDead(Object error) {
|
||||
if (_disposed) return;
|
||||
_dead = true;
|
||||
_disposed = true;
|
||||
_failAll(error);
|
||||
_isolate.kill(priority: Isolate.immediate);
|
||||
_fromWorker.close();
|
||||
_errors.close();
|
||||
}
|
||||
|
||||
/// Kills the isolate and frees the model's resident memory.
|
||||
Future<void> dispose() async {
|
||||
if (_disposed) return;
|
||||
|
||||
@@ -20,6 +20,8 @@ class ImageCodecSession {
|
||||
|
||||
bool get hasTables => false;
|
||||
|
||||
bool get isDead => false;
|
||||
|
||||
Future<void> release({bool decoder = false, bool entropy = false}) async {}
|
||||
|
||||
Future<Uint8List> decodeLatent(
|
||||
|
||||
@@ -26,7 +26,9 @@ class _AckHistoryEntry {
|
||||
/// for O(1) lookup. [pathSelection] snapshots the route used for this
|
||||
/// specific attempt so that a late PUSH_CODE_SEND_CONFIRMED credits the
|
||||
/// correct path even when the message has since been retried on a different
|
||||
/// route.
|
||||
/// route. Firmware hashes only `attempt & 3`, so attempts N and N+4 of one
|
||||
/// message share an ACK hash; each hash therefore keeps every attempt that
|
||||
/// produced it.
|
||||
typedef AckHashMapping = ({
|
||||
String messageId,
|
||||
DateTime timestamp,
|
||||
@@ -93,7 +95,7 @@ class MessageRetryService extends ChangeNotifier {
|
||||
final Map<String, Message> _pendingMessages = {};
|
||||
final Map<String, Contact> _pendingContacts = {};
|
||||
final Map<String, List<PathSelection>> _attemptPathHistory = {};
|
||||
final Map<String, AckHashMapping> _ackHashToMessageId = {};
|
||||
final Map<String, List<AckHashMapping>> _ackHashToMessageId = {};
|
||||
final Map<String, List<int>> _expectedAckHashes = {};
|
||||
final List<_AckHistoryEntry> _ackHistory = [];
|
||||
final Map<String, List<String>> _sendQueue = {};
|
||||
@@ -103,7 +105,11 @@ class MessageRetryService extends ChangeNotifier {
|
||||
|
||||
RetryServiceConfig? _config;
|
||||
|
||||
MessageRetryService();
|
||||
/// Extra time allowed for RESP_CODE_SENT on top of the delivery timeout
|
||||
/// before an attempt with no SENT reply is treated as timed out.
|
||||
final Duration sentWatchdogGrace;
|
||||
|
||||
MessageRetryService({this.sentWatchdogGrace = const Duration(seconds: 5)});
|
||||
|
||||
void initialize(RetryServiceConfig config) {
|
||||
_config = config;
|
||||
@@ -387,6 +393,7 @@ class MessageRetryService extends ChangeNotifier {
|
||||
if (config.getSelfPublicKey != null && selfPubKey == null) {
|
||||
throw StateError('Self public key unknown; cannot track ACK');
|
||||
}
|
||||
String? expectedHashHex;
|
||||
if (selfPubKey != null) {
|
||||
final outboundText =
|
||||
config.prepareContactOutboundText?.call(contact, message.text) ??
|
||||
@@ -397,7 +404,7 @@ class MessageRetryService extends ChangeNotifier {
|
||||
outboundText,
|
||||
selfPubKey,
|
||||
);
|
||||
final expectedHashHex = expectedHash.toRadixString(16).padLeft(8, '0');
|
||||
expectedHashHex = expectedHash.toRadixString(16).padLeft(8, '0');
|
||||
_expectedHashToMessageId[expectedHashHex] = messageId;
|
||||
|
||||
final shortText = message.text.length > 20
|
||||
@@ -410,6 +417,87 @@ class MessageRetryService extends ChangeNotifier {
|
||||
}
|
||||
|
||||
await config.sendMessage(contact, message.text, attempt, timestampSeconds);
|
||||
_startSentWatchdog(messageId, attempt, expectedHashHex);
|
||||
}
|
||||
|
||||
/// Arms a timer for an attempt whose RESP_CODE_SENT has not arrived yet.
|
||||
/// Without it a lost SENT reply leaves the message pending forever and
|
||||
/// blocks the contact's queue. A SENT reply replaces this timer with the
|
||||
/// normal ACK timeout via [_startTimeoutTimer].
|
||||
void _startSentWatchdog(
|
||||
String messageId,
|
||||
int attempt,
|
||||
String? expectedHashHex,
|
||||
) {
|
||||
final message = _pendingMessages[messageId];
|
||||
final contact = _pendingContacts[messageId];
|
||||
if (message == null || contact == null) return;
|
||||
if (_resolvedMessages.contains(messageId)) return;
|
||||
if (message.retryCount != attempt ||
|
||||
message.status != MessageStatus.pending) {
|
||||
return; // SENT already arrived, or a newer attempt took over.
|
||||
}
|
||||
if (_timeoutTimers[messageId]?.isActive ?? false) return;
|
||||
|
||||
final timeoutMs =
|
||||
_deliveryTimeoutFor(message, contact) +
|
||||
sentWatchdogGrace.inMilliseconds;
|
||||
_timeoutTimers[messageId] = Timer(Duration(milliseconds: timeoutMs), () {
|
||||
final current = _pendingMessages[messageId];
|
||||
if (current == null ||
|
||||
current.retryCount != attempt ||
|
||||
current.status != MessageStatus.pending) {
|
||||
return;
|
||||
}
|
||||
_config?.debugLogService?.warn(
|
||||
'No RESP_CODE_SENT for message $messageId (attempt $attempt) '
|
||||
'after ${timeoutMs}ms → treating as timed out',
|
||||
tag: 'AckHash',
|
||||
);
|
||||
if (expectedHashHex != null &&
|
||||
_expectedHashToMessageId[expectedHashHex] == messageId) {
|
||||
// Drop the SENT expectation so a late SENT for this attempt can't
|
||||
// restart timers for the retry; keep the hash ACK-matchable in case
|
||||
// the radio did transmit it.
|
||||
_expectedHashToMessageId.remove(expectedHashHex);
|
||||
_addAckHashMapping(expectedHashHex, messageId, current);
|
||||
final hash = int.parse(expectedHashHex, radix: 16);
|
||||
final hashes = _expectedAckHashes.putIfAbsent(messageId, () => []);
|
||||
if (!hashes.contains(hash)) hashes.add(hash);
|
||||
}
|
||||
_handleTimeout(messageId);
|
||||
});
|
||||
}
|
||||
|
||||
int _deliveryTimeoutFor(Message message, Contact contact) {
|
||||
final config = _config;
|
||||
final calculate = config?.calculateTimeout;
|
||||
if (calculate == null) return calculateDefaultTimeout(contact);
|
||||
final outboundText =
|
||||
config?.prepareContactOutboundText?.call(contact, message.text) ??
|
||||
message.text;
|
||||
return calculate(
|
||||
message.pathLength ?? contact.pathLength,
|
||||
utf8.encode(outboundText).length,
|
||||
contactKey: contact.publicKeyHex,
|
||||
);
|
||||
}
|
||||
|
||||
void _addAckHashMapping(
|
||||
String ackHashHex,
|
||||
String messageId,
|
||||
Message message,
|
||||
) {
|
||||
final mappings = _ackHashToMessageId.putIfAbsent(ackHashHex, () => []);
|
||||
mappings.removeWhere(
|
||||
(m) => m.messageId == messageId && m.attemptIndex == message.retryCount,
|
||||
);
|
||||
mappings.add((
|
||||
messageId: messageId,
|
||||
timestamp: DateTime.now(),
|
||||
attemptIndex: message.retryCount,
|
||||
pathSelection: _selectionFromMessage(message),
|
||||
));
|
||||
}
|
||||
|
||||
bool updateMessageFromSent(int ackHash, int timeoutMs) {
|
||||
@@ -454,12 +542,7 @@ class MessageRetryService extends ChangeNotifier {
|
||||
}
|
||||
|
||||
final message = _pendingMessages[messageId]!;
|
||||
_ackHashToMessageId[ackHashHex] = (
|
||||
messageId: messageId,
|
||||
timestamp: DateTime.now(),
|
||||
attemptIndex: message.retryCount,
|
||||
pathSelection: _selectionFromMessage(message),
|
||||
);
|
||||
_addAckHashMapping(ackHashHex, messageId, message);
|
||||
|
||||
// Add this ACK hash to the list of expected ACKs for this message (for history)
|
||||
_expectedAckHashes[messageId] ??= [];
|
||||
@@ -526,9 +609,10 @@ class MessageRetryService extends ChangeNotifier {
|
||||
|
||||
void _cleanupMessage(String messageId) {
|
||||
_moveAckHashesToHistory(messageId);
|
||||
_ackHashToMessageId.removeWhere(
|
||||
(_, mapping) => mapping.messageId == messageId,
|
||||
);
|
||||
_ackHashToMessageId.removeWhere((_, mappings) {
|
||||
mappings.removeWhere((mapping) => mapping.messageId == messageId);
|
||||
return mappings.isEmpty;
|
||||
});
|
||||
_expectedHashToMessageId.removeWhere((_, msgId) => msgId == messageId);
|
||||
final contactKey = _pendingContacts[messageId]?.publicKeyHex;
|
||||
_pendingMessages.remove(messageId);
|
||||
@@ -672,26 +756,30 @@ class MessageRetryService extends ChangeNotifier {
|
||||
String? matchedMessageId;
|
||||
int? matchedAttemptIndex;
|
||||
PathSelection? matchedPathSelection;
|
||||
// True when attempts on different routes share this ACK hash, so the
|
||||
// route that delivered it is unknown and must not be credited.
|
||||
var ambiguousPath = false;
|
||||
final ackHashHex = ackHash.toRadixString(16).padLeft(8, '0');
|
||||
|
||||
// Clean up old ACK hash mappings (older than 15 minutes)
|
||||
final cutoffTime = DateTime.now().subtract(const Duration(minutes: 15));
|
||||
final hashesToRemove = <String>[];
|
||||
for (var entry in _ackHashToMessageId.entries) {
|
||||
if (entry.value.timestamp.isBefore(cutoffTime)) {
|
||||
hashesToRemove.add(entry.key);
|
||||
}
|
||||
}
|
||||
for (var hash in hashesToRemove) {
|
||||
_ackHashToMessageId.remove(hash);
|
||||
}
|
||||
_ackHashToMessageId.removeWhere((_, mappings) {
|
||||
mappings.removeWhere((m) => m.timestamp.isBefore(cutoffTime));
|
||||
return mappings.isEmpty;
|
||||
});
|
||||
|
||||
// Use direct O(1) lookup via ACK hash mapping
|
||||
final mapping = _ackHashToMessageId[ackHashHex];
|
||||
if (mapping != null) {
|
||||
final mappings = _ackHashToMessageId[ackHashHex];
|
||||
if (mappings != null && mappings.isNotEmpty) {
|
||||
final mapping = mappings.first;
|
||||
matchedMessageId = mapping.messageId;
|
||||
matchedAttemptIndex = mapping.attemptIndex;
|
||||
matchedPathSelection = mapping.pathSelection;
|
||||
ambiguousPath = mappings.any(
|
||||
(m) =>
|
||||
m.messageId != mapping.messageId ||
|
||||
!_sameSelection(m.pathSelection, mapping.pathSelection),
|
||||
);
|
||||
} else {
|
||||
config?.debugLogService?.warn(
|
||||
'PUSH_CODE_SEND_CONFIRMED: ACK hash $ackHashHex not found in direct mapping, trying fallback',
|
||||
@@ -746,13 +834,15 @@ class MessageRetryService extends ChangeNotifier {
|
||||
config?.updateMessage(deliveredMessage);
|
||||
|
||||
if (contact != null) {
|
||||
_recordPathResultFromMessage(
|
||||
contact.publicKeyHex,
|
||||
message,
|
||||
selection,
|
||||
true,
|
||||
tripTimeMs,
|
||||
);
|
||||
if (!ambiguousPath) {
|
||||
_recordPathResultFromMessage(
|
||||
contact.publicKeyHex,
|
||||
message,
|
||||
selection,
|
||||
true,
|
||||
tripTimeMs,
|
||||
);
|
||||
}
|
||||
if (config?.onDeliveryObserved != null &&
|
||||
tripTimeMs > 0 &&
|
||||
message.pathLength != null) {
|
||||
@@ -825,6 +915,13 @@ class MessageRetryService extends ChangeNotifier {
|
||||
callback(contactKey, recordSelection, success, tripTimeMs);
|
||||
}
|
||||
|
||||
static bool _sameSelection(PathSelection? a, PathSelection? b) {
|
||||
if (a == null || b == null) return a == b;
|
||||
return a.useFlood == b.useFlood &&
|
||||
a.hopCount == b.hopCount &&
|
||||
listEquals(a.pathBytes, b.pathBytes);
|
||||
}
|
||||
|
||||
PathSelection? _selectionFromMessage(Message message) {
|
||||
if (message.pathLength != null && message.pathLength! < 0) {
|
||||
return const PathSelection(pathBytes: [], hopCount: -1, useFlood: true);
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'dart:ui';
|
||||
|
||||
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
||||
|
||||
import '../helpers/message_url_image_helper.dart';
|
||||
@@ -624,6 +625,7 @@ class NotificationService {
|
||||
Future<void> cancelAll() async {
|
||||
_conversations.clear();
|
||||
await _notifications.cancelAll();
|
||||
await _updateBadge(0);
|
||||
}
|
||||
|
||||
Future<void> cancel(int id) async {
|
||||
@@ -660,28 +662,22 @@ class NotificationService {
|
||||
}
|
||||
}
|
||||
|
||||
static const MethodChannel _badgeChannel = MethodChannel(
|
||||
'meshcore_open/app_badge',
|
||||
);
|
||||
|
||||
/// Sets the app icon badge to the current unread total.
|
||||
Future<void> setAppBadge(int count) => _updateBadge(count);
|
||||
|
||||
Future<void> _updateBadge(int count) async {
|
||||
if (PlatformInfo.isIOS || PlatformInfo.isMacOS) {
|
||||
// On Apple platforms, set the badge number directly via a silent update.
|
||||
final darwinDetails = DarwinNotificationDetails(
|
||||
presentAlert: false,
|
||||
presentSound: false,
|
||||
presentBadge: true,
|
||||
badgeNumber: count,
|
||||
);
|
||||
final details = NotificationDetails(
|
||||
iOS: darwinDetails,
|
||||
macOS: darwinDetails,
|
||||
);
|
||||
// Use a fixed ID so each update replaces the previous one.
|
||||
await _notifications.show(
|
||||
id: 'badge_update'.hashCode,
|
||||
title: null,
|
||||
body: null,
|
||||
notificationDetails: details,
|
||||
);
|
||||
// Immediately cancel the silent notification so it doesn't appear in tray.
|
||||
await _notifications.cancel(id: 'badge_update'.hashCode);
|
||||
// Set natively: a silent notification cancelled right after show() is
|
||||
// removed before iOS delivers it, so its badge number never applied.
|
||||
try {
|
||||
await _badgeChannel.invokeMethod<void>('setBadgeCount', count);
|
||||
} catch (e) {
|
||||
debugPrint('Failed to update app badge: $e');
|
||||
}
|
||||
}
|
||||
// On Android, badge count is derived from active notifications,
|
||||
// so cancelling the specific notification above is sufficient.
|
||||
|
||||
@@ -118,7 +118,7 @@ class FileReceivedImageBlobStore implements ReceivedImageBlobStore {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _write(
|
||||
Future<bool> _write(
|
||||
String streamId,
|
||||
String extension,
|
||||
Uint8List bytes,
|
||||
@@ -127,13 +127,17 @@ class FileReceivedImageBlobStore implements ReceivedImageBlobStore {
|
||||
final path = await _pathFor(streamId, extension);
|
||||
if (path == null) {
|
||||
debugPrint('received_image_blob_store: refusing unsafe id "$streamId"');
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
await File(path).writeAsBytes(bytes, flush: true);
|
||||
return true;
|
||||
} catch (error) {
|
||||
debugPrint(
|
||||
'received_image_blob_store: write $streamId$extension: $error',
|
||||
);
|
||||
// A partial file would be counted as stored by the next startup scan.
|
||||
await _delete(streamId, extension);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -163,7 +167,7 @@ class FileReceivedImageBlobStore implements ReceivedImageBlobStore {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> writeBitstream(String streamId, Uint8List bytes) =>
|
||||
Future<bool> writeBitstream(String streamId, Uint8List bytes) =>
|
||||
_write(streamId, _bitstreamExt, bytes);
|
||||
|
||||
@override
|
||||
@@ -178,7 +182,7 @@ class FileReceivedImageBlobStore implements ReceivedImageBlobStore {
|
||||
Future<int?> bitstreamSize(String streamId) => _size(streamId, _bitstreamExt);
|
||||
|
||||
@override
|
||||
Future<void> writePng(String streamId, Uint8List bytes) =>
|
||||
Future<bool> writePng(String streamId, Uint8List bytes) =>
|
||||
_write(streamId, _pngExt, bytes);
|
||||
|
||||
@override
|
||||
|
||||
@@ -374,11 +374,14 @@ class ReceivedImageEntry {
|
||||
/// `received_images/<streamId>.aeic|.png|.json`. See
|
||||
/// `received_image_blob_store_io.dart`.
|
||||
abstract class ReceivedImageBlobStore {
|
||||
Future<void> writeBitstream(String streamId, Uint8List bytes);
|
||||
/// Returns false when the bytes could not be stored (disk full, unsafe id),
|
||||
/// so the caller never records a file that is not there.
|
||||
Future<bool> writeBitstream(String streamId, Uint8List bytes);
|
||||
Future<Uint8List?> readBitstream(String streamId);
|
||||
Future<void> deleteBitstream(String streamId);
|
||||
|
||||
Future<void> writePng(String streamId, Uint8List bytes);
|
||||
/// Same contract as [writeBitstream].
|
||||
Future<bool> writePng(String streamId, Uint8List bytes);
|
||||
Future<Uint8List?> readPng(String streamId);
|
||||
Future<void> deletePng(String streamId);
|
||||
|
||||
@@ -418,8 +421,9 @@ class InMemoryReceivedImageBlobStore implements ReceivedImageBlobStore {
|
||||
final Map<String, String> _sidecars = <String, String>{};
|
||||
|
||||
@override
|
||||
Future<void> writeBitstream(String streamId, Uint8List bytes) async {
|
||||
Future<bool> writeBitstream(String streamId, Uint8List bytes) async {
|
||||
_bitstreams[streamId] = bytes;
|
||||
return true;
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -439,8 +443,9 @@ class InMemoryReceivedImageBlobStore implements ReceivedImageBlobStore {
|
||||
Future<int?> pngSize(String streamId) async => _pngs[streamId]?.length;
|
||||
|
||||
@override
|
||||
Future<void> writePng(String streamId, Uint8List bytes) async {
|
||||
Future<bool> writePng(String streamId, Uint8List bytes) async {
|
||||
_pngs[streamId] = bytes;
|
||||
return true;
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -551,6 +556,11 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
/// Hard cap on stored PNGs.
|
||||
final int maxImages;
|
||||
|
||||
/// Hard cap on entries of any state. Undecoded entries hold no PNG, so
|
||||
/// [maxImages] never counts them; without this a flood of one-packet images
|
||||
/// grows the sidecars (and the startup scan) without bound.
|
||||
final int maxEntries;
|
||||
|
||||
/// Hard cap on total bytes across all stored files.
|
||||
final int maxBytes;
|
||||
|
||||
@@ -599,6 +609,10 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
/// Set by [handleMemoryPressure] so the decode it cancels is parked rather
|
||||
/// than reported as corrupt.
|
||||
bool _cancelRequested = false;
|
||||
|
||||
/// Set by [setForeground] when backgrounding cancels a running decode, so it
|
||||
/// goes back on the queue instead of being reported as corrupt.
|
||||
bool _backgroundCancelled = false;
|
||||
bool _foreground = true;
|
||||
bool _disposed = false;
|
||||
|
||||
@@ -606,6 +620,7 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
ReceivedImageBlobStore? blobs,
|
||||
this.decoder,
|
||||
this.maxImages = 200,
|
||||
this.maxEntries = 400,
|
||||
this.maxBytes = 64 * 1024 * 1024,
|
||||
this.maxAge = const Duration(days: 30),
|
||||
this.burstCap = 3,
|
||||
@@ -727,7 +742,7 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
}
|
||||
|
||||
_entries[entry.streamId] = entry;
|
||||
_byKey[entry.key] = entry.streamId;
|
||||
_claimKey(entry);
|
||||
_publish(entry);
|
||||
await _persist(entry);
|
||||
}
|
||||
@@ -877,9 +892,46 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
}
|
||||
|
||||
final metadata = result.metadata;
|
||||
// The reserved high rate (ft16) and any resolution but 512 cannot be
|
||||
// decoded by the only model this build ships; storing them as
|
||||
// `reassembled` would end in an endless "corrupt, retry" loop. Treat them
|
||||
// like an undecodable metadata byte: nothing to retry, no bytes kept.
|
||||
if (metadata != null &&
|
||||
(metadata.rate != ImageCodecRatePoint.standard ||
|
||||
metadata.squareSize != kImageCodecSquareSize)) {
|
||||
_queue.remove(entry.streamId);
|
||||
return _store(
|
||||
entry.copyWith(
|
||||
state: ReceivedImageState.failedCorrupt,
|
||||
receivedChunks: result.chunkCount,
|
||||
totalChunks: result.chunkCount,
|
||||
bitstreamStored: false,
|
||||
error: 'Unsupported image format.',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
final tracked = _entries.containsKey(entry.streamId);
|
||||
// Bitstream first, state second: a kill between the two must be
|
||||
// recoverable, and `reassembled` with no file on disk is a lie.
|
||||
await blobs.writeBitstream(entry.streamId, result.data);
|
||||
final written = await blobs.writeBitstream(entry.streamId, result.data);
|
||||
if (tracked && !_entries.containsKey(entry.streamId)) {
|
||||
// Deleted (message removed, channel cleared) while the write was in
|
||||
// flight. Storing now would resurrect it with no message to show it.
|
||||
await blobs.deleteBitstream(entry.streamId);
|
||||
return entry;
|
||||
}
|
||||
if (!written) {
|
||||
return _store(
|
||||
entry.copyWith(
|
||||
state: ReceivedImageState.failedCorrupt,
|
||||
receivedChunks: result.chunkCount,
|
||||
totalChunks: result.chunkCount,
|
||||
bitstreamStored: false,
|
||||
error: 'Could not save the image data.',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
final updated = entry.copyWith(
|
||||
state: ReceivedImageState.reassembled,
|
||||
@@ -900,9 +952,12 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
// Park it: the card shows "N bytes · M packets" and "Tap to process".
|
||||
// A 2.16 GiB decode is never started off the back of a radio packet
|
||||
// unless the user asked for that.
|
||||
return _store(updated.copyWith(needsManualDecode: true));
|
||||
final parked = await _store(updated.copyWith(needsManualDecode: true));
|
||||
await _enforceEntryCap(protect: parked.streamId);
|
||||
return parked;
|
||||
}
|
||||
final stored = await _store(updated);
|
||||
await _enforceEntryCap(protect: stored.streamId);
|
||||
_enqueue(stored.streamId);
|
||||
return stored;
|
||||
}
|
||||
@@ -965,6 +1020,7 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
required Uint8List previewPng,
|
||||
required AeicRatePoint rate,
|
||||
required int chunkCount,
|
||||
int aspectCode = 0,
|
||||
DateTime? at,
|
||||
}) async {
|
||||
final now = at ?? _clock();
|
||||
@@ -973,7 +1029,10 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
imgId: imgId,
|
||||
firstSeen: now,
|
||||
);
|
||||
await blobs.writePng(streamId, previewPng);
|
||||
// A failed write still shows the photo for this session (the bytes stay
|
||||
// cached on the entry); the next launch then reports it as evicted rather
|
||||
// than pointing at a file that was never written.
|
||||
final pngWritten = await blobs.writePng(streamId, previewPng);
|
||||
final entry = ReceivedImageEntry(
|
||||
streamId: streamId,
|
||||
senderPrefix: senderPrefix,
|
||||
@@ -984,10 +1043,13 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
receivedChunks: chunkCount,
|
||||
totalChunks: chunkCount,
|
||||
rate: rate,
|
||||
// The preview is the same stretched 512x512 square the receiver gets,
|
||||
// so the sender's bubble needs the source shape to undo it too.
|
||||
aspectCode: aspectCode,
|
||||
metadataAssumed: false,
|
||||
isOutgoing: true,
|
||||
pngStored: true,
|
||||
pngByteCount: previewPng.length,
|
||||
pngStored: pngWritten,
|
||||
pngByteCount: pngWritten ? previewPng.length : 0,
|
||||
pngBytes: previewPng,
|
||||
);
|
||||
final stored = await _store(entry);
|
||||
@@ -1003,7 +1065,12 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
if (_foreground == value) return;
|
||||
_foreground = value;
|
||||
if (!value) {
|
||||
decoder?.cancelCodecJob();
|
||||
// Only cancel OUR decode: the codec is shared with the send sheet, and an
|
||||
// encode it is running is not this store's to stop.
|
||||
if (_decodeInFlight) {
|
||||
_backgroundCancelled = true;
|
||||
decoder?.cancelCodecJob();
|
||||
}
|
||||
} else {
|
||||
_parkedOnBusyDecoder = false;
|
||||
_kick();
|
||||
@@ -1193,9 +1260,14 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
ReceivedImageDecoder decoder,
|
||||
) async {
|
||||
final bitstream = await blobs.readBitstream(entry.streamId);
|
||||
// Every await below is a window in which the user may delete the image
|
||||
// (message removed, channel cleared). Re-read the live entry after each
|
||||
// one and stop if it is gone, or the decode would store it back.
|
||||
final live = _entries[entry.streamId];
|
||||
if (live == null) return;
|
||||
if (bitstream == null || bitstream.isEmpty) {
|
||||
await _store(
|
||||
entry.copyWith(
|
||||
live.copyWith(
|
||||
state: ReceivedImageState.failedCorrupt,
|
||||
bitstreamStored: false,
|
||||
error: 'Bitstream missing.',
|
||||
@@ -1205,49 +1277,34 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
}
|
||||
final started = _clock();
|
||||
_cancelRequested = false;
|
||||
await _store(entry.copyWith(state: ReceivedImageState.decoding));
|
||||
_backgroundCancelled = false;
|
||||
await _store(live.copyWith(state: ReceivedImageState.decoding));
|
||||
|
||||
ImageCodecResult? result;
|
||||
Object? failure;
|
||||
try {
|
||||
result = await decoder.decodeBitstream(
|
||||
bitstream: bitstream,
|
||||
ratePoint: entry.rate,
|
||||
resolution: entry.resolution,
|
||||
ratePoint: live.rate,
|
||||
resolution: live.resolution,
|
||||
);
|
||||
} catch (error) {
|
||||
final current = _entries[entry.streamId] ?? entry;
|
||||
if (_cancelRequested) {
|
||||
await _store(
|
||||
current.copyWith(
|
||||
state: ReceivedImageState.reassembled,
|
||||
needsManualDecode: true,
|
||||
),
|
||||
);
|
||||
} else if (!_foreground) {
|
||||
await _store(current.copyWith(state: ReceivedImageState.reassembled));
|
||||
} else {
|
||||
await _store(
|
||||
current.copyWith(
|
||||
state: ReceivedImageState.failedCorrupt,
|
||||
error: error.toString(),
|
||||
),
|
||||
);
|
||||
}
|
||||
return;
|
||||
failure = error;
|
||||
}
|
||||
|
||||
final current = _entries[entry.streamId] ?? entry;
|
||||
if (result == null) {
|
||||
// canDecode false — the codec cannot run at all.
|
||||
await _store(
|
||||
current.copyWith(state: ReceivedImageState.decoderUnavailable),
|
||||
);
|
||||
return;
|
||||
}
|
||||
final png = result.pngBytes;
|
||||
if (result.status != ImageCodecStatus.completed || png == null) {
|
||||
final current = _entries[entry.streamId];
|
||||
if (current == null) return;
|
||||
final png = result?.pngBytes;
|
||||
final completed =
|
||||
failure == null &&
|
||||
result != null &&
|
||||
result.status == ImageCodecStatus.completed &&
|
||||
png != null;
|
||||
|
||||
if (!completed) {
|
||||
if (_cancelRequested) {
|
||||
// The codec reports a killed job as `failed`; the bitstream is fine.
|
||||
// Memory pressure: the codec reports a killed job as `failed`, but
|
||||
// the bitstream is fine. Park it behind a tap.
|
||||
await _store(
|
||||
current.copyWith(
|
||||
state: ReceivedImageState.reassembled,
|
||||
@@ -1256,27 +1313,47 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (_backgroundCancelled || !_foreground) {
|
||||
// Backgrounded mid-decode: back to the front of the queue, so coming
|
||||
// back to the app picks it up again.
|
||||
await _store(current.copyWith(state: ReceivedImageState.reassembled));
|
||||
if (!_queue.contains(current.streamId)) {
|
||||
_queue.insert(0, current.streamId);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (failure == null && result == null) {
|
||||
// canDecode false — the codec cannot run at all.
|
||||
await _store(
|
||||
current.copyWith(state: ReceivedImageState.decoderUnavailable),
|
||||
);
|
||||
return;
|
||||
}
|
||||
await _store(
|
||||
current.copyWith(
|
||||
state: ReceivedImageState.failedCorrupt,
|
||||
error: 'Decoder rejected the bitstream.',
|
||||
error: failure?.toString() ?? 'Decoder rejected the bitstream.',
|
||||
),
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (!_foreground) {
|
||||
// Backgrounded mid-decode: keep the pixels, but do not claim a decode we
|
||||
// may have half-cancelled.
|
||||
await _store(current.copyWith(state: ReceivedImageState.reassembled));
|
||||
|
||||
// A completed result is a finished decode even if the app went to the
|
||||
// background in the meantime; throwing the pixels away would only make
|
||||
// the user wait for a second 2 GiB run.
|
||||
final written = await blobs.writePng(current.streamId, png);
|
||||
final afterWrite = _entries[entry.streamId];
|
||||
if (afterWrite == null) {
|
||||
await blobs.deletePng(current.streamId);
|
||||
return;
|
||||
}
|
||||
|
||||
await blobs.writePng(current.streamId, png);
|
||||
await _store(
|
||||
current.copyWith(
|
||||
afterWrite.copyWith(
|
||||
state: ReceivedImageState.decoded,
|
||||
pngStored: true,
|
||||
pngByteCount: png.length,
|
||||
// A failed write keeps the pixels cached for this session; the next
|
||||
// launch reports the image as evicted ("Decode again") instead.
|
||||
pngStored: written,
|
||||
pngByteCount: written ? png.length : 0,
|
||||
pngBytes: png,
|
||||
decodeMs: result.durationMs > 0
|
||||
? result.durationMs
|
||||
@@ -1288,7 +1365,7 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
// Without `protect` the freshly decoded image is the budget's own victim
|
||||
// whenever it is also the oldest: decode -> evict -> "Decode again" ->
|
||||
// evict, forever.
|
||||
await evictToBudget(protect: current.streamId);
|
||||
await evictToBudget(protect: afterWrite.streamId);
|
||||
}
|
||||
|
||||
// ---- pixels --------------------------------------------------------------
|
||||
@@ -1330,7 +1407,10 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
Future<void> deleteImage(String streamId) async {
|
||||
final entry = _entries.remove(streamId);
|
||||
_queue.remove(streamId);
|
||||
if (entry != null) {
|
||||
// Only unlink the key if it still points here: a newer image reusing the
|
||||
// same sender/id/channel owns it now, and losing that mapping strands the
|
||||
// newer one on "receiving" while its next chunk opens a third entry.
|
||||
if (entry != null && _byKey[entry.key] == streamId) {
|
||||
_byKey.remove(entry.key);
|
||||
}
|
||||
await blobs.deletePng(streamId);
|
||||
@@ -1468,10 +1548,50 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
evicted.addAll(await _enforceEntryCap(protect: protect));
|
||||
|
||||
if (evicted.isNotEmpty) _notify();
|
||||
return evicted;
|
||||
}
|
||||
|
||||
/// Brings the entry count inside [maxEntries], oldest first: failures, then
|
||||
/// entries with nothing left on disk, then undecoded incoming images. Never
|
||||
/// touches outgoing images, a running decode or a stream still receiving.
|
||||
Future<List<String>> _enforceEntryCap({String? protect}) async {
|
||||
final removed = <String>[];
|
||||
if (_entries.length <= maxEntries) return removed;
|
||||
int rank(ReceivedImageEntry e) {
|
||||
if (e.state.isFailure) return 0;
|
||||
if (e.state == ReceivedImageState.evicted && !e.bitstreamStored) {
|
||||
return 1;
|
||||
}
|
||||
return 2;
|
||||
}
|
||||
|
||||
final victims =
|
||||
_entries.values
|
||||
.where(
|
||||
(e) =>
|
||||
e.streamId != protect &&
|
||||
!e.isOutgoing &&
|
||||
(e.state.isFailure ||
|
||||
e.state == ReceivedImageState.evicted ||
|
||||
e.state == ReceivedImageState.reassembled ||
|
||||
e.state == ReceivedImageState.decoderUnavailable),
|
||||
)
|
||||
.toList()
|
||||
..sort((a, b) {
|
||||
final byRank = rank(a).compareTo(rank(b));
|
||||
return byRank != 0 ? byRank : a.firstSeen.compareTo(b.firstSeen);
|
||||
});
|
||||
for (final victim in victims) {
|
||||
if (_entries.length <= maxEntries) break;
|
||||
await deleteImage(victim.streamId);
|
||||
removed.add(victim.streamId);
|
||||
}
|
||||
return removed;
|
||||
}
|
||||
|
||||
// ---- plumbing ------------------------------------------------------------
|
||||
|
||||
String _uniqueStreamId({
|
||||
@@ -1507,11 +1627,25 @@ class ReceivedImageStore extends ChangeNotifier {
|
||||
|
||||
void _storeSync(ReceivedImageEntry entry) {
|
||||
_entries[entry.streamId] = entry;
|
||||
_byKey[entry.key] = entry.streamId;
|
||||
_claimKey(entry);
|
||||
_publish(entry);
|
||||
_notify();
|
||||
}
|
||||
|
||||
/// Points the entry's key at it unless a newer image already holds the key.
|
||||
/// Updating an old entry (eviction, a late decode) must not steal the key
|
||||
/// back from a newer stream that reused the same 8-bit id.
|
||||
void _claimKey(ReceivedImageEntry entry) {
|
||||
final holderId = _byKey[entry.key];
|
||||
if (holderId != null && holderId != entry.streamId) {
|
||||
final holder = _entries[holderId];
|
||||
if (holder != null && holder.firstSeen.isAfter(entry.firstSeen)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
_byKey[entry.key] = entry.streamId;
|
||||
}
|
||||
|
||||
Future<void> _persist(ReceivedImageEntry entry) async {
|
||||
try {
|
||||
await blobs.writeSidecar(entry.streamId, jsonEncode(entry.toJson()));
|
||||
|
||||
@@ -14,12 +14,21 @@ String normalizeRepeaterClockSyncCommand(String command, {int? nowSeconds}) {
|
||||
return command.trim().toLowerCase() == 'clock sync' ? 'time $epoch' : command;
|
||||
}
|
||||
|
||||
/// One [RepeaterCommandService.sendCommand] call. Every retry adds a fresh
|
||||
/// `XX|` prefix, and a reply to any of them completes the call, so a late
|
||||
/// reply to an earlier attempt is not mistaken for silence.
|
||||
class _PendingCommand {
|
||||
_PendingCommand(this.repeaterKey);
|
||||
|
||||
final String repeaterKey;
|
||||
final Completer<String> completer = Completer<String>();
|
||||
final Set<String> prefixes = {};
|
||||
}
|
||||
|
||||
class RepeaterCommandService {
|
||||
final MeshCoreConnector _connector;
|
||||
final Map<String, Completer<String>> _pendingCommands = {};
|
||||
final Map<String, Timer> _commandTimeouts = {};
|
||||
final Map<String, String> _commandPrefixes = {};
|
||||
final Map<String, String> _pendingByPrefix = {};
|
||||
final Set<_PendingCommand> _pendingCommands = {};
|
||||
final Map<String, _PendingCommand> _pendingByPrefix = {};
|
||||
int _prefixCounter = 0;
|
||||
|
||||
static const int maxRetries = 5;
|
||||
@@ -40,26 +49,33 @@ class RepeaterCommandService {
|
||||
}) async {
|
||||
if (!raw) command = normalizeRepeaterClockSyncCommand(command);
|
||||
final attemptCount = retries < 1 ? 1 : retries;
|
||||
final selection = await _connector.preparePathForContactSend(repeater);
|
||||
final pending = _PendingCommand(repeater.publicKeyHex);
|
||||
_pendingCommands.add(pending);
|
||||
try {
|
||||
final selection = await _connector.preparePathForContactSend(repeater);
|
||||
|
||||
for (int attempt = 0; attempt < attemptCount; attempt++) {
|
||||
onAttempt?.call(attempt + 1);
|
||||
try {
|
||||
final response = await _sendCommandAttempt(
|
||||
repeater,
|
||||
command,
|
||||
selection,
|
||||
attempt,
|
||||
raw,
|
||||
);
|
||||
onResponse?.call(response);
|
||||
return response;
|
||||
} catch (e) {
|
||||
if (attempt == attemptCount - 1) rethrow;
|
||||
for (int attempt = 0; attempt < attemptCount; attempt++) {
|
||||
onAttempt?.call(attempt + 1);
|
||||
try {
|
||||
final response = await _sendCommandAttempt(
|
||||
repeater,
|
||||
command,
|
||||
selection,
|
||||
attempt,
|
||||
raw,
|
||||
pending,
|
||||
);
|
||||
onResponse?.call(response);
|
||||
return response;
|
||||
} catch (e) {
|
||||
if (attempt == attemptCount - 1) rethrow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw Exception('Command failed after $attemptCount attempts');
|
||||
throw Exception('Command failed after $attemptCount attempts');
|
||||
} finally {
|
||||
_cleanup(pending);
|
||||
}
|
||||
}
|
||||
|
||||
Future<String> _sendCommandAttempt(
|
||||
@@ -68,15 +84,16 @@ class RepeaterCommandService {
|
||||
PathSelection selection,
|
||||
int attempt,
|
||||
bool raw,
|
||||
_PendingCommand pending,
|
||||
) async {
|
||||
final repeaterKey = repeater.publicKeyHex;
|
||||
final prefix = _nextPrefixToken();
|
||||
final commandId = '${repeaterKey}_$prefix';
|
||||
final completer = Completer<String>();
|
||||
_pendingCommands[commandId] = completer;
|
||||
_commandPrefixes[commandId] = prefix;
|
||||
_pendingByPrefix[prefix] = commandId;
|
||||
// A reply to an earlier attempt may have arrived during the backoff.
|
||||
if (pending.completer.isCompleted) return pending.completer.future;
|
||||
|
||||
final prefix = _nextPrefixToken();
|
||||
pending.prefixes.add(prefix);
|
||||
_pendingByPrefix[prefix] = pending;
|
||||
|
||||
final int timeoutMs;
|
||||
try {
|
||||
final framedCommand = raw ? command : '$prefix$command';
|
||||
final pathLengthValue = selection.useFlood ? -1 : selection.hopCount;
|
||||
@@ -97,35 +114,21 @@ class RepeaterCommandService {
|
||||
final responseBytes = frame.length > maxFrameSize
|
||||
? frame.length
|
||||
: maxFrameSize;
|
||||
final timeoutMs = _connector.calculateTimeout(
|
||||
timeoutMs = _connector.calculateTimeout(
|
||||
pathLength: pathLengthValue,
|
||||
messageBytes: responseBytes,
|
||||
);
|
||||
final timeoutSeconds = (timeoutMs / 1000).ceil();
|
||||
await _connector.sendFrame(frame);
|
||||
_commandTimeouts[commandId]?.cancel();
|
||||
_commandTimeouts[commandId] = Timer(
|
||||
Duration(milliseconds: timeoutMs),
|
||||
() {
|
||||
final completer = _pendingCommands[commandId];
|
||||
if (completer != null && !completer.isCompleted) {
|
||||
completer.completeError(
|
||||
'Command timeout after $timeoutSeconds seconds',
|
||||
);
|
||||
_cleanup(commandId);
|
||||
}
|
||||
},
|
||||
);
|
||||
} catch (e) {
|
||||
_cleanup(commandId);
|
||||
throw Exception('Failed to send command: $e');
|
||||
}
|
||||
|
||||
try {
|
||||
return await completer.future;
|
||||
} finally {
|
||||
_cleanup(commandId);
|
||||
}
|
||||
final timeoutSeconds = (timeoutMs / 1000).ceil();
|
||||
return pending.completer.future.timeout(
|
||||
Duration(milliseconds: timeoutMs),
|
||||
onTimeout: () =>
|
||||
Future<String>.error('Command timeout after $timeoutSeconds seconds'),
|
||||
);
|
||||
}
|
||||
|
||||
/// Send [line] verbatim and don't wait for a reply. While `region load` is
|
||||
@@ -142,48 +145,43 @@ class RepeaterCommandService {
|
||||
// Find pending command for this repeater and complete it
|
||||
final repeaterKey = repeater.publicKeyHex;
|
||||
|
||||
String? commandId;
|
||||
_PendingCommand? pending;
|
||||
String responsePayload = responseText;
|
||||
if (_prefixPattern.hasMatch(responseText)) {
|
||||
final prefix = responseText.substring(0, 3).toUpperCase();
|
||||
commandId = _pendingByPrefix[prefix];
|
||||
if (commandId == null || !commandId.startsWith('${repeaterKey}_')) {
|
||||
pending = _pendingByPrefix[prefix];
|
||||
if (pending == null || pending.repeaterKey != repeaterKey) {
|
||||
return;
|
||||
}
|
||||
responsePayload = responseText.substring(3).trimLeft();
|
||||
}
|
||||
|
||||
commandId ??= _pendingCommands.keys.firstWhere(
|
||||
(id) => id.startsWith('${repeaterKey}_'),
|
||||
orElse: () => '',
|
||||
);
|
||||
if (pending == null) {
|
||||
for (final candidate in _pendingCommands) {
|
||||
if (candidate.repeaterKey == repeaterKey &&
|
||||
!candidate.completer.isCompleted) {
|
||||
pending = candidate;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (commandId.isEmpty) return;
|
||||
|
||||
final completer = _pendingCommands[commandId];
|
||||
if (completer != null && !completer.isCompleted) {
|
||||
completer.complete(responsePayload);
|
||||
_cleanup(commandId);
|
||||
if (pending != null && !pending.completer.isCompleted) {
|
||||
pending.completer.complete(responsePayload);
|
||||
}
|
||||
}
|
||||
|
||||
void _cleanup(String commandId) {
|
||||
_commandTimeouts[commandId]?.cancel();
|
||||
_commandTimeouts.remove(commandId);
|
||||
_pendingCommands.remove(commandId);
|
||||
final prefix = _commandPrefixes.remove(commandId);
|
||||
if (prefix != null) {
|
||||
_pendingByPrefix.remove(prefix);
|
||||
void _cleanup(_PendingCommand pending) {
|
||||
_pendingCommands.remove(pending);
|
||||
for (final prefix in pending.prefixes) {
|
||||
if (identical(_pendingByPrefix[prefix], pending)) {
|
||||
_pendingByPrefix.remove(prefix);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void dispose() {
|
||||
for (final timer in _commandTimeouts.values) {
|
||||
timer.cancel();
|
||||
}
|
||||
_commandTimeouts.clear();
|
||||
_pendingCommands.clear();
|
||||
_commandPrefixes.clear();
|
||||
_pendingByPrefix.clear();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'dart:convert';
|
||||
import '../models/delivery_observation.dart';
|
||||
import '../models/path_history.dart';
|
||||
import '../storage/legacy_key_migration.dart';
|
||||
import '../storage/prefs_manager.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
|
||||
@@ -12,6 +13,13 @@ class StorageService {
|
||||
'repeater_auto_clock_sync_after_login';
|
||||
static const String _deliveryObservationsKey = 'delivery_observations';
|
||||
|
||||
/// App-wide keys (not scoped to a radio) that hold per-repeater data. Review
|
||||
/// mode snapshots and restores them so simulated logins leave nothing behind.
|
||||
static const List<String> globalRepeaterKeys = [
|
||||
_repeaterPasswordsKey,
|
||||
_repeaterAutoClockSyncAfterLoginKey,
|
||||
];
|
||||
|
||||
String _publicKeyHex = '';
|
||||
set setPublicKeyHex(String value) =>
|
||||
_publicKeyHex = value.length > 10 ? value.substring(0, 10) : '';
|
||||
@@ -65,10 +73,22 @@ class StorageService {
|
||||
Future<ContactPathHistory?> loadPathHistory(String contactPubKeyHex) async {
|
||||
final prefs = PrefsManager.instance;
|
||||
final key = _pathHistoryKey(contactPubKeyHex);
|
||||
// Fall back to the pre-scoping key so learned routes survive the upgrade.
|
||||
final jsonStr =
|
||||
prefs.getString(key) ??
|
||||
prefs.getString('$_pathHistoryPrefix$contactPubKeyHex');
|
||||
var jsonStr = prefs.getString(key);
|
||||
final legacyKey = '$_pathHistoryPrefix$contactPubKeyHex';
|
||||
if (jsonStr == null &&
|
||||
_publicKeyHex.isNotEmpty &&
|
||||
canMigrateLegacyKeys(_publicKeyHex)) {
|
||||
// Move the pre-scoping history into the first radio that loads it so
|
||||
// learned routes survive the upgrade without leaking into other radios.
|
||||
final legacy = prefs.getString(legacyKey);
|
||||
if (legacy != null) {
|
||||
await prefs.setString(key, legacy);
|
||||
await prefs.remove(legacyKey);
|
||||
jsonStr = legacy;
|
||||
}
|
||||
} else if (jsonStr == null && _publicKeyHex.isEmpty) {
|
||||
jsonStr = prefs.getString(legacyKey);
|
||||
}
|
||||
|
||||
if (jsonStr == null) return null;
|
||||
|
||||
@@ -86,12 +106,23 @@ class StorageService {
|
||||
await prefs.remove('$_pathHistoryPrefix$contactPubKeyHex');
|
||||
}
|
||||
|
||||
/// Clears the path histories of the connected radio only. Histories of other
|
||||
/// radios are left alone; with no radio scope set, everything is cleared.
|
||||
Future<void> clearAllPathHistories() async {
|
||||
final prefs = PrefsManager.instance;
|
||||
final keys = prefs.getKeys();
|
||||
final pathHistoryKeys = keys.where(
|
||||
(key) => key.startsWith(_pathHistoryPrefix),
|
||||
);
|
||||
final scopedPrefix = _publicKeyHex.isEmpty
|
||||
? _pathHistoryPrefix
|
||||
: '$_pathHistoryPrefix${_publicKeyHex}_';
|
||||
// Pre-scoping keys (no radio prefix) would otherwise be migrated into this
|
||||
// radio on the next load and bring the cleared routes back.
|
||||
final clearLegacy =
|
||||
_publicKeyHex.isNotEmpty && canMigrateLegacyKeys(_publicKeyHex);
|
||||
final pathHistoryKeys = prefs.getKeys().where((key) {
|
||||
if (key.startsWith(scopedPrefix)) return true;
|
||||
return clearLegacy &&
|
||||
key.startsWith(_pathHistoryPrefix) &&
|
||||
!key.substring(_pathHistoryPrefix.length).contains('_');
|
||||
}).toList();
|
||||
|
||||
for (final key in pathHistoryKeys) {
|
||||
await prefs.remove(key);
|
||||
|
||||
@@ -64,6 +64,7 @@ class TcpTransportService {
|
||||
return;
|
||||
}
|
||||
socket.setOption(SocketOption.tcpNoDelay, true);
|
||||
_enableKeepAlive(socket);
|
||||
_socket = socket;
|
||||
_activeHost = trimmedHost;
|
||||
_activePort = port;
|
||||
@@ -139,6 +140,85 @@ class TcpTransportService {
|
||||
unawaited(disconnect().whenComplete(_closeFrameController));
|
||||
}
|
||||
|
||||
/// Seconds of silence before the first keepalive probe, the gap between
|
||||
/// probes, and how many unanswered probes drop the socket: a dead peer or
|
||||
/// a link killed by Wi-Fi power saving surfaces in about a minute instead
|
||||
/// of the OS default of two hours, so the connector can reconnect.
|
||||
static const int _keepAliveIdleSeconds = 30;
|
||||
static const int _keepAliveIntervalSeconds = 10;
|
||||
static const int _keepAliveProbeCount = 3;
|
||||
|
||||
/// Dart's [Socket] has no keepalive option, so the raw socket options are
|
||||
/// set per platform. Every option is best-effort: a platform that rejects
|
||||
/// one keeps a working (if slower to notice a dead peer) connection.
|
||||
void _enableKeepAlive(Socket socket) {
|
||||
final int soKeepAlive;
|
||||
final int? tcpKeepIdle;
|
||||
final int? tcpKeepInterval;
|
||||
final int? tcpKeepCount;
|
||||
if (Platform.isLinux || Platform.isAndroid) {
|
||||
soKeepAlive = 9;
|
||||
tcpKeepIdle = 4;
|
||||
tcpKeepInterval = 5;
|
||||
tcpKeepCount = 6;
|
||||
} else if (Platform.isMacOS || Platform.isIOS) {
|
||||
soKeepAlive = 0x0008;
|
||||
tcpKeepIdle = 0x10; // TCP_KEEPALIVE
|
||||
tcpKeepInterval = 0x101;
|
||||
tcpKeepCount = 0x102;
|
||||
} else if (Platform.isWindows) {
|
||||
soKeepAlive = 0x0008;
|
||||
tcpKeepIdle = null;
|
||||
tcpKeepInterval = null;
|
||||
tcpKeepCount = null;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
void trySet(String name, RawSocketOption option) {
|
||||
try {
|
||||
socket.setRawOption(option);
|
||||
} catch (error) {
|
||||
_debugLogService?.warn('TCP $name not set: $error', tag: 'TCP');
|
||||
}
|
||||
}
|
||||
|
||||
trySet(
|
||||
'SO_KEEPALIVE',
|
||||
RawSocketOption.fromBool(RawSocketOption.levelSocket, soKeepAlive, true),
|
||||
);
|
||||
if (tcpKeepIdle != null) {
|
||||
trySet(
|
||||
'keepalive idle',
|
||||
RawSocketOption.fromInt(
|
||||
RawSocketOption.levelTcp,
|
||||
tcpKeepIdle,
|
||||
_keepAliveIdleSeconds,
|
||||
),
|
||||
);
|
||||
}
|
||||
if (tcpKeepInterval != null) {
|
||||
trySet(
|
||||
'keepalive interval',
|
||||
RawSocketOption.fromInt(
|
||||
RawSocketOption.levelTcp,
|
||||
tcpKeepInterval,
|
||||
_keepAliveIntervalSeconds,
|
||||
),
|
||||
);
|
||||
}
|
||||
if (tcpKeepCount != null) {
|
||||
trySet(
|
||||
'keepalive count',
|
||||
RawSocketOption.fromInt(
|
||||
RawSocketOption.levelTcp,
|
||||
tcpKeepCount,
|
||||
_keepAliveProbeCount,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _cleanupFailedConnect() async {
|
||||
final subscription = _socketSubscription;
|
||||
_socketSubscription = null;
|
||||
|
||||
@@ -36,6 +36,10 @@ class TimeoutPredictionService extends ChangeNotifier {
|
||||
final Map<String, _ContactStats> _contactStats = {};
|
||||
Timer? _persistTimer;
|
||||
|
||||
/// When true, [recordObservation] ignores new deliveries. Review mode sets
|
||||
/// this so the simulated radio's fixed ACK delay never trains the real model.
|
||||
static bool recordingSuspended = false;
|
||||
|
||||
TimeoutPredictionService(StorageService storage) : _storage = storage;
|
||||
TimeoutPredictionService.noStorage() : _storage = null;
|
||||
|
||||
@@ -63,6 +67,7 @@ class TimeoutPredictionService extends ChangeNotifier {
|
||||
required int tripTimeMs,
|
||||
int secondsSinceLastRx = 0,
|
||||
}) {
|
||||
if (recordingSuspended) return;
|
||||
final isFlood = pathLength < 0;
|
||||
final observation = DeliveryObservation(
|
||||
contactKey: contactKey,
|
||||
|
||||
@@ -3,7 +3,11 @@ import 'dart:typed_data';
|
||||
const int usbSerialTxFrameStart = 0x3c;
|
||||
const int usbSerialRxFrameStart = 0x3e;
|
||||
const int usbSerialHeaderLength = 3;
|
||||
// Outgoing (app → radio) payload cap; matches the app's TX frame budget.
|
||||
const int usbSerialMaxPayloadLength = 172;
|
||||
// Incoming (radio → app) payload cap; firmware MAX_FRAME_SIZE is 176 (it
|
||||
// grew by 4 bytes for region transport codes).
|
||||
const int usbSerialMaxRxPayloadLength = 176;
|
||||
|
||||
Uint8List wrapUsbSerialTxFrame(Uint8List payload) {
|
||||
if (payload.length > usbSerialMaxPayloadLength) {
|
||||
@@ -72,7 +76,7 @@ class UsbSerialFrameDecoder {
|
||||
|
||||
final payloadLength =
|
||||
_rxBuffer[_startIndex + 1] | (_rxBuffer[_startIndex + 2] << 8);
|
||||
if (payloadLength > usbSerialMaxPayloadLength) {
|
||||
if (payloadLength > usbSerialMaxRxPayloadLength) {
|
||||
_startIndex++;
|
||||
_compactBufferIfNeeded();
|
||||
continue;
|
||||
|
||||
@@ -86,6 +86,10 @@ class UsbSerialService {
|
||||
if (!_isSupported) {
|
||||
throw UnsupportedError('Web Serial is not supported by this browser.');
|
||||
}
|
||||
if (_port != null || _reader != null || _writer != null) {
|
||||
// Leftovers from a link that died on a read error.
|
||||
await disconnect();
|
||||
}
|
||||
|
||||
_status = UsbSerialStatus.connecting;
|
||||
_lastError = null;
|
||||
@@ -169,7 +173,15 @@ class UsbSerialService {
|
||||
}
|
||||
|
||||
Future<void> disconnect() async {
|
||||
if (_status == UsbSerialStatus.disconnected) return;
|
||||
// A read error or end of stream marks the link disconnected without
|
||||
// closing the port, so still tear down anything left open; otherwise the
|
||||
// next connect() fails with "port already open".
|
||||
if (_status == UsbSerialStatus.disconnected &&
|
||||
_port == null &&
|
||||
_reader == null &&
|
||||
_writer == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
final portLabel = _connectedPortName ?? _connectedPortKey;
|
||||
_debugLogService?.info(
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:typed_data';
|
||||
import 'package:meshcore_open/utils/app_logger.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
import '../models/channel_message.dart';
|
||||
import '../models/message.dart' show legacyAwareReceivedAt;
|
||||
import '../models/translation_support.dart';
|
||||
import '../helpers/smaz.dart';
|
||||
import 'legacy_key_migration.dart';
|
||||
@@ -17,7 +19,20 @@ class ChannelMessageStore {
|
||||
|
||||
String get keyFor => '$_keyPrefix$publicKeyHex';
|
||||
|
||||
/// Save messages for a specific channel
|
||||
/// Upper bound on persisted messages per channel. The oldest entries
|
||||
/// beyond it are dropped on save.
|
||||
static const int maxStoredMessages = 1000;
|
||||
|
||||
/// Encoded entries persisted ahead of the connector's in-memory window,
|
||||
/// keyed by scoped storage key. A missing entry means the window has not
|
||||
/// been reconciled with storage yet, so the next save keeps what is already
|
||||
/// stored instead of replacing it. Shared across instances so a store
|
||||
/// created by a screen to clear a key also resets the connector's view.
|
||||
static final Map<String, List<String>> _archived = {};
|
||||
|
||||
/// Save messages for a specific channel: [messages] is the in-memory
|
||||
/// window (oldest first) and is written after the archived entries that
|
||||
/// sit ahead of it in storage.
|
||||
Future<void> saveChannelMessages(
|
||||
int channelIndex,
|
||||
List<ChannelMessage> messages,
|
||||
@@ -30,12 +45,99 @@ class ChannelMessageStore {
|
||||
}
|
||||
final prefs = PrefsManager.instance;
|
||||
final key = '$keyFor$channelIndex';
|
||||
final visibleJson = messages.map(_messageToJson).toList();
|
||||
final archived =
|
||||
_archived[key] ??
|
||||
_unreconciledArchive(_readStored(prefs, channelIndex), visibleJson);
|
||||
final overflow = archived.length + visibleJson.length - maxStoredMessages;
|
||||
if (overflow > 0) {
|
||||
archived.removeRange(0, overflow.clamp(0, archived.length));
|
||||
}
|
||||
_archived[key] = archived;
|
||||
final entries = [...archived, ...visibleJson.map(jsonEncode)];
|
||||
await prefs.setString(key, '[${entries.join(',')}]');
|
||||
}
|
||||
|
||||
// Convert messages to JSON
|
||||
final jsonList = messages.map((msg) => _messageToJson(msg)).toList();
|
||||
final jsonString = jsonEncode(jsonList);
|
||||
/// Records [olderMessages] as the stored entries that precede the
|
||||
/// in-memory window for [channelIndex].
|
||||
void setArchived(int channelIndex, List<ChannelMessage> olderMessages) {
|
||||
_archived['$keyFor$channelIndex'] = olderMessages
|
||||
.map((message) => jsonEncode(_messageToJson(message)))
|
||||
.toList();
|
||||
}
|
||||
|
||||
await prefs.setString(key, jsonString);
|
||||
/// Number of stored entries ahead of the in-memory window, or null when
|
||||
/// the window has not been reconciled with storage.
|
||||
int? archivedCount(int channelIndex) =>
|
||||
_archived['$keyFor$channelIndex']?.length;
|
||||
|
||||
/// Removes the newest [count] archived entries after they were paged back
|
||||
/// into the in-memory window.
|
||||
void unarchiveNewest(int channelIndex, int count) {
|
||||
final archived = _archived['$keyFor$channelIndex'];
|
||||
if (archived == null || count <= 0) return;
|
||||
archived.removeRange(
|
||||
(archived.length - count).clamp(0, archived.length),
|
||||
archived.length,
|
||||
);
|
||||
}
|
||||
|
||||
/// Drops the archive bookkeeping, for one channel or all of them, when the
|
||||
/// matching in-memory window is discarded.
|
||||
void forgetArchive([int? channelIndex]) {
|
||||
if (channelIndex == null) {
|
||||
_archived.clear();
|
||||
} else {
|
||||
_archived.remove('$keyFor$channelIndex');
|
||||
}
|
||||
}
|
||||
|
||||
List<String> _unreconciledArchive(
|
||||
String? storedJson,
|
||||
List<Map<String, dynamic>> visibleJson,
|
||||
) {
|
||||
if (storedJson == null || storedJson.isEmpty) return [];
|
||||
final List<dynamic> stored;
|
||||
try {
|
||||
stored = jsonDecode(storedJson) as List<dynamic>;
|
||||
} catch (_) {
|
||||
return [];
|
||||
}
|
||||
final visibleKeys = visibleJson.map(_storedMergeKey).toSet();
|
||||
return [
|
||||
for (final entry in stored)
|
||||
if (entry is Map<String, dynamic> &&
|
||||
!visibleKeys.contains(_storedMergeKey(entry)))
|
||||
jsonEncode(entry),
|
||||
];
|
||||
}
|
||||
|
||||
static String _storedMergeKey(Map<String, dynamic> json) {
|
||||
final messageId = json['messageId'];
|
||||
if (messageId is String && messageId.isNotEmpty) return 'id:$messageId';
|
||||
return 'fallback:${json['timestamp']}:${json['senderName']}:${json['text']}';
|
||||
}
|
||||
|
||||
/// Reads the stored JSON for [channelIndex], migrating the legacy unscoped
|
||||
/// key on first access.
|
||||
String? _readStored(SharedPreferences prefs, int channelIndex) {
|
||||
final key = '$keyFor$channelIndex';
|
||||
final oldKey = '$_keyPrefix$channelIndex';
|
||||
final jsonString = prefs.getString(key);
|
||||
if ((jsonString == null || jsonString.isEmpty) &&
|
||||
canMigrateLegacyKeys(publicKeyHex)) {
|
||||
// Attempt migration from legacy unscoped key on first load
|
||||
final legacyJsonString = prefs.getString(oldKey);
|
||||
prefs.remove(oldKey);
|
||||
if (legacyJsonString != null && legacyJsonString.isNotEmpty) {
|
||||
appLogger.info(
|
||||
'Migrating channel messages from legacy key $oldKey to scoped key $key',
|
||||
);
|
||||
prefs.setString(key, legacyJsonString);
|
||||
return legacyJsonString;
|
||||
}
|
||||
}
|
||||
return jsonString;
|
||||
}
|
||||
|
||||
/// Load messages for a specific channel
|
||||
@@ -47,23 +149,7 @@ class ChannelMessageStore {
|
||||
return [];
|
||||
}
|
||||
final prefs = PrefsManager.instance;
|
||||
final key = '$keyFor$channelIndex';
|
||||
final oldKey = '$_keyPrefix$channelIndex';
|
||||
|
||||
String? jsonString = prefs.getString(key);
|
||||
if ((jsonString == null || jsonString.isEmpty) &&
|
||||
canMigrateLegacyKeys(publicKeyHex)) {
|
||||
// Attempt migration from legacy unscoped key on first load
|
||||
final legacyJsonString = prefs.getString(oldKey);
|
||||
prefs.remove(oldKey);
|
||||
if (legacyJsonString != null && legacyJsonString.isNotEmpty) {
|
||||
appLogger.info(
|
||||
'Migrating channel messages from legacy key $oldKey to scoped key $key',
|
||||
);
|
||||
await prefs.setString(key, legacyJsonString);
|
||||
jsonString = legacyJsonString;
|
||||
}
|
||||
}
|
||||
String? jsonString = _readStored(prefs, channelIndex);
|
||||
if (jsonString == null || jsonString.isEmpty) {
|
||||
jsonString = prefs.getString(keyFor);
|
||||
}
|
||||
@@ -94,13 +180,15 @@ class ChannelMessageStore {
|
||||
Future<void> clearChannelMessages(int channelIndex) async {
|
||||
final prefs = PrefsManager.instance;
|
||||
final key = '$keyFor$channelIndex';
|
||||
_archived[key] = [];
|
||||
await prefs.remove(key);
|
||||
}
|
||||
|
||||
/// Clear all channel messages
|
||||
Future<void> clearAllChannelMessages() async {
|
||||
final prefs = PrefsManager.instance;
|
||||
final keys = prefs.getKeys().where((k) => k.startsWith(keyFor));
|
||||
final keys = prefs.getKeys().where((k) => k.startsWith(keyFor)).toList();
|
||||
_archived.clear();
|
||||
for (var key in keys) {
|
||||
await prefs.remove(key);
|
||||
}
|
||||
@@ -118,6 +206,7 @@ class ChannelMessageStore {
|
||||
'translationStatus': msg.translationStatus.value,
|
||||
'translationModelId': msg.translationModelId,
|
||||
'timestamp': msg.timestamp.millisecondsSinceEpoch,
|
||||
'receivedAt': msg.receivedAt.millisecondsSinceEpoch,
|
||||
'isOutgoing': msg.isOutgoing,
|
||||
'status': msg.status.index,
|
||||
'channelIndex': msg.channelIndex,
|
||||
@@ -134,13 +223,18 @@ class ChannelMessageStore {
|
||||
'replyToSenderName': msg.replyToSenderName,
|
||||
'replyToText': msg.replyToText,
|
||||
'reactions': msg.reactions,
|
||||
// `text` is stored decoded; legacy records without this flag may still
|
||||
// hold a Smaz payload.
|
||||
'plainText': true,
|
||||
};
|
||||
}
|
||||
|
||||
/// Convert JSON map to ChannelMessage
|
||||
ChannelMessage _messageFromJson(Map<String, dynamic> json) {
|
||||
final rawText = json['text'] as String;
|
||||
final decodedText = Smaz.tryDecodePrefixed(rawText) ?? rawText;
|
||||
final decodedText = json['plainText'] == true
|
||||
? rawText
|
||||
: (Smaz.tryDecodePrefixed(rawText) ?? rawText);
|
||||
|
||||
final rawPathLength = json['pathLength'] as int?;
|
||||
final rawPathBytes = json['pathBytes'] != null
|
||||
@@ -187,12 +281,9 @@ class ChannelMessageStore {
|
||||
),
|
||||
translationModelId: json['translationModelId'] as String?,
|
||||
timestamp: DateTime.fromMillisecondsSinceEpoch(json['timestamp'] as int),
|
||||
receivedAt: legacyAwareReceivedAt(json),
|
||||
isOutgoing: json['isOutgoing'] as bool? ?? false,
|
||||
status:
|
||||
ChannelMessageStatus.values.elementAtOrNull(
|
||||
json['status'] as int? ?? -1,
|
||||
) ??
|
||||
ChannelMessageStatus.failed,
|
||||
status: _statusAt(json['status']) ?? ChannelMessageStatus.failed,
|
||||
repeatCount: (json['repeatCount'] as int?) ?? 0,
|
||||
pathLength: decodedPathLength,
|
||||
pathHashWidth: decodedPathHashWidth,
|
||||
@@ -248,4 +339,15 @@ class ChannelMessageStore {
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
|
||||
/// Out-of-range or non-int values yield null; `elementAtOrNull` throws on
|
||||
/// negative indexes.
|
||||
static ChannelMessageStatus? _statusAt(Object? value) {
|
||||
if (value is! int ||
|
||||
value < 0 ||
|
||||
value >= ChannelMessageStatus.values.length) {
|
||||
return null;
|
||||
}
|
||||
return ChannelMessageStatus.values[value];
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ import 'prefs_manager.dart';
|
||||
|
||||
class ChannelRegionStore {
|
||||
static const String _keyPrefix = 'channel_region_';
|
||||
static const String _defaultKeyPrefix = 'default_region_';
|
||||
|
||||
String publicKeyHex = '';
|
||||
set setPublicKeyHex(String value) =>
|
||||
@@ -10,7 +11,27 @@ class ChannelRegionStore {
|
||||
|
||||
String get keyFor => '$_keyPrefix$publicKeyHex';
|
||||
|
||||
String get _defaultKey => 'default_region_$publicKeyHex';
|
||||
String get _defaultKey => '$_defaultKeyPrefix$publicKeyHex';
|
||||
|
||||
/// Clears every channel and default region assignment equal to [region],
|
||||
/// across all radios. The region list is app-wide, so a deleted region must
|
||||
/// not stay assigned on radios other than the connected one.
|
||||
static Future<void> clearRegionEverywhere(String region) async {
|
||||
final prefs = PrefsManager.instance;
|
||||
final keys = prefs
|
||||
.getKeys()
|
||||
.where(
|
||||
(key) =>
|
||||
key.startsWith(_keyPrefix) || key.startsWith(_defaultKeyPrefix),
|
||||
)
|
||||
.toList();
|
||||
for (final key in keys) {
|
||||
final value = prefs.get(key);
|
||||
if (value is String && value == region) {
|
||||
await prefs.setString(key, '');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
String loadDefaultRegion() {
|
||||
if (publicKeyHex.isEmpty) return '';
|
||||
|
||||
@@ -42,14 +42,22 @@ class ChannelStore {
|
||||
return [];
|
||||
}
|
||||
|
||||
final List<dynamic> jsonList;
|
||||
try {
|
||||
final jsonList = jsonDecode(jsonString) as List<dynamic>;
|
||||
return jsonList
|
||||
.map((entry) => _fromJson(entry as Map<String, dynamic>))
|
||||
.toList();
|
||||
} catch (_) {
|
||||
jsonList = jsonDecode(jsonString) as List<dynamic>;
|
||||
} catch (e) {
|
||||
appLogger.warn('Stored channels are unreadable: $e');
|
||||
return [];
|
||||
}
|
||||
final channels = <Channel>[];
|
||||
for (final entry in jsonList) {
|
||||
try {
|
||||
channels.add(_fromJson(entry as Map<String, dynamic>));
|
||||
} catch (e) {
|
||||
appLogger.warn('Skipping malformed stored channel: $e');
|
||||
}
|
||||
}
|
||||
return channels;
|
||||
}
|
||||
|
||||
Future<void> saveChannels(List<Channel> channels) async {
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'dart:typed_data';
|
||||
|
||||
import '../models/contact.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
import 'legacy_key_migration.dart';
|
||||
import 'prefs_manager.dart';
|
||||
|
||||
class ContactDiscoveryStore {
|
||||
@@ -18,7 +19,7 @@ class ContactDiscoveryStore {
|
||||
if (publicKeyHex.isEmpty) return [];
|
||||
final prefs = PrefsManager.instance;
|
||||
var jsonStr = prefs.getString(keyFor);
|
||||
if (jsonStr == null) {
|
||||
if (jsonStr == null && canMigrateLegacyKeys(publicKeyHex)) {
|
||||
jsonStr = prefs.getString(_keyPrefix);
|
||||
if (jsonStr != null) {
|
||||
await prefs.setString(keyFor, jsonStr);
|
||||
|
||||
+136
-18
@@ -1,5 +1,8 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
import '../models/message.dart';
|
||||
import '../models/translation_support.dart';
|
||||
import '../helpers/smaz.dart';
|
||||
@@ -16,6 +19,19 @@ class MessageStore {
|
||||
|
||||
String get keyFor => '$_keyPrefix$publicKeyHex';
|
||||
|
||||
/// Upper bound on persisted messages per conversation. The oldest entries
|
||||
/// beyond it are dropped on save.
|
||||
static const int maxStoredMessages = 1000;
|
||||
|
||||
/// Encoded entries persisted ahead of the connector's in-memory window,
|
||||
/// keyed by scoped storage key. A missing entry means the window has not
|
||||
/// been reconciled with storage yet, so the next save keeps what is already
|
||||
/// stored instead of replacing it. Shared across instances so a store
|
||||
/// created by a screen to clear a key also resets the connector's view.
|
||||
static final Map<String, List<String>> _archived = {};
|
||||
|
||||
/// Persists [messages] (the in-memory window, oldest first) after the
|
||||
/// archived entries that sit ahead of it in storage.
|
||||
Future<void> saveMessages(
|
||||
String contactKeyHex,
|
||||
List<Message> messages,
|
||||
@@ -26,19 +42,96 @@ class MessageStore {
|
||||
}
|
||||
final prefs = PrefsManager.instance;
|
||||
final key = '$keyFor$contactKeyHex';
|
||||
final jsonList = messages.map(_messageToJson).toList();
|
||||
await prefs.setString(key, jsonEncode(jsonList));
|
||||
final visibleJson = messages.map(_messageToJson).toList();
|
||||
final archived =
|
||||
_archived[key] ??
|
||||
_unreconciledArchive(_readStored(prefs, contactKeyHex), visibleJson);
|
||||
final overflow = archived.length + visibleJson.length - maxStoredMessages;
|
||||
if (overflow > 0) {
|
||||
archived.removeRange(0, overflow.clamp(0, archived.length));
|
||||
}
|
||||
_archived[key] = archived;
|
||||
final entries = [...archived, ...visibleJson.map(jsonEncode)];
|
||||
await prefs.setString(key, '[${entries.join(',')}]');
|
||||
}
|
||||
|
||||
Future<List<Message>> loadMessages(String contactKeyHex) async {
|
||||
if (publicKeyHex.isEmpty) {
|
||||
appLogger.warn('Public key hex is not set. Cannot load messages.');
|
||||
/// Records [olderMessages] as the stored entries that precede the
|
||||
/// in-memory window for [contactKeyHex].
|
||||
void setArchived(String contactKeyHex, List<Message> olderMessages) {
|
||||
_archived['$keyFor$contactKeyHex'] = olderMessages
|
||||
.map((message) => jsonEncode(_messageToJson(message)))
|
||||
.toList();
|
||||
}
|
||||
|
||||
/// Moves [messages], just trimmed from the front of the in-memory window,
|
||||
/// into the archive so the next save keeps them.
|
||||
void archive(String contactKeyHex, List<Message> messages) {
|
||||
final archived = _archived['$keyFor$contactKeyHex'];
|
||||
// Unreconciled saves keep everything already stored anyway.
|
||||
if (archived == null) return;
|
||||
archived.addAll(
|
||||
messages.map((message) => jsonEncode(_messageToJson(message))),
|
||||
);
|
||||
}
|
||||
|
||||
/// Number of stored entries ahead of the in-memory window, or null when
|
||||
/// the window has not been reconciled with storage.
|
||||
int? archivedCount(String contactKeyHex) =>
|
||||
_archived['$keyFor$contactKeyHex']?.length;
|
||||
|
||||
/// Removes the newest [count] archived entries after they were paged back
|
||||
/// into the in-memory window.
|
||||
void unarchiveNewest(String contactKeyHex, int count) {
|
||||
final archived = _archived['$keyFor$contactKeyHex'];
|
||||
if (archived == null || count <= 0) return;
|
||||
archived.removeRange(
|
||||
(archived.length - count).clamp(0, archived.length),
|
||||
archived.length,
|
||||
);
|
||||
}
|
||||
|
||||
/// Drops the archive bookkeeping, for one conversation or all of them,
|
||||
/// when the matching in-memory window is discarded.
|
||||
void forgetArchive([String? contactKeyHex]) {
|
||||
if (contactKeyHex == null) {
|
||||
_archived.clear();
|
||||
} else {
|
||||
_archived.remove('$keyFor$contactKeyHex');
|
||||
}
|
||||
}
|
||||
|
||||
List<String> _unreconciledArchive(
|
||||
String? storedJson,
|
||||
List<Map<String, dynamic>> visibleJson,
|
||||
) {
|
||||
if (storedJson == null || storedJson.isEmpty) return [];
|
||||
final List<dynamic> stored;
|
||||
try {
|
||||
stored = jsonDecode(storedJson) as List<dynamic>;
|
||||
} catch (_) {
|
||||
return [];
|
||||
}
|
||||
final prefs = PrefsManager.instance;
|
||||
final visibleKeys = visibleJson.map(_storedMergeKey).toSet();
|
||||
return [
|
||||
for (final entry in stored)
|
||||
if (entry is Map<String, dynamic> &&
|
||||
!visibleKeys.contains(_storedMergeKey(entry)))
|
||||
jsonEncode(entry),
|
||||
];
|
||||
}
|
||||
|
||||
static String _storedMergeKey(Map<String, dynamic> json) {
|
||||
final messageId = json['messageId'];
|
||||
if (messageId is String && messageId.isNotEmpty) return 'id:$messageId';
|
||||
return 'fallback:${json['timestamp']}:${json['isOutgoing']}:${json['text']}';
|
||||
}
|
||||
|
||||
/// Reads the stored JSON for [contactKeyHex], migrating the legacy unscoped
|
||||
/// key on first access.
|
||||
String? _readStored(SharedPreferences prefs, String contactKeyHex) {
|
||||
final key = '$keyFor$contactKeyHex';
|
||||
final oldKey = '$_keyPrefix$contactKeyHex';
|
||||
String? jsonString = prefs.getString(key);
|
||||
final jsonString = prefs.getString(key);
|
||||
if ((jsonString == null || jsonString.isEmpty) &&
|
||||
canMigrateLegacyKeys(publicKeyHex)) {
|
||||
// Attempt migration from legacy unscoped key on first load
|
||||
@@ -48,10 +141,20 @@ class MessageStore {
|
||||
appLogger.info(
|
||||
'Migrating messages from legacy key $oldKey to scoped key $key',
|
||||
);
|
||||
await prefs.setString(key, legacyJsonString);
|
||||
jsonString = legacyJsonString;
|
||||
prefs.setString(key, legacyJsonString);
|
||||
return legacyJsonString;
|
||||
}
|
||||
}
|
||||
return jsonString;
|
||||
}
|
||||
|
||||
Future<List<Message>> loadMessages(String contactKeyHex) async {
|
||||
if (publicKeyHex.isEmpty) {
|
||||
appLogger.warn('Public key hex is not set. Cannot load messages.');
|
||||
return [];
|
||||
}
|
||||
final prefs = PrefsManager.instance;
|
||||
String? jsonString = _readStored(prefs, contactKeyHex);
|
||||
if (jsonString == null || jsonString.isEmpty) {
|
||||
jsonString = prefs.getString(keyFor);
|
||||
}
|
||||
@@ -84,6 +187,7 @@ class MessageStore {
|
||||
}
|
||||
final prefs = PrefsManager.instance;
|
||||
final key = '$keyFor$contactKeyHex';
|
||||
_archived[key] = [];
|
||||
await prefs.remove(key);
|
||||
}
|
||||
|
||||
@@ -92,6 +196,7 @@ class MessageStore {
|
||||
'senderKey': base64Encode(msg.senderKey),
|
||||
'text': msg.text,
|
||||
'timestamp': msg.timestamp.millisecondsSinceEpoch,
|
||||
'receivedAt': msg.receivedAt.millisecondsSinceEpoch,
|
||||
'isOutgoing': msg.isOutgoing,
|
||||
'isCli': msg.isCli,
|
||||
'status': msg.status.index,
|
||||
@@ -116,13 +221,16 @@ class MessageStore {
|
||||
(key, value) => MapEntry(key, value.index),
|
||||
),
|
||||
'fourByteRoomContactKey': base64Encode(msg.fourByteRoomContactKey),
|
||||
// `text` is stored decoded; legacy records without this flag may still
|
||||
// hold a Smaz payload.
|
||||
'plainText': true,
|
||||
};
|
||||
}
|
||||
|
||||
Message _messageFromJson(Map<String, dynamic> json) {
|
||||
final rawText = json['text'] as String;
|
||||
final isCli = json['isCli'] as bool? ?? false;
|
||||
final decodedText = isCli
|
||||
final decodedText = isCli || json['plainText'] == true
|
||||
? rawText
|
||||
: (Smaz.tryDecodePrefixed(rawText) ?? rawText);
|
||||
|
||||
@@ -158,11 +266,10 @@ class MessageStore {
|
||||
senderKey: Uint8List.fromList(base64Decode(json['senderKey'] as String)),
|
||||
text: decodedText,
|
||||
timestamp: DateTime.fromMillisecondsSinceEpoch(json['timestamp'] as int),
|
||||
receivedAt: legacyAwareReceivedAt(json),
|
||||
isOutgoing: json['isOutgoing'] as bool? ?? false,
|
||||
isCli: isCli,
|
||||
status:
|
||||
MessageStatus.values.elementAtOrNull(json['status'] as int? ?? -1) ??
|
||||
MessageStatus.failed,
|
||||
status: _statusAt(json['status']) ?? MessageStatus.failed,
|
||||
messageId: json['messageId'] as String?,
|
||||
originalText: json['originalText'] as String?,
|
||||
translatedText: json['translatedText'] as String?,
|
||||
@@ -193,11 +300,13 @@ class MessageStore {
|
||||
),
|
||||
) ??
|
||||
{},
|
||||
reactionStatuses:
|
||||
(json['reactionStatuses'] as Map<String, dynamic>?)?.map(
|
||||
(key, value) => MapEntry(key, MessageStatus.values[value as int]),
|
||||
) ??
|
||||
{},
|
||||
reactionStatuses: <String, MessageStatus>{
|
||||
for (final entry
|
||||
in (json['reactionStatuses'] as Map<String, dynamic>? ??
|
||||
const <String, dynamic>{})
|
||||
.entries)
|
||||
entry.key: ?_statusAt(entry.value),
|
||||
},
|
||||
fourByteRoomContactKey: json['fourByteRoomContactKey'] != null
|
||||
? Uint8List.fromList(
|
||||
base64Decode(json['fourByteRoomContactKey'] as String),
|
||||
@@ -205,4 +314,13 @@ class MessageStore {
|
||||
: null,
|
||||
);
|
||||
}
|
||||
|
||||
/// Out-of-range or non-int values yield null; `elementAtOrNull` throws on
|
||||
/// negative indexes.
|
||||
static MessageStatus? _statusAt(Object? value) {
|
||||
if (value is! int || value < 0 || value >= MessageStatus.values.length) {
|
||||
return null;
|
||||
}
|
||||
return MessageStatus.values[value];
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,14 @@
|
||||
import 'package:meshcore_open/storage/channel_region_store.dart';
|
||||
import 'package:meshcore_open/storage/channel_store.dart';
|
||||
|
||||
import 'prefs_manager.dart';
|
||||
|
||||
typedef Region = String;
|
||||
|
||||
/// Stored region assignment meaning "explicitly no region": floods go out
|
||||
/// unscoped even when an app or radio default region exists. '!' cannot occur
|
||||
/// in a region name, so it never collides with a real region.
|
||||
const Region kUnscopedRegion = '!unscoped';
|
||||
|
||||
class RegionStore {
|
||||
static const String key = 'regions';
|
||||
String publicKeyHex = '';
|
||||
@@ -36,20 +40,7 @@ class RegionStore {
|
||||
|
||||
Future<void> removeRegion(Region region) async {
|
||||
final regions = loadRegions();
|
||||
final channelStore = ChannelStore();
|
||||
final channelRegionStore = ChannelRegionStore();
|
||||
channelStore.setPublicKeyHex = publicKeyHex;
|
||||
channelRegionStore.setPublicKeyHex = publicKeyHex;
|
||||
|
||||
for (var channel in await channelStore.loadChannels()) {
|
||||
var channelRegion = await channelRegionStore.loadRegion(channel.index);
|
||||
if (channelRegion == region) {
|
||||
await channelRegionStore.saveRegion(channel.index, '');
|
||||
}
|
||||
}
|
||||
if (channelRegionStore.loadDefaultRegion() == region) {
|
||||
await channelRegionStore.saveDefaultRegion('');
|
||||
}
|
||||
await ChannelRegionStore.clearRegionEverywhere(region);
|
||||
regions.remove(region);
|
||||
saveRegions(regions);
|
||||
}
|
||||
|
||||
@@ -54,12 +54,22 @@ class UnreadStore {
|
||||
return {};
|
||||
}
|
||||
|
||||
final Map<String, dynamic> json;
|
||||
try {
|
||||
final json = jsonDecode(jsonString) as Map<String, dynamic>;
|
||||
return json.map((key, value) => MapEntry(key, value as int));
|
||||
} catch (_) {
|
||||
json = jsonDecode(jsonString) as Map<String, dynamic>;
|
||||
} catch (e) {
|
||||
appLogger.warn('Stored unread counts are unreadable: $e');
|
||||
return {};
|
||||
}
|
||||
final counts = <String, int>{};
|
||||
json.forEach((key, value) {
|
||||
if (value is int) {
|
||||
counts[key] = value;
|
||||
} else if (value is num) {
|
||||
counts[key] = value.toInt();
|
||||
}
|
||||
});
|
||||
return counts;
|
||||
}
|
||||
|
||||
void saveContactUnreadCount(Map<String, int> counts) {
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../l10n/l10n.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
|
||||
/// Small warning shown next to a message time when the sender's clock put
|
||||
/// the timestamp well into the future (#584). The message itself is ordered
|
||||
/// by when it arrived.
|
||||
class FutureTimestampIndicator extends StatelessWidget {
|
||||
final double size;
|
||||
|
||||
const FutureTimestampIndicator({super.key, this.size = 16});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final label = context.l10n.chat_futureTimestampWarning;
|
||||
return Tooltip(
|
||||
message: label,
|
||||
triggerMode: TooltipTriggerMode.tap,
|
||||
child: Semantics(
|
||||
label: label,
|
||||
child: Icon(Icons.update, size: size, color: MeshPalette.warn),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,8 @@ import 'dart:ui' as ui;
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../l10n/l10n.dart';
|
||||
|
||||
class GifMessage extends StatefulWidget {
|
||||
final String url;
|
||||
final Color backgroundColor;
|
||||
@@ -147,7 +149,7 @@ class _GifMessageState extends State<GifMessage> {
|
||||
if (_error != null) {
|
||||
content = Center(
|
||||
child: Text(
|
||||
"Can't load GIF\nTap to retry",
|
||||
context.l10n.gif_loadFailedRetry,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(fontSize: 12, color: widget.fallbackTextColor),
|
||||
),
|
||||
@@ -163,7 +165,7 @@ class _GifMessageState extends State<GifMessage> {
|
||||
} else if (_image == null) {
|
||||
content = Center(
|
||||
child: Text(
|
||||
'Tap to load GIF',
|
||||
context.l10n.gif_tapToLoad,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(fontSize: 12, color: widget.fallbackTextColor),
|
||||
),
|
||||
|
||||
@@ -0,0 +1,310 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../connector/meshcore_protocol.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../l10n/contact_localization.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../models/contact.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import 'mesh_ui.dart';
|
||||
|
||||
/// Opens the nearby-node scan (#570): a zero-hop DISCOVER_REQ whose answers
|
||||
/// are listed live and can be added as contacts.
|
||||
Future<void> showNodeScanSheet(
|
||||
BuildContext context,
|
||||
MeshCoreConnector connector,
|
||||
) {
|
||||
return showMeshSheet<void>(
|
||||
context,
|
||||
builder: (_) => NodeScanSheet(connector: connector),
|
||||
);
|
||||
}
|
||||
|
||||
class NodeScanSheet extends StatefulWidget {
|
||||
const NodeScanSheet({super.key, required this.connector});
|
||||
|
||||
final MeshCoreConnector connector;
|
||||
|
||||
@override
|
||||
State<NodeScanSheet> createState() => _NodeScanSheetState();
|
||||
}
|
||||
|
||||
class _NodeScanSheetState extends State<NodeScanSheet> {
|
||||
final List<NodeDiscoverResponse> _results = [];
|
||||
final Set<String> _adding = {};
|
||||
StreamSubscription<NodeDiscoverResponse>? _subscription;
|
||||
bool _scanning = false;
|
||||
bool _failed = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_startScan();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_subscription?.cancel();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
void _startScan() {
|
||||
_subscription?.cancel();
|
||||
setState(() {
|
||||
_results.clear();
|
||||
_scanning = true;
|
||||
_failed = false;
|
||||
});
|
||||
_subscription = widget.connector.discoverNearbyNodes().listen(
|
||||
(response) {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
_results
|
||||
..add(response)
|
||||
..sort((a, b) => b.snr.compareTo(a.snr));
|
||||
});
|
||||
},
|
||||
onError: (Object _) {
|
||||
if (!mounted) return;
|
||||
setState(() => _failed = true);
|
||||
},
|
||||
onDone: () {
|
||||
if (!mounted) return;
|
||||
setState(() => _scanning = false);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
bool _isContact(NodeDiscoverResponse response) {
|
||||
final keyHex = response.publicKeyHex;
|
||||
return widget.connector.contacts.any(
|
||||
(contact) => contact.publicKeyHex.startsWith(keyHex),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _add(NodeDiscoverResponse response) async {
|
||||
final keyHex = response.publicKeyHex;
|
||||
setState(() => _adding.add(keyHex));
|
||||
final contact = widget.connector.contactForDiscoverResponse(response);
|
||||
var imported = false;
|
||||
try {
|
||||
imported = await widget.connector.importDiscoveredContact(contact);
|
||||
} catch (_) {
|
||||
imported = false;
|
||||
}
|
||||
if (!mounted) return;
|
||||
setState(() => _adding.remove(keyHex));
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(
|
||||
imported
|
||||
? context.l10n.discoveredContacts_contactAdded
|
||||
: context.l10n.contacts_contactImportFailed,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
final scheme = Theme.of(context).colorScheme;
|
||||
final status = _failed
|
||||
? l10n.discoveredContacts_scanFailed
|
||||
: _scanning
|
||||
? l10n.discoveredContacts_scanning
|
||||
: l10n.discoveredContacts_scanFound(_results.length);
|
||||
|
||||
return ConstrainedBox(
|
||||
constraints: BoxConstraints(
|
||||
maxHeight: MediaQuery.sizeOf(context).height * 0.85,
|
||||
),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
BottomSheetHeader(
|
||||
title: l10n.discoveredContacts_scanTitle,
|
||||
subtitle: status,
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(20, 4, 20, 8),
|
||||
child: Text(
|
||||
l10n.discoveredContacts_scanExplanation,
|
||||
style: TextStyle(fontSize: 14, color: scheme.onSurfaceVariant),
|
||||
),
|
||||
),
|
||||
if (_scanning) const LinearProgressIndicator(minHeight: 3),
|
||||
Flexible(
|
||||
child: _results.isEmpty
|
||||
? Padding(
|
||||
padding: const EdgeInsets.all(24),
|
||||
child: _scanning
|
||||
? const SizedBox.shrink()
|
||||
: Text(
|
||||
l10n.discoveredContacts_scanNoResults,
|
||||
textAlign: TextAlign.center,
|
||||
style: const TextStyle(fontSize: 15),
|
||||
),
|
||||
)
|
||||
: ListView.builder(
|
||||
shrinkWrap: true,
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 12,
|
||||
vertical: 8,
|
||||
),
|
||||
itemCount: _results.length,
|
||||
itemBuilder: (context, index) =>
|
||||
_buildResult(context, _results[index]),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 4, 16, 16),
|
||||
child: FilledButton.icon(
|
||||
onPressed: _scanning ? null : _startScan,
|
||||
icon: const Icon(Icons.radar, size: 20),
|
||||
label: Text(l10n.discoveredContacts_scanAgain),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildResult(BuildContext context, NodeDiscoverResponse response) {
|
||||
final l10n = context.l10n;
|
||||
final scheme = Theme.of(context).colorScheme;
|
||||
final contact = widget.connector.contactForDiscoverResponse(response);
|
||||
final known = _isKnownNode(contact);
|
||||
final inContacts = _isContact(response);
|
||||
final adding = _adding.contains(response.publicKeyHex);
|
||||
final color = _typeColor(response.nodeType);
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||
child: MeshCard(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 10),
|
||||
child: Row(
|
||||
children: [
|
||||
AvatarCircle(
|
||||
name: contact.name,
|
||||
size: 42,
|
||||
color: color,
|
||||
icon: _typeIcon(response.nodeType),
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
contact.name,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 16,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
StatusChip(
|
||||
label: contact.typeLabel(l10n).toUpperCase(),
|
||||
color: color,
|
||||
icon: _typeIcon(response.nodeType),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Row(
|
||||
children: [
|
||||
SignalBars(snr: response.snr, height: 16),
|
||||
const SizedBox(width: 6),
|
||||
Expanded(
|
||||
child: Text(
|
||||
l10n.discoveredContacts_scanSignal(
|
||||
response.snr.toStringAsFixed(1),
|
||||
response.remoteSnr.toStringAsFixed(1),
|
||||
),
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
color: scheme.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 2),
|
||||
Text(
|
||||
inContacts
|
||||
? l10n.discoveredContacts_scanInContacts
|
||||
: known
|
||||
? contact.shortPubKeyHex
|
||||
: l10n.discoveredContacts_scanNameLater,
|
||||
style: MeshTheme.mono(
|
||||
fontSize: 12,
|
||||
color: scheme.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
if (inContacts)
|
||||
Icon(Icons.check_circle, size: 24, color: MeshPalette.signal)
|
||||
else if (adding)
|
||||
const SizedBox(
|
||||
width: 24,
|
||||
height: 24,
|
||||
child: CircularProgressIndicator(strokeWidth: 2),
|
||||
)
|
||||
else
|
||||
IconButton(
|
||||
tooltip: l10n.discoveredContacts_addContact,
|
||||
icon: const Icon(Icons.person_add_alt_1),
|
||||
onPressed: response.hasFullKey ? () => _add(response) : null,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
bool _isKnownNode(Contact contact) =>
|
||||
contact.isActive ||
|
||||
widget.connector.discoveredContacts.any(
|
||||
(c) => c.publicKeyHex == contact.publicKeyHex,
|
||||
);
|
||||
|
||||
static Color _typeColor(int type) {
|
||||
switch (type) {
|
||||
case advTypeRepeater:
|
||||
return MeshPalette.warn;
|
||||
case advTypeRoom:
|
||||
return MeshPalette.magenta;
|
||||
case advTypeSensor:
|
||||
return const Color(0xFF4ACCC4); // teal, as in the discovery list
|
||||
default:
|
||||
return MeshPalette.blue;
|
||||
}
|
||||
}
|
||||
|
||||
static IconData? _typeIcon(int type) {
|
||||
switch (type) {
|
||||
case advTypeRepeater:
|
||||
return Icons.cell_tower;
|
||||
case advTypeRoom:
|
||||
return Icons.meeting_room;
|
||||
case advTypeSensor:
|
||||
return Icons.sensors;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,8 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:mobile_scanner/mobile_scanner.dart';
|
||||
|
||||
import '../l10n/l10n.dart';
|
||||
|
||||
/// A reusable QR code scanner widget that can be embedded anywhere.
|
||||
///
|
||||
/// Features:
|
||||
@@ -277,17 +279,17 @@ class _QrScannerWidgetState extends State<QrScannerWidget>
|
||||
|
||||
switch (error.errorCode) {
|
||||
case MobileScannerErrorCode.permissionDenied:
|
||||
message =
|
||||
'Camera permission denied.\nPlease enable camera access in settings.';
|
||||
message = context.l10n.qr_cameraPermissionDenied;
|
||||
icon = Icons.no_photography;
|
||||
break;
|
||||
case MobileScannerErrorCode.unsupported:
|
||||
message = 'Camera not supported on this device.';
|
||||
message = context.l10n.qr_cameraUnsupported;
|
||||
icon = Icons.videocam_off;
|
||||
break;
|
||||
default:
|
||||
message =
|
||||
'Failed to start camera.\n${error.errorDetails?.message ?? ''}';
|
||||
message = context.l10n.qr_cameraStartFailed(
|
||||
error.errorDetails?.message ?? '',
|
||||
);
|
||||
icon = Icons.error_outline;
|
||||
}
|
||||
|
||||
|
||||
@@ -526,6 +526,7 @@ class _ReceivedImageMessageState extends State<ReceivedImageMessage> {
|
||||
png: png,
|
||||
synthesized: entry.synthesized,
|
||||
bytes: entry.bitstreamByteCount,
|
||||
aspectRatio: entry.displayAspectRatio,
|
||||
),
|
||||
),
|
||||
);
|
||||
@@ -609,10 +610,15 @@ class _ReceivedImageViewer extends StatelessWidget {
|
||||
/// the one in the transcript.
|
||||
final int bytes;
|
||||
|
||||
/// Source shape (w/h) to undo the sender's stretch, as in the bubble. Null
|
||||
/// means square or unknown.
|
||||
final double? aspectRatio;
|
||||
|
||||
const _ReceivedImageViewer({
|
||||
required this.png,
|
||||
required this.synthesized,
|
||||
required this.bytes,
|
||||
this.aspectRatio,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -634,7 +640,14 @@ class _ReceivedImageViewer extends StatelessWidget {
|
||||
Flexible(
|
||||
child: Stack(
|
||||
children: [
|
||||
InteractiveViewer(child: Image.memory(png)),
|
||||
InteractiveViewer(
|
||||
// fill inside the original aspect box: the exact
|
||||
// inverse of the sender's stretch, as in the bubble.
|
||||
child: AspectRatio(
|
||||
aspectRatio: aspectRatio ?? 1,
|
||||
child: Image.memory(png, fit: BoxFit.fill),
|
||||
),
|
||||
),
|
||||
if (synthesized)
|
||||
const Positioned(
|
||||
left: 0,
|
||||
|
||||
@@ -52,6 +52,7 @@ class _RepeaterLoginDialogState extends State<RepeaterLoginDialog> {
|
||||
final savedPassword = await _storage.getRepeaterPassword(
|
||||
widget.repeater.publicKeyHex,
|
||||
);
|
||||
if (!mounted) return;
|
||||
if (savedPassword != null) {
|
||||
setState(() {
|
||||
_passwordController.text = savedPassword;
|
||||
@@ -357,7 +358,7 @@ class _RepeaterLoginDialogState extends State<RepeaterLoginDialog> {
|
||||
obscureText: _obscurePassword,
|
||||
// Firmware stores at most 15 bytes (CommonCLI.h password[16]).
|
||||
inputFormatters: const [
|
||||
Utf8LengthLimitingTextInputFormatter(15),
|
||||
Utf8LengthLimitingTextInputFormatter(20),
|
||||
],
|
||||
decoration: InputDecoration(
|
||||
labelText: l10n.login_password,
|
||||
|
||||
@@ -48,6 +48,7 @@ class _RoomLoginDialogState extends State<RoomLoginDialog> {
|
||||
final savedPassword = await _storage.getRepeaterPassword(
|
||||
widget.room.publicKeyHex,
|
||||
);
|
||||
if (!mounted) return;
|
||||
if (savedPassword != null) {
|
||||
setState(() {
|
||||
_passwordController.text = savedPassword;
|
||||
@@ -294,7 +295,7 @@ class _RoomLoginDialogState extends State<RoomLoginDialog> {
|
||||
obscureText: _obscurePassword,
|
||||
// Firmware stores at most 15 bytes (CommonCLI.h password[16]).
|
||||
inputFormatters: const [
|
||||
Utf8LengthLimitingTextInputFormatter(15),
|
||||
Utf8LengthLimitingTextInputFormatter(20),
|
||||
],
|
||||
decoration: InputDecoration(
|
||||
labelText: l10n.login_password,
|
||||
|
||||
Reference in new issue
Block a user