mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-16 23:54:28 +10:00
Compare commits
28 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3a06c36ec4 | |||
| 302589f9f4 | |||
| b8acedd03e | |||
| 17a9db0f0e | |||
| 0a01ecde38 | |||
| 14cec533ac | |||
| fdfc1f6d25 | |||
| 42eb293d1c | |||
| 36401210ce | |||
| a68e1dd428 | |||
| 52a578777d | |||
| 71152bd3eb | |||
| 940a1be203 | |||
| 75a7f437f6 | |||
| e6814b4f48 | |||
| 1589883c88 | |||
| 03b3533675 | |||
| 608b6fb539 | |||
| 04f5c44ed9 | |||
| 4019741a81 | |||
| 152d5f8bb5 | |||
| 3f80ae1cf7 | |||
| 246cf99415 | |||
| 5751cddaa1 | |||
| fa5a0932ee | |||
| cdda232006 | |||
| 63aa515f52 | |||
| aed3b0157a |
@@ -30,7 +30,6 @@ migrate_working_dir/
|
||||
.flutter-plugins-dependencies
|
||||
.pub-cache/
|
||||
.pub/
|
||||
pubspec.lock
|
||||
/build/
|
||||
/coverage/
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
4.0.0
|
||||
@@ -78,7 +78,6 @@ MeshCore Open is a cross-platform mobile application for communicating with Mesh
|
||||
- ✅ **Android**: Full support (API 21+)
|
||||
- ✅ **iOS**: Full support (iOS 12+)
|
||||
- 🚧 **Desktop**: Limited support (macOS/Linux/Windows)
|
||||
- 🚧 **Web**: Under construction (Chrome)
|
||||
|
||||
### Dependencies
|
||||
|
||||
|
||||
@@ -19,13 +19,13 @@ android {
|
||||
ndkVersion = flutter.ndkVersion
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
isCoreLibraryDesugaringEnabled = true
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_17.toString()
|
||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#e3e3e3"><path d="M268-240 42-466l57-56 170 170 56 56-57 56Zm226 0L268-466l56-57 170 170 368-368 56 57-424 424Zm0-226-57-56 198-198 57 56-198 198Z"/></svg>
|
||||
|
Before Width: | Height: | Size: 253 B |
@@ -29,7 +29,6 @@ import '../storage/contact_store.dart';
|
||||
import '../storage/message_store.dart';
|
||||
import '../storage/unread_store.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
import '../utils/battery_utils.dart';
|
||||
import 'meshcore_protocol.dart';
|
||||
|
||||
class MeshCoreUuids {
|
||||
@@ -82,18 +81,6 @@ enum MeshCoreConnectionState {
|
||||
disconnecting,
|
||||
}
|
||||
|
||||
class RepeaterBatterySnapshot {
|
||||
final int millivolts;
|
||||
final DateTime updatedAt;
|
||||
final String source;
|
||||
|
||||
const RepeaterBatterySnapshot({
|
||||
required this.millivolts,
|
||||
required this.updatedAt,
|
||||
required this.source,
|
||||
});
|
||||
}
|
||||
|
||||
class MeshCoreConnector extends ChangeNotifier {
|
||||
// Message windowing to limit memory usage
|
||||
static const int _messageWindowSize = 200;
|
||||
@@ -114,10 +101,6 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
final List<Channel> _channels = [];
|
||||
final Map<String, List<Message>> _conversations = {};
|
||||
final Map<int, List<ChannelMessage>> _channelMessages = {};
|
||||
final List<String> _pendingChannelSentQueue = [];
|
||||
final List<_PendingCommandAck> _pendingGenericAckQueue = [];
|
||||
static const String _reactionSendQueuePrefix = '__reaction_send__';
|
||||
int _reactionSendQueueSequence = 0;
|
||||
final Set<String> _loadedConversationKeys = {};
|
||||
final Map<int, Set<String>> _processedChannelReactions =
|
||||
{}; // channelIndex -> Set of "targetHash_emoji"
|
||||
@@ -143,8 +126,6 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
int? _currentBwHz;
|
||||
int? _currentSf;
|
||||
int? _currentCr;
|
||||
bool? _clientRepeat;
|
||||
int? _firmwareVerCode;
|
||||
int? _batteryMillivolts;
|
||||
double? _selfLatitude;
|
||||
double? _selfLongitude;
|
||||
@@ -204,7 +185,6 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
final Map<String, bool> _contactSmazEnabled = {};
|
||||
final Set<String> _knownContactKeys = {};
|
||||
final Map<String, int> _contactUnreadCount = {};
|
||||
final Map<String, RepeaterBatterySnapshot> _repeaterBatterySnapshots = {};
|
||||
bool _unreadStateLoaded = false;
|
||||
final Map<String, _RepeaterAckContext> _pendingRepeaterAcks = {};
|
||||
String? _activeContactKey;
|
||||
@@ -258,8 +238,6 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
int? get currentBwHz => _currentBwHz;
|
||||
int? get currentSf => _currentSf;
|
||||
int? get currentCr => _currentCr;
|
||||
bool? get clientRepeat => _clientRepeat;
|
||||
int? get firmwareVerCode => _firmwareVerCode;
|
||||
Map<String, String>? get currentCustomVars => _currentCustomVars;
|
||||
int? get batteryMillivolts => _batteryMillivolts;
|
||||
int get maxContacts => _maxContacts;
|
||||
@@ -272,32 +250,10 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
: 0;
|
||||
int? get batteryPercent => _batteryMillivolts == null
|
||||
? null
|
||||
: estimateBatteryPercentFromMillivolts(
|
||||
: _estimateBatteryPercent(
|
||||
_batteryMillivolts!,
|
||||
_batteryChemistryForDevice(),
|
||||
);
|
||||
RepeaterBatterySnapshot? getRepeaterBatterySnapshot(String contactKeyHex) =>
|
||||
_repeaterBatterySnapshots[contactKeyHex];
|
||||
int? getRepeaterBatteryMillivolts(String contactKeyHex) =>
|
||||
_repeaterBatterySnapshots[contactKeyHex]?.millivolts;
|
||||
|
||||
void updateRepeaterBatterySnapshot(
|
||||
String contactKeyHex,
|
||||
int millivolts, {
|
||||
String source = 'unknown',
|
||||
}) {
|
||||
if (contactKeyHex.isEmpty || millivolts <= 0) return;
|
||||
final previous = _repeaterBatterySnapshots[contactKeyHex];
|
||||
final snapshot = RepeaterBatterySnapshot(
|
||||
millivolts: millivolts,
|
||||
updatedAt: DateTime.now(),
|
||||
source: source,
|
||||
);
|
||||
_repeaterBatterySnapshots[contactKeyHex] = snapshot;
|
||||
if (previous?.millivolts != millivolts) {
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
|
||||
String _batteryChemistryForDevice() {
|
||||
final deviceId = _device?.remoteId.toString();
|
||||
@@ -305,6 +261,27 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
return _appSettingsService!.batteryChemistryForDevice(deviceId);
|
||||
}
|
||||
|
||||
int _estimateBatteryPercent(int millivolts, String chemistry) {
|
||||
final range = _batteryVoltageRange(chemistry);
|
||||
final minMv = range.$1;
|
||||
final maxMv = range.$2;
|
||||
if (millivolts <= minMv) return 0;
|
||||
if (millivolts >= maxMv) return 100;
|
||||
return (((millivolts - minMv) * 100) / (maxMv - minMv)).round();
|
||||
}
|
||||
|
||||
(int, int) _batteryVoltageRange(String chemistry) {
|
||||
switch (chemistry) {
|
||||
case 'lifepo4':
|
||||
return (2600, 3650);
|
||||
case 'lipo':
|
||||
return (3000, 4200);
|
||||
case 'nmc':
|
||||
default:
|
||||
return (3000, 4200);
|
||||
}
|
||||
}
|
||||
|
||||
List<Message> getMessages(Contact contact) {
|
||||
return _conversations[contact.publicKeyHex] ?? [];
|
||||
}
|
||||
@@ -669,7 +646,6 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
publicKey: contact.publicKey,
|
||||
name: contact.name,
|
||||
type: contact.type,
|
||||
flags: contact.flags,
|
||||
pathLength: selection.hopCount >= 0
|
||||
? selection.hopCount
|
||||
: contact.pathLength,
|
||||
@@ -978,10 +954,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
_selfName = null;
|
||||
_selfLatitude = null;
|
||||
_selfLongitude = null;
|
||||
_clientRepeat = null;
|
||||
_firmwareVerCode = null;
|
||||
_batteryMillivolts = null;
|
||||
_repeaterBatterySnapshots.clear();
|
||||
_batteryRequested = false;
|
||||
_awaitingSelfInfo = false;
|
||||
_maxContacts = _defaultMaxContacts;
|
||||
@@ -993,9 +966,6 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
_isSyncingChannels = false;
|
||||
_channelSyncInFlight = false;
|
||||
_hasLoadedChannels = false;
|
||||
_pendingChannelSentQueue.clear();
|
||||
_pendingGenericAckQueue.clear();
|
||||
_reactionSendQueueSequence = 0;
|
||||
|
||||
_setState(MeshCoreConnectionState.disconnected);
|
||||
if (!manual) {
|
||||
@@ -1003,11 +973,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> sendFrame(
|
||||
Uint8List data, {
|
||||
String? channelSendQueueId,
|
||||
bool expectsGenericAck = false,
|
||||
}) async {
|
||||
Future<void> sendFrame(Uint8List data) async {
|
||||
if (!isConnected || _rxCharacteristic == null) {
|
||||
throw Exception("Not connected to a MeshCore device");
|
||||
}
|
||||
@@ -1026,11 +992,6 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
data.toList(),
|
||||
withoutResponse: canWriteWithoutResponse,
|
||||
);
|
||||
_trackPendingGenericAck(
|
||||
data,
|
||||
channelSendQueueId: channelSendQueueId,
|
||||
expectsGenericAck: expectsGenericAck,
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> requestBatteryStatus({bool force = false}) async {
|
||||
@@ -1186,78 +1147,11 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
customPath,
|
||||
pathLen,
|
||||
type: contact.type,
|
||||
flags: contact.flags,
|
||||
name: contact.name,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> setContactFavorite(Contact contact, bool isFavorite) async {
|
||||
if (!isConnected) return;
|
||||
final latestContact =
|
||||
await _fetchContactSnapshotFromDevice(contact.publicKey) ?? contact;
|
||||
final updatedFlags = isFavorite
|
||||
? (latestContact.flags | contactFlagFavorite)
|
||||
: (latestContact.flags & ~contactFlagFavorite);
|
||||
|
||||
await sendFrame(
|
||||
buildUpdateContactPathFrame(
|
||||
latestContact.publicKey,
|
||||
latestContact.path,
|
||||
latestContact.pathLength,
|
||||
type: latestContact.type,
|
||||
flags: updatedFlags,
|
||||
name: latestContact.name,
|
||||
),
|
||||
);
|
||||
|
||||
final index = _contacts.indexWhere(
|
||||
(c) => c.publicKeyHex == contact.publicKeyHex,
|
||||
);
|
||||
if (index >= 0) {
|
||||
_contacts[index] = _contacts[index].copyWith(
|
||||
type: latestContact.type,
|
||||
name: latestContact.name,
|
||||
pathLength: latestContact.pathLength,
|
||||
path: latestContact.path,
|
||||
flags: updatedFlags,
|
||||
);
|
||||
notifyListeners();
|
||||
unawaited(_persistContacts());
|
||||
}
|
||||
}
|
||||
|
||||
Future<Contact?> _fetchContactSnapshotFromDevice(
|
||||
Uint8List pubKey, {
|
||||
Duration timeout = const Duration(seconds: 3),
|
||||
}) async {
|
||||
if (!isConnected) return null;
|
||||
final expectedKeyHex = pubKeyToHex(pubKey);
|
||||
final completer = Completer<Contact?>();
|
||||
|
||||
void finish(Contact? result) {
|
||||
if (!completer.isCompleted) {
|
||||
completer.complete(result);
|
||||
}
|
||||
}
|
||||
|
||||
final subscription = receivedFrames.listen((frame) {
|
||||
if (frame.isEmpty || frame[0] != respCodeContact) return;
|
||||
final parsed = Contact.fromFrame(frame);
|
||||
if (parsed == null || parsed.publicKeyHex != expectedKeyHex) return;
|
||||
finish(parsed);
|
||||
});
|
||||
|
||||
final timer = Timer(timeout, () => finish(null));
|
||||
try {
|
||||
await getContactByKey(pubKey);
|
||||
return await completer.future;
|
||||
} finally {
|
||||
timer.cancel();
|
||||
await subscription.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
/// Set path override for a contact (persists across contact refreshes)
|
||||
/// pathLen: -1 = force flood, null = auto (use device path), >= 0 = specific path
|
||||
Future<void> setPathOverride(
|
||||
@@ -1453,13 +1347,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
notifyListeners();
|
||||
|
||||
// Send the reaction to the device (don't add as a visible message)
|
||||
final reactionQueueId = _nextReactionSendQueueId();
|
||||
_pendingChannelSentQueue.add(reactionQueueId);
|
||||
await sendFrame(
|
||||
buildSendChannelTextMsgFrame(channel.index, text),
|
||||
channelSendQueueId: reactionQueueId,
|
||||
expectsGenericAck: true,
|
||||
);
|
||||
await sendFrame(buildSendChannelTextMsgFrame(channel.index, text));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1469,7 +1357,6 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
channel.index,
|
||||
);
|
||||
_addChannelMessage(channel.index, message);
|
||||
_pendingChannelSentQueue.add(message.messageId);
|
||||
notifyListeners();
|
||||
|
||||
final trimmed = text.trim();
|
||||
@@ -1479,11 +1366,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
(isChannelSmazEnabled(channel.index) && !isStructuredPayload)
|
||||
? Smaz.encodeIfSmaller(text)
|
||||
: text;
|
||||
await sendFrame(
|
||||
buildSendChannelTextMsgFrame(channel.index, outboundText),
|
||||
channelSendQueueId: message.messageId,
|
||||
expectsGenericAck: true,
|
||||
);
|
||||
await sendFrame(buildSendChannelTextMsgFrame(channel.index, outboundText));
|
||||
}
|
||||
|
||||
Future<void> removeContact(Contact contact) async {
|
||||
@@ -1830,9 +1713,6 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
debugPrint('RX frame: code=$code len=${frame.length}');
|
||||
|
||||
switch (code) {
|
||||
case respCodeOk:
|
||||
_handleOk();
|
||||
break;
|
||||
case respCodeDeviceInfo:
|
||||
_handleDeviceInfo(frame);
|
||||
break;
|
||||
@@ -1912,34 +1792,11 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
case respCodeCustomVars:
|
||||
_handleCustomVars(frame);
|
||||
break;
|
||||
// RESP_CODE_ERR is a defined firmware response (code 1), not an unknown frame.
|
||||
case respCodeErr:
|
||||
_handleErrorFrame(frame);
|
||||
break;
|
||||
default:
|
||||
debugPrint('Unknown frame code: $code');
|
||||
}
|
||||
}
|
||||
|
||||
void _handleErrorFrame(Uint8List frame) {
|
||||
final errCode = frame.length > 1 ? frame[1] : -1;
|
||||
_appDebugLogService?.warn(
|
||||
'Firmware responded with error code: $errCode',
|
||||
tag: 'Protocol',
|
||||
);
|
||||
|
||||
if (_pendingGenericAckQueue.isEmpty) {
|
||||
return;
|
||||
}
|
||||
|
||||
final failedAck = _pendingGenericAckQueue.removeAt(0);
|
||||
if (failedAck.commandCode != cmdSendChannelTxtMsg ||
|
||||
failedAck.channelSendQueueId == null) {
|
||||
return;
|
||||
}
|
||||
_pendingChannelSentQueue.remove(failedAck.channelSendQueueId);
|
||||
}
|
||||
|
||||
void _handlePathUpdated(Uint8List frame) {
|
||||
// Frame format: [0]=code, [1-32]=pub_key
|
||||
if (frame.length >= 33 && _pathHistoryService != null) {
|
||||
@@ -2008,13 +1865,6 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
|
||||
void _handleDeviceInfo(Uint8List frame) {
|
||||
if (frame.length < 4) return;
|
||||
_firmwareVerCode = frame[1];
|
||||
|
||||
// Parse client_repeat from firmware v9+ (byte 80)
|
||||
if (frame.length >= 81) {
|
||||
_clientRepeat = frame[80] != 0;
|
||||
}
|
||||
|
||||
// Firmware reports MAX_CONTACTS / 2 for v3+ device info.
|
||||
final reportedContacts = frame[2];
|
||||
final reportedChannels = frame[3];
|
||||
@@ -2035,8 +1885,8 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
unawaited(getChannels(maxChannels: nextMaxChannels));
|
||||
}
|
||||
}
|
||||
notifyListeners();
|
||||
}
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void _handleNoMoreMessages() {
|
||||
@@ -2597,8 +2447,6 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
}
|
||||
|
||||
final label = channelName ?? _channelDisplayName(channelIndex);
|
||||
if (_appSettingsService!.isChannelMuted(label)) return;
|
||||
|
||||
_notificationService.showChannelMessageNotification(
|
||||
channelName: label,
|
||||
message: message.text,
|
||||
@@ -2722,22 +2570,8 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
return;
|
||||
}
|
||||
|
||||
final retryService = _retryService;
|
||||
if (retryService != null &&
|
||||
retryService.updateMessageFromSent(
|
||||
ackHash,
|
||||
timeoutMs,
|
||||
allowQueueFallback: false,
|
||||
)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (_markNextPendingChannelMessageSent()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (retryService != null) {
|
||||
retryService.updateMessageFromSent(ackHash, timeoutMs);
|
||||
if (_retryService != null) {
|
||||
_retryService!.updateMessageFromSent(ackHash, timeoutMs);
|
||||
}
|
||||
} else {
|
||||
// Fallback to old behavior
|
||||
@@ -2754,64 +2588,6 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
bool _markNextPendingChannelMessageSent() {
|
||||
while (_pendingChannelSentQueue.isNotEmpty) {
|
||||
final queuedMessageId = _pendingChannelSentQueue.removeAt(0);
|
||||
if (_isReactionSendQueueId(queuedMessageId)) {
|
||||
return true;
|
||||
}
|
||||
if (_markPendingChannelMessageSentById(queuedMessageId)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool _markPendingChannelMessageSentById(String messageId) {
|
||||
for (final entry in _channelMessages.entries) {
|
||||
final channelMessages = entry.value;
|
||||
for (int i = channelMessages.length - 1; i >= 0; i--) {
|
||||
final message = channelMessages[i];
|
||||
if (message.messageId != messageId) {
|
||||
continue;
|
||||
}
|
||||
if (!message.isOutgoing ||
|
||||
message.status != ChannelMessageStatus.pending) {
|
||||
return false;
|
||||
}
|
||||
channelMessages[i] = message.copyWith(
|
||||
status: ChannelMessageStatus.sent,
|
||||
);
|
||||
_pendingChannelSentQueue.remove(messageId);
|
||||
unawaited(
|
||||
_channelMessageStore.saveChannelMessages(entry.key, channelMessages),
|
||||
);
|
||||
notifyListeners();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void _handleOk() {
|
||||
if (_pendingGenericAckQueue.isEmpty) {
|
||||
return;
|
||||
}
|
||||
|
||||
final pendingAck = _pendingGenericAckQueue.removeAt(0);
|
||||
if (pendingAck.commandCode != cmdSendChannelTxtMsg ||
|
||||
pendingAck.channelSendQueueId == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
final queueId = pendingAck.channelSendQueueId!;
|
||||
_pendingChannelSentQueue.remove(queueId);
|
||||
if (_isReactionSendQueueId(queueId)) {
|
||||
return;
|
||||
}
|
||||
_markPendingChannelMessageSentById(queueId);
|
||||
}
|
||||
|
||||
void _handleSendConfirmed(Uint8List frame) {
|
||||
// Frame format from C++:
|
||||
// [0] = PUSH_CODE_SEND_CONFIRMED
|
||||
@@ -3390,22 +3166,18 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
mergedPathBytes.length,
|
||||
);
|
||||
final newRepeatCount = existing.repeatCount + 1;
|
||||
final promotedFromPending =
|
||||
newRepeatCount == 1 &&
|
||||
existing.status == ChannelMessageStatus.pending;
|
||||
messages[existingIndex] = existing.copyWith(
|
||||
repeatCount: newRepeatCount,
|
||||
pathLength: mergedPathLength,
|
||||
pathBytes: mergedPathBytes,
|
||||
pathVariants: mergedPathVariants,
|
||||
// Mark as sent when first repeat is heard
|
||||
status: promotedFromPending
|
||||
status:
|
||||
newRepeatCount == 1 &&
|
||||
existing.status == ChannelMessageStatus.pending
|
||||
? ChannelMessageStatus.sent
|
||||
: existing.status,
|
||||
);
|
||||
if (promotedFromPending) {
|
||||
_pendingChannelSentQueue.remove(existing.messageId);
|
||||
}
|
||||
} else {
|
||||
messages.add(processedMessage);
|
||||
}
|
||||
@@ -3578,37 +3350,11 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
_queuedMessageSyncInFlight = false;
|
||||
_isSyncingChannels = false;
|
||||
_channelSyncInFlight = false;
|
||||
_pendingChannelSentQueue.clear();
|
||||
_pendingGenericAckQueue.clear();
|
||||
_reactionSendQueueSequence = 0;
|
||||
|
||||
_setState(MeshCoreConnectionState.disconnected);
|
||||
_scheduleReconnect();
|
||||
}
|
||||
|
||||
void _trackPendingGenericAck(
|
||||
Uint8List data, {
|
||||
String? channelSendQueueId,
|
||||
required bool expectsGenericAck,
|
||||
}) {
|
||||
if (!expectsGenericAck || data.isEmpty) return;
|
||||
_pendingGenericAckQueue.add(
|
||||
_PendingCommandAck(
|
||||
commandCode: data[0],
|
||||
channelSendQueueId: channelSendQueueId,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
String _nextReactionSendQueueId() {
|
||||
_reactionSendQueueSequence++;
|
||||
return '$_reactionSendQueuePrefix$_reactionSendQueueSequence';
|
||||
}
|
||||
|
||||
bool _isReactionSendQueueId(String queueId) {
|
||||
return queueId.startsWith(_reactionSendQueuePrefix);
|
||||
}
|
||||
|
||||
Map<String, String> _parseKeyValueString(String input) {
|
||||
final result = <String, String>{};
|
||||
|
||||
@@ -3665,33 +3411,27 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
|
||||
void _handleRxData(Uint8List frame) {
|
||||
final packet = BufferReader(frame);
|
||||
double snr = 0.0;
|
||||
int routeType = 0;
|
||||
int payloadType = 0;
|
||||
Uint8List pathBytes = Uint8List(0);
|
||||
Uint8List payload = Uint8List(0);
|
||||
try {
|
||||
packet.skipBytes(1); // Skip frame type byte
|
||||
snr = packet.readInt8() / 4.0;
|
||||
final snr = packet.readInt8() / 4.0;
|
||||
packet.skipBytes(1); // Skip RSSI byte
|
||||
//final rssi = packet.readByte();
|
||||
final header = packet.readByte();
|
||||
routeType = header & 0x03;
|
||||
payloadType = (header >> 2) & 0x0F;
|
||||
final routeType = header & 0x03;
|
||||
final payloadType = (header >> 2) & 0x0F;
|
||||
//final payloadVer = (header >> 6) & 0x03;
|
||||
final pathLen = packet.readByte();
|
||||
pathBytes = packet.readBytes(pathLen);
|
||||
payload = packet.readBytes(packet.remaining);
|
||||
final pathBytes = packet.readBytes(pathLen);
|
||||
final payload = packet.readBytes(packet.remaining);
|
||||
|
||||
switch (payloadType) {
|
||||
case payloadTypeADVERT:
|
||||
_handlePayloadAdvertReceived(payload, pathBytes, routeType, snr);
|
||||
break;
|
||||
default:
|
||||
}
|
||||
} catch (e) {
|
||||
appLogger.warn('Malformed RX frame: $e', tag: 'Connector');
|
||||
return;
|
||||
}
|
||||
|
||||
switch (payloadType) {
|
||||
case payloadTypeADVERT:
|
||||
_handlePayloadAdvertReceived(payload, pathBytes, routeType, snr);
|
||||
break;
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3825,18 +3565,6 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
(r) => r.pubkeyFirstByte == pubkeyFirstByte,
|
||||
);
|
||||
|
||||
final sortedRepeaters = List<DirectRepeater>.from(_directRepeaters)
|
||||
..sort((a, b) => b.snr.compareTo(a.snr));
|
||||
final weakestRepeater = sortedRepeaters.isNotEmpty
|
||||
? sortedRepeaters.last
|
||||
: null;
|
||||
|
||||
if (_directRepeaters.length >= 5 &&
|
||||
weakestRepeater != null &&
|
||||
isTracked.isEmpty) {
|
||||
_directRepeaters.remove(weakestRepeater);
|
||||
}
|
||||
|
||||
if (isTracked.isNotEmpty) {
|
||||
final repeater = isTracked.first;
|
||||
repeater.update(snr);
|
||||
@@ -3904,10 +3632,3 @@ class _RepeaterAckContext {
|
||||
required this.messageBytes,
|
||||
});
|
||||
}
|
||||
|
||||
class _PendingCommandAck {
|
||||
final int commandCode;
|
||||
final String? channelSendQueueId;
|
||||
|
||||
_PendingCommandAck({required this.commandCode, this.channelSendQueueId});
|
||||
}
|
||||
|
||||
@@ -290,7 +290,6 @@ int _minPositive(int a, int b) {
|
||||
const int contactPubKeyOffset = 1;
|
||||
const int contactTypeOffset = 33;
|
||||
const int contactFlagsOffset = 34;
|
||||
const int contactFlagFavorite = 0x01;
|
||||
const int contactPathLenOffset = 35;
|
||||
const int contactPathOffset = 36;
|
||||
const int contactNameOffset = 100;
|
||||
@@ -586,29 +585,18 @@ Uint8List buildSetChannelFrame(int channelIndex, String name, Uint8List psk) {
|
||||
}
|
||||
|
||||
// Build CMD_SET_RADIO_PARAMS frame
|
||||
// Format: [cmd][freq x4][bw x4][sf][cr] (pre-v9)
|
||||
// [cmd][freq x4][bw x4][sf][cr][repeat] (firmware v9+)
|
||||
// Format: [cmd][freq x4][bw x4][sf][cr]
|
||||
// freq: frequency in Hz (300000-2500000)
|
||||
// bw: bandwidth in Hz (7000-500000)
|
||||
// sf: spreading factor (5-12)
|
||||
// cr: coding rate (5-8)
|
||||
// clientRepeat: enable off-grid packet repeat (firmware v9+, omit for older)
|
||||
Uint8List buildSetRadioParamsFrame(
|
||||
int freqHz,
|
||||
int bwHz,
|
||||
int sf,
|
||||
int cr, {
|
||||
bool? clientRepeat,
|
||||
}) {
|
||||
Uint8List buildSetRadioParamsFrame(int freqHz, int bwHz, int sf, int cr) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(cmdSetRadioParams);
|
||||
writer.writeUInt32LE(freqHz);
|
||||
writer.writeUInt32LE(bwHz);
|
||||
writer.writeByte(sf);
|
||||
writer.writeByte(cr);
|
||||
if (clientRepeat != null) {
|
||||
writer.writeByte(clientRepeat ? 1 : 0);
|
||||
}
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:material_symbols_icons/material_symbols_icons.dart';
|
||||
|
||||
class LosIcon extends StatelessWidget {
|
||||
final double size;
|
||||
final Color? color;
|
||||
|
||||
const LosIcon({super.key, this.size = 24, this.color});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
final iconTheme = IconTheme.of(context);
|
||||
final iconColor =
|
||||
color ??
|
||||
iconTheme.color ??
|
||||
theme.iconTheme.color ??
|
||||
theme.colorScheme.onSurface;
|
||||
|
||||
return Icon(Symbols.elevation, size: size, color: iconColor);
|
||||
}
|
||||
}
|
||||
+6
-205
@@ -1,12 +1,4 @@
|
||||
{
|
||||
"channels_channelDeleteFailed": "Неуспешно изтриване на канала \"{name}\"",
|
||||
"@channels_channelDeleteFailed": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@@locale": "bg",
|
||||
"appTitle": "MeshCore Open",
|
||||
"nav_contacts": "Контакти",
|
||||
@@ -139,6 +131,9 @@
|
||||
"settings_infoContactsCount": "Брой контакти",
|
||||
"settings_infoChannelCount": "Брой канали",
|
||||
"settings_presets": "Предварителни настройки",
|
||||
"settings_preset915Mhz": "915 MHz",
|
||||
"settings_preset868Mhz": "868 MHz",
|
||||
"settings_preset433Mhz": "433 MHz",
|
||||
"settings_frequency": "Честота (MHz)",
|
||||
"settings_frequencyHelper": "300.0 - 2500.0",
|
||||
"settings_frequencyInvalid": "Невалидна честота (300-2500 MHz)",
|
||||
@@ -148,6 +143,8 @@
|
||||
"settings_txPower": "TX Мощност (dBm)",
|
||||
"settings_txPowerHelper": "0 - 22",
|
||||
"settings_txPowerInvalid": "Невалидна мощност на TX (0-22 dBm)",
|
||||
"settings_longRange": "Дълъг обхват",
|
||||
"settings_fastSpeed": "Бърза скорост",
|
||||
"settings_error": "Грешка: {message}",
|
||||
"@settings_error": {
|
||||
"placeholders": {
|
||||
@@ -342,8 +339,6 @@
|
||||
"channels_publicChannel": "Публичен канал",
|
||||
"channels_privateChannel": "Частен канал",
|
||||
"channels_editChannel": "Редактирай канал",
|
||||
"channels_muteChannel": "Заглуши канала",
|
||||
"channels_unmuteChannel": "Включи известията на канала",
|
||||
"channels_deleteChannel": "Изтрий канала",
|
||||
"channels_deleteChannelConfirm": "Изтрий \"{name}\"? Това не може да бъде отменено.",
|
||||
"@channels_deleteChannelConfirm": {
|
||||
@@ -1562,8 +1557,6 @@
|
||||
"contacts_clipboardEmpty": "Клипборда е празна.",
|
||||
"contacts_invalidAdvertFormat": "Невалидни данни за контакт",
|
||||
"appSettings_languageRu": "Руски",
|
||||
"appSettings_enableMessageTracing": "Разрешаване на проследяване на съобщения",
|
||||
"appSettings_enableMessageTracingSubtitle": "Показване на подробни метаданни за маршрутизация и синхронизация за съобщения",
|
||||
"contacts_contactImported": "Контактът е импортиран.",
|
||||
"contacts_zeroHopAdvert": "Реклама без скок",
|
||||
"contacts_contactImportFailed": "Контактът не е успешно импортиран.",
|
||||
@@ -1607,197 +1600,5 @@
|
||||
"scanner_enableBluetooth": "Активирайте Bluetooth",
|
||||
"scanner_bluetoothOffMessage": "Моля, активирайте Bluetooth, за да сканирате за устройства.",
|
||||
"snrIndicator_lastSeen": "Последно видян",
|
||||
"snrIndicator_nearByRepeaters": "Близки повтарящи се устройства",
|
||||
"chat_ShowAllPaths": "Покажи всички пътища",
|
||||
"settings_clientRepeatSubtitle": "Позволете на това устройство да предава пакети към мрежата за други устройства.",
|
||||
"settings_clientRepeatFreqWarning": "За повторение извън мрежата са необходими честоти от 433, 869 или 918 MHz.",
|
||||
"settings_clientRepeat": "Без електричество – повторение",
|
||||
"settings_aboutOpenMeteoAttribution": "Данни за надморска височина на LOS: Open-Meteo (CC BY 4.0)",
|
||||
"appSettings_unitsTitle": "единици",
|
||||
"appSettings_unitsMetric": "Метрика (m / km)",
|
||||
"appSettings_unitsImperial": "Имперска (ft / mi)",
|
||||
"map_lineOfSight": "Линия на видимост",
|
||||
"map_losScreenTitle": "Линия на видимост",
|
||||
"losSelectStartEnd": "Изберете начални и крайни възли за LOS.",
|
||||
"losRunFailed": "Проверката на пряката видимост е неуспешна: {error}",
|
||||
"@losRunFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losClearAllPoints": "Изчистете всички точки",
|
||||
"losRunToViewElevationProfile": "Стартирайте LOS, за да видите профила на надморската височина",
|
||||
"losMenuTitle": "LOS меню",
|
||||
"losMenuSubtitle": "Докоснете възли или натиснете продължително карта за персонализирани точки",
|
||||
"losShowDisplayNodes": "Показване на възли на дисплея",
|
||||
"losCustomPoints": "Персонализирани точки",
|
||||
"losCustomPointLabel": "Персонализирано {index}",
|
||||
"@losCustomPointLabel": {
|
||||
"placeholders": {
|
||||
"index": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losPointA": "Точка А",
|
||||
"losPointB": "Точка Б",
|
||||
"losAntennaA": "Антена A: {value} {unit}",
|
||||
"@losAntennaA": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losAntennaB": "Антена B: {value} {unit}",
|
||||
"@losAntennaB": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losRun": "Стартирайте LOS",
|
||||
"losNoElevationData": "Няма данни за надморска височина",
|
||||
"losProfileClear": "{distance} {distanceUnit}, чист LOS, минимално разстояние {clearance} {heightUnit}",
|
||||
"@losProfileClear": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"clearance": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losProfileBlocked": "{distance} {distanceUnit}, блокиран от {obstruction} {heightUnit}",
|
||||
"@losProfileBlocked": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"obstruction": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losStatusChecking": "LOS: проверка...",
|
||||
"losStatusNoData": "LOS: няма данни",
|
||||
"losStatusSummary": "LOS: {clear}/{total} ясно, {blocked} блокирано, {unknown} неизвестно",
|
||||
"@losStatusSummary": {
|
||||
"placeholders": {
|
||||
"clear": {
|
||||
"type": "int"
|
||||
},
|
||||
"total": {
|
||||
"type": "int"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "int"
|
||||
},
|
||||
"unknown": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losErrorElevationUnavailable": "Няма налични данни за надморска височина за една или повече проби.",
|
||||
"losErrorInvalidInput": "Невалидни данни за точки/надморска височина за изчисляване на LOS.",
|
||||
"losRenameCustomPoint": "Преименувайте персонализирана точка",
|
||||
"losPointName": "Име на точката",
|
||||
"losShowPanelTooltip": "Показване на LOS панел",
|
||||
"losHidePanelTooltip": "Скриване на LOS панела",
|
||||
"losElevationAttribution": "Данни за надморска височина: Open-Meteo (CC BY 4.0)",
|
||||
"losLegendRadioHorizon": "Радиохоризонт",
|
||||
"losLegendLosBeam": "Линия на видимост",
|
||||
"losLegendTerrain": "Терен",
|
||||
"losFrequencyLabel": "Честота",
|
||||
"losFrequencyInfoTooltip": "Преглед на детайли за изчислението",
|
||||
"losFrequencyDialogTitle": "Изчисляване на радиохоризонта",
|
||||
"losFrequencyDialogDescription": "Започвайки от k={baselineK} при {baselineFreq} MHz, изчислението коригира k-фактора за текущата {frequencyMHz} MHz лента, която определя границата на извития радиохоризонт.",
|
||||
"@losFrequencyDialogDescription": {
|
||||
"description": "Explain how the calculation uses the baseline frequency and derived k-factor.",
|
||||
"placeholders": {
|
||||
"baselineK": {
|
||||
"type": "double"
|
||||
},
|
||||
"baselineFreq": {
|
||||
"type": "double"
|
||||
},
|
||||
"frequencyMHz": {
|
||||
"type": "double"
|
||||
},
|
||||
"kFactor": {
|
||||
"type": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"listFilter_removeFromFavorites": "Премахване от списъка с любими",
|
||||
"listFilter_addToFavorites": "Добави към любими",
|
||||
"listFilter_favorites": "Любими",
|
||||
"@contacts_searchFavorites": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchUsers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRepeaters": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRoomServers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_searchFavorites": "Търсене на {number}{str} любими...",
|
||||
"contacts_searchRoomServers": "Търсене на {number}{str} сървъри в стаята...",
|
||||
"contacts_unread": "Непрочетено",
|
||||
"contacts_searchRepeaters": "Търсене на {number}{str} повтарящи се...",
|
||||
"contacts_searchContactsNoNumber": "Търси контакти...",
|
||||
"contacts_searchUsers": "Търсене на {number}{str} потребители..."
|
||||
"snrIndicator_nearByRepeaters": "Близки повтарящи се устройства"
|
||||
}
|
||||
|
||||
+6
-205
@@ -1,12 +1,4 @@
|
||||
{
|
||||
"channels_channelDeleteFailed": "Kanal {name} konnte nicht gelöscht werden",
|
||||
"@channels_channelDeleteFailed": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@@locale": "de",
|
||||
"appTitle": "MeshCore Open",
|
||||
"nav_contacts": "Kontakte",
|
||||
@@ -139,6 +131,9 @@
|
||||
"settings_infoContactsCount": "Anzahl Kontakte",
|
||||
"settings_infoChannelCount": "Anzahl Kanäle",
|
||||
"settings_presets": "Voreinstellungen",
|
||||
"settings_preset915Mhz": "915 MHz",
|
||||
"settings_preset868Mhz": "868 MHz",
|
||||
"settings_preset433Mhz": "433 MHz",
|
||||
"settings_frequency": "Frequenz (MHz)",
|
||||
"settings_frequencyHelper": "300,00 - 2.500,00",
|
||||
"settings_frequencyInvalid": "Ungültige Frequenz (300-2500 MHz)",
|
||||
@@ -148,6 +143,8 @@
|
||||
"settings_txPower": "TX-Leistung (dBm)",
|
||||
"settings_txPowerHelper": "0 - 22",
|
||||
"settings_txPowerInvalid": "Ungültige TX-Leistung (0-22 dBm)",
|
||||
"settings_longRange": "Grosse Reichweite",
|
||||
"settings_fastSpeed": "Schnelle Geschwindigkeit",
|
||||
"settings_error": "Fehler: {message}",
|
||||
"@settings_error": {
|
||||
"placeholders": {
|
||||
@@ -342,8 +339,6 @@
|
||||
"channels_publicChannel": "Öffentlicher Kanal",
|
||||
"channels_privateChannel": "Privater Kanal",
|
||||
"channels_editChannel": "Kanal bearbeiten",
|
||||
"channels_muteChannel": "Kanal stummschalten",
|
||||
"channels_unmuteChannel": "Kanal Stummschaltung aufheben",
|
||||
"channels_deleteChannel": "Lösche den Kanal",
|
||||
"channels_deleteChannelConfirm": "Löschen von \"{name}\"? Dies kann nicht rückgängig gemacht werden.",
|
||||
"@channels_deleteChannelConfirm": {
|
||||
@@ -1349,9 +1344,6 @@
|
||||
"listFilter_az": "A-Z",
|
||||
"listFilter_filters": "Filtere",
|
||||
"listFilter_all": "Alle",
|
||||
"listFilter_favorites": "Favoriten",
|
||||
"listFilter_addToFavorites": "Zu Favoriten hinzufügen",
|
||||
"listFilter_removeFromFavorites": "Aus Favoriten entfernen",
|
||||
"listFilter_users": "Benutzer",
|
||||
"listFilter_repeaters": "Repeater",
|
||||
"listFilter_roomServers": "Raumserver",
|
||||
@@ -1565,8 +1557,6 @@
|
||||
"contacts_invalidAdvertFormat": "Ungültige Kontaktdaten",
|
||||
"contacts_clipboardEmpty": "Die Zwischenablage ist leer.",
|
||||
"appSettings_languageUk": "Ukrainisch",
|
||||
"appSettings_enableMessageTracing": "Nachrichtenverfolgung aktivieren",
|
||||
"appSettings_enableMessageTracingSubtitle": "Detaillierte Routing- und Timing-Metadaten für Nachrichten anzeigen",
|
||||
"contacts_contactImported": "Kontakt wurde importiert.",
|
||||
"contacts_contactImportFailed": "Kontakt konnte nicht importiert werden",
|
||||
"contacts_zeroHopAdvert": "Zero-Hop-Ankündigung",
|
||||
@@ -1638,194 +1628,5 @@
|
||||
"scanner_bluetoothOff": "Bluetooth ist deaktiviert.",
|
||||
"scanner_enableBluetooth": "Bluetooth aktivieren",
|
||||
"snrIndicator_lastSeen": "Zuletzt gesehen",
|
||||
"snrIndicator_nearByRepeaters": "In der Nähe befindliche Repeater",
|
||||
"chat_ShowAllPaths": "Alle Pfade anzeigen",
|
||||
"settings_clientRepeat": "Wiederholung, ohne Stromanschluss",
|
||||
"settings_clientRepeatFreqWarning": "Die Kommunikation ohne Stromversorgung erfordert Frequenzen von 433, 869 oder 918 MHz.",
|
||||
"settings_clientRepeatSubtitle": "Ermöglichen Sie diesem Gerät, Mesh-Pakete für andere zu wiederholen.",
|
||||
"settings_aboutOpenMeteoAttribution": "LOS-Höhendaten: Open-Meteo (CC BY 4.0)",
|
||||
"appSettings_unitsTitle": "Einheiten",
|
||||
"appSettings_unitsMetric": "Metrisch (m/km)",
|
||||
"appSettings_unitsImperial": "Imperial (ft/mi)",
|
||||
"map_lineOfSight": "Sichtlinie",
|
||||
"map_losScreenTitle": "Sichtlinie",
|
||||
"losSelectStartEnd": "Wählen Sie Start- und Endknoten für LOS aus.",
|
||||
"losRunFailed": "Sichtlinienprüfung fehlgeschlagen: {error}",
|
||||
"@losRunFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losClearAllPoints": "Löschen Sie alle Punkte",
|
||||
"losRunToViewElevationProfile": "Führen Sie LOS aus, um das Höhenprofil anzuzeigen",
|
||||
"losMenuTitle": "LOS-Menü",
|
||||
"losMenuSubtitle": "Tippen Sie auf Knoten oder drücken Sie lange auf die Karte, um benutzerdefinierte Punkte anzuzeigen",
|
||||
"losShowDisplayNodes": "Anzeigeknoten anzeigen",
|
||||
"losCustomPoints": "Benutzerdefinierte Punkte",
|
||||
"losCustomPointLabel": "Benutzerdefiniert {index}",
|
||||
"@losCustomPointLabel": {
|
||||
"placeholders": {
|
||||
"index": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losPointA": "Punkt A",
|
||||
"losPointB": "Punkt B",
|
||||
"losAntennaA": "Antenne A: {value} {unit}",
|
||||
"@losAntennaA": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losAntennaB": "Antenne B: {value} {unit}",
|
||||
"@losAntennaB": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losRun": "Führen Sie LOS aus",
|
||||
"losNoElevationData": "Keine Höhendaten",
|
||||
"losProfileClear": "{distance} {distanceUnit}, freie Sichtlinie, Mindestabstand {clearance} {heightUnit}",
|
||||
"@losProfileClear": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"clearance": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losProfileBlocked": "{distance} {distanceUnit}, blockiert durch {obstruction} {heightUnit}",
|
||||
"@losProfileBlocked": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"obstruction": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losStatusChecking": "LOS: Überprüfen...",
|
||||
"losStatusNoData": "LOS: keine Daten",
|
||||
"losStatusSummary": "Sichtlinie: {clear}/{total} frei, {blocked} blockiert, {unknown} unbekannt",
|
||||
"@losStatusSummary": {
|
||||
"placeholders": {
|
||||
"clear": {
|
||||
"type": "int"
|
||||
},
|
||||
"total": {
|
||||
"type": "int"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "int"
|
||||
},
|
||||
"unknown": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losErrorElevationUnavailable": "Für eine oder mehrere Proben sind keine Höhendaten verfügbar.",
|
||||
"losErrorInvalidInput": "Ungültige Punkte/Höhendaten für die LOS-Berechnung.",
|
||||
"losRenameCustomPoint": "Benennen Sie den benutzerdefinierten Punkt um",
|
||||
"losPointName": "Punktname",
|
||||
"losShowPanelTooltip": "LOS-Panel anzeigen",
|
||||
"losHidePanelTooltip": "LOS-Panel ausblenden",
|
||||
"losElevationAttribution": "Höhendaten: Open-Meteo (CC BY 4.0)",
|
||||
"losLegendRadioHorizon": "Funkhorizont",
|
||||
"losLegendLosBeam": "Sichtlinie",
|
||||
"losLegendTerrain": "Gelände",
|
||||
"losFrequencyLabel": "Frequenz",
|
||||
"losFrequencyInfoTooltip": "Details zur Berechnung anzeigen",
|
||||
"losFrequencyDialogTitle": "Berechnung des Funkhorizonts",
|
||||
"losFrequencyDialogDescription": "Ausgehend von k={baselineK} bei {baselineFreq} MHz passt die Berechnung den k-Faktor für das aktuelle {frequencyMHz} MHz-Band an, das die gekrümmte Funkhorizontobergrenze definiert.",
|
||||
"@losFrequencyDialogDescription": {
|
||||
"description": "Explain how the calculation uses the baseline frequency and derived k-factor.",
|
||||
"placeholders": {
|
||||
"baselineK": {
|
||||
"type": "double"
|
||||
},
|
||||
"baselineFreq": {
|
||||
"type": "double"
|
||||
},
|
||||
"frequencyMHz": {
|
||||
"type": "double"
|
||||
},
|
||||
"kFactor": {
|
||||
"type": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchFavorites": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchUsers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRepeaters": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRoomServers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_unread": "Ungelesen",
|
||||
"contacts_searchContactsNoNumber": "Kontakte suchen...",
|
||||
"contacts_searchRepeaters": "Suche {number}{str} Repeater...",
|
||||
"contacts_searchFavorites": "Suche {number}{str} Favoriten...",
|
||||
"contacts_searchUsers": "Suche {number}{str} Benutzer...",
|
||||
"contacts_searchRoomServers": "Suche {number}{str} Raumserver..."
|
||||
"snrIndicator_nearByRepeaters": "In der Nähe befindliche Repeater"
|
||||
}
|
||||
|
||||
+170
-610
File diff suppressed because it is too large
Load Diff
+6
-205
@@ -1,12 +1,4 @@
|
||||
{
|
||||
"channels_channelDeleteFailed": "No se pudo eliminar el canal \"{name}\"",
|
||||
"@channels_channelDeleteFailed": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@@locale": "es",
|
||||
"appTitle": "MeshCore Open",
|
||||
"nav_contacts": "Contactos",
|
||||
@@ -139,6 +131,9 @@
|
||||
"settings_infoContactsCount": "Número de contactos",
|
||||
"settings_infoChannelCount": "Número de canales",
|
||||
"settings_presets": "Preajustes",
|
||||
"settings_preset915Mhz": "915 MHz",
|
||||
"settings_preset868Mhz": "868 MHz",
|
||||
"settings_preset433Mhz": "433 MHz",
|
||||
"settings_frequency": "Frecuencia (MHz)",
|
||||
"settings_frequencyHelper": "300,0 - 2500,0",
|
||||
"settings_frequencyInvalid": "Frecuencia inválida (300-2500 MHz)",
|
||||
@@ -148,6 +143,8 @@
|
||||
"settings_txPower": "TX Potencia (dBm)",
|
||||
"settings_txPowerHelper": "0 - 22",
|
||||
"settings_txPowerInvalid": "Potencia de TX inválida (0-22 dBm)",
|
||||
"settings_longRange": "Largo Alcance",
|
||||
"settings_fastSpeed": "Velocidad Rápida",
|
||||
"settings_error": "Error: {message}",
|
||||
"@settings_error": {
|
||||
"placeholders": {
|
||||
@@ -342,8 +339,6 @@
|
||||
"channels_publicChannel": "Canal público",
|
||||
"channels_privateChannel": "Canal privado",
|
||||
"channels_editChannel": "Editar canal",
|
||||
"channels_muteChannel": "Silenciar canal",
|
||||
"channels_unmuteChannel": "Activar canal",
|
||||
"channels_deleteChannel": "Eliminar canal",
|
||||
"channels_deleteChannelConfirm": "Eliminar \"{name}\"? Esto no se puede deshacer.",
|
||||
"@channels_deleteChannelConfirm": {
|
||||
@@ -1561,8 +1556,6 @@
|
||||
"appSettings_languageUk": "Ucraniano",
|
||||
"contacts_clipboardEmpty": "El portapapeles está vacío.",
|
||||
"appSettings_languageRu": "Ruso",
|
||||
"appSettings_enableMessageTracing": "Habilitar seguimiento de mensajes",
|
||||
"appSettings_enableMessageTracingSubtitle": "Mostrar metadatos detallados de enrutamiento y tiempo para los mensajes",
|
||||
"contacts_invalidAdvertFormat": "Datos de contacto no válidos",
|
||||
"contacts_floodAdvert": "Anuncio de inundación",
|
||||
"contacts_contactImported": "El contacto ha sido importado.",
|
||||
@@ -1635,197 +1628,5 @@
|
||||
"scanner_bluetoothOff": "Bluetooth está desactivado.",
|
||||
"scanner_enableBluetooth": "Habilitar Bluetooth",
|
||||
"snrIndicator_nearByRepeaters": "Repetidores cercanos",
|
||||
"snrIndicator_lastSeen": "Visto por última vez",
|
||||
"chat_ShowAllPaths": "Mostrar todos los caminos",
|
||||
"settings_clientRepeatFreqWarning": "Para la comunicación fuera de la red, se requiere una frecuencia de 433, 869 o 918 MHz.",
|
||||
"settings_clientRepeat": "Repetir sin conexión",
|
||||
"settings_clientRepeatSubtitle": "Permita que este dispositivo repita los paquetes de red para otros usuarios.",
|
||||
"settings_aboutOpenMeteoAttribution": "Datos de elevación LOS: Open-Meteo (CC BY 4.0)",
|
||||
"appSettings_unitsTitle": "Unidades",
|
||||
"appSettings_unitsMetric": "Métrico (m/km)",
|
||||
"appSettings_unitsImperial": "Imperial (pies/millas)",
|
||||
"map_lineOfSight": "Línea de visión",
|
||||
"map_losScreenTitle": "Línea de visión",
|
||||
"losSelectStartEnd": "Seleccione los nodos de inicio y fin para LOS.",
|
||||
"losRunFailed": "Error en la comprobación de la línea de visión: {error}",
|
||||
"@losRunFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losClearAllPoints": "Borrar todos los puntos",
|
||||
"losRunToViewElevationProfile": "Ejecute LOS para ver el perfil de elevación",
|
||||
"losMenuTitle": "Menú LOS",
|
||||
"losMenuSubtitle": "Toque nodos o mantenga presionado el mapa para puntos personalizados",
|
||||
"losShowDisplayNodes": "Mostrar nodos de visualización",
|
||||
"losCustomPoints": "Puntos personalizados",
|
||||
"losCustomPointLabel": "Personalizado {index}",
|
||||
"@losCustomPointLabel": {
|
||||
"placeholders": {
|
||||
"index": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losPointA": "Punto A",
|
||||
"losPointB": "Punto B",
|
||||
"losAntennaA": "Antena A: {value} {unit}",
|
||||
"@losAntennaA": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losAntennaB": "Antena B: {value} {unit}",
|
||||
"@losAntennaB": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losRun": "Ejecutar LOS",
|
||||
"losNoElevationData": "Sin datos de elevación",
|
||||
"losProfileClear": "{distance} {distanceUnit}, despejar LOS, autorización mínima {clearance} {heightUnit}",
|
||||
"@losProfileClear": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"clearance": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losProfileBlocked": "{distance} {distanceUnit}, bloqueado por {obstruction} {heightUnit}",
|
||||
"@losProfileBlocked": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"obstruction": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losStatusChecking": "LOS: comprobando...",
|
||||
"losStatusNoData": "LOS: sin datos",
|
||||
"losStatusSummary": "LOS: {clear}/{total} claro, {blocked} bloqueado, {unknown} desconocido",
|
||||
"@losStatusSummary": {
|
||||
"placeholders": {
|
||||
"clear": {
|
||||
"type": "int"
|
||||
},
|
||||
"total": {
|
||||
"type": "int"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "int"
|
||||
},
|
||||
"unknown": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losErrorElevationUnavailable": "Datos de elevación no disponibles para una o más muestras.",
|
||||
"losErrorInvalidInput": "Datos de puntos/elevación no válidos para el cálculo de LOS.",
|
||||
"losRenameCustomPoint": "Cambiar el nombre del punto personalizado",
|
||||
"losPointName": "Nombre del punto",
|
||||
"losShowPanelTooltip": "Mostrar panel LOS",
|
||||
"losHidePanelTooltip": "Ocultar panel LOS",
|
||||
"losElevationAttribution": "Datos de elevación: Open-Meteo (CC BY 4.0)",
|
||||
"losLegendRadioHorizon": "Horizonte radioeléctrico",
|
||||
"losLegendLosBeam": "Línea de visión",
|
||||
"losLegendTerrain": "Terreno",
|
||||
"losFrequencyLabel": "Frecuencia",
|
||||
"losFrequencyInfoTooltip": "Ver detalles del cálculo",
|
||||
"losFrequencyDialogTitle": "Cálculo del horizonte radioeléctrico",
|
||||
"losFrequencyDialogDescription": "A partir de k={baselineK} en {baselineFreq} MHz, el cálculo ajusta el factor k para la banda actual de {frequencyMHz} MHz, que define el límite curvo del horizonte de radio.",
|
||||
"@losFrequencyDialogDescription": {
|
||||
"description": "Explain how the calculation uses the baseline frequency and derived k-factor.",
|
||||
"placeholders": {
|
||||
"baselineK": {
|
||||
"type": "double"
|
||||
},
|
||||
"baselineFreq": {
|
||||
"type": "double"
|
||||
},
|
||||
"frequencyMHz": {
|
||||
"type": "double"
|
||||
},
|
||||
"kFactor": {
|
||||
"type": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"listFilter_favorites": "Favoritos",
|
||||
"listFilter_removeFromFavorites": "Eliminar de las favoritas",
|
||||
"listFilter_addToFavorites": "Añadir a favoritos",
|
||||
"@contacts_searchFavorites": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchUsers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRepeaters": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRoomServers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_searchContactsNoNumber": "Buscar contactos...",
|
||||
"contacts_unread": "No leído",
|
||||
"contacts_searchFavorites": "Buscar {number}{str} Favoritos...",
|
||||
"contacts_searchUsers": "Buscar {number}{str} Usuarios...",
|
||||
"contacts_searchRepeaters": "Buscar {number}{str} Repetidores...",
|
||||
"contacts_searchRoomServers": "Buscar {number}{str} servidores de sala..."
|
||||
"snrIndicator_lastSeen": "Visto por última vez"
|
||||
}
|
||||
|
||||
+9
-208
@@ -1,12 +1,4 @@
|
||||
{
|
||||
"channels_channelDeleteFailed": "Échec de la suppression de la chaîne \"{name}\"",
|
||||
"@channels_channelDeleteFailed": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@@locale": "fr",
|
||||
"appTitle": "MeshCore Open",
|
||||
"nav_contacts": "Contacts",
|
||||
@@ -139,6 +131,9 @@
|
||||
"settings_infoContactsCount": "Nombre de contacts",
|
||||
"settings_infoChannelCount": "Nombre de canaux",
|
||||
"settings_presets": "Préréglages",
|
||||
"settings_preset915Mhz": "915 MHz",
|
||||
"settings_preset868Mhz": "868 MHz",
|
||||
"settings_preset433Mhz": "433 MHz",
|
||||
"settings_frequency": "Fréquence (MHz)",
|
||||
"settings_frequencyHelper": "300,0 - 2 500,0",
|
||||
"settings_frequencyInvalid": "Fréquence invalide (300-2500 MHz)",
|
||||
@@ -148,6 +143,8 @@
|
||||
"settings_txPower": "TX Puissance (dBm)",
|
||||
"settings_txPowerHelper": "0 - 22",
|
||||
"settings_txPowerInvalid": "Puissance TX invalide (0-22 dBm)",
|
||||
"settings_longRange": "Portée Longue",
|
||||
"settings_fastSpeed": "Vitesse Rapide",
|
||||
"settings_error": "Erreur : {message}",
|
||||
"@settings_error": {
|
||||
"placeholders": {
|
||||
@@ -270,7 +267,7 @@
|
||||
}
|
||||
},
|
||||
"contacts_manageRepeater": "Gérer le répéteur",
|
||||
"contacts_roomLogin": "Connexion Room Server",
|
||||
"contacts_roomLogin": "Connexion Salle",
|
||||
"contacts_openChat": "Ouverture du Chat",
|
||||
"contacts_editGroup": "Modifier le groupe",
|
||||
"contacts_deleteGroup": "Supprimer le groupe",
|
||||
@@ -342,8 +339,6 @@
|
||||
"channels_publicChannel": "Canal public",
|
||||
"channels_privateChannel": "Canal privé",
|
||||
"channels_editChannel": "Modifier le canal",
|
||||
"channels_muteChannel": "Désactiver les notifications du canal",
|
||||
"channels_unmuteChannel": "Réactiver les notifications du canal",
|
||||
"channels_deleteChannel": "Supprimer le canal",
|
||||
"channels_deleteChannelConfirm": "Supprimer {name}? Cela ne peut pas être annulé.",
|
||||
"@channels_deleteChannelConfirm": {
|
||||
@@ -806,7 +801,7 @@
|
||||
"dialog_disconnect": "Déconnecter",
|
||||
"dialog_disconnectConfirm": "Êtes-vous sûr de vouloir vous déconnecter de cet appareil ?",
|
||||
"login_repeaterLogin": "Connexion au répéteur",
|
||||
"login_roomLogin": "Connexion Room Server",
|
||||
"login_roomLogin": "Connexion Salle",
|
||||
"login_password": "Mot de passe",
|
||||
"login_enterPassword": "Entrez votre mot de passe",
|
||||
"login_savePassword": "Sauvegarder le mot de passe",
|
||||
@@ -1401,7 +1396,7 @@
|
||||
"settings_locationIntervalSec": "Intervalle de mise-à-jour du GPS (Secondes)",
|
||||
"settings_locationIntervalInvalid": "L'intervalle doit être compris entre 60 et 86400 secondes.",
|
||||
"contacts_manageRoom": "Gérer le Room Server",
|
||||
"room_management": "Administrattion Room Server",
|
||||
"room_management": "Administración del Servidor de Habitación",
|
||||
"@community_joinConfirmation": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
@@ -1561,8 +1556,6 @@
|
||||
"contacts_invalidAdvertFormat": "Données de contact non valides",
|
||||
"appSettings_languageUk": "Ukrainien",
|
||||
"appSettings_languageRu": "Russe",
|
||||
"appSettings_enableMessageTracing": "Activer le traçage des messages",
|
||||
"appSettings_enableMessageTracingSubtitle": "Afficher les métadonnées détaillées de routage et de synchronisation des messages",
|
||||
"contacts_clipboardEmpty": "Le presse-papiers est vide.",
|
||||
"contacts_contactImported": "Le contact a été importé.",
|
||||
"contacts_floodAdvert": "Annonce à tout le réseau",
|
||||
@@ -1607,197 +1600,5 @@
|
||||
"scanner_bluetoothOff": "Le Bluetooth est désactivé.",
|
||||
"scanner_enableBluetooth": "Activer le Bluetooth",
|
||||
"snrIndicator_lastSeen": "Dernière fois vu",
|
||||
"snrIndicator_nearByRepeaters": "Répéteurs à proximité",
|
||||
"chat_ShowAllPaths": "Afficher tous les chemins",
|
||||
"settings_clientRepeatFreqWarning": "Pour les transmissions hors réseau, il est nécessaire d'utiliser les fréquences de 433, 869 ou 918 MHz.",
|
||||
"settings_clientRepeatSubtitle": "Permettez à cet appareil de répéter les paquets de données pour les autres.",
|
||||
"settings_clientRepeat": "Répétition hors réseau",
|
||||
"settings_aboutOpenMeteoAttribution": "Données d'élévation LOS : Open-Meteo (CC BY 4.0)",
|
||||
"appSettings_unitsTitle": "Unités",
|
||||
"appSettings_unitsMetric": "Métrique (m/km)",
|
||||
"appSettings_unitsImperial": "Impérial (ft / mi)",
|
||||
"map_lineOfSight": "Ligne de vue",
|
||||
"map_losScreenTitle": "Ligne de vue",
|
||||
"losSelectStartEnd": "Sélectionnez les nœuds de début et de fin pour LOS.",
|
||||
"losRunFailed": "Échec de la vérification de la ligne de vue : {error}",
|
||||
"@losRunFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losClearAllPoints": "Effacer tous les points",
|
||||
"losRunToViewElevationProfile": "Exécutez LOS pour afficher le profil d'altitude",
|
||||
"losMenuTitle": "Menu LOS",
|
||||
"losMenuSubtitle": "Appuyez sur les nœuds ou appuyez longuement sur la carte pour des points personnalisés",
|
||||
"losShowDisplayNodes": "Afficher les nœuds d'affichage",
|
||||
"losCustomPoints": "Points personnalisés",
|
||||
"losCustomPointLabel": "Personnalisé {index}",
|
||||
"@losCustomPointLabel": {
|
||||
"placeholders": {
|
||||
"index": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losPointA": "Point A",
|
||||
"losPointB": "Point B",
|
||||
"losAntennaA": "Antenne A : {value} {unit}",
|
||||
"@losAntennaA": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losAntennaB": "Antenne B : {value} {unit}",
|
||||
"@losAntennaB": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losRun": "Exécuter la LOS",
|
||||
"losNoElevationData": "Aucune donnée d'altitude",
|
||||
"losProfileClear": "{distance} {distanceUnit}, LOS clair, clairance minimale {clearance} {heightUnit}",
|
||||
"@losProfileClear": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"clearance": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losProfileBlocked": "{distance} {distanceUnit}, bloqué par {obstruction} {heightUnit}",
|
||||
"@losProfileBlocked": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"obstruction": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losStatusChecking": "LOS : vérification...",
|
||||
"losStatusNoData": "LOS : aucune donnée",
|
||||
"losStatusSummary": "LOS : {clear}/{total} clair, {blocked} bloqué, {unknown} inconnu",
|
||||
"@losStatusSummary": {
|
||||
"placeholders": {
|
||||
"clear": {
|
||||
"type": "int"
|
||||
},
|
||||
"total": {
|
||||
"type": "int"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "int"
|
||||
},
|
||||
"unknown": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losErrorElevationUnavailable": "Données d'altitude indisponibles pour un ou plusieurs échantillons.",
|
||||
"losErrorInvalidInput": "Données de points/d'altitude non valides pour le calcul de la LOS.",
|
||||
"losRenameCustomPoint": "Renommer le point personnalisé",
|
||||
"losPointName": "Nom du point",
|
||||
"losShowPanelTooltip": "Afficher le panneau LOS",
|
||||
"losHidePanelTooltip": "Masquer le panneau LOS",
|
||||
"losElevationAttribution": "Données d’altitude : Open-Meteo (CC BY 4.0)",
|
||||
"losLegendRadioHorizon": "Horizon radio",
|
||||
"losLegendLosBeam": "Ligne de visée",
|
||||
"losLegendTerrain": "Terrain",
|
||||
"losFrequencyLabel": "Fréquence",
|
||||
"losFrequencyInfoTooltip": "Voir les détails du calcul",
|
||||
"losFrequencyDialogTitle": "Calcul de l’horizon radio",
|
||||
"losFrequencyDialogDescription": "À partir de k={baselineK} à {baselineFreq} MHz, le calcul ajuste le facteur k pour la bande actuelle de {frequencyMHz} MHz, ce qui définit la limite incurvée de l'horizon radio.",
|
||||
"@losFrequencyDialogDescription": {
|
||||
"description": "Explain how the calculation uses the baseline frequency and derived k-factor.",
|
||||
"placeholders": {
|
||||
"baselineK": {
|
||||
"type": "double"
|
||||
},
|
||||
"baselineFreq": {
|
||||
"type": "double"
|
||||
},
|
||||
"frequencyMHz": {
|
||||
"type": "double"
|
||||
},
|
||||
"kFactor": {
|
||||
"type": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"listFilter_addToFavorites": "Ajouter à mes favoris",
|
||||
"listFilter_removeFromFavorites": "Supprimer des favoris",
|
||||
"listFilter_favorites": "Préférences",
|
||||
"@contacts_searchFavorites": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchUsers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRepeaters": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRoomServers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_unread": "Non lu",
|
||||
"contacts_searchFavorites": "Rechercher {number}{str} Favoris...",
|
||||
"contacts_searchUsers": "Rechercher {number}{str} utilisateurs...",
|
||||
"contacts_searchRoomServers": "Rechercher {number}{str} serveurs de salle...",
|
||||
"contacts_searchRepeaters": "Rechercher {number}{str} Répéteurs...",
|
||||
"contacts_searchContactsNoNumber": "Rechercher des contacts..."
|
||||
"snrIndicator_nearByRepeaters": "Répéteurs à proximité"
|
||||
}
|
||||
|
||||
+6
-205
@@ -1,12 +1,4 @@
|
||||
{
|
||||
"channels_channelDeleteFailed": "Impossibile eliminare il canale \"{name}\"",
|
||||
"@channels_channelDeleteFailed": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@@locale": "it",
|
||||
"appTitle": "MeshCore Open",
|
||||
"nav_contacts": "Contatti",
|
||||
@@ -139,6 +131,9 @@
|
||||
"settings_infoContactsCount": "Numero contatti",
|
||||
"settings_infoChannelCount": "Numero Canale",
|
||||
"settings_presets": "Preset",
|
||||
"settings_preset915Mhz": "915 MHz",
|
||||
"settings_preset868Mhz": "868 MHz",
|
||||
"settings_preset433Mhz": "433 MHz",
|
||||
"settings_frequency": "Frequenza (MHz)",
|
||||
"settings_frequencyHelper": "300,0 - 2500,0",
|
||||
"settings_frequencyInvalid": "Frequenza non valida (300-2500 MHz)",
|
||||
@@ -148,6 +143,8 @@
|
||||
"settings_txPower": "TX Potenza (dBm)",
|
||||
"settings_txPowerHelper": "0 - 22",
|
||||
"settings_txPowerInvalid": "Potere TX non valido (0-22 dBm)",
|
||||
"settings_longRange": "Lungo Raggio",
|
||||
"settings_fastSpeed": "Velocità Rapida",
|
||||
"settings_error": "Errore: {message}",
|
||||
"@settings_error": {
|
||||
"placeholders": {
|
||||
@@ -342,8 +339,6 @@
|
||||
"channels_publicChannel": "Canale pubblico",
|
||||
"channels_privateChannel": "Canale privato",
|
||||
"channels_editChannel": "Modifica canale",
|
||||
"channels_muteChannel": "Silenzia canale",
|
||||
"channels_unmuteChannel": "Attiva notifiche canale",
|
||||
"channels_deleteChannel": "Elimina canale",
|
||||
"channels_deleteChannelConfirm": "Eliminare \"{name}\"? Non può essere annullato.",
|
||||
"@channels_deleteChannelConfirm": {
|
||||
@@ -1561,8 +1556,6 @@
|
||||
"appSettings_languageRu": "Russo",
|
||||
"contacts_invalidAdvertFormat": "Dati di contatto non validi",
|
||||
"appSettings_languageUk": "Ucraino",
|
||||
"appSettings_enableMessageTracing": "Abilita tracciamento messaggi",
|
||||
"appSettings_enableMessageTracingSubtitle": "Mostra metadati dettagliati su instradamento e tempi per i messaggi",
|
||||
"contacts_zeroHopAdvert": "Annuncio Zero Hop",
|
||||
"contacts_floodAdvert": "Annuncio alluvionale",
|
||||
"contacts_copyAdvertToClipboard": "Copia Annuncio negli Appunti",
|
||||
@@ -1607,197 +1600,5 @@
|
||||
"scanner_bluetoothOffMessage": "Si prega di attivare il Bluetooth per effettuare la scansione dei dispositivi.",
|
||||
"scanner_enableBluetooth": "Abilita il Bluetooth",
|
||||
"snrIndicator_nearByRepeaters": "Ripetitori vicini",
|
||||
"snrIndicator_lastSeen": "Ultimo accesso",
|
||||
"chat_ShowAllPaths": "Mostra tutti i percorsi",
|
||||
"settings_clientRepeat": "Ripetizione \"fuori dalla rete\"",
|
||||
"settings_clientRepeatFreqWarning": "Per la comunicazione fuori rete, è necessario utilizzare frequenze di 433, 869 o 918 MHz.",
|
||||
"settings_clientRepeatSubtitle": "Permetti a questo dispositivo di ripetere i pacchetti di rete per gli altri.",
|
||||
"settings_aboutOpenMeteoAttribution": "Dati di elevazione LOS: Open-Meteo (CC BY 4.0)",
|
||||
"appSettings_unitsTitle": "Unità",
|
||||
"appSettings_unitsMetric": "Metrico (m/km)",
|
||||
"appSettings_unitsImperial": "Imperiale (ft / mi)",
|
||||
"map_lineOfSight": "Linea di vista",
|
||||
"map_losScreenTitle": "Linea di vista",
|
||||
"losSelectStartEnd": "Seleziona i nodi iniziali e finali per la LOS.",
|
||||
"losRunFailed": "Controllo della linea di vista fallito: {error}",
|
||||
"@losRunFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losClearAllPoints": "Cancella tutti i punti",
|
||||
"losRunToViewElevationProfile": "Eseguire LOS per visualizzare il profilo altimetrico",
|
||||
"losMenuTitle": "Menù LOS",
|
||||
"losMenuSubtitle": "Tocca i nodi o premi a lungo la mappa per punti personalizzati",
|
||||
"losShowDisplayNodes": "Mostra i nodi di visualizzazione",
|
||||
"losCustomPoints": "Punti personalizzati",
|
||||
"losCustomPointLabel": "Personalizzato {index}",
|
||||
"@losCustomPointLabel": {
|
||||
"placeholders": {
|
||||
"index": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losPointA": "Punto A",
|
||||
"losPointB": "Punto B",
|
||||
"losAntennaA": "Antenna A: {value} {unit}",
|
||||
"@losAntennaA": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losAntennaB": "Antenna B: {value} {unit}",
|
||||
"@losAntennaB": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losRun": "Esegui LOS",
|
||||
"losNoElevationData": "Nessun dato di elevazione",
|
||||
"losProfileClear": "{distance} {distanceUnit}, libera LOS, distanza minima {clearance} {heightUnit}",
|
||||
"@losProfileClear": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"clearance": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losProfileBlocked": "{distance} {distanceUnit}, bloccato da {obstruction} {heightUnit}",
|
||||
"@losProfileBlocked": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"obstruction": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losStatusChecking": "LOS: controllo...",
|
||||
"losStatusNoData": "LOS: nessun dato",
|
||||
"losStatusSummary": "LOS: {clear}/{total} libera, {blocked} bloccato, {unknown} sconosciuto",
|
||||
"@losStatusSummary": {
|
||||
"placeholders": {
|
||||
"clear": {
|
||||
"type": "int"
|
||||
},
|
||||
"total": {
|
||||
"type": "int"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "int"
|
||||
},
|
||||
"unknown": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losErrorElevationUnavailable": "Dati di elevazione non disponibili per uno o più campioni.",
|
||||
"losErrorInvalidInput": "Dati punti/elevazione non validi per il calcolo della LOS.",
|
||||
"losRenameCustomPoint": "Rinomina punto personalizzato",
|
||||
"losPointName": "Nome del punto",
|
||||
"losShowPanelTooltip": "Mostra il pannello LOS",
|
||||
"losHidePanelTooltip": "Nascondi il pannello LOS",
|
||||
"losElevationAttribution": "Dati di elevazione: Open-Meteo (CC BY 4.0)",
|
||||
"losLegendRadioHorizon": "Orizzonte radio",
|
||||
"losLegendLosBeam": "Linea di vista",
|
||||
"losLegendTerrain": "Terreno",
|
||||
"losFrequencyLabel": "Frequenza",
|
||||
"losFrequencyInfoTooltip": "Visualizza i dettagli del calcolo",
|
||||
"losFrequencyDialogTitle": "Calcolo dell’orizzonte radio",
|
||||
"losFrequencyDialogDescription": "Partendo da k={baselineK} a {baselineFreq} MHz, il calcolo regola il fattore k per l'attuale banda {frequencyMHz} MHz, che definisce il limite curvo dell'orizzonte radio.",
|
||||
"@losFrequencyDialogDescription": {
|
||||
"description": "Explain how the calculation uses the baseline frequency and derived k-factor.",
|
||||
"placeholders": {
|
||||
"baselineK": {
|
||||
"type": "double"
|
||||
},
|
||||
"baselineFreq": {
|
||||
"type": "double"
|
||||
},
|
||||
"frequencyMHz": {
|
||||
"type": "double"
|
||||
},
|
||||
"kFactor": {
|
||||
"type": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"listFilter_addToFavorites": "Aggiungi ai preferiti",
|
||||
"listFilter_removeFromFavorites": "Rimuovi dai preferiti",
|
||||
"listFilter_favorites": "Preferiti",
|
||||
"@contacts_searchFavorites": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchUsers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRepeaters": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRoomServers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_searchUsers": "Cerca {number}{str} Utenti...",
|
||||
"contacts_searchContactsNoNumber": "Cerca Contatti...",
|
||||
"contacts_searchFavorites": "Cerca {number}{str} Preferiti...",
|
||||
"contacts_unread": "Non letti",
|
||||
"contacts_searchRepeaters": "Cerca {number}{str} Ripetitori...",
|
||||
"contacts_searchRoomServers": "Cerca {number}{str} server Room..."
|
||||
"snrIndicator_lastSeen": "Ultimo accesso"
|
||||
}
|
||||
|
||||
+26
-359
@@ -700,12 +700,6 @@ abstract class AppLocalizations {
|
||||
/// **'An open-source Flutter client for MeshCore LoRa mesh networking devices.'**
|
||||
String get settings_aboutDescription;
|
||||
|
||||
/// No description provided for @settings_aboutOpenMeteoAttribution.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'LOS elevation data: Open-Meteo (CC BY 4.0)'**
|
||||
String get settings_aboutOpenMeteoAttribution;
|
||||
|
||||
/// No description provided for @settings_infoName.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -754,6 +748,24 @@ abstract class AppLocalizations {
|
||||
/// **'Presets'**
|
||||
String get settings_presets;
|
||||
|
||||
/// No description provided for @settings_preset915Mhz.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'915 MHz'**
|
||||
String get settings_preset915Mhz;
|
||||
|
||||
/// No description provided for @settings_preset868Mhz.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'868 MHz'**
|
||||
String get settings_preset868Mhz;
|
||||
|
||||
/// No description provided for @settings_preset433Mhz.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'433 MHz'**
|
||||
String get settings_preset433Mhz;
|
||||
|
||||
/// No description provided for @settings_frequency.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -808,23 +820,17 @@ abstract class AppLocalizations {
|
||||
/// **'Invalid TX power (0-22 dBm)'**
|
||||
String get settings_txPowerInvalid;
|
||||
|
||||
/// No description provided for @settings_clientRepeat.
|
||||
/// No description provided for @settings_longRange.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Off-Grid Repeat'**
|
||||
String get settings_clientRepeat;
|
||||
/// **'Long Range'**
|
||||
String get settings_longRange;
|
||||
|
||||
/// No description provided for @settings_clientRepeatSubtitle.
|
||||
/// No description provided for @settings_fastSpeed.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Allow this device to repeat mesh packets for others'**
|
||||
String get settings_clientRepeatSubtitle;
|
||||
|
||||
/// No description provided for @settings_clientRepeatFreqWarning.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Off-grid repeat requires 433, 869, or 918 MHz frequency'**
|
||||
String get settings_clientRepeatFreqWarning;
|
||||
/// **'Fast Speed'**
|
||||
String get settings_fastSpeed;
|
||||
|
||||
/// No description provided for @settings_error.
|
||||
///
|
||||
@@ -970,18 +976,6 @@ abstract class AppLocalizations {
|
||||
/// **'Українська'**
|
||||
String get appSettings_languageUk;
|
||||
|
||||
/// No description provided for @appSettings_enableMessageTracing.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Enable Message Tracing'**
|
||||
String get appSettings_enableMessageTracing;
|
||||
|
||||
/// No description provided for @appSettings_enableMessageTracingSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Show detailed routing and timing metadata for messages'**
|
||||
String get appSettings_enableMessageTracingSubtitle;
|
||||
|
||||
/// No description provided for @appSettings_notifications.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -1258,24 +1252,6 @@ abstract class AppLocalizations {
|
||||
/// **'Offline Map Cache'**
|
||||
String get appSettings_offlineMapCache;
|
||||
|
||||
/// No description provided for @appSettings_unitsTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Units'**
|
||||
String get appSettings_unitsTitle;
|
||||
|
||||
/// No description provided for @appSettings_unitsMetric.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Metric (m / km)'**
|
||||
String get appSettings_unitsMetric;
|
||||
|
||||
/// No description provided for @appSettings_unitsImperial.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Imperial (ft / mi)'**
|
||||
String get appSettings_unitsImperial;
|
||||
|
||||
/// No description provided for @appSettings_noAreaSelected.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -1336,47 +1312,11 @@ abstract class AppLocalizations {
|
||||
/// **'Contacts will appear when devices advertise'**
|
||||
String get contacts_contactsWillAppear;
|
||||
|
||||
/// No description provided for @contacts_unread.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Unread'**
|
||||
String get contacts_unread;
|
||||
|
||||
/// No description provided for @contacts_searchContactsNoNumber.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Search Contacts...'**
|
||||
String get contacts_searchContactsNoNumber;
|
||||
|
||||
/// No description provided for @contacts_searchContacts.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Search {number}{str} Contacts...'**
|
||||
String contacts_searchContacts(int number, String str);
|
||||
|
||||
/// No description provided for @contacts_searchFavorites.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Search {number}{str} Favorites...'**
|
||||
String contacts_searchFavorites(int number, String str);
|
||||
|
||||
/// No description provided for @contacts_searchUsers.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Search {number}{str} Users...'**
|
||||
String contacts_searchUsers(int number, String str);
|
||||
|
||||
/// No description provided for @contacts_searchRepeaters.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Search {number}{str} Repeaters...'**
|
||||
String contacts_searchRepeaters(int number, String str);
|
||||
|
||||
/// No description provided for @contacts_searchRoomServers.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Search {number}{str} Room servers...'**
|
||||
String contacts_searchRoomServers(int number, String str);
|
||||
/// **'Search contacts...'**
|
||||
String get contacts_searchContacts;
|
||||
|
||||
/// No description provided for @contacts_noUnreadContacts.
|
||||
///
|
||||
@@ -1594,18 +1534,6 @@ abstract class AppLocalizations {
|
||||
/// **'Edit channel'**
|
||||
String get channels_editChannel;
|
||||
|
||||
/// No description provided for @channels_muteChannel.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Mute channel'**
|
||||
String get channels_muteChannel;
|
||||
|
||||
/// No description provided for @channels_unmuteChannel.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Unmute channel'**
|
||||
String get channels_unmuteChannel;
|
||||
|
||||
/// No description provided for @channels_deleteChannel.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -1618,12 +1546,6 @@ abstract class AppLocalizations {
|
||||
/// **'Delete \"{name}\"? This cannot be undone.'**
|
||||
String channels_deleteChannelConfirm(String name);
|
||||
|
||||
/// No description provided for @channels_channelDeleteFailed.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Failed to delete channel \"{name}\"'**
|
||||
String channels_channelDeleteFailed(String name);
|
||||
|
||||
/// No description provided for @channels_channelDeleted.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -2122,12 +2044,6 @@ abstract class AppLocalizations {
|
||||
/// **'Path Management'**
|
||||
String get chat_pathManagement;
|
||||
|
||||
/// No description provided for @chat_ShowAllPaths.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Show all paths'**
|
||||
String get chat_ShowAllPaths;
|
||||
|
||||
/// No description provided for @chat_routingMode.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -2380,18 +2296,6 @@ abstract class AppLocalizations {
|
||||
/// **'Node Map'**
|
||||
String get map_title;
|
||||
|
||||
/// No description provided for @map_lineOfSight.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Line of Sight'**
|
||||
String get map_lineOfSight;
|
||||
|
||||
/// No description provided for @map_losScreenTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Line of Sight'**
|
||||
String get map_losScreenTitle;
|
||||
|
||||
/// No description provided for @map_noNodesWithLocation.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -4808,24 +4712,6 @@ abstract class AppLocalizations {
|
||||
/// **'All'**
|
||||
String get listFilter_all;
|
||||
|
||||
/// No description provided for @listFilter_favorites.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Favorites'**
|
||||
String get listFilter_favorites;
|
||||
|
||||
/// No description provided for @listFilter_addToFavorites.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Add to favorites'**
|
||||
String get listFilter_addToFavorites;
|
||||
|
||||
/// No description provided for @listFilter_removeFromFavorites.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Remove from favorites'**
|
||||
String get listFilter_removeFromFavorites;
|
||||
|
||||
/// No description provided for @listFilter_users.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -4892,225 +4778,6 @@ abstract class AppLocalizations {
|
||||
/// **'Clear path.'**
|
||||
String get pathTrace_clearTooltip;
|
||||
|
||||
/// No description provided for @losSelectStartEnd.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Select start and end nodes for LOS.'**
|
||||
String get losSelectStartEnd;
|
||||
|
||||
/// No description provided for @losRunFailed.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Line-of-sight check failed: {error}'**
|
||||
String losRunFailed(String error);
|
||||
|
||||
/// No description provided for @losClearAllPoints.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Clear all points'**
|
||||
String get losClearAllPoints;
|
||||
|
||||
/// No description provided for @losRunToViewElevationProfile.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Run LOS to view elevation profile'**
|
||||
String get losRunToViewElevationProfile;
|
||||
|
||||
/// No description provided for @losMenuTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'LOS Menu'**
|
||||
String get losMenuTitle;
|
||||
|
||||
/// No description provided for @losMenuSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Tap nodes or long-press map for custom points'**
|
||||
String get losMenuSubtitle;
|
||||
|
||||
/// No description provided for @losShowDisplayNodes.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Show display nodes'**
|
||||
String get losShowDisplayNodes;
|
||||
|
||||
/// No description provided for @losCustomPoints.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Custom points'**
|
||||
String get losCustomPoints;
|
||||
|
||||
/// No description provided for @losCustomPointLabel.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Custom {index}'**
|
||||
String losCustomPointLabel(int index);
|
||||
|
||||
/// No description provided for @losPointA.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Point A'**
|
||||
String get losPointA;
|
||||
|
||||
/// No description provided for @losPointB.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Point B'**
|
||||
String get losPointB;
|
||||
|
||||
/// No description provided for @losAntennaA.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Antenna A: {value} {unit}'**
|
||||
String losAntennaA(String value, String unit);
|
||||
|
||||
/// No description provided for @losAntennaB.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Antenna B: {value} {unit}'**
|
||||
String losAntennaB(String value, String unit);
|
||||
|
||||
/// No description provided for @losRun.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Run LOS'**
|
||||
String get losRun;
|
||||
|
||||
/// No description provided for @losNoElevationData.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'No elevation data'**
|
||||
String get losNoElevationData;
|
||||
|
||||
/// No description provided for @losProfileClear.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'{distance} {distanceUnit}, clear LOS, min clearance {clearance} {heightUnit}'**
|
||||
String losProfileClear(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String clearance,
|
||||
String heightUnit,
|
||||
);
|
||||
|
||||
/// No description provided for @losProfileBlocked.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'{distance} {distanceUnit}, blocked by {obstruction} {heightUnit}'**
|
||||
String losProfileBlocked(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String obstruction,
|
||||
String heightUnit,
|
||||
);
|
||||
|
||||
/// No description provided for @losStatusChecking.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'LOS: checking...'**
|
||||
String get losStatusChecking;
|
||||
|
||||
/// No description provided for @losStatusNoData.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'LOS: no data'**
|
||||
String get losStatusNoData;
|
||||
|
||||
/// No description provided for @losStatusSummary.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'LOS: {clear}/{total} clear, {blocked} blocked, {unknown} unknown'**
|
||||
String losStatusSummary(int clear, int total, int blocked, int unknown);
|
||||
|
||||
/// No description provided for @losErrorElevationUnavailable.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Elevation data unavailable for one or more samples.'**
|
||||
String get losErrorElevationUnavailable;
|
||||
|
||||
/// No description provided for @losErrorInvalidInput.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Invalid points/elevation data for LOS calculation.'**
|
||||
String get losErrorInvalidInput;
|
||||
|
||||
/// No description provided for @losRenameCustomPoint.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Rename custom point'**
|
||||
String get losRenameCustomPoint;
|
||||
|
||||
/// No description provided for @losPointName.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Point name'**
|
||||
String get losPointName;
|
||||
|
||||
/// No description provided for @losShowPanelTooltip.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Show LOS panel'**
|
||||
String get losShowPanelTooltip;
|
||||
|
||||
/// No description provided for @losHidePanelTooltip.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Hide LOS panel'**
|
||||
String get losHidePanelTooltip;
|
||||
|
||||
/// No description provided for @losElevationAttribution.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Elevation data: Open-Meteo (CC BY 4.0)'**
|
||||
String get losElevationAttribution;
|
||||
|
||||
/// No description provided for @losLegendRadioHorizon.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Radio horizon'**
|
||||
String get losLegendRadioHorizon;
|
||||
|
||||
/// No description provided for @losLegendLosBeam.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'LOS beam'**
|
||||
String get losLegendLosBeam;
|
||||
|
||||
/// No description provided for @losLegendTerrain.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Terrain'**
|
||||
String get losLegendTerrain;
|
||||
|
||||
/// No description provided for @losFrequencyLabel.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Frequency'**
|
||||
String get losFrequencyLabel;
|
||||
|
||||
/// No description provided for @losFrequencyInfoTooltip.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'View calculation details'**
|
||||
String get losFrequencyInfoTooltip;
|
||||
|
||||
/// No description provided for @losFrequencyDialogTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Radio horizon calculation'**
|
||||
String get losFrequencyDialogTitle;
|
||||
|
||||
/// Explain how the calculation uses the baseline frequency and derived k-factor.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Starting from k={baselineK} at {baselineFreq} MHz, the calculation adjusts the k-factor for the current {frequencyMHz} MHz band, which defines the curved radio horizon cap.'**
|
||||
String losFrequencyDialogDescription(
|
||||
double baselineK,
|
||||
double baselineFreq,
|
||||
double frequencyMHz,
|
||||
double kFactor,
|
||||
);
|
||||
|
||||
/// No description provided for @contacts_pathTrace.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
|
||||
@@ -326,10 +326,6 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
String get settings_aboutDescription =>
|
||||
'Отворен софтуер за Flutter клиент за MeshCore LoRa мрежови устройства.';
|
||||
|
||||
@override
|
||||
String get settings_aboutOpenMeteoAttribution =>
|
||||
'Данни за надморска височина на LOS: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get settings_infoName => 'Име';
|
||||
|
||||
@@ -354,6 +350,15 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get settings_presets => 'Предварителни настройки';
|
||||
|
||||
@override
|
||||
String get settings_preset915Mhz => '915 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset868Mhz => '868 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset433Mhz => '433 MHz';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Честота (MHz)';
|
||||
|
||||
@@ -382,15 +387,10 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
String get settings_txPowerInvalid => 'Невалидна мощност на TX (0-22 dBm)';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeat => 'Без електричество – повторение';
|
||||
String get settings_longRange => 'Дълъг обхват';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatSubtitle =>
|
||||
'Позволете на това устройство да предава пакети към мрежата за други устройства.';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatFreqWarning =>
|
||||
'За повторение извън мрежата са необходими честоти от 433, 869 или 918 MHz.';
|
||||
String get settings_fastSpeed => 'Бърза скорост';
|
||||
|
||||
@override
|
||||
String settings_error(String message) {
|
||||
@@ -466,14 +466,6 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_languageUk => 'Украински';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Разрешаване на проследяване на съобщения';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Показване на подробни метаданни за маршрутизация и синхронизация за съобщения';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Уведомления';
|
||||
|
||||
@@ -634,15 +626,6 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_offlineMapCache => 'Кеш на офлайн карти';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsTitle => 'единици';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsMetric => 'Метрика (m / km)';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsImperial => 'Имперска (ft / mi)';
|
||||
|
||||
@override
|
||||
String get appSettings_noAreaSelected => 'Няма избрана област';
|
||||
|
||||
@@ -681,35 +664,7 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
'Контактите ще се появят, когато устройствата рекламират.';
|
||||
|
||||
@override
|
||||
String get contacts_unread => 'Непрочетено';
|
||||
|
||||
@override
|
||||
String get contacts_searchContactsNoNumber => 'Търси контакти...';
|
||||
|
||||
@override
|
||||
String contacts_searchContacts(int number, String str) {
|
||||
return 'Търсене на контакти...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchFavorites(int number, String str) {
|
||||
return 'Търсене на $number$str любими...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchUsers(int number, String str) {
|
||||
return 'Търсене на $number$str потребители...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRepeaters(int number, String str) {
|
||||
return 'Търсене на $number$str повтарящи се...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRoomServers(int number, String str) {
|
||||
return 'Търсене на $number$str сървъри в стаята...';
|
||||
}
|
||||
String get contacts_searchContacts => 'Търсене на контакти...';
|
||||
|
||||
@override
|
||||
String get contacts_noUnreadContacts => 'Няма непрочетени контакти';
|
||||
@@ -834,12 +789,6 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get channels_editChannel => 'Редактирай канал';
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Заглуши канала';
|
||||
|
||||
@override
|
||||
String get channels_unmuteChannel => 'Включи известията на канала';
|
||||
|
||||
@override
|
||||
String get channels_deleteChannel => 'Изтрий канала';
|
||||
|
||||
@@ -848,11 +797,6 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
return 'Изтрий \"$name\"? Това не може да бъде отменено.';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleteFailed(String name) {
|
||||
return 'Неуспешно изтриване на канала \"$name\"';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleted(String name) {
|
||||
return 'Каналът \"$name\" е изтрит';
|
||||
@@ -1140,9 +1084,6 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get chat_pathManagement => 'Управление на пътища';
|
||||
|
||||
@override
|
||||
String get chat_ShowAllPaths => 'Покажи всички пътища';
|
||||
|
||||
@override
|
||||
String get chat_routingMode => 'Режим на маршрутизиране';
|
||||
|
||||
@@ -1303,12 +1244,6 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get map_title => 'Карта на възлите';
|
||||
|
||||
@override
|
||||
String get map_lineOfSight => 'Линия на видимост';
|
||||
|
||||
@override
|
||||
String get map_losScreenTitle => 'Линия на видимост';
|
||||
|
||||
@override
|
||||
String get map_noNodesWithLocation => 'Няма възли с данни за местоположение.';
|
||||
|
||||
@@ -2756,15 +2691,6 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get listFilter_all => 'Всички';
|
||||
|
||||
@override
|
||||
String get listFilter_favorites => 'Любими';
|
||||
|
||||
@override
|
||||
String get listFilter_addToFavorites => 'Добави към любими';
|
||||
|
||||
@override
|
||||
String get listFilter_removeFromFavorites => 'Премахване от списъка с любими';
|
||||
|
||||
@override
|
||||
String get listFilter_users => 'Потребители';
|
||||
|
||||
@@ -2799,144 +2725,6 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get pathTrace_clearTooltip => 'Изчисти пътя';
|
||||
|
||||
@override
|
||||
String get losSelectStartEnd => 'Изберете начални и крайни възли за LOS.';
|
||||
|
||||
@override
|
||||
String losRunFailed(String error) {
|
||||
return 'Проверката на пряката видимост е неуспешна: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losClearAllPoints => 'Изчистете всички точки';
|
||||
|
||||
@override
|
||||
String get losRunToViewElevationProfile =>
|
||||
'Стартирайте LOS, за да видите профила на надморската височина';
|
||||
|
||||
@override
|
||||
String get losMenuTitle => 'LOS меню';
|
||||
|
||||
@override
|
||||
String get losMenuSubtitle =>
|
||||
'Докоснете възли или натиснете продължително карта за персонализирани точки';
|
||||
|
||||
@override
|
||||
String get losShowDisplayNodes => 'Показване на възли на дисплея';
|
||||
|
||||
@override
|
||||
String get losCustomPoints => 'Персонализирани точки';
|
||||
|
||||
@override
|
||||
String losCustomPointLabel(int index) {
|
||||
return 'Персонализирано $index';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losPointA => 'Точка А';
|
||||
|
||||
@override
|
||||
String get losPointB => 'Точка Б';
|
||||
|
||||
@override
|
||||
String losAntennaA(String value, String unit) {
|
||||
return 'Антена A: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losAntennaB(String value, String unit) {
|
||||
return 'Антена B: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losRun => 'Стартирайте LOS';
|
||||
|
||||
@override
|
||||
String get losNoElevationData => 'Няма данни за надморска височина';
|
||||
|
||||
@override
|
||||
String losProfileClear(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String clearance,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, чист LOS, минимално разстояние $clearance $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losProfileBlocked(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String obstruction,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, блокиран от $obstruction $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losStatusChecking => 'LOS: проверка...';
|
||||
|
||||
@override
|
||||
String get losStatusNoData => 'LOS: няма данни';
|
||||
|
||||
@override
|
||||
String losStatusSummary(int clear, int total, int blocked, int unknown) {
|
||||
return 'LOS: $clear/$total ясно, $blocked блокирано, $unknown неизвестно';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losErrorElevationUnavailable =>
|
||||
'Няма налични данни за надморска височина за една или повече проби.';
|
||||
|
||||
@override
|
||||
String get losErrorInvalidInput =>
|
||||
'Невалидни данни за точки/надморска височина за изчисляване на LOS.';
|
||||
|
||||
@override
|
||||
String get losRenameCustomPoint => 'Преименувайте персонализирана точка';
|
||||
|
||||
@override
|
||||
String get losPointName => 'Име на точката';
|
||||
|
||||
@override
|
||||
String get losShowPanelTooltip => 'Показване на LOS панел';
|
||||
|
||||
@override
|
||||
String get losHidePanelTooltip => 'Скриване на LOS панела';
|
||||
|
||||
@override
|
||||
String get losElevationAttribution =>
|
||||
'Данни за надморска височина: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get losLegendRadioHorizon => 'Радиохоризонт';
|
||||
|
||||
@override
|
||||
String get losLegendLosBeam => 'Линия на видимост';
|
||||
|
||||
@override
|
||||
String get losLegendTerrain => 'Терен';
|
||||
|
||||
@override
|
||||
String get losFrequencyLabel => 'Честота';
|
||||
|
||||
@override
|
||||
String get losFrequencyInfoTooltip => 'Преглед на детайли за изчислението';
|
||||
|
||||
@override
|
||||
String get losFrequencyDialogTitle => 'Изчисляване на радиохоризонта';
|
||||
|
||||
@override
|
||||
String losFrequencyDialogDescription(
|
||||
double baselineK,
|
||||
double baselineFreq,
|
||||
double frequencyMHz,
|
||||
double kFactor,
|
||||
) {
|
||||
return 'Започвайки от k=$baselineK при $baselineFreq MHz, изчислението коригира k-фактора за текущата $frequencyMHz MHz лента, която определя границата на извития радиохоризонт.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_pathTrace => 'Пътен проследяване';
|
||||
|
||||
|
||||
@@ -320,10 +320,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
String get settings_aboutDescription =>
|
||||
'Ein Open-Source-Flutter-Client für MeshCore LoRa-Meshnetzwerkgeräte.';
|
||||
|
||||
@override
|
||||
String get settings_aboutOpenMeteoAttribution =>
|
||||
'LOS-Höhendaten: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get settings_infoName => 'Name';
|
||||
|
||||
@@ -348,6 +344,15 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get settings_presets => 'Voreinstellungen';
|
||||
|
||||
@override
|
||||
String get settings_preset915Mhz => '915 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset868Mhz => '868 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset433Mhz => '433 MHz';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frequenz (MHz)';
|
||||
|
||||
@@ -376,15 +381,10 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
String get settings_txPowerInvalid => 'Ungültige TX-Leistung (0-22 dBm)';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeat => 'Wiederholung, ohne Stromanschluss';
|
||||
String get settings_longRange => 'Grosse Reichweite';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatSubtitle =>
|
||||
'Ermöglichen Sie diesem Gerät, Mesh-Pakete für andere zu wiederholen.';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatFreqWarning =>
|
||||
'Die Kommunikation ohne Stromversorgung erfordert Frequenzen von 433, 869 oder 918 MHz.';
|
||||
String get settings_fastSpeed => 'Schnelle Geschwindigkeit';
|
||||
|
||||
@override
|
||||
String settings_error(String message) {
|
||||
@@ -460,14 +460,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_languageUk => 'Ukrainisch';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Nachrichtenverfolgung aktivieren';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Detaillierte Routing- und Timing-Metadaten für Nachrichten anzeigen';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Benachrichtigungen';
|
||||
|
||||
@@ -631,15 +623,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_offlineMapCache => 'Offline-Karten-Cache';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsTitle => 'Einheiten';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsMetric => 'Metrisch (m/km)';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsImperial => 'Imperial (ft/mi)';
|
||||
|
||||
@override
|
||||
String get appSettings_noAreaSelected => 'Kein Bereich ausgewählt';
|
||||
|
||||
@@ -677,35 +660,7 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
'Kontakte werden angezeigt, wenn Geräte eine Ankündigung machen.';
|
||||
|
||||
@override
|
||||
String get contacts_unread => 'Ungelesen';
|
||||
|
||||
@override
|
||||
String get contacts_searchContactsNoNumber => 'Kontakte suchen...';
|
||||
|
||||
@override
|
||||
String contacts_searchContacts(int number, String str) {
|
||||
return 'Suche Kontakte...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchFavorites(int number, String str) {
|
||||
return 'Suche $number$str Favoriten...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchUsers(int number, String str) {
|
||||
return 'Suche $number$str Benutzer...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRepeaters(int number, String str) {
|
||||
return 'Suche $number$str Repeater...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRoomServers(int number, String str) {
|
||||
return 'Suche $number$str Raumserver...';
|
||||
}
|
||||
String get contacts_searchContacts => 'Suche Kontakte...';
|
||||
|
||||
@override
|
||||
String get contacts_noUnreadContacts => 'Keine ungesehene Kontakte';
|
||||
@@ -831,12 +786,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get channels_editChannel => 'Kanal bearbeiten';
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Kanal stummschalten';
|
||||
|
||||
@override
|
||||
String get channels_unmuteChannel => 'Kanal Stummschaltung aufheben';
|
||||
|
||||
@override
|
||||
String get channels_deleteChannel => 'Lösche den Kanal';
|
||||
|
||||
@@ -845,11 +794,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
return 'Löschen von \"$name\"? Dies kann nicht rückgängig gemacht werden.';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleteFailed(String name) {
|
||||
return 'Kanal $name konnte nicht gelöscht werden';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleted(String name) {
|
||||
return 'Kanal \"$name\" gelöscht';
|
||||
@@ -1140,9 +1084,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get chat_pathManagement => 'Pfadverwaltung';
|
||||
|
||||
@override
|
||||
String get chat_ShowAllPaths => 'Alle Pfade anzeigen';
|
||||
|
||||
@override
|
||||
String get chat_routingMode => 'Routenmodus';
|
||||
|
||||
@@ -1302,12 +1243,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get map_title => 'Karte';
|
||||
|
||||
@override
|
||||
String get map_lineOfSight => 'Sichtlinie';
|
||||
|
||||
@override
|
||||
String get map_losScreenTitle => 'Sichtlinie';
|
||||
|
||||
@override
|
||||
String get map_noNodesWithLocation => 'Keine Knoten mit Standortdaten';
|
||||
|
||||
@@ -2761,15 +2696,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get listFilter_all => 'Alle';
|
||||
|
||||
@override
|
||||
String get listFilter_favorites => 'Favoriten';
|
||||
|
||||
@override
|
||||
String get listFilter_addToFavorites => 'Zu Favoriten hinzufügen';
|
||||
|
||||
@override
|
||||
String get listFilter_removeFromFavorites => 'Aus Favoriten entfernen';
|
||||
|
||||
@override
|
||||
String get listFilter_users => 'Benutzer';
|
||||
|
||||
@@ -2804,145 +2730,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get pathTrace_clearTooltip => 'Pfad löschen';
|
||||
|
||||
@override
|
||||
String get losSelectStartEnd =>
|
||||
'Wählen Sie Start- und Endknoten für LOS aus.';
|
||||
|
||||
@override
|
||||
String losRunFailed(String error) {
|
||||
return 'Sichtlinienprüfung fehlgeschlagen: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losClearAllPoints => 'Löschen Sie alle Punkte';
|
||||
|
||||
@override
|
||||
String get losRunToViewElevationProfile =>
|
||||
'Führen Sie LOS aus, um das Höhenprofil anzuzeigen';
|
||||
|
||||
@override
|
||||
String get losMenuTitle => 'LOS-Menü';
|
||||
|
||||
@override
|
||||
String get losMenuSubtitle =>
|
||||
'Tippen Sie auf Knoten oder drücken Sie lange auf die Karte, um benutzerdefinierte Punkte anzuzeigen';
|
||||
|
||||
@override
|
||||
String get losShowDisplayNodes => 'Anzeigeknoten anzeigen';
|
||||
|
||||
@override
|
||||
String get losCustomPoints => 'Benutzerdefinierte Punkte';
|
||||
|
||||
@override
|
||||
String losCustomPointLabel(int index) {
|
||||
return 'Benutzerdefiniert $index';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losPointA => 'Punkt A';
|
||||
|
||||
@override
|
||||
String get losPointB => 'Punkt B';
|
||||
|
||||
@override
|
||||
String losAntennaA(String value, String unit) {
|
||||
return 'Antenne A: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losAntennaB(String value, String unit) {
|
||||
return 'Antenne B: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losRun => 'Führen Sie LOS aus';
|
||||
|
||||
@override
|
||||
String get losNoElevationData => 'Keine Höhendaten';
|
||||
|
||||
@override
|
||||
String losProfileClear(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String clearance,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, freie Sichtlinie, Mindestabstand $clearance $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losProfileBlocked(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String obstruction,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, blockiert durch $obstruction $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losStatusChecking => 'LOS: Überprüfen...';
|
||||
|
||||
@override
|
||||
String get losStatusNoData => 'LOS: keine Daten';
|
||||
|
||||
@override
|
||||
String losStatusSummary(int clear, int total, int blocked, int unknown) {
|
||||
return 'Sichtlinie: $clear/$total frei, $blocked blockiert, $unknown unbekannt';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losErrorElevationUnavailable =>
|
||||
'Für eine oder mehrere Proben sind keine Höhendaten verfügbar.';
|
||||
|
||||
@override
|
||||
String get losErrorInvalidInput =>
|
||||
'Ungültige Punkte/Höhendaten für die LOS-Berechnung.';
|
||||
|
||||
@override
|
||||
String get losRenameCustomPoint =>
|
||||
'Benennen Sie den benutzerdefinierten Punkt um';
|
||||
|
||||
@override
|
||||
String get losPointName => 'Punktname';
|
||||
|
||||
@override
|
||||
String get losShowPanelTooltip => 'LOS-Panel anzeigen';
|
||||
|
||||
@override
|
||||
String get losHidePanelTooltip => 'LOS-Panel ausblenden';
|
||||
|
||||
@override
|
||||
String get losElevationAttribution => 'Höhendaten: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get losLegendRadioHorizon => 'Funkhorizont';
|
||||
|
||||
@override
|
||||
String get losLegendLosBeam => 'Sichtlinie';
|
||||
|
||||
@override
|
||||
String get losLegendTerrain => 'Gelände';
|
||||
|
||||
@override
|
||||
String get losFrequencyLabel => 'Frequenz';
|
||||
|
||||
@override
|
||||
String get losFrequencyInfoTooltip => 'Details zur Berechnung anzeigen';
|
||||
|
||||
@override
|
||||
String get losFrequencyDialogTitle => 'Berechnung des Funkhorizonts';
|
||||
|
||||
@override
|
||||
String losFrequencyDialogDescription(
|
||||
double baselineK,
|
||||
double baselineFreq,
|
||||
double frequencyMHz,
|
||||
double kFactor,
|
||||
) {
|
||||
return 'Ausgehend von k=$baselineK bei $baselineFreq MHz passt die Berechnung den k-Faktor für das aktuelle $frequencyMHz MHz-Band an, das die gekrümmte Funkhorizontobergrenze definiert.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_pathTrace => 'Pfadverfolgung';
|
||||
|
||||
|
||||
@@ -318,10 +318,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
String get settings_aboutDescription =>
|
||||
'An open-source Flutter client for MeshCore LoRa mesh networking devices.';
|
||||
|
||||
@override
|
||||
String get settings_aboutOpenMeteoAttribution =>
|
||||
'LOS elevation data: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get settings_infoName => 'Name';
|
||||
|
||||
@@ -346,6 +342,15 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get settings_presets => 'Presets';
|
||||
|
||||
@override
|
||||
String get settings_preset915Mhz => '915 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset868Mhz => '868 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset433Mhz => '433 MHz';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frequency (MHz)';
|
||||
|
||||
@@ -374,15 +379,10 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
String get settings_txPowerInvalid => 'Invalid TX power (0-22 dBm)';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeat => 'Off-Grid Repeat';
|
||||
String get settings_longRange => 'Long Range';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatSubtitle =>
|
||||
'Allow this device to repeat mesh packets for others';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatFreqWarning =>
|
||||
'Off-grid repeat requires 433, 869, or 918 MHz frequency';
|
||||
String get settings_fastSpeed => 'Fast Speed';
|
||||
|
||||
@override
|
||||
String settings_error(String message) {
|
||||
@@ -458,13 +458,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_languageUk => 'Українська';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing => 'Enable Message Tracing';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Show detailed routing and timing metadata for messages';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Notifications';
|
||||
|
||||
@@ -625,15 +618,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_offlineMapCache => 'Offline Map Cache';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsTitle => 'Units';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsMetric => 'Metric (m / km)';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsImperial => 'Imperial (ft / mi)';
|
||||
|
||||
@override
|
||||
String get appSettings_noAreaSelected => 'No area selected';
|
||||
|
||||
@@ -670,35 +654,7 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
'Contacts will appear when devices advertise';
|
||||
|
||||
@override
|
||||
String get contacts_unread => 'Unread';
|
||||
|
||||
@override
|
||||
String get contacts_searchContactsNoNumber => 'Search Contacts...';
|
||||
|
||||
@override
|
||||
String contacts_searchContacts(int number, String str) {
|
||||
return 'Search $number$str Contacts...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchFavorites(int number, String str) {
|
||||
return 'Search $number$str Favorites...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchUsers(int number, String str) {
|
||||
return 'Search $number$str Users...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRepeaters(int number, String str) {
|
||||
return 'Search $number$str Repeaters...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRoomServers(int number, String str) {
|
||||
return 'Search $number$str Room servers...';
|
||||
}
|
||||
String get contacts_searchContacts => 'Search contacts...';
|
||||
|
||||
@override
|
||||
String get contacts_noUnreadContacts => 'No unread contacts';
|
||||
@@ -822,12 +778,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get channels_editChannel => 'Edit channel';
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Mute channel';
|
||||
|
||||
@override
|
||||
String get channels_unmuteChannel => 'Unmute channel';
|
||||
|
||||
@override
|
||||
String get channels_deleteChannel => 'Delete channel';
|
||||
|
||||
@@ -836,11 +786,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
return 'Delete \"$name\"? This cannot be undone.';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleteFailed(String name) {
|
||||
return 'Failed to delete channel \"$name\"';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleted(String name) {
|
||||
return 'Channel \"$name\" deleted';
|
||||
@@ -1124,9 +1069,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get chat_pathManagement => 'Path Management';
|
||||
|
||||
@override
|
||||
String get chat_ShowAllPaths => 'Show all paths';
|
||||
|
||||
@override
|
||||
String get chat_routingMode => 'Routing mode';
|
||||
|
||||
@@ -1281,12 +1223,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get map_title => 'Node Map';
|
||||
|
||||
@override
|
||||
String get map_lineOfSight => 'Line of Sight';
|
||||
|
||||
@override
|
||||
String get map_losScreenTitle => 'Line of Sight';
|
||||
|
||||
@override
|
||||
String get map_noNodesWithLocation => 'No nodes with location data';
|
||||
|
||||
@@ -2714,15 +2650,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get listFilter_all => 'All';
|
||||
|
||||
@override
|
||||
String get listFilter_favorites => 'Favorites';
|
||||
|
||||
@override
|
||||
String get listFilter_addToFavorites => 'Add to favorites';
|
||||
|
||||
@override
|
||||
String get listFilter_removeFromFavorites => 'Remove from favorites';
|
||||
|
||||
@override
|
||||
String get listFilter_users => 'Users';
|
||||
|
||||
@@ -2757,143 +2684,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get pathTrace_clearTooltip => 'Clear path.';
|
||||
|
||||
@override
|
||||
String get losSelectStartEnd => 'Select start and end nodes for LOS.';
|
||||
|
||||
@override
|
||||
String losRunFailed(String error) {
|
||||
return 'Line-of-sight check failed: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losClearAllPoints => 'Clear all points';
|
||||
|
||||
@override
|
||||
String get losRunToViewElevationProfile =>
|
||||
'Run LOS to view elevation profile';
|
||||
|
||||
@override
|
||||
String get losMenuTitle => 'LOS Menu';
|
||||
|
||||
@override
|
||||
String get losMenuSubtitle => 'Tap nodes or long-press map for custom points';
|
||||
|
||||
@override
|
||||
String get losShowDisplayNodes => 'Show display nodes';
|
||||
|
||||
@override
|
||||
String get losCustomPoints => 'Custom points';
|
||||
|
||||
@override
|
||||
String losCustomPointLabel(int index) {
|
||||
return 'Custom $index';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losPointA => 'Point A';
|
||||
|
||||
@override
|
||||
String get losPointB => 'Point B';
|
||||
|
||||
@override
|
||||
String losAntennaA(String value, String unit) {
|
||||
return 'Antenna A: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losAntennaB(String value, String unit) {
|
||||
return 'Antenna B: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losRun => 'Run LOS';
|
||||
|
||||
@override
|
||||
String get losNoElevationData => 'No elevation data';
|
||||
|
||||
@override
|
||||
String losProfileClear(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String clearance,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, clear LOS, min clearance $clearance $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losProfileBlocked(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String obstruction,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, blocked by $obstruction $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losStatusChecking => 'LOS: checking...';
|
||||
|
||||
@override
|
||||
String get losStatusNoData => 'LOS: no data';
|
||||
|
||||
@override
|
||||
String losStatusSummary(int clear, int total, int blocked, int unknown) {
|
||||
return 'LOS: $clear/$total clear, $blocked blocked, $unknown unknown';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losErrorElevationUnavailable =>
|
||||
'Elevation data unavailable for one or more samples.';
|
||||
|
||||
@override
|
||||
String get losErrorInvalidInput =>
|
||||
'Invalid points/elevation data for LOS calculation.';
|
||||
|
||||
@override
|
||||
String get losRenameCustomPoint => 'Rename custom point';
|
||||
|
||||
@override
|
||||
String get losPointName => 'Point name';
|
||||
|
||||
@override
|
||||
String get losShowPanelTooltip => 'Show LOS panel';
|
||||
|
||||
@override
|
||||
String get losHidePanelTooltip => 'Hide LOS panel';
|
||||
|
||||
@override
|
||||
String get losElevationAttribution =>
|
||||
'Elevation data: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get losLegendRadioHorizon => 'Radio horizon';
|
||||
|
||||
@override
|
||||
String get losLegendLosBeam => 'LOS beam';
|
||||
|
||||
@override
|
||||
String get losLegendTerrain => 'Terrain';
|
||||
|
||||
@override
|
||||
String get losFrequencyLabel => 'Frequency';
|
||||
|
||||
@override
|
||||
String get losFrequencyInfoTooltip => 'View calculation details';
|
||||
|
||||
@override
|
||||
String get losFrequencyDialogTitle => 'Radio horizon calculation';
|
||||
|
||||
@override
|
||||
String losFrequencyDialogDescription(
|
||||
double baselineK,
|
||||
double baselineFreq,
|
||||
double frequencyMHz,
|
||||
double kFactor,
|
||||
) {
|
||||
return 'Starting from k=$baselineK at $baselineFreq MHz, the calculation adjusts the k-factor for the current $frequencyMHz MHz band, which defines the curved radio horizon cap.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_pathTrace => 'Path Trace';
|
||||
|
||||
|
||||
@@ -323,10 +323,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
String get settings_aboutDescription =>
|
||||
'Un cliente de código abierto de Flutter para dispositivos de red mesh LoRa de MeshCore.';
|
||||
|
||||
@override
|
||||
String get settings_aboutOpenMeteoAttribution =>
|
||||
'Datos de elevación LOS: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get settings_infoName => 'Nombre';
|
||||
|
||||
@@ -351,6 +347,15 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get settings_presets => 'Preajustes';
|
||||
|
||||
@override
|
||||
String get settings_preset915Mhz => '915 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset868Mhz => '868 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset433Mhz => '433 MHz';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frecuencia (MHz)';
|
||||
|
||||
@@ -379,15 +384,10 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
String get settings_txPowerInvalid => 'Potencia de TX inválida (0-22 dBm)';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeat => 'Repetir sin conexión';
|
||||
String get settings_longRange => 'Largo Alcance';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatSubtitle =>
|
||||
'Permita que este dispositivo repita los paquetes de red para otros usuarios.';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatFreqWarning =>
|
||||
'Para la comunicación fuera de la red, se requiere una frecuencia de 433, 869 o 918 MHz.';
|
||||
String get settings_fastSpeed => 'Velocidad Rápida';
|
||||
|
||||
@override
|
||||
String settings_error(String message) {
|
||||
@@ -463,14 +463,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_languageUk => 'Ucraniano';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Habilitar seguimiento de mensajes';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Mostrar metadatos detallados de enrutamiento y tiempo para los mensajes';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Notificaciones';
|
||||
|
||||
@@ -632,15 +624,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_offlineMapCache => 'Caché de Mapa Offline';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsTitle => 'Unidades';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsMetric => 'Métrico (m/km)';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsImperial => 'Imperial (pies/millas)';
|
||||
|
||||
@override
|
||||
String get appSettings_noAreaSelected => 'No se ha seleccionado ningún área';
|
||||
|
||||
@@ -678,35 +661,7 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
'Los contactos aparecerán cuando los dispositivos anuncien.';
|
||||
|
||||
@override
|
||||
String get contacts_unread => 'No leído';
|
||||
|
||||
@override
|
||||
String get contacts_searchContactsNoNumber => 'Buscar contactos...';
|
||||
|
||||
@override
|
||||
String contacts_searchContacts(int number, String str) {
|
||||
return 'Buscar contactos...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchFavorites(int number, String str) {
|
||||
return 'Buscar $number$str Favoritos...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchUsers(int number, String str) {
|
||||
return 'Buscar $number$str Usuarios...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRepeaters(int number, String str) {
|
||||
return 'Buscar $number$str Repetidores...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRoomServers(int number, String str) {
|
||||
return 'Buscar $number$str servidores de sala...';
|
||||
}
|
||||
String get contacts_searchContacts => 'Buscar contactos...';
|
||||
|
||||
@override
|
||||
String get contacts_noUnreadContacts => 'No contactos sin leer';
|
||||
@@ -832,12 +787,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get channels_editChannel => 'Editar canal';
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Silenciar canal';
|
||||
|
||||
@override
|
||||
String get channels_unmuteChannel => 'Activar canal';
|
||||
|
||||
@override
|
||||
String get channels_deleteChannel => 'Eliminar canal';
|
||||
|
||||
@@ -846,11 +795,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
return 'Eliminar \"$name\"? Esto no se puede deshacer.';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleteFailed(String name) {
|
||||
return 'No se pudo eliminar el canal \"$name\"';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleted(String name) {
|
||||
return 'Canal \"$name\" eliminado';
|
||||
@@ -1139,9 +1083,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get chat_pathManagement => 'Gestión de Rutas';
|
||||
|
||||
@override
|
||||
String get chat_ShowAllPaths => 'Mostrar todos los caminos';
|
||||
|
||||
@override
|
||||
String get chat_routingMode => 'Modo de enrutamiento';
|
||||
|
||||
@@ -1300,12 +1241,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get map_title => 'Mapa de Nodos';
|
||||
|
||||
@override
|
||||
String get map_lineOfSight => 'Línea de visión';
|
||||
|
||||
@override
|
||||
String get map_losScreenTitle => 'Línea de visión';
|
||||
|
||||
@override
|
||||
String get map_noNodesWithLocation => 'No hay nodos con datos de ubicación';
|
||||
|
||||
@@ -2754,15 +2689,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get listFilter_all => 'Todas';
|
||||
|
||||
@override
|
||||
String get listFilter_favorites => 'Favoritos';
|
||||
|
||||
@override
|
||||
String get listFilter_addToFavorites => 'Añadir a favoritos';
|
||||
|
||||
@override
|
||||
String get listFilter_removeFromFavorites => 'Eliminar de las favoritas';
|
||||
|
||||
@override
|
||||
String get listFilter_users => 'Usuarios';
|
||||
|
||||
@@ -2797,146 +2723,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get pathTrace_clearTooltip => 'Borrar ruta';
|
||||
|
||||
@override
|
||||
String get losSelectStartEnd =>
|
||||
'Seleccione los nodos de inicio y fin para LOS.';
|
||||
|
||||
@override
|
||||
String losRunFailed(String error) {
|
||||
return 'Error en la comprobación de la línea de visión: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losClearAllPoints => 'Borrar todos los puntos';
|
||||
|
||||
@override
|
||||
String get losRunToViewElevationProfile =>
|
||||
'Ejecute LOS para ver el perfil de elevación';
|
||||
|
||||
@override
|
||||
String get losMenuTitle => 'Menú LOS';
|
||||
|
||||
@override
|
||||
String get losMenuSubtitle =>
|
||||
'Toque nodos o mantenga presionado el mapa para puntos personalizados';
|
||||
|
||||
@override
|
||||
String get losShowDisplayNodes => 'Mostrar nodos de visualización';
|
||||
|
||||
@override
|
||||
String get losCustomPoints => 'Puntos personalizados';
|
||||
|
||||
@override
|
||||
String losCustomPointLabel(int index) {
|
||||
return 'Personalizado $index';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losPointA => 'Punto A';
|
||||
|
||||
@override
|
||||
String get losPointB => 'Punto B';
|
||||
|
||||
@override
|
||||
String losAntennaA(String value, String unit) {
|
||||
return 'Antena A: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losAntennaB(String value, String unit) {
|
||||
return 'Antena B: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losRun => 'Ejecutar LOS';
|
||||
|
||||
@override
|
||||
String get losNoElevationData => 'Sin datos de elevación';
|
||||
|
||||
@override
|
||||
String losProfileClear(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String clearance,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, despejar LOS, autorización mínima $clearance $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losProfileBlocked(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String obstruction,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, bloqueado por $obstruction $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losStatusChecking => 'LOS: comprobando...';
|
||||
|
||||
@override
|
||||
String get losStatusNoData => 'LOS: sin datos';
|
||||
|
||||
@override
|
||||
String losStatusSummary(int clear, int total, int blocked, int unknown) {
|
||||
return 'LOS: $clear/$total claro, $blocked bloqueado, $unknown desconocido';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losErrorElevationUnavailable =>
|
||||
'Datos de elevación no disponibles para una o más muestras.';
|
||||
|
||||
@override
|
||||
String get losErrorInvalidInput =>
|
||||
'Datos de puntos/elevación no válidos para el cálculo de LOS.';
|
||||
|
||||
@override
|
||||
String get losRenameCustomPoint =>
|
||||
'Cambiar el nombre del punto personalizado';
|
||||
|
||||
@override
|
||||
String get losPointName => 'Nombre del punto';
|
||||
|
||||
@override
|
||||
String get losShowPanelTooltip => 'Mostrar panel LOS';
|
||||
|
||||
@override
|
||||
String get losHidePanelTooltip => 'Ocultar panel LOS';
|
||||
|
||||
@override
|
||||
String get losElevationAttribution =>
|
||||
'Datos de elevación: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get losLegendRadioHorizon => 'Horizonte radioeléctrico';
|
||||
|
||||
@override
|
||||
String get losLegendLosBeam => 'Línea de visión';
|
||||
|
||||
@override
|
||||
String get losLegendTerrain => 'Terreno';
|
||||
|
||||
@override
|
||||
String get losFrequencyLabel => 'Frecuencia';
|
||||
|
||||
@override
|
||||
String get losFrequencyInfoTooltip => 'Ver detalles del cálculo';
|
||||
|
||||
@override
|
||||
String get losFrequencyDialogTitle => 'Cálculo del horizonte radioeléctrico';
|
||||
|
||||
@override
|
||||
String losFrequencyDialogDescription(
|
||||
double baselineK,
|
||||
double baselineFreq,
|
||||
double frequencyMHz,
|
||||
double kFactor,
|
||||
) {
|
||||
return 'A partir de k=$baselineK en $baselineFreq MHz, el cálculo ajusta el factor k para la banda actual de $frequencyMHz MHz, que define el límite curvo del horizonte de radio.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_pathTrace => 'Rastreo de caminos';
|
||||
|
||||
|
||||
@@ -324,10 +324,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String get settings_aboutDescription =>
|
||||
'Un client Flutter open source pour les appareils de réseau mesh MeshCore LoRa.';
|
||||
|
||||
@override
|
||||
String get settings_aboutOpenMeteoAttribution =>
|
||||
'Données d\'élévation LOS : Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get settings_infoName => 'Nom';
|
||||
|
||||
@@ -352,6 +348,15 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get settings_presets => 'Préréglages';
|
||||
|
||||
@override
|
||||
String get settings_preset915Mhz => '915 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset868Mhz => '868 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset433Mhz => '433 MHz';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Fréquence (MHz)';
|
||||
|
||||
@@ -380,15 +385,10 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String get settings_txPowerInvalid => 'Puissance TX invalide (0-22 dBm)';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeat => 'Répétition hors réseau';
|
||||
String get settings_longRange => 'Portée Longue';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatSubtitle =>
|
||||
'Permettez à cet appareil de répéter les paquets de données pour les autres.';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatFreqWarning =>
|
||||
'Pour les transmissions hors réseau, il est nécessaire d\'utiliser les fréquences de 433, 869 ou 918 MHz.';
|
||||
String get settings_fastSpeed => 'Vitesse Rapide';
|
||||
|
||||
@override
|
||||
String settings_error(String message) {
|
||||
@@ -464,14 +464,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_languageUk => 'Ukrainien';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Activer le traçage des messages';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Afficher les métadonnées détaillées de routage et de synchronisation des messages';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Notifications';
|
||||
|
||||
@@ -634,15 +626,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_offlineMapCache => 'Cache de Carte Hors Ligne';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsTitle => 'Unités';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsMetric => 'Métrique (m/km)';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsImperial => 'Impérial (ft / mi)';
|
||||
|
||||
@override
|
||||
String get appSettings_noAreaSelected => 'Aucune zone sélectionnée';
|
||||
|
||||
@@ -681,35 +664,7 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
'Les contacts apparaîtront lorsque les appareils font leur annonce.';
|
||||
|
||||
@override
|
||||
String get contacts_unread => 'Non lu';
|
||||
|
||||
@override
|
||||
String get contacts_searchContactsNoNumber => 'Rechercher des contacts...';
|
||||
|
||||
@override
|
||||
String contacts_searchContacts(int number, String str) {
|
||||
return 'Rechercher des contacts...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchFavorites(int number, String str) {
|
||||
return 'Rechercher $number$str Favoris...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchUsers(int number, String str) {
|
||||
return 'Rechercher $number$str utilisateurs...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRepeaters(int number, String str) {
|
||||
return 'Rechercher $number$str Répéteurs...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRoomServers(int number, String str) {
|
||||
return 'Rechercher $number$str serveurs de salle...';
|
||||
}
|
||||
String get contacts_searchContacts => 'Rechercher des contacts...';
|
||||
|
||||
@override
|
||||
String get contacts_noUnreadContacts => 'Aucun contact non lu';
|
||||
@@ -732,7 +687,7 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String get contacts_manageRoom => 'Gérer le Room Server';
|
||||
|
||||
@override
|
||||
String get contacts_roomLogin => 'Connexion Room Server';
|
||||
String get contacts_roomLogin => 'Connexion Salle';
|
||||
|
||||
@override
|
||||
String get contacts_openChat => 'Ouverture du Chat';
|
||||
@@ -834,12 +789,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get channels_editChannel => 'Modifier le canal';
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Désactiver les notifications du canal';
|
||||
|
||||
@override
|
||||
String get channels_unmuteChannel => 'Réactiver les notifications du canal';
|
||||
|
||||
@override
|
||||
String get channels_deleteChannel => 'Supprimer le canal';
|
||||
|
||||
@@ -848,11 +797,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
return 'Supprimer $name? Cela ne peut pas être annulé.';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleteFailed(String name) {
|
||||
return 'Échec de la suppression de la chaîne \"$name\"';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleted(String name) {
|
||||
return 'Le canal \"$name\" a été supprimé';
|
||||
@@ -1142,9 +1086,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get chat_pathManagement => 'Gestion des chemins';
|
||||
|
||||
@override
|
||||
String get chat_ShowAllPaths => 'Afficher tous les chemins';
|
||||
|
||||
@override
|
||||
String get chat_routingMode => 'Mode de routage';
|
||||
|
||||
@@ -1306,12 +1247,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get map_title => 'Carte des nœuds';
|
||||
|
||||
@override
|
||||
String get map_lineOfSight => 'Ligne de vue';
|
||||
|
||||
@override
|
||||
String get map_losScreenTitle => 'Ligne de vue';
|
||||
|
||||
@override
|
||||
String get map_noNodesWithLocation =>
|
||||
'Aucun nœud avec des données de localisation';
|
||||
@@ -1600,7 +1535,7 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String get login_repeaterLogin => 'Connexion au répéteur';
|
||||
|
||||
@override
|
||||
String get login_roomLogin => 'Connexion Room Server';
|
||||
String get login_roomLogin => 'Connexion Salle';
|
||||
|
||||
@override
|
||||
String get login_password => 'Mot de passe';
|
||||
@@ -1725,7 +1660,7 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String get repeater_management => 'Gestion des répéteurs';
|
||||
|
||||
@override
|
||||
String get room_management => 'Administrattion Room Server';
|
||||
String get room_management => 'Administración del Servidor de Habitación';
|
||||
|
||||
@override
|
||||
String get repeater_managementTools => 'Outils de Gestion';
|
||||
@@ -2770,15 +2705,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get listFilter_all => 'Tout';
|
||||
|
||||
@override
|
||||
String get listFilter_favorites => 'Préférences';
|
||||
|
||||
@override
|
||||
String get listFilter_addToFavorites => 'Ajouter à mes favoris';
|
||||
|
||||
@override
|
||||
String get listFilter_removeFromFavorites => 'Supprimer des favoris';
|
||||
|
||||
@override
|
||||
String get listFilter_users => 'Utilisateurs';
|
||||
|
||||
@@ -2813,145 +2739,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get pathTrace_clearTooltip => 'Effacer le chemin';
|
||||
|
||||
@override
|
||||
String get losSelectStartEnd =>
|
||||
'Sélectionnez les nœuds de début et de fin pour LOS.';
|
||||
|
||||
@override
|
||||
String losRunFailed(String error) {
|
||||
return 'Échec de la vérification de la ligne de vue : $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losClearAllPoints => 'Effacer tous les points';
|
||||
|
||||
@override
|
||||
String get losRunToViewElevationProfile =>
|
||||
'Exécutez LOS pour afficher le profil d\'altitude';
|
||||
|
||||
@override
|
||||
String get losMenuTitle => 'Menu LOS';
|
||||
|
||||
@override
|
||||
String get losMenuSubtitle =>
|
||||
'Appuyez sur les nœuds ou appuyez longuement sur la carte pour des points personnalisés';
|
||||
|
||||
@override
|
||||
String get losShowDisplayNodes => 'Afficher les nœuds d\'affichage';
|
||||
|
||||
@override
|
||||
String get losCustomPoints => 'Points personnalisés';
|
||||
|
||||
@override
|
||||
String losCustomPointLabel(int index) {
|
||||
return 'Personnalisé $index';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losPointA => 'Point A';
|
||||
|
||||
@override
|
||||
String get losPointB => 'Point B';
|
||||
|
||||
@override
|
||||
String losAntennaA(String value, String unit) {
|
||||
return 'Antenne A : $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losAntennaB(String value, String unit) {
|
||||
return 'Antenne B : $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losRun => 'Exécuter la LOS';
|
||||
|
||||
@override
|
||||
String get losNoElevationData => 'Aucune donnée d\'altitude';
|
||||
|
||||
@override
|
||||
String losProfileClear(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String clearance,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, LOS clair, clairance minimale $clearance $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losProfileBlocked(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String obstruction,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, bloqué par $obstruction $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losStatusChecking => 'LOS : vérification...';
|
||||
|
||||
@override
|
||||
String get losStatusNoData => 'LOS : aucune donnée';
|
||||
|
||||
@override
|
||||
String losStatusSummary(int clear, int total, int blocked, int unknown) {
|
||||
return 'LOS : $clear/$total clair, $blocked bloqué, $unknown inconnu';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losErrorElevationUnavailable =>
|
||||
'Données d\'altitude indisponibles pour un ou plusieurs échantillons.';
|
||||
|
||||
@override
|
||||
String get losErrorInvalidInput =>
|
||||
'Données de points/d\'altitude non valides pour le calcul de la LOS.';
|
||||
|
||||
@override
|
||||
String get losRenameCustomPoint => 'Renommer le point personnalisé';
|
||||
|
||||
@override
|
||||
String get losPointName => 'Nom du point';
|
||||
|
||||
@override
|
||||
String get losShowPanelTooltip => 'Afficher le panneau LOS';
|
||||
|
||||
@override
|
||||
String get losHidePanelTooltip => 'Masquer le panneau LOS';
|
||||
|
||||
@override
|
||||
String get losElevationAttribution =>
|
||||
'Données d’altitude : Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get losLegendRadioHorizon => 'Horizon radio';
|
||||
|
||||
@override
|
||||
String get losLegendLosBeam => 'Ligne de visée';
|
||||
|
||||
@override
|
||||
String get losLegendTerrain => 'Terrain';
|
||||
|
||||
@override
|
||||
String get losFrequencyLabel => 'Fréquence';
|
||||
|
||||
@override
|
||||
String get losFrequencyInfoTooltip => 'Voir les détails du calcul';
|
||||
|
||||
@override
|
||||
String get losFrequencyDialogTitle => 'Calcul de l’horizon radio';
|
||||
|
||||
@override
|
||||
String losFrequencyDialogDescription(
|
||||
double baselineK,
|
||||
double baselineFreq,
|
||||
double frequencyMHz,
|
||||
double kFactor,
|
||||
) {
|
||||
return 'À partir de k=$baselineK à $baselineFreq MHz, le calcul ajuste le facteur k pour la bande actuelle de $frequencyMHz MHz, ce qui définit la limite incurvée de l\'horizon radio.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_pathTrace => 'Traçage de chemin';
|
||||
|
||||
|
||||
@@ -322,10 +322,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
String get settings_aboutDescription =>
|
||||
'Un client Flutter open-source per i dispositivi di rete mesh LoRa Core di MeshCore.';
|
||||
|
||||
@override
|
||||
String get settings_aboutOpenMeteoAttribution =>
|
||||
'Dati di elevazione LOS: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get settings_infoName => 'Nome';
|
||||
|
||||
@@ -350,6 +346,15 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get settings_presets => 'Preset';
|
||||
|
||||
@override
|
||||
String get settings_preset915Mhz => '915 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset868Mhz => '868 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset433Mhz => '433 MHz';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frequenza (MHz)';
|
||||
|
||||
@@ -378,15 +383,10 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
String get settings_txPowerInvalid => 'Potere TX non valido (0-22 dBm)';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeat => 'Ripetizione \"fuori dalla rete\"';
|
||||
String get settings_longRange => 'Lungo Raggio';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatSubtitle =>
|
||||
'Permetti a questo dispositivo di ripetere i pacchetti di rete per gli altri.';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatFreqWarning =>
|
||||
'Per la comunicazione fuori rete, è necessario utilizzare frequenze di 433, 869 o 918 MHz.';
|
||||
String get settings_fastSpeed => 'Velocità Rapida';
|
||||
|
||||
@override
|
||||
String settings_error(String message) {
|
||||
@@ -462,14 +462,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_languageUk => 'Ucraino';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Abilita tracciamento messaggi';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Mostra metadati dettagliati su instradamento e tempi per i messaggi';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Notifiche';
|
||||
|
||||
@@ -631,15 +623,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_offlineMapCache => 'Cache Mappa Offline';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsTitle => 'Unità';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsMetric => 'Metrico (m/km)';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsImperial => 'Imperiale (ft / mi)';
|
||||
|
||||
@override
|
||||
String get appSettings_noAreaSelected => 'Nessun\'area selezionata';
|
||||
|
||||
@@ -677,35 +660,7 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
'I contatti appariranno quando i dispositivi pubblicizzano.';
|
||||
|
||||
@override
|
||||
String get contacts_unread => 'Non letti';
|
||||
|
||||
@override
|
||||
String get contacts_searchContactsNoNumber => 'Cerca Contatti...';
|
||||
|
||||
@override
|
||||
String contacts_searchContacts(int number, String str) {
|
||||
return 'Cerca contatti...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchFavorites(int number, String str) {
|
||||
return 'Cerca $number$str Preferiti...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchUsers(int number, String str) {
|
||||
return 'Cerca $number$str Utenti...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRepeaters(int number, String str) {
|
||||
return 'Cerca $number$str Ripetitori...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRoomServers(int number, String str) {
|
||||
return 'Cerca $number$str server Room...';
|
||||
}
|
||||
String get contacts_searchContacts => 'Cerca contatti...';
|
||||
|
||||
@override
|
||||
String get contacts_noUnreadContacts => 'Nessun contatto non letto';
|
||||
@@ -830,12 +785,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get channels_editChannel => 'Modifica canale';
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Silenzia canale';
|
||||
|
||||
@override
|
||||
String get channels_unmuteChannel => 'Attiva notifiche canale';
|
||||
|
||||
@override
|
||||
String get channels_deleteChannel => 'Elimina canale';
|
||||
|
||||
@@ -844,11 +793,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
return 'Eliminare \"$name\"? Non può essere annullato.';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleteFailed(String name) {
|
||||
return 'Impossibile eliminare il canale \"$name\"';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleted(String name) {
|
||||
return 'Canale \"$name\" eliminato';
|
||||
@@ -1137,9 +1081,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get chat_pathManagement => 'Gestione Percorsi';
|
||||
|
||||
@override
|
||||
String get chat_ShowAllPaths => 'Mostra tutti i percorsi';
|
||||
|
||||
@override
|
||||
String get chat_routingMode => 'Modalità di routing';
|
||||
|
||||
@@ -1299,12 +1240,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get map_title => 'Mappa Nodi';
|
||||
|
||||
@override
|
||||
String get map_lineOfSight => 'Linea di vista';
|
||||
|
||||
@override
|
||||
String get map_losScreenTitle => 'Linea di vista';
|
||||
|
||||
@override
|
||||
String get map_noNodesWithLocation => 'Nessun nodo con dati di posizione';
|
||||
|
||||
@@ -2754,15 +2689,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get listFilter_all => 'Tutti';
|
||||
|
||||
@override
|
||||
String get listFilter_favorites => 'Preferiti';
|
||||
|
||||
@override
|
||||
String get listFilter_addToFavorites => 'Aggiungi ai preferiti';
|
||||
|
||||
@override
|
||||
String get listFilter_removeFromFavorites => 'Rimuovi dai preferiti';
|
||||
|
||||
@override
|
||||
String get listFilter_users => 'Utenti';
|
||||
|
||||
@@ -2798,145 +2724,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get pathTrace_clearTooltip => 'Pulisci percorso';
|
||||
|
||||
@override
|
||||
String get losSelectStartEnd =>
|
||||
'Seleziona i nodi iniziali e finali per la LOS.';
|
||||
|
||||
@override
|
||||
String losRunFailed(String error) {
|
||||
return 'Controllo della linea di vista fallito: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losClearAllPoints => 'Cancella tutti i punti';
|
||||
|
||||
@override
|
||||
String get losRunToViewElevationProfile =>
|
||||
'Eseguire LOS per visualizzare il profilo altimetrico';
|
||||
|
||||
@override
|
||||
String get losMenuTitle => 'Menù LOS';
|
||||
|
||||
@override
|
||||
String get losMenuSubtitle =>
|
||||
'Tocca i nodi o premi a lungo la mappa per punti personalizzati';
|
||||
|
||||
@override
|
||||
String get losShowDisplayNodes => 'Mostra i nodi di visualizzazione';
|
||||
|
||||
@override
|
||||
String get losCustomPoints => 'Punti personalizzati';
|
||||
|
||||
@override
|
||||
String losCustomPointLabel(int index) {
|
||||
return 'Personalizzato $index';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losPointA => 'Punto A';
|
||||
|
||||
@override
|
||||
String get losPointB => 'Punto B';
|
||||
|
||||
@override
|
||||
String losAntennaA(String value, String unit) {
|
||||
return 'Antenna A: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losAntennaB(String value, String unit) {
|
||||
return 'Antenna B: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losRun => 'Esegui LOS';
|
||||
|
||||
@override
|
||||
String get losNoElevationData => 'Nessun dato di elevazione';
|
||||
|
||||
@override
|
||||
String losProfileClear(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String clearance,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, libera LOS, distanza minima $clearance $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losProfileBlocked(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String obstruction,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, bloccato da $obstruction $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losStatusChecking => 'LOS: controllo...';
|
||||
|
||||
@override
|
||||
String get losStatusNoData => 'LOS: nessun dato';
|
||||
|
||||
@override
|
||||
String losStatusSummary(int clear, int total, int blocked, int unknown) {
|
||||
return 'LOS: $clear/$total libera, $blocked bloccato, $unknown sconosciuto';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losErrorElevationUnavailable =>
|
||||
'Dati di elevazione non disponibili per uno o più campioni.';
|
||||
|
||||
@override
|
||||
String get losErrorInvalidInput =>
|
||||
'Dati punti/elevazione non validi per il calcolo della LOS.';
|
||||
|
||||
@override
|
||||
String get losRenameCustomPoint => 'Rinomina punto personalizzato';
|
||||
|
||||
@override
|
||||
String get losPointName => 'Nome del punto';
|
||||
|
||||
@override
|
||||
String get losShowPanelTooltip => 'Mostra il pannello LOS';
|
||||
|
||||
@override
|
||||
String get losHidePanelTooltip => 'Nascondi il pannello LOS';
|
||||
|
||||
@override
|
||||
String get losElevationAttribution =>
|
||||
'Dati di elevazione: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get losLegendRadioHorizon => 'Orizzonte radio';
|
||||
|
||||
@override
|
||||
String get losLegendLosBeam => 'Linea di vista';
|
||||
|
||||
@override
|
||||
String get losLegendTerrain => 'Terreno';
|
||||
|
||||
@override
|
||||
String get losFrequencyLabel => 'Frequenza';
|
||||
|
||||
@override
|
||||
String get losFrequencyInfoTooltip => 'Visualizza i dettagli del calcolo';
|
||||
|
||||
@override
|
||||
String get losFrequencyDialogTitle => 'Calcolo dell’orizzonte radio';
|
||||
|
||||
@override
|
||||
String losFrequencyDialogDescription(
|
||||
double baselineK,
|
||||
double baselineFreq,
|
||||
double frequencyMHz,
|
||||
double kFactor,
|
||||
) {
|
||||
return 'Partendo da k=$baselineK a $baselineFreq MHz, il calcolo regola il fattore k per l\'attuale banda $frequencyMHz MHz, che definisce il limite curvo dell\'orizzonte radio.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_pathTrace => 'Traccia Percorso';
|
||||
|
||||
|
||||
@@ -320,10 +320,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
String get settings_aboutDescription =>
|
||||
'Een open-source Flutter client voor MeshCore LoRa mesh netwerkapparaten.';
|
||||
|
||||
@override
|
||||
String get settings_aboutOpenMeteoAttribution =>
|
||||
'LOS-hoogtegegevens: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get settings_infoName => 'Naam';
|
||||
|
||||
@@ -348,6 +344,15 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get settings_presets => 'Presets';
|
||||
|
||||
@override
|
||||
String get settings_preset915Mhz => '915 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset868Mhz => '868 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset433Mhz => '433 MHz';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frequentie (MHz)';
|
||||
|
||||
@@ -376,15 +381,10 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
String get settings_txPowerInvalid => 'Ongeldige TX-vermogen (0-22 dBm)';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeat => 'Herhalen: Afgekoppeld';
|
||||
String get settings_longRange => 'Lange Afstand';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatSubtitle =>
|
||||
'Laat dit apparaat de mesh-pakketten opnieuw verzenden voor andere apparaten.';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatFreqWarning =>
|
||||
'Om een signaal buiten het netwerk te versturen, zijn frequenties van 433, 869 of 918 MHz vereist.';
|
||||
String get settings_fastSpeed => 'Hoge Snelheid';
|
||||
|
||||
@override
|
||||
String settings_error(String message) {
|
||||
@@ -460,13 +460,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_languageUk => 'Oekraïens';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing => 'Berichttracking inschakelen';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Gedetailleerde routerings- en timing-metadata voor berichten weergeven';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Notificaties';
|
||||
|
||||
@@ -628,15 +621,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_offlineMapCache => 'Offline Kaarten Cache';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsTitle => 'Eenheden';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsMetric => 'Metrisch (m / km)';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsImperial => 'Imperiaal (ft / mi)';
|
||||
|
||||
@override
|
||||
String get appSettings_noAreaSelected => 'Geen gebied geselecteerd';
|
||||
|
||||
@@ -674,35 +658,7 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
'Contacten verschijnen wanneer apparaten zich aanbieden.';
|
||||
|
||||
@override
|
||||
String get contacts_unread => 'Ongelezen';
|
||||
|
||||
@override
|
||||
String get contacts_searchContactsNoNumber => 'Zoek contacten...';
|
||||
|
||||
@override
|
||||
String contacts_searchContacts(int number, String str) {
|
||||
return 'Zoek contacten...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchFavorites(int number, String str) {
|
||||
return 'Zoek $number$str favorieten...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchUsers(int number, String str) {
|
||||
return 'Zoek $number$str gebruikers...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRepeaters(int number, String str) {
|
||||
return 'Zoek $number$str Repeaters...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRoomServers(int number, String str) {
|
||||
return 'Zoek $number$str Room servers...';
|
||||
}
|
||||
String get contacts_searchContacts => 'Zoek contacten...';
|
||||
|
||||
@override
|
||||
String get contacts_noUnreadContacts => 'Geen ongelezen contacten';
|
||||
@@ -827,12 +783,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get channels_editChannel => 'Kanaal bewerken';
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Kanaal dempen';
|
||||
|
||||
@override
|
||||
String get channels_unmuteChannel => 'Kanaal dempen opheffen';
|
||||
|
||||
@override
|
||||
String get channels_deleteChannel => 'Kanaal verwijderen';
|
||||
|
||||
@@ -841,11 +791,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
return 'Verwijderen \"$name\"? Dit kan niet worden teruggedraaid.';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleteFailed(String name) {
|
||||
return 'Kan kanaal $name niet verwijderen';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleted(String name) {
|
||||
return 'Kanaal \"$name\" verwijderd';
|
||||
@@ -1133,9 +1078,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get chat_pathManagement => 'Beheer van Paden';
|
||||
|
||||
@override
|
||||
String get chat_ShowAllPaths => 'Toon alle paden';
|
||||
|
||||
@override
|
||||
String get chat_routingMode => 'Routeerwijze';
|
||||
|
||||
@@ -1294,12 +1236,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get map_title => 'Node Map';
|
||||
|
||||
@override
|
||||
String get map_lineOfSight => 'Zichtlijn';
|
||||
|
||||
@override
|
||||
String get map_losScreenTitle => 'Zichtlijn';
|
||||
|
||||
@override
|
||||
String get map_noNodesWithLocation => 'Geen nodes met locatiegegevens';
|
||||
|
||||
@@ -2745,15 +2681,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get listFilter_all => 'Alles';
|
||||
|
||||
@override
|
||||
String get listFilter_favorites => 'Favorieten';
|
||||
|
||||
@override
|
||||
String get listFilter_addToFavorites => 'Toevoegen aan favorieten';
|
||||
|
||||
@override
|
||||
String get listFilter_removeFromFavorites => 'Verwijderen uit favorieten';
|
||||
|
||||
@override
|
||||
String get listFilter_users => 'Gebruikers';
|
||||
|
||||
@@ -2788,145 +2715,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get pathTrace_clearTooltip => 'Weg wissen';
|
||||
|
||||
@override
|
||||
String get losSelectStartEnd =>
|
||||
'Selecteer begin- en eindknooppunten voor LOS.';
|
||||
|
||||
@override
|
||||
String losRunFailed(String error) {
|
||||
return 'Zichtlijncontrole mislukt: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losClearAllPoints => 'Wis alle punten';
|
||||
|
||||
@override
|
||||
String get losRunToViewElevationProfile =>
|
||||
'Voer LOS uit om het hoogteprofiel te bekijken';
|
||||
|
||||
@override
|
||||
String get losMenuTitle => 'LOS-menu';
|
||||
|
||||
@override
|
||||
String get losMenuSubtitle =>
|
||||
'Tik op knooppunten of druk lang op de kaart voor aangepaste punten';
|
||||
|
||||
@override
|
||||
String get losShowDisplayNodes => 'Toon weergaveknooppunten';
|
||||
|
||||
@override
|
||||
String get losCustomPoints => 'Aangepaste punten';
|
||||
|
||||
@override
|
||||
String losCustomPointLabel(int index) {
|
||||
return 'Aangepast $index';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losPointA => 'Punt A';
|
||||
|
||||
@override
|
||||
String get losPointB => 'Punt B';
|
||||
|
||||
@override
|
||||
String losAntennaA(String value, String unit) {
|
||||
return 'Antenne A: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losAntennaB(String value, String unit) {
|
||||
return 'Antenne B: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losRun => 'Voer LOS uit';
|
||||
|
||||
@override
|
||||
String get losNoElevationData => 'Geen hoogtegegevens';
|
||||
|
||||
@override
|
||||
String losProfileClear(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String clearance,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, vrije LOS, min. vrije ruimte $clearance $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losProfileBlocked(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String obstruction,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, geblokkeerd door $obstruction $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losStatusChecking => 'LOS: controleren...';
|
||||
|
||||
@override
|
||||
String get losStatusNoData => 'LOS: geen gegevens';
|
||||
|
||||
@override
|
||||
String losStatusSummary(int clear, int total, int blocked, int unknown) {
|
||||
return 'LOS: $clear/$total gewist, $blocked geblokkeerd, $unknown onbekend';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losErrorElevationUnavailable =>
|
||||
'Hoogtegegevens niet beschikbaar voor een of meer monsters.';
|
||||
|
||||
@override
|
||||
String get losErrorInvalidInput =>
|
||||
'Ongeldige punten/hoogtegegevens voor LOS-berekening.';
|
||||
|
||||
@override
|
||||
String get losRenameCustomPoint => 'Hernoem aangepast punt';
|
||||
|
||||
@override
|
||||
String get losPointName => 'Puntnaam';
|
||||
|
||||
@override
|
||||
String get losShowPanelTooltip => 'Toon LOS-paneel';
|
||||
|
||||
@override
|
||||
String get losHidePanelTooltip => 'LOS-paneel verbergen';
|
||||
|
||||
@override
|
||||
String get losElevationAttribution =>
|
||||
'Hoogtegegevens: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get losLegendRadioHorizon => 'Radiohorizon';
|
||||
|
||||
@override
|
||||
String get losLegendLosBeam => 'Zichtlijn';
|
||||
|
||||
@override
|
||||
String get losLegendTerrain => 'Terrein';
|
||||
|
||||
@override
|
||||
String get losFrequencyLabel => 'Frequentie';
|
||||
|
||||
@override
|
||||
String get losFrequencyInfoTooltip => 'Bekijk details van de berekening';
|
||||
|
||||
@override
|
||||
String get losFrequencyDialogTitle => 'Berekening van de radiohorizon';
|
||||
|
||||
@override
|
||||
String losFrequencyDialogDescription(
|
||||
double baselineK,
|
||||
double baselineFreq,
|
||||
double frequencyMHz,
|
||||
double kFactor,
|
||||
) {
|
||||
return 'Beginnend met k=$baselineK bij $baselineFreq MHz, wordt bij de berekening de k-factor aangepast voor de huidige $frequencyMHz MHz-band, die de gebogen radiohorizonkap definieert.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_pathTrace => 'Pad Traceren';
|
||||
|
||||
|
||||
@@ -323,10 +323,6 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
String get settings_aboutDescription =>
|
||||
'Otwarty kod źródłowy klient Flutter dla urządzeń do sieci mesh LoRa MeshCore.';
|
||||
|
||||
@override
|
||||
String get settings_aboutOpenMeteoAttribution =>
|
||||
'Dane wysokościowe LOS: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get settings_infoName => 'Imię';
|
||||
|
||||
@@ -351,6 +347,15 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get settings_presets => 'Preset';
|
||||
|
||||
@override
|
||||
String get settings_preset915Mhz => '915 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset868Mhz => '868 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset433Mhz => '433 MHz';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Częstotliwość (MHz)';
|
||||
|
||||
@@ -380,15 +385,10 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
String get settings_txPowerInvalid => 'Nieprawidłowa moc TX (0-22 dBm)';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeat => 'Powtórzenie: Niezależne od sieci';
|
||||
String get settings_longRange => 'Długi zasięg';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatSubtitle =>
|
||||
'Pozwól temu urządzeniu powtarzać pakiety danych dla innych urządzeń.';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatFreqWarning =>
|
||||
'Powtórka poza siecią wymaga częstotliwości 433, 869 lub 918 MHz.';
|
||||
String get settings_fastSpeed => 'Szybka prędkość';
|
||||
|
||||
@override
|
||||
String settings_error(String message) {
|
||||
@@ -464,13 +464,6 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_languageUk => 'Ukraińska';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing => 'Włącz śledzenie wiadomości';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Pokaż szczegółowe metadane trasowania i czasu dla wiadomości';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Powiadomienia';
|
||||
|
||||
@@ -632,15 +625,6 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_offlineMapCache => 'Bufor Map Offline';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsTitle => 'Jednostki';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsMetric => 'Metryczne (m / km)';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsImperial => 'Imperialne (ft / mi)';
|
||||
|
||||
@override
|
||||
String get appSettings_noAreaSelected => 'Nie zaznaczono żadnej powierzchni.';
|
||||
|
||||
@@ -678,35 +662,7 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
'Kontakty będą wyświetlane, gdy urządzenia reklamują się.';
|
||||
|
||||
@override
|
||||
String get contacts_unread => 'Nieprzeczytane';
|
||||
|
||||
@override
|
||||
String get contacts_searchContactsNoNumber => 'Wyszukaj kontakty...';
|
||||
|
||||
@override
|
||||
String contacts_searchContacts(int number, String str) {
|
||||
return 'Wyszukaj kontakty...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchFavorites(int number, String str) {
|
||||
return 'Wyszukaj $number$str ulubione...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchUsers(int number, String str) {
|
||||
return 'Wyszukaj $number$str Użytkowników...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRepeaters(int number, String str) {
|
||||
return 'Wyszukaj $number$str powtórników...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRoomServers(int number, String str) {
|
||||
return 'Wyszukaj $number$str serwerów Room...';
|
||||
}
|
||||
String get contacts_searchContacts => 'Wyszukaj kontakty...';
|
||||
|
||||
@override
|
||||
String get contacts_noUnreadContacts => 'Brak nieprzeczytanych kontaktów';
|
||||
@@ -832,12 +788,6 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get channels_editChannel => 'Edytuj kanał';
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Wycisz kanał';
|
||||
|
||||
@override
|
||||
String get channels_unmuteChannel => 'Wyłącz wyciszenie kanału';
|
||||
|
||||
@override
|
||||
String get channels_deleteChannel => 'Usuń kanał';
|
||||
|
||||
@@ -846,11 +796,6 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
return 'Usuń \"$name\"? Nie można tego cofnąć.';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleteFailed(String name) {
|
||||
return 'Nie udało się usunąć kanału \"$name\"';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleted(String name) {
|
||||
return 'Kanał \"$name\" usunięto';
|
||||
@@ -1138,9 +1083,6 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get chat_pathManagement => 'Zarządzanie ścieżkami';
|
||||
|
||||
@override
|
||||
String get chat_ShowAllPaths => 'Pokaż wszystkie ścieżki';
|
||||
|
||||
@override
|
||||
String get chat_routingMode => 'Tryb routingu';
|
||||
|
||||
@@ -1300,12 +1242,6 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get map_title => 'Mapa węzłów';
|
||||
|
||||
@override
|
||||
String get map_lineOfSight => 'Linia wzroku';
|
||||
|
||||
@override
|
||||
String get map_losScreenTitle => 'Linia wzroku';
|
||||
|
||||
@override
|
||||
String get map_noNodesWithLocation => 'Brak węzłów z danymi lokalizacyjnymi';
|
||||
|
||||
@@ -2752,15 +2688,6 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get listFilter_all => 'Wszystko';
|
||||
|
||||
@override
|
||||
String get listFilter_favorites => 'Ulubione';
|
||||
|
||||
@override
|
||||
String get listFilter_addToFavorites => 'Dodaj do ulubionych';
|
||||
|
||||
@override
|
||||
String get listFilter_removeFromFavorites => 'Usuń z ulubionych';
|
||||
|
||||
@override
|
||||
String get listFilter_users => 'Użytkownicy';
|
||||
|
||||
@@ -2795,144 +2722,6 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get pathTrace_clearTooltip => 'Wyczyść ścieżkę';
|
||||
|
||||
@override
|
||||
String get losSelectStartEnd => 'Wybierz węzły początkowe i końcowe dla LOS.';
|
||||
|
||||
@override
|
||||
String losRunFailed(String error) {
|
||||
return 'Sprawdzenie pola widzenia nie powiodło się: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losClearAllPoints => 'Wyczyść wszystkie punkty';
|
||||
|
||||
@override
|
||||
String get losRunToViewElevationProfile =>
|
||||
'Uruchom LOS, aby wyświetlić profil wysokości';
|
||||
|
||||
@override
|
||||
String get losMenuTitle => 'Menu LOS';
|
||||
|
||||
@override
|
||||
String get losMenuSubtitle =>
|
||||
'Stuknij węzły lub naciśnij i przytrzymaj mapę, aby uzyskać niestandardowe punkty';
|
||||
|
||||
@override
|
||||
String get losShowDisplayNodes => 'Pokaż węzły wyświetlające';
|
||||
|
||||
@override
|
||||
String get losCustomPoints => 'Punkty niestandardowe';
|
||||
|
||||
@override
|
||||
String losCustomPointLabel(int index) {
|
||||
return 'Niestandardowe $index';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losPointA => 'Punkt A';
|
||||
|
||||
@override
|
||||
String get losPointB => 'Punkt B';
|
||||
|
||||
@override
|
||||
String losAntennaA(String value, String unit) {
|
||||
return 'Antena A: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losAntennaB(String value, String unit) {
|
||||
return 'Antena B: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losRun => 'Uruchom LOS-a';
|
||||
|
||||
@override
|
||||
String get losNoElevationData => 'Brak danych o wysokości';
|
||||
|
||||
@override
|
||||
String losProfileClear(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String clearance,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, czysty LOS, minimalny prześwit $clearance $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losProfileBlocked(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String obstruction,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, zablokowane przez $obstruction $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losStatusChecking => 'LOS: sprawdzam...';
|
||||
|
||||
@override
|
||||
String get losStatusNoData => 'LOS: brak danych';
|
||||
|
||||
@override
|
||||
String losStatusSummary(int clear, int total, int blocked, int unknown) {
|
||||
return 'LOS: $clear/$total jasne, $blocked zablokowane, $unknown nieznane';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losErrorElevationUnavailable =>
|
||||
'Dane dotyczące wysokości są niedostępne dla jednej lub większej liczby próbek.';
|
||||
|
||||
@override
|
||||
String get losErrorInvalidInput =>
|
||||
'Nieprawidłowe dane punktów/wysokości do obliczenia LOS.';
|
||||
|
||||
@override
|
||||
String get losRenameCustomPoint => 'Zmień nazwę punktu niestandardowego';
|
||||
|
||||
@override
|
||||
String get losPointName => 'Nazwa punktu';
|
||||
|
||||
@override
|
||||
String get losShowPanelTooltip => 'Pokaż panel LOS';
|
||||
|
||||
@override
|
||||
String get losHidePanelTooltip => 'Ukryj panel LOS';
|
||||
|
||||
@override
|
||||
String get losElevationAttribution =>
|
||||
'Dane dotyczące wysokości: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get losLegendRadioHorizon => 'Horyzont radiowy';
|
||||
|
||||
@override
|
||||
String get losLegendLosBeam => 'Linia widoczności';
|
||||
|
||||
@override
|
||||
String get losLegendTerrain => 'Teren';
|
||||
|
||||
@override
|
||||
String get losFrequencyLabel => 'Częstotliwość';
|
||||
|
||||
@override
|
||||
String get losFrequencyInfoTooltip => 'Zobacz szczegóły obliczenia';
|
||||
|
||||
@override
|
||||
String get losFrequencyDialogTitle => 'Obliczanie horyzontu radiowego';
|
||||
|
||||
@override
|
||||
String losFrequencyDialogDescription(
|
||||
double baselineK,
|
||||
double baselineFreq,
|
||||
double frequencyMHz,
|
||||
double kFactor,
|
||||
) {
|
||||
return 'Zaczynając od k=$baselineK przy $baselineFreq MHz, obliczenia korygują współczynnik k dla bieżącego pasma $frequencyMHz MHz, które definiuje zakrzywiony limit horyzontu radiowego.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_pathTrace => 'Śledzenie Ścieżek';
|
||||
|
||||
|
||||
@@ -324,10 +324,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
String get settings_aboutDescription =>
|
||||
'Um cliente Flutter de código aberto para dispositivos de rede mesh LoRa Core da MeshCore.';
|
||||
|
||||
@override
|
||||
String get settings_aboutOpenMeteoAttribution =>
|
||||
'Dados de elevação LOS: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get settings_infoName => 'Nome';
|
||||
|
||||
@@ -352,6 +348,15 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get settings_presets => 'Presets';
|
||||
|
||||
@override
|
||||
String get settings_preset915Mhz => '915 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset868Mhz => '868 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset433Mhz => '433 MHz';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frequência (MHz)';
|
||||
|
||||
@@ -380,15 +385,10 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
String get settings_txPowerInvalid => 'Potência de TX inválida (0-22 dBm)';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeat => 'Repetição sem rede';
|
||||
String get settings_longRange => 'Alcance Longo';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatSubtitle =>
|
||||
'Permita que este dispositivo repita pacotes de rede para outros dispositivos.';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatFreqWarning =>
|
||||
'A repetição fora da rede requer frequências de 433, 869 ou 918 MHz.';
|
||||
String get settings_fastSpeed => 'Velocidade Rápida';
|
||||
|
||||
@override
|
||||
String settings_error(String message) {
|
||||
@@ -464,14 +464,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_languageUk => 'Ucraniano';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Ativar rastreamento de mensagens';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Mostrar metadados detalhados de roteamento e tempo para as mensagens';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Notificações';
|
||||
|
||||
@@ -632,15 +624,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_offlineMapCache => 'Cache de Mapa Offline';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsTitle => 'Unidades';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsMetric => 'Métrico (m/km)';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsImperial => 'Imperial (ft/mi)';
|
||||
|
||||
@override
|
||||
String get appSettings_noAreaSelected => 'Nenhuma área selecionada';
|
||||
|
||||
@@ -679,35 +662,7 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
'Os contatos serão exibidos quando os dispositivos anunciarem.';
|
||||
|
||||
@override
|
||||
String get contacts_unread => 'Não lido';
|
||||
|
||||
@override
|
||||
String get contacts_searchContactsNoNumber => 'Pesquisar Contatos...';
|
||||
|
||||
@override
|
||||
String contacts_searchContacts(int number, String str) {
|
||||
return 'Pesquisar contatos...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchFavorites(int number, String str) {
|
||||
return 'Pesquisar $number$str Favoritos...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchUsers(int number, String str) {
|
||||
return 'Pesquisar $number$str Usuários...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRepeaters(int number, String str) {
|
||||
return 'Pesquisar $number$str Repetidores...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRoomServers(int number, String str) {
|
||||
return 'Pesquisar $number$str servidores de sala...';
|
||||
}
|
||||
String get contacts_searchContacts => 'Pesquisar contatos...';
|
||||
|
||||
@override
|
||||
String get contacts_noUnreadContacts => 'Sem contatos não lidos.';
|
||||
@@ -833,12 +788,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get channels_editChannel => 'Editar canal';
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Silenciar canal';
|
||||
|
||||
@override
|
||||
String get channels_unmuteChannel => 'Ativar canal';
|
||||
|
||||
@override
|
||||
String get channels_deleteChannel => 'Excluir canal';
|
||||
|
||||
@@ -847,11 +796,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
return 'Excluir \"$name\"? Não pode ser desfeito.';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleteFailed(String name) {
|
||||
return 'Falha ao excluir o canal \"$name\"';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleted(String name) {
|
||||
return 'Canal \"$name\" excluído';
|
||||
@@ -1139,9 +1083,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get chat_pathManagement => 'Gerenciamento de Caminhos';
|
||||
|
||||
@override
|
||||
String get chat_ShowAllPaths => 'Mostrar todos os caminhos';
|
||||
|
||||
@override
|
||||
String get chat_routingMode => 'Modo de roteamento';
|
||||
|
||||
@@ -1300,12 +1241,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get map_title => 'Mapa de Nós';
|
||||
|
||||
@override
|
||||
String get map_lineOfSight => 'Linha de visão';
|
||||
|
||||
@override
|
||||
String get map_losScreenTitle => 'Linha de visão';
|
||||
|
||||
@override
|
||||
String get map_noNodesWithLocation =>
|
||||
'Não existem nós com dados de localização.';
|
||||
@@ -2755,15 +2690,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get listFilter_all => 'Tudo';
|
||||
|
||||
@override
|
||||
String get listFilter_favorites => 'Favoritos';
|
||||
|
||||
@override
|
||||
String get listFilter_addToFavorites => 'Adicionar aos favoritos';
|
||||
|
||||
@override
|
||||
String get listFilter_removeFromFavorites => 'Remover da lista de favoritos';
|
||||
|
||||
@override
|
||||
String get listFilter_users => 'Usuários';
|
||||
|
||||
@@ -2798,144 +2724,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get pathTrace_clearTooltip => 'Limpar caminho';
|
||||
|
||||
@override
|
||||
String get losSelectStartEnd => 'Selecione nós iniciais e finais para LOS.';
|
||||
|
||||
@override
|
||||
String losRunFailed(String error) {
|
||||
return 'Falha na verificação da linha de visão: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losClearAllPoints => 'Limpe todos os pontos';
|
||||
|
||||
@override
|
||||
String get losRunToViewElevationProfile =>
|
||||
'Execute o LOS para visualizar o perfil de elevação';
|
||||
|
||||
@override
|
||||
String get losMenuTitle => 'Menu LOS';
|
||||
|
||||
@override
|
||||
String get losMenuSubtitle =>
|
||||
'Toque nos nós ou mantenha pressionado o mapa para obter pontos personalizados';
|
||||
|
||||
@override
|
||||
String get losShowDisplayNodes => 'Mostrar nós de exibição';
|
||||
|
||||
@override
|
||||
String get losCustomPoints => 'Pontos personalizados';
|
||||
|
||||
@override
|
||||
String losCustomPointLabel(int index) {
|
||||
return '$index personalizado';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losPointA => 'Ponto A';
|
||||
|
||||
@override
|
||||
String get losPointB => 'Ponto B';
|
||||
|
||||
@override
|
||||
String losAntennaA(String value, String unit) {
|
||||
return 'Antena A: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losAntennaB(String value, String unit) {
|
||||
return 'Antena B: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losRun => 'Executar LOS';
|
||||
|
||||
@override
|
||||
String get losNoElevationData => 'Sem dados de elevação';
|
||||
|
||||
@override
|
||||
String losProfileClear(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String clearance,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, limpar LOS, liberação mínima $clearance $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losProfileBlocked(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String obstruction,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, bloqueado por $obstruction $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losStatusChecking => 'LOS: verificando...';
|
||||
|
||||
@override
|
||||
String get losStatusNoData => 'LOS: sem dados';
|
||||
|
||||
@override
|
||||
String losStatusSummary(int clear, int total, int blocked, int unknown) {
|
||||
return 'LOS: $clear/$total limpo, $blocked bloqueado, $unknown desconhecido';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losErrorElevationUnavailable =>
|
||||
'Dados de elevação indisponíveis para uma ou mais amostras.';
|
||||
|
||||
@override
|
||||
String get losErrorInvalidInput =>
|
||||
'Dados de pontos/elevação inválidos para cálculo de LOS.';
|
||||
|
||||
@override
|
||||
String get losRenameCustomPoint => 'Renomear ponto personalizado';
|
||||
|
||||
@override
|
||||
String get losPointName => 'Nome do ponto';
|
||||
|
||||
@override
|
||||
String get losShowPanelTooltip => 'Mostrar painel LOS';
|
||||
|
||||
@override
|
||||
String get losHidePanelTooltip => 'Ocultar painel LOS';
|
||||
|
||||
@override
|
||||
String get losElevationAttribution =>
|
||||
'Dados de elevação: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get losLegendRadioHorizon => 'Horizonte de rádio';
|
||||
|
||||
@override
|
||||
String get losLegendLosBeam => 'Linha de visada';
|
||||
|
||||
@override
|
||||
String get losLegendTerrain => 'Terreno';
|
||||
|
||||
@override
|
||||
String get losFrequencyLabel => 'Frequência';
|
||||
|
||||
@override
|
||||
String get losFrequencyInfoTooltip => 'Ver detalhes do cálculo';
|
||||
|
||||
@override
|
||||
String get losFrequencyDialogTitle => 'Cálculo do horizonte de rádio';
|
||||
|
||||
@override
|
||||
String losFrequencyDialogDescription(
|
||||
double baselineK,
|
||||
double baselineFreq,
|
||||
double frequencyMHz,
|
||||
double kFactor,
|
||||
) {
|
||||
return 'Começando em k=$baselineK em $baselineFreq MHz, o cálculo ajusta o fator k para a banda atual de $frequencyMHz MHz, que define o limite do horizonte de rádio curvo.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_pathTrace => 'Traçado de Caminho';
|
||||
|
||||
|
||||
@@ -321,10 +321,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
String get settings_aboutDescription =>
|
||||
'Открытое клиентское приложение на Flutter для устройств MeshCore с LoRa-сетями.';
|
||||
|
||||
@override
|
||||
String get settings_aboutOpenMeteoAttribution =>
|
||||
'Данные о высоте LOS: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get settings_infoName => 'Имя';
|
||||
|
||||
@@ -349,6 +345,15 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get settings_presets => 'Пресеты';
|
||||
|
||||
@override
|
||||
String get settings_preset915Mhz => '915 МГц';
|
||||
|
||||
@override
|
||||
String get settings_preset868Mhz => '868 МГц';
|
||||
|
||||
@override
|
||||
String get settings_preset433Mhz => '433 МГц';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Частота (МГц)';
|
||||
|
||||
@@ -378,15 +383,10 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
'Недопустимая мощность передачи (0–22 дБм)';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeat => 'Повторение \"вне сети\"';
|
||||
String get settings_longRange => 'Дальний радиус';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatSubtitle =>
|
||||
'Позвольте этому устройству повторять пакеты данных для других устройств.';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatFreqWarning =>
|
||||
'Для работы в режиме \"без подключения к сети\" требуется частота 433, 869 или 918 МГц.';
|
||||
String get settings_fastSpeed => 'Высокая скорость';
|
||||
|
||||
@override
|
||||
String settings_error(String message) {
|
||||
@@ -462,14 +462,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_languageUk => 'Українська';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Включить трассировку сообщений';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Показывать подробные метаданные о маршрутизации и времени для сообщений';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Уведомления';
|
||||
|
||||
@@ -632,15 +624,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_offlineMapCache => 'Кэш офлайн-карты';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsTitle => 'Единицы';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsMetric => 'Метрическая (м/км)';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsImperial => 'Имперская (ft / mi)';
|
||||
|
||||
@override
|
||||
String get appSettings_noAreaSelected => 'Область не выбрана';
|
||||
|
||||
@@ -678,35 +661,7 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
'Контакты появятся, когда устройства начнут рассылать оповещения';
|
||||
|
||||
@override
|
||||
String get contacts_unread => 'Непрочитанное';
|
||||
|
||||
@override
|
||||
String get contacts_searchContactsNoNumber => 'Поиск контактов...';
|
||||
|
||||
@override
|
||||
String contacts_searchContacts(int number, String str) {
|
||||
return 'Поиск контактов...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchFavorites(int number, String str) {
|
||||
return 'Поиск $number$str избранного...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchUsers(int number, String str) {
|
||||
return 'Поиск $number$str пользователей...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRepeaters(int number, String str) {
|
||||
return 'Поиск $number$str ретрансляторов...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRoomServers(int number, String str) {
|
||||
return 'Поиск $number$str серверов комнат...';
|
||||
}
|
||||
String get contacts_searchContacts => 'Поиск контактов...';
|
||||
|
||||
@override
|
||||
String get contacts_noUnreadContacts => 'Нет непрочитанных контактов';
|
||||
@@ -831,12 +786,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get channels_editChannel => 'Изменить канал';
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Отключить уведомления канала';
|
||||
|
||||
@override
|
||||
String get channels_unmuteChannel => 'Включить уведомления канала';
|
||||
|
||||
@override
|
||||
String get channels_deleteChannel => 'Удалить канал';
|
||||
|
||||
@@ -845,11 +794,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
return 'Удалить \"$name\"? Это действие нельзя отменить.';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleteFailed(String name) {
|
||||
return 'Не удалось удалить канал $name.';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleted(String name) {
|
||||
return 'Канал \"$name\" удалён';
|
||||
@@ -1137,9 +1081,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get chat_pathManagement => 'Управление маршрутами';
|
||||
|
||||
@override
|
||||
String get chat_ShowAllPaths => 'Показать все пути';
|
||||
|
||||
@override
|
||||
String get chat_routingMode => 'Режим маршрутизации';
|
||||
|
||||
@@ -1302,12 +1243,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get map_title => 'Карта нод';
|
||||
|
||||
@override
|
||||
String get map_lineOfSight => 'Линия видимости';
|
||||
|
||||
@override
|
||||
String get map_losScreenTitle => 'Линия видимости';
|
||||
|
||||
@override
|
||||
String get map_noNodesWithLocation => 'Нет нод с данными о местоположении';
|
||||
|
||||
@@ -2758,15 +2693,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get listFilter_all => 'Все';
|
||||
|
||||
@override
|
||||
String get listFilter_favorites => 'Избранное';
|
||||
|
||||
@override
|
||||
String get listFilter_addToFavorites => 'Добавить в избранное';
|
||||
|
||||
@override
|
||||
String get listFilter_removeFromFavorites => 'Удалить из избранного';
|
||||
|
||||
@override
|
||||
String get listFilter_users => 'Пользователи';
|
||||
|
||||
@@ -2801,144 +2727,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get pathTrace_clearTooltip => 'Очистить путь';
|
||||
|
||||
@override
|
||||
String get losSelectStartEnd => 'Выберите начальный и конечный узлы для LOS.';
|
||||
|
||||
@override
|
||||
String losRunFailed(String error) {
|
||||
return 'Проверка прямой видимости не удалась: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losClearAllPoints => 'Очистить все точки';
|
||||
|
||||
@override
|
||||
String get losRunToViewElevationProfile =>
|
||||
'Запустите LOS, чтобы просмотреть профиль высот.';
|
||||
|
||||
@override
|
||||
String get losMenuTitle => 'ЛОС Меню';
|
||||
|
||||
@override
|
||||
String get losMenuSubtitle =>
|
||||
'Коснитесь узлов или нажмите и удерживайте карту для выбора пользовательских точек.';
|
||||
|
||||
@override
|
||||
String get losShowDisplayNodes => 'Показать узлы отображения';
|
||||
|
||||
@override
|
||||
String get losCustomPoints => 'Пользовательские точки';
|
||||
|
||||
@override
|
||||
String losCustomPointLabel(int index) {
|
||||
return 'Пользовательский $index';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losPointA => 'Точка А';
|
||||
|
||||
@override
|
||||
String get losPointB => 'Точка Б';
|
||||
|
||||
@override
|
||||
String losAntennaA(String value, String unit) {
|
||||
return 'Антенна А: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losAntennaB(String value, String unit) {
|
||||
return 'Антенна Б: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losRun => 'Запустить ЛОС';
|
||||
|
||||
@override
|
||||
String get losNoElevationData => 'Нет данных о высоте';
|
||||
|
||||
@override
|
||||
String losProfileClear(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String clearance,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, свободная зона видимости, минимальный зазор $clearance $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losProfileBlocked(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String obstruction,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, заблокирован $obstruction $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losStatusChecking => 'ЛОС: проверяю...';
|
||||
|
||||
@override
|
||||
String get losStatusNoData => 'ЛОС: нет данных';
|
||||
|
||||
@override
|
||||
String losStatusSummary(int clear, int total, int blocked, int unknown) {
|
||||
return 'LOS: $clear/$total очищено, $blocked заблокировано, $unknown неизвестно.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losErrorElevationUnavailable =>
|
||||
'Данные о высоте недоступны для одного или нескольких образцов.';
|
||||
|
||||
@override
|
||||
String get losErrorInvalidInput =>
|
||||
'Неверные данные о точках/высоте для расчета LOS.';
|
||||
|
||||
@override
|
||||
String get losRenameCustomPoint => 'Переименовать пользовательскую точку';
|
||||
|
||||
@override
|
||||
String get losPointName => 'Имя точки';
|
||||
|
||||
@override
|
||||
String get losShowPanelTooltip => 'Показать панель LOS';
|
||||
|
||||
@override
|
||||
String get losHidePanelTooltip => 'Скрыть панель LOS';
|
||||
|
||||
@override
|
||||
String get losElevationAttribution =>
|
||||
'Данные о высоте: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get losLegendRadioHorizon => 'Радиогоризонт';
|
||||
|
||||
@override
|
||||
String get losLegendLosBeam => 'Линия прямой видимости';
|
||||
|
||||
@override
|
||||
String get losLegendTerrain => 'Рельеф';
|
||||
|
||||
@override
|
||||
String get losFrequencyLabel => 'Частота';
|
||||
|
||||
@override
|
||||
String get losFrequencyInfoTooltip => 'Просмотреть детали расчёта';
|
||||
|
||||
@override
|
||||
String get losFrequencyDialogTitle => 'Расчёт радиогоризонта';
|
||||
|
||||
@override
|
||||
String losFrequencyDialogDescription(
|
||||
double baselineK,
|
||||
double baselineFreq,
|
||||
double frequencyMHz,
|
||||
double kFactor,
|
||||
) {
|
||||
return 'Начиная с k=$baselineK на частоте $baselineFreq МГц, расчет корректирует коэффициент k для текущего диапазона $frequencyMHz МГц, который определяет изогнутую границу радиогоризонта.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_pathTrace => 'Трассировка пути';
|
||||
|
||||
|
||||
@@ -320,10 +320,6 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
String get settings_aboutDescription =>
|
||||
'Otvorený zdrojový Flutter klient pre MeshCore LoRa sieťové zariadenia.';
|
||||
|
||||
@override
|
||||
String get settings_aboutOpenMeteoAttribution =>
|
||||
'Údaje o nadmorskej výške LOS: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get settings_infoName => 'Meno';
|
||||
|
||||
@@ -348,6 +344,15 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get settings_presets => 'Prednastavenia';
|
||||
|
||||
@override
|
||||
String get settings_preset915Mhz => '915 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset868Mhz => '868 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset433Mhz => '433 MHz';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frekvencia (MHz)';
|
||||
|
||||
@@ -376,15 +381,10 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
String get settings_txPowerInvalid => 'Neplatná hodnota výkonu TX (0-22 dBm)';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeat => 'Opätovné použitie bez elektrickej siete';
|
||||
String get settings_longRange => 'Dlhý dosah';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatSubtitle =>
|
||||
'Umožnite, aby toto zariadenie opakovávalo siete pre ostatných.';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatFreqWarning =>
|
||||
'Použitie off-grid systému vyžaduje frekvencie 433, 869 alebo 918 MHz.';
|
||||
String get settings_fastSpeed => 'Rýchla rýchlosť';
|
||||
|
||||
@override
|
||||
String settings_error(String message) {
|
||||
@@ -460,13 +460,6 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_languageUk => 'Ukrajinská';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing => 'Povoliť sledovanie správ';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Zobraziť podrobné metadáta o smerovaní a časovaní správ';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Upozornenia';
|
||||
|
||||
@@ -625,15 +618,6 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_offlineMapCache => 'Offline Mapa Pamäť';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsTitle => 'Jednotky';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsMetric => 'Metrické (m / km)';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsImperial => 'Imperiálne (ft / mi)';
|
||||
|
||||
@override
|
||||
String get appSettings_noAreaSelected => 'Neoznačila sa žiadna oblasť';
|
||||
|
||||
@@ -671,35 +655,7 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
'Kontakty sa zobrazia, keď zariadenia spúšťajú reklamu.';
|
||||
|
||||
@override
|
||||
String get contacts_unread => 'Neprečítané';
|
||||
|
||||
@override
|
||||
String get contacts_searchContactsNoNumber => 'Hľadať kontakty...';
|
||||
|
||||
@override
|
||||
String contacts_searchContacts(int number, String str) {
|
||||
return 'Vyhľadávajte kontakty...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchFavorites(int number, String str) {
|
||||
return 'Hľadať $number$str obľúbené...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchUsers(int number, String str) {
|
||||
return 'Hľadať $number$str používateľov...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRepeaters(int number, String str) {
|
||||
return 'Hľadať $number$str opakovače...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRoomServers(int number, String str) {
|
||||
return 'Hľadaj $number$str serverov miestností...';
|
||||
}
|
||||
String get contacts_searchContacts => 'Vyhľadávajte kontakty...';
|
||||
|
||||
@override
|
||||
String get contacts_noUnreadContacts => 'Žiadne neprečítané kontakty';
|
||||
@@ -827,12 +783,6 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get channels_editChannel => 'Upraviť kanál';
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Stlmiť kanál';
|
||||
|
||||
@override
|
||||
String get channels_unmuteChannel => 'Zrušiť stlmenie kanála';
|
||||
|
||||
@override
|
||||
String get channels_deleteChannel => 'Odstrániť kanál';
|
||||
|
||||
@@ -841,11 +791,6 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
return 'Odstrániť \"$name\"? To sa nedá zrušiť.';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleteFailed(String name) {
|
||||
return 'Kanál \"$name\" sa nepodarilo odstrániť';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleted(String name) {
|
||||
return 'Kanál \"$name\" bol odstránený';
|
||||
@@ -1133,9 +1078,6 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get chat_pathManagement => 'Správa ciest';
|
||||
|
||||
@override
|
||||
String get chat_ShowAllPaths => 'Zobraziť všetky cesty';
|
||||
|
||||
@override
|
||||
String get chat_routingMode => 'Režim trasy';
|
||||
|
||||
@@ -1295,12 +1237,6 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get map_title => 'Mapa uzlov';
|
||||
|
||||
@override
|
||||
String get map_lineOfSight => 'Line of Sight';
|
||||
|
||||
@override
|
||||
String get map_losScreenTitle => 'Line of Sight';
|
||||
|
||||
@override
|
||||
String get map_noNodesWithLocation => 'Žiadne uzly s údajmi o polohe';
|
||||
|
||||
@@ -2740,15 +2676,6 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get listFilter_all => 'Všetko';
|
||||
|
||||
@override
|
||||
String get listFilter_favorites => 'Obľúbené';
|
||||
|
||||
@override
|
||||
String get listFilter_addToFavorites => 'Pridaj do obľúbených';
|
||||
|
||||
@override
|
||||
String get listFilter_removeFromFavorites => 'Odstrániť z označení';
|
||||
|
||||
@override
|
||||
String get listFilter_users => 'Používatelia';
|
||||
|
||||
@@ -2783,144 +2710,6 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get pathTrace_clearTooltip => 'Zmazať cestu';
|
||||
|
||||
@override
|
||||
String get losSelectStartEnd => 'Vyberte počiatočný a koncový uzol pre LOS.';
|
||||
|
||||
@override
|
||||
String losRunFailed(String error) {
|
||||
return 'Kontrola priamej viditeľnosti zlyhala: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losClearAllPoints => 'Vymazať všetky body';
|
||||
|
||||
@override
|
||||
String get losRunToViewElevationProfile =>
|
||||
'Ak chcete zobraziť výškový profil, spustite LOS';
|
||||
|
||||
@override
|
||||
String get losMenuTitle => 'Menu LOS';
|
||||
|
||||
@override
|
||||
String get losMenuSubtitle =>
|
||||
'Klepnutím na uzly alebo dlhým stlačením mapy získate vlastné body';
|
||||
|
||||
@override
|
||||
String get losShowDisplayNodes => 'Zobraziť uzly zobrazenia';
|
||||
|
||||
@override
|
||||
String get losCustomPoints => 'Vlastné body';
|
||||
|
||||
@override
|
||||
String losCustomPointLabel(int index) {
|
||||
return 'Vlastné $index';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losPointA => 'Bod A';
|
||||
|
||||
@override
|
||||
String get losPointB => 'Bod B';
|
||||
|
||||
@override
|
||||
String losAntennaA(String value, String unit) {
|
||||
return 'Anténa A: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losAntennaB(String value, String unit) {
|
||||
return 'Anténa B: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losRun => 'Spustite LOS';
|
||||
|
||||
@override
|
||||
String get losNoElevationData => 'Žiadne údaje o nadmorskej výške';
|
||||
|
||||
@override
|
||||
String losProfileClear(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String clearance,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, vymazať LOS, min. vôľa $clearance $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losProfileBlocked(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String obstruction,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, blokovaný $obstruction $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losStatusChecking => 'LOS: kontrolujem...';
|
||||
|
||||
@override
|
||||
String get losStatusNoData => 'LOS: žiadne údaje';
|
||||
|
||||
@override
|
||||
String losStatusSummary(int clear, int total, int blocked, int unknown) {
|
||||
return 'LOS: $clear/$total vymazané, $blocked blokované, $unknown neznáme';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losErrorElevationUnavailable =>
|
||||
'Údaje o nadmorskej výške nie sú k dispozícii pre jednu alebo viacero vzoriek.';
|
||||
|
||||
@override
|
||||
String get losErrorInvalidInput =>
|
||||
'Neplatné body/údaje o nadmorskej výške pre výpočet LOS.';
|
||||
|
||||
@override
|
||||
String get losRenameCustomPoint => 'Premenovať vlastný bod';
|
||||
|
||||
@override
|
||||
String get losPointName => 'Názov bodu';
|
||||
|
||||
@override
|
||||
String get losShowPanelTooltip => 'Zobraziť panel LOS';
|
||||
|
||||
@override
|
||||
String get losHidePanelTooltip => 'Skryť panel LOS';
|
||||
|
||||
@override
|
||||
String get losElevationAttribution =>
|
||||
'Údaje o nadmorskej výške: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get losLegendRadioHorizon => 'Rádiový horizont';
|
||||
|
||||
@override
|
||||
String get losLegendLosBeam => 'Priama viditeľnosť';
|
||||
|
||||
@override
|
||||
String get losLegendTerrain => 'Terén';
|
||||
|
||||
@override
|
||||
String get losFrequencyLabel => 'Frekvencia';
|
||||
|
||||
@override
|
||||
String get losFrequencyInfoTooltip => 'Zobraziť podrobnosti výpočtu';
|
||||
|
||||
@override
|
||||
String get losFrequencyDialogTitle => 'Výpočet rádiového horizontu';
|
||||
|
||||
@override
|
||||
String losFrequencyDialogDescription(
|
||||
double baselineK,
|
||||
double baselineFreq,
|
||||
double frequencyMHz,
|
||||
double kFactor,
|
||||
) {
|
||||
return 'Počnúc od k=$baselineK pri $baselineFreq MHz výpočet upraví k-faktor pre aktuálne pásmo $frequencyMHz MHz, ktorý definuje zakrivený strop rádiového horizontu.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_pathTrace => 'Sledovanie lúčov';
|
||||
|
||||
|
||||
@@ -319,10 +319,6 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
String get settings_aboutDescription =>
|
||||
'Odprtokodni Flutter klient za naprave za LoRa omrežje MeshCore.';
|
||||
|
||||
@override
|
||||
String get settings_aboutOpenMeteoAttribution =>
|
||||
'Podatki o višini LOS: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get settings_infoName => 'Ime';
|
||||
|
||||
@@ -347,6 +343,15 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get settings_presets => 'Prednastavitve';
|
||||
|
||||
@override
|
||||
String get settings_preset915Mhz => '915 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset868Mhz => '868 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset433Mhz => '433 MHz';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frekvenca (MHz)';
|
||||
|
||||
@@ -375,15 +380,10 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
String get settings_txPowerInvalid => 'Neveljavna TX moč (0-22 dBm)';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeat => 'Neovadno ponavljanje';
|
||||
String get settings_longRange => 'DDolg doseg';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatSubtitle =>
|
||||
'Omogočite temu naprave, da ponavlja paketne sporočila za druge.';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatFreqWarning =>
|
||||
'Za ponovni prenos na brezžični način so potrebne frekvence 433, 869 ali 918 MHz.';
|
||||
String get settings_fastSpeed => 'Visoka hitrost';
|
||||
|
||||
@override
|
||||
String settings_error(String message) {
|
||||
@@ -459,13 +459,6 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_languageUk => 'Ukrajinsko';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing => 'Omogoči sledenje sporočilom';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Prikaži podrobne metapodatke o usmerjanju in časovnem usklajevanju sporočil';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Obvestila';
|
||||
|
||||
@@ -626,15 +619,6 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_offlineMapCache => 'Shramba zemljevidov brez povezave';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsTitle => 'Enote';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsMetric => 'Metrična (m/km)';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsImperial => 'Imperialno (ft / mi)';
|
||||
|
||||
@override
|
||||
String get appSettings_noAreaSelected => 'Območje ni izbrano';
|
||||
|
||||
@@ -672,35 +656,7 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
'Stiki se bodo prikazali, ko se naprave oglasijo.';
|
||||
|
||||
@override
|
||||
String get contacts_unread => 'Neprebrano';
|
||||
|
||||
@override
|
||||
String get contacts_searchContactsNoNumber => 'Iskanje stikov...';
|
||||
|
||||
@override
|
||||
String contacts_searchContacts(int number, String str) {
|
||||
return 'Iskanje stikov...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchFavorites(int number, String str) {
|
||||
return 'Iskanje $number$str priljubljenih...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchUsers(int number, String str) {
|
||||
return 'Išči $number$str uporabnikov...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRepeaters(int number, String str) {
|
||||
return 'Išči $number$str ponavljalnike...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRoomServers(int number, String str) {
|
||||
return 'Išči $number$str strežnikov sob...';
|
||||
}
|
||||
String get contacts_searchContacts => 'Iskanje stikov...';
|
||||
|
||||
@override
|
||||
String get contacts_noUnreadContacts => 'Ne prebrani stiki.';
|
||||
@@ -825,12 +781,6 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get channels_editChannel => 'Uredi kanal';
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Utišaj kanal';
|
||||
|
||||
@override
|
||||
String get channels_unmuteChannel => 'Vklopi obvestila kanala';
|
||||
|
||||
@override
|
||||
String get channels_deleteChannel => 'Pošlji kanal';
|
||||
|
||||
@@ -839,11 +789,6 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
return 'Izbrišem \"$name\"? To se ne da povrniti.';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleteFailed(String name) {
|
||||
return 'Kanala $name ni bilo mogoče izbrisati';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleted(String name) {
|
||||
return 'Kanal \"$name\" izbrisan.';
|
||||
@@ -1131,9 +1076,6 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get chat_pathManagement => 'Upravljanje poti';
|
||||
|
||||
@override
|
||||
String get chat_ShowAllPaths => 'Prikaži vse poti';
|
||||
|
||||
@override
|
||||
String get chat_routingMode => 'Navodilo za usmerjevalni način';
|
||||
|
||||
@@ -1290,12 +1232,6 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get map_title => 'Mapa omrežja';
|
||||
|
||||
@override
|
||||
String get map_lineOfSight => 'Linija vida';
|
||||
|
||||
@override
|
||||
String get map_losScreenTitle => 'Linija vida';
|
||||
|
||||
@override
|
||||
String get map_noNodesWithLocation =>
|
||||
'Nihče od notranjih elementov nima podatkov o lokaciji.';
|
||||
@@ -2743,15 +2679,6 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get listFilter_all => 'Vse';
|
||||
|
||||
@override
|
||||
String get listFilter_favorites => 'Priljubljene';
|
||||
|
||||
@override
|
||||
String get listFilter_addToFavorites => 'Dodaj v priljubljene';
|
||||
|
||||
@override
|
||||
String get listFilter_removeFromFavorites => 'Odstrani iz priljubljenih';
|
||||
|
||||
@override
|
||||
String get listFilter_users => 'Uporabniki';
|
||||
|
||||
@@ -2786,144 +2713,6 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get pathTrace_clearTooltip => 'Počisti pot';
|
||||
|
||||
@override
|
||||
String get losSelectStartEnd => 'Izberite začetno in končno vozlišče za LOS.';
|
||||
|
||||
@override
|
||||
String losRunFailed(String error) {
|
||||
return 'Preverjanje vidnega polja ni uspelo: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losClearAllPoints => 'Počisti vse točke';
|
||||
|
||||
@override
|
||||
String get losRunToViewElevationProfile =>
|
||||
'Zaženite LOS za ogled višinskega profila';
|
||||
|
||||
@override
|
||||
String get losMenuTitle => 'LOS meni';
|
||||
|
||||
@override
|
||||
String get losMenuSubtitle =>
|
||||
'Tapnite vozlišča ali dolgo pritisnite na zemljevid za točke po meri';
|
||||
|
||||
@override
|
||||
String get losShowDisplayNodes => 'Pokaži prikazna vozlišča';
|
||||
|
||||
@override
|
||||
String get losCustomPoints => 'Točke po meri';
|
||||
|
||||
@override
|
||||
String losCustomPointLabel(int index) {
|
||||
return 'Po meri $index';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losPointA => 'Točka A';
|
||||
|
||||
@override
|
||||
String get losPointB => 'Točka B';
|
||||
|
||||
@override
|
||||
String losAntennaA(String value, String unit) {
|
||||
return 'Antena A: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losAntennaB(String value, String unit) {
|
||||
return 'Antena B: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losRun => 'Zaženi LOS';
|
||||
|
||||
@override
|
||||
String get losNoElevationData => 'Ni podatkov o višini';
|
||||
|
||||
@override
|
||||
String losProfileClear(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String clearance,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, čisti LOS, najmanjša razdalja $clearance $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losProfileBlocked(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String obstruction,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, blokiral $obstruction $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losStatusChecking => 'LOS: preverjam ...';
|
||||
|
||||
@override
|
||||
String get losStatusNoData => 'LOS: ni podatkov';
|
||||
|
||||
@override
|
||||
String losStatusSummary(int clear, int total, int blocked, int unknown) {
|
||||
return 'LOS: $clear/$total jasno, $blocked blokirano, $unknown neznano';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losErrorElevationUnavailable =>
|
||||
'Podatki o nadmorski višini niso na voljo za enega ali več vzorcev.';
|
||||
|
||||
@override
|
||||
String get losErrorInvalidInput =>
|
||||
'Neveljavni podatki o točkah/višini za izračun LOS.';
|
||||
|
||||
@override
|
||||
String get losRenameCustomPoint => 'Preimenujte točko po meri';
|
||||
|
||||
@override
|
||||
String get losPointName => 'Ime točke';
|
||||
|
||||
@override
|
||||
String get losShowPanelTooltip => 'Pokaži ploščo LOS';
|
||||
|
||||
@override
|
||||
String get losHidePanelTooltip => 'Skrij ploščo LOS';
|
||||
|
||||
@override
|
||||
String get losElevationAttribution =>
|
||||
'Podatki o višini: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get losLegendRadioHorizon => 'Radijski horizont';
|
||||
|
||||
@override
|
||||
String get losLegendLosBeam => 'Linija vidnosti';
|
||||
|
||||
@override
|
||||
String get losLegendTerrain => 'Teren';
|
||||
|
||||
@override
|
||||
String get losFrequencyLabel => 'Frekvenca';
|
||||
|
||||
@override
|
||||
String get losFrequencyInfoTooltip => 'Prikaži podrobnosti izračuna';
|
||||
|
||||
@override
|
||||
String get losFrequencyDialogTitle => 'Izračun radijskega horizonta';
|
||||
|
||||
@override
|
||||
String losFrequencyDialogDescription(
|
||||
double baselineK,
|
||||
double baselineFreq,
|
||||
double frequencyMHz,
|
||||
double kFactor,
|
||||
) {
|
||||
return 'Začenši od k=$baselineK pri $baselineFreq MHz, izračun prilagodi k-faktor za trenutni pas $frequencyMHz MHz, ki določa ukrivljeno zgornjo mejo radijskega horizonta.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_pathTrace => 'Sledenje poti';
|
||||
|
||||
|
||||
@@ -317,10 +317,6 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
String get settings_aboutDescription =>
|
||||
'En öppen källkods Flutter-klient för MeshCore LoRa meshnätverksenheter.';
|
||||
|
||||
@override
|
||||
String get settings_aboutOpenMeteoAttribution =>
|
||||
'LOS-höjddata: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get settings_infoName => 'Namn';
|
||||
|
||||
@@ -345,6 +341,15 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get settings_presets => 'Fördefinierade inställningar';
|
||||
|
||||
@override
|
||||
String get settings_preset915Mhz => '915 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset868Mhz => '868 MHz';
|
||||
|
||||
@override
|
||||
String get settings_preset433Mhz => '433 MHz';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Frekvens (MHz)';
|
||||
|
||||
@@ -373,15 +378,10 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
String get settings_txPowerInvalid => 'Ogiltig TX-effekt (0-22 dBm)';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeat => 'Upprepa utan elnät';
|
||||
String get settings_longRange => 'Lång räckvidd';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatSubtitle =>
|
||||
'Låt enheten repetera nätpaket för andra användare.';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatFreqWarning =>
|
||||
'För att kunna kommunicera utanför elnätet krävs frekvenserna 433, 869 eller 918 MHz.';
|
||||
String get settings_fastSpeed => 'Snabb hastighet';
|
||||
|
||||
@override
|
||||
String settings_error(String message) {
|
||||
@@ -457,13 +457,6 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_languageUk => 'Ukrainska';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing => 'Aktivera meddelandespårning';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Visa detaljerade metadata om dirigering och tidsinställningar för meddelanden';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Meddelanden';
|
||||
|
||||
@@ -621,15 +614,6 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_offlineMapCache => 'Offline Kartcache';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsTitle => 'Enheter';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsMetric => 'Metriskt (m/km)';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsImperial => 'Imperialt (ft / mi)';
|
||||
|
||||
@override
|
||||
String get appSettings_noAreaSelected => 'Ingen area markerad';
|
||||
|
||||
@@ -667,35 +651,7 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
'Kontakter kommer att visas när enheter annonserar.';
|
||||
|
||||
@override
|
||||
String get contacts_unread => 'Oläst';
|
||||
|
||||
@override
|
||||
String get contacts_searchContactsNoNumber => 'Sök kontakter...';
|
||||
|
||||
@override
|
||||
String contacts_searchContacts(int number, String str) {
|
||||
return 'Sök kontakter...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchFavorites(int number, String str) {
|
||||
return 'Sök $number$str Favoriter...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchUsers(int number, String str) {
|
||||
return 'Sök $number$str användare...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRepeaters(int number, String str) {
|
||||
return 'Sök $number$str upprepningsenheter...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRoomServers(int number, String str) {
|
||||
return 'Sök $number$str Room-servrar...';
|
||||
}
|
||||
String get contacts_searchContacts => 'Sök kontakter...';
|
||||
|
||||
@override
|
||||
String get contacts_noUnreadContacts => 'Inga oinlästa kontakter';
|
||||
@@ -821,12 +777,6 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get channels_editChannel => 'Redigera kanal';
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Tysta kanal';
|
||||
|
||||
@override
|
||||
String get channels_unmuteChannel => 'Slå på ljud för kanal';
|
||||
|
||||
@override
|
||||
String get channels_deleteChannel => 'Ta bort kanal';
|
||||
|
||||
@@ -835,11 +785,6 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
return 'Radera \"$name\"? Detta kan inte ångras.';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleteFailed(String name) {
|
||||
return 'Det gick inte att ta bort kanalen \"$name\"';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleted(String name) {
|
||||
return 'Kanalen \"$name\" raderad';
|
||||
@@ -1128,9 +1073,6 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get chat_pathManagement => 'Stigarhantering';
|
||||
|
||||
@override
|
||||
String get chat_ShowAllPaths => 'Visa alla vägar';
|
||||
|
||||
@override
|
||||
String get chat_routingMode => 'Ruttläge';
|
||||
|
||||
@@ -1287,12 +1229,6 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get map_title => 'Nodkarta';
|
||||
|
||||
@override
|
||||
String get map_lineOfSight => 'Synlinje';
|
||||
|
||||
@override
|
||||
String get map_losScreenTitle => 'Synlinje';
|
||||
|
||||
@override
|
||||
String get map_noNodesWithLocation => 'Inga noder med platsinformation';
|
||||
|
||||
@@ -2728,15 +2664,6 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get listFilter_all => 'Alla';
|
||||
|
||||
@override
|
||||
String get listFilter_favorites => 'Favoriter';
|
||||
|
||||
@override
|
||||
String get listFilter_addToFavorites => 'Lägg till i favoriter';
|
||||
|
||||
@override
|
||||
String get listFilter_removeFromFavorites => 'Ta bort från favoriter';
|
||||
|
||||
@override
|
||||
String get listFilter_users => 'Användare';
|
||||
|
||||
@@ -2771,142 +2698,6 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get pathTrace_clearTooltip => 'Rensa väg';
|
||||
|
||||
@override
|
||||
String get losSelectStartEnd => 'Välj start- och slutnoder för LOS.';
|
||||
|
||||
@override
|
||||
String losRunFailed(String error) {
|
||||
return 'Synlinjekontroll misslyckades: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losClearAllPoints => 'Rensa alla punkter';
|
||||
|
||||
@override
|
||||
String get losRunToViewElevationProfile => 'Kör LOS för att se höjdprofil';
|
||||
|
||||
@override
|
||||
String get losMenuTitle => 'LOS-menyn';
|
||||
|
||||
@override
|
||||
String get losMenuSubtitle =>
|
||||
'Tryck på noder eller tryck länge på kartan för anpassade punkter';
|
||||
|
||||
@override
|
||||
String get losShowDisplayNodes => 'Visa displaynoder';
|
||||
|
||||
@override
|
||||
String get losCustomPoints => 'Anpassade poäng';
|
||||
|
||||
@override
|
||||
String losCustomPointLabel(int index) {
|
||||
return 'Anpassad $index';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losPointA => 'Punkt A';
|
||||
|
||||
@override
|
||||
String get losPointB => 'Punkt B';
|
||||
|
||||
@override
|
||||
String losAntennaA(String value, String unit) {
|
||||
return 'Antenn A: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losAntennaB(String value, String unit) {
|
||||
return 'Antenn B: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losRun => 'Kör LOS';
|
||||
|
||||
@override
|
||||
String get losNoElevationData => 'Inga höjddata';
|
||||
|
||||
@override
|
||||
String losProfileClear(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String clearance,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, rensa LOS, min clearance $clearance $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losProfileBlocked(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String obstruction,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, blockerad av $obstruction $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losStatusChecking => 'LOS: kollar...';
|
||||
|
||||
@override
|
||||
String get losStatusNoData => 'LOS: inga data';
|
||||
|
||||
@override
|
||||
String losStatusSummary(int clear, int total, int blocked, int unknown) {
|
||||
return 'LOS: $clear/$total rensa, $blocked blockerad, $unknown okänd';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losErrorElevationUnavailable =>
|
||||
'Höjddata är inte tillgänglig för ett eller flera prover.';
|
||||
|
||||
@override
|
||||
String get losErrorInvalidInput =>
|
||||
'Ogiltiga poäng/höjddata för LOS-beräkning.';
|
||||
|
||||
@override
|
||||
String get losRenameCustomPoint => 'Byt namn på anpassad punkt';
|
||||
|
||||
@override
|
||||
String get losPointName => 'Punktnamn';
|
||||
|
||||
@override
|
||||
String get losShowPanelTooltip => 'Visa LOS-panelen';
|
||||
|
||||
@override
|
||||
String get losHidePanelTooltip => 'Dölj LOS-panelen';
|
||||
|
||||
@override
|
||||
String get losElevationAttribution => 'Höjddata: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get losLegendRadioHorizon => 'Radiohorisont';
|
||||
|
||||
@override
|
||||
String get losLegendLosBeam => 'Siktlinje';
|
||||
|
||||
@override
|
||||
String get losLegendTerrain => 'Terräng';
|
||||
|
||||
@override
|
||||
String get losFrequencyLabel => 'Frekvens';
|
||||
|
||||
@override
|
||||
String get losFrequencyInfoTooltip => 'Visa detaljer om beräkningen';
|
||||
|
||||
@override
|
||||
String get losFrequencyDialogTitle => 'Beräkning av radiohorisonten';
|
||||
|
||||
@override
|
||||
String losFrequencyDialogDescription(
|
||||
double baselineK,
|
||||
double baselineFreq,
|
||||
double frequencyMHz,
|
||||
double kFactor,
|
||||
) {
|
||||
return 'Med start från k=$baselineK vid $baselineFreq MHz, justerar beräkningen k-faktorn för det aktuella $frequencyMHz MHz-bandet, som definierar den böjda radiohorisonten.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_pathTrace => 'Path Trace';
|
||||
|
||||
|
||||
@@ -322,10 +322,6 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
String get settings_aboutDescription =>
|
||||
'Клієнт Flutter з відкритим вихідним кодом для пристроїв мережі MeshCore LoRa.';
|
||||
|
||||
@override
|
||||
String get settings_aboutOpenMeteoAttribution =>
|
||||
'Дані про висоту LOS: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get settings_infoName => 'Ім\'я';
|
||||
|
||||
@@ -350,6 +346,15 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get settings_presets => 'Попередні налаштування';
|
||||
|
||||
@override
|
||||
String get settings_preset915Mhz => '915 МГц';
|
||||
|
||||
@override
|
||||
String get settings_preset868Mhz => '868 МГц';
|
||||
|
||||
@override
|
||||
String get settings_preset433Mhz => '433 МГц';
|
||||
|
||||
@override
|
||||
String get settings_frequency => 'Частота (МГц)';
|
||||
|
||||
@@ -378,15 +383,10 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
String get settings_txPowerInvalid => 'Некоректна потужність TX (0-22 дБм)';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeat => 'Автономна система';
|
||||
String get settings_longRange => 'Дальній діапазон';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatSubtitle =>
|
||||
'Дозвольте цьому пристрою повторювати пакети даних для інших пристроїв.';
|
||||
|
||||
@override
|
||||
String get settings_clientRepeatFreqWarning =>
|
||||
'Повтор без підключення до мережі вимагає частоти 433, 869 або 918 МГц.';
|
||||
String get settings_fastSpeed => 'Висока швидкість';
|
||||
|
||||
@override
|
||||
String settings_error(String message) {
|
||||
@@ -462,14 +462,6 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_languageUk => 'Українська';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracing =>
|
||||
'Увімкнути відстеження повідомлень';
|
||||
|
||||
@override
|
||||
String get appSettings_enableMessageTracingSubtitle =>
|
||||
'Показувати детальні метадані про маршрутизацію та час для повідомлень';
|
||||
|
||||
@override
|
||||
String get appSettings_notifications => 'Сповіщення';
|
||||
|
||||
@@ -630,15 +622,6 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_offlineMapCache => 'Офлайн-кеш карти';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsTitle => 'одиниці';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsMetric => 'Метричний (м / км)';
|
||||
|
||||
@override
|
||||
String get appSettings_unitsImperial => 'Імперська (ft / mi)';
|
||||
|
||||
@override
|
||||
String get appSettings_noAreaSelected => 'Область не вибрано';
|
||||
|
||||
@@ -676,35 +659,7 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
'Контакти з\'являться, коли пристрої надішлють оголошення.';
|
||||
|
||||
@override
|
||||
String get contacts_unread => 'Непрочитане';
|
||||
|
||||
@override
|
||||
String get contacts_searchContactsNoNumber => 'Пошук контактів...';
|
||||
|
||||
@override
|
||||
String contacts_searchContacts(int number, String str) {
|
||||
return 'Пошук контактів...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchFavorites(int number, String str) {
|
||||
return 'Пошук $number$str улюблених...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchUsers(int number, String str) {
|
||||
return 'Пошук $number$str користувачів...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRepeaters(int number, String str) {
|
||||
return 'Пошук $number$str ретрансляторів...';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_searchRoomServers(int number, String str) {
|
||||
return 'Пошук $number$str серверів кімнат...';
|
||||
}
|
||||
String get contacts_searchContacts => 'Пошук контактів...';
|
||||
|
||||
@override
|
||||
String get contacts_noUnreadContacts => 'Немає непрочитаних контактів';
|
||||
@@ -829,12 +784,6 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get channels_editChannel => 'Редагувати канал';
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Вимкнути сповіщення каналу';
|
||||
|
||||
@override
|
||||
String get channels_unmuteChannel => 'Увімкнути сповіщення каналу';
|
||||
|
||||
@override
|
||||
String get channels_deleteChannel => 'Видалити канал';
|
||||
|
||||
@@ -843,11 +792,6 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
return 'Видалити $name? Це не можна скасувати.';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleteFailed(String name) {
|
||||
return 'Не вдалося видалити канал \"$name\"';
|
||||
}
|
||||
|
||||
@override
|
||||
String channels_channelDeleted(String name) {
|
||||
return 'Канал «$name» видалено';
|
||||
@@ -1135,9 +1079,6 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get chat_pathManagement => 'Керування шляхами';
|
||||
|
||||
@override
|
||||
String get chat_ShowAllPaths => 'Показати всі шляхи';
|
||||
|
||||
@override
|
||||
String get chat_routingMode => 'Режим маршрутизації';
|
||||
|
||||
@@ -1300,12 +1241,6 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get map_title => 'Карта вузлів';
|
||||
|
||||
@override
|
||||
String get map_lineOfSight => 'Пряма видимість';
|
||||
|
||||
@override
|
||||
String get map_losScreenTitle => 'Пряма видимість';
|
||||
|
||||
@override
|
||||
String get map_noNodesWithLocation =>
|
||||
'Немає вузлів з даними про розташування';
|
||||
@@ -2765,15 +2700,6 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get listFilter_all => 'Все';
|
||||
|
||||
@override
|
||||
String get listFilter_favorites => 'Улюблені';
|
||||
|
||||
@override
|
||||
String get listFilter_addToFavorites => 'Додати до улюблених';
|
||||
|
||||
@override
|
||||
String get listFilter_removeFromFavorites => 'Видалити зі списку улюблених';
|
||||
|
||||
@override
|
||||
String get listFilter_users => 'Користувачі';
|
||||
|
||||
@@ -2808,145 +2734,6 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get pathTrace_clearTooltip => 'Очистити шлях';
|
||||
|
||||
@override
|
||||
String get losSelectStartEnd =>
|
||||
'Виберіть початковий і кінцевий вузли для LOS.';
|
||||
|
||||
@override
|
||||
String losRunFailed(String error) {
|
||||
return 'Помилка перевірки прямої видимості: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losClearAllPoints => 'Очистити всі пункти';
|
||||
|
||||
@override
|
||||
String get losRunToViewElevationProfile =>
|
||||
'Запустіть LOS, щоб переглянути профіль висоти';
|
||||
|
||||
@override
|
||||
String get losMenuTitle => 'Меню LOS';
|
||||
|
||||
@override
|
||||
String get losMenuSubtitle =>
|
||||
'Торкніться вузлів або утримуйте карту, щоб отримати власні точки';
|
||||
|
||||
@override
|
||||
String get losShowDisplayNodes => 'Показати вузли відображення';
|
||||
|
||||
@override
|
||||
String get losCustomPoints => 'Користувальницькі точки';
|
||||
|
||||
@override
|
||||
String losCustomPointLabel(int index) {
|
||||
return 'Спеціальний $index';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losPointA => 'Точка А';
|
||||
|
||||
@override
|
||||
String get losPointB => 'Точка Б';
|
||||
|
||||
@override
|
||||
String losAntennaA(String value, String unit) {
|
||||
return 'Антена A: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losAntennaB(String value, String unit) {
|
||||
return 'Антена B: $value $unit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losRun => 'Запустіть LOS';
|
||||
|
||||
@override
|
||||
String get losNoElevationData => 'Немає даних про висоту';
|
||||
|
||||
@override
|
||||
String losProfileClear(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String clearance,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, чистий LOS, мінімальний зазор $clearance $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String losProfileBlocked(
|
||||
String distance,
|
||||
String distanceUnit,
|
||||
String obstruction,
|
||||
String heightUnit,
|
||||
) {
|
||||
return '$distance $distanceUnit, заблоковано $obstruction $heightUnit';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losStatusChecking => 'LOS: перевірка...';
|
||||
|
||||
@override
|
||||
String get losStatusNoData => 'LOS: немає даних';
|
||||
|
||||
@override
|
||||
String losStatusSummary(int clear, int total, int blocked, int unknown) {
|
||||
return 'LOS: $clear/$total очищено, $blocked заблоковано, $unknown невідомо';
|
||||
}
|
||||
|
||||
@override
|
||||
String get losErrorElevationUnavailable =>
|
||||
'Дані про висоту недоступні для одного чи кількох зразків.';
|
||||
|
||||
@override
|
||||
String get losErrorInvalidInput =>
|
||||
'Недійсні дані про точки/висоту для розрахунку LOS.';
|
||||
|
||||
@override
|
||||
String get losRenameCustomPoint => 'Перейменуйте спеціальну точку';
|
||||
|
||||
@override
|
||||
String get losPointName => 'Назва точки';
|
||||
|
||||
@override
|
||||
String get losShowPanelTooltip => 'Показати панель LOS';
|
||||
|
||||
@override
|
||||
String get losHidePanelTooltip => 'Приховати панель LOS';
|
||||
|
||||
@override
|
||||
String get losElevationAttribution =>
|
||||
'Дані про висоту: Open-Meteo (CC BY 4.0)';
|
||||
|
||||
@override
|
||||
String get losLegendRadioHorizon => 'Радіогоризонт';
|
||||
|
||||
@override
|
||||
String get losLegendLosBeam => 'Лінія прямої видимості';
|
||||
|
||||
@override
|
||||
String get losLegendTerrain => 'Рельєф';
|
||||
|
||||
@override
|
||||
String get losFrequencyLabel => 'Частота';
|
||||
|
||||
@override
|
||||
String get losFrequencyInfoTooltip => 'Переглянути деталі розрахунку';
|
||||
|
||||
@override
|
||||
String get losFrequencyDialogTitle => 'Розрахунок радіогоризонту';
|
||||
|
||||
@override
|
||||
String losFrequencyDialogDescription(
|
||||
double baselineK,
|
||||
double baselineFreq,
|
||||
double frequencyMHz,
|
||||
double kFactor,
|
||||
) {
|
||||
return 'Починаючи з k=$baselineK на $baselineFreq МГц, обчислення коригує k-фактор для поточного діапазону $frequencyMHz МГц, який визначає викривлену межу радіогоризонту.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_pathTrace => 'Трасування шляхів';
|
||||
|
||||
|
||||
+534
-699
File diff suppressed because it is too large
Load Diff
+6
-205
@@ -1,12 +1,4 @@
|
||||
{
|
||||
"channels_channelDeleteFailed": "Kan kanaal {name} niet verwijderen",
|
||||
"@channels_channelDeleteFailed": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@@locale": "nl",
|
||||
"appTitle": "MeshCore Open",
|
||||
"nav_contacts": "Contacten",
|
||||
@@ -139,6 +131,9 @@
|
||||
"settings_infoContactsCount": "Aantal Contacten",
|
||||
"settings_infoChannelCount": "Aantal Kanalen",
|
||||
"settings_presets": "Presets",
|
||||
"settings_preset915Mhz": "915 MHz",
|
||||
"settings_preset868Mhz": "868 MHz",
|
||||
"settings_preset433Mhz": "433 MHz",
|
||||
"settings_frequency": "Frequentie (MHz)",
|
||||
"settings_frequencyHelper": "300,0 - 2500,0",
|
||||
"settings_frequencyInvalid": "Ongeldige frequentie (300-2500 MHz)",
|
||||
@@ -148,6 +143,8 @@
|
||||
"settings_txPower": "TX Vermogen (dBm)",
|
||||
"settings_txPowerHelper": "0 - 22",
|
||||
"settings_txPowerInvalid": "Ongeldige TX-vermogen (0-22 dBm)",
|
||||
"settings_longRange": "Lange Afstand",
|
||||
"settings_fastSpeed": "Hoge Snelheid",
|
||||
"settings_error": "Fout: {message}",
|
||||
"@settings_error": {
|
||||
"placeholders": {
|
||||
@@ -342,8 +339,6 @@
|
||||
"channels_publicChannel": "Open kanaal",
|
||||
"channels_privateChannel": "Private kanaal",
|
||||
"channels_editChannel": "Kanaal bewerken",
|
||||
"channels_muteChannel": "Kanaal dempen",
|
||||
"channels_unmuteChannel": "Kanaal dempen opheffen",
|
||||
"channels_deleteChannel": "Kanaal verwijderen",
|
||||
"channels_deleteChannelConfirm": "Verwijderen \"{name}\"? Dit kan niet worden teruggedraaid.",
|
||||
"@channels_deleteChannelConfirm": {
|
||||
@@ -1565,8 +1560,6 @@
|
||||
"contacts_floodAdvert": "Overstromingsadvertentie",
|
||||
"contacts_copyAdvertToClipboard": "Advert naar klembord kopiëren",
|
||||
"appSettings_languageRu": "Russisch",
|
||||
"appSettings_enableMessageTracing": "Berichttracking inschakelen",
|
||||
"appSettings_enableMessageTracingSubtitle": "Gedetailleerde routerings- en timing-metadata voor berichten weergeven",
|
||||
"contacts_clipboardEmpty": "Knipbord is leeg.",
|
||||
"contacts_addContactFromClipboard": "Contact uit klembord toevoegen",
|
||||
"contacts_contactImported": "Contact is geïmporteerd.",
|
||||
@@ -1607,197 +1600,5 @@
|
||||
"scanner_bluetoothOffMessage": "Zorg ervoor dat Bluetooth is ingeschakeld om naar apparaten te zoeken.",
|
||||
"scanner_bluetoothOff": "Bluetooth is uitgeschakeld",
|
||||
"snrIndicator_lastSeen": "Laatst gezien",
|
||||
"snrIndicator_nearByRepeaters": "Nabije herhalingseenheden",
|
||||
"chat_ShowAllPaths": "Toon alle paden",
|
||||
"settings_clientRepeat": "Herhalen: Afgekoppeld",
|
||||
"settings_clientRepeatSubtitle": "Laat dit apparaat de mesh-pakketten opnieuw verzenden voor andere apparaten.",
|
||||
"settings_clientRepeatFreqWarning": "Om een signaal buiten het netwerk te versturen, zijn frequenties van 433, 869 of 918 MHz vereist.",
|
||||
"settings_aboutOpenMeteoAttribution": "LOS-hoogtegegevens: Open-Meteo (CC BY 4.0)",
|
||||
"appSettings_unitsTitle": "Eenheden",
|
||||
"appSettings_unitsMetric": "Metrisch (m / km)",
|
||||
"appSettings_unitsImperial": "Imperiaal (ft / mi)",
|
||||
"map_lineOfSight": "Zichtlijn",
|
||||
"map_losScreenTitle": "Zichtlijn",
|
||||
"losSelectStartEnd": "Selecteer begin- en eindknooppunten voor LOS.",
|
||||
"losRunFailed": "Zichtlijncontrole mislukt: {error}",
|
||||
"@losRunFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losClearAllPoints": "Wis alle punten",
|
||||
"losRunToViewElevationProfile": "Voer LOS uit om het hoogteprofiel te bekijken",
|
||||
"losMenuTitle": "LOS-menu",
|
||||
"losMenuSubtitle": "Tik op knooppunten of druk lang op de kaart voor aangepaste punten",
|
||||
"losShowDisplayNodes": "Toon weergaveknooppunten",
|
||||
"losCustomPoints": "Aangepaste punten",
|
||||
"losCustomPointLabel": "Aangepast {index}",
|
||||
"@losCustomPointLabel": {
|
||||
"placeholders": {
|
||||
"index": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losPointA": "Punt A",
|
||||
"losPointB": "Punt B",
|
||||
"losAntennaA": "Antenne A: {value} {unit}",
|
||||
"@losAntennaA": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losAntennaB": "Antenne B: {value} {unit}",
|
||||
"@losAntennaB": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losRun": "Voer LOS uit",
|
||||
"losNoElevationData": "Geen hoogtegegevens",
|
||||
"losProfileClear": "{distance} {distanceUnit}, vrije LOS, min. vrije ruimte {clearance} {heightUnit}",
|
||||
"@losProfileClear": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"clearance": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losProfileBlocked": "{distance} {distanceUnit}, geblokkeerd door {obstruction} {heightUnit}",
|
||||
"@losProfileBlocked": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"obstruction": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losStatusChecking": "LOS: controleren...",
|
||||
"losStatusNoData": "LOS: geen gegevens",
|
||||
"losStatusSummary": "LOS: {clear}/{total} gewist, {blocked} geblokkeerd, {unknown} onbekend",
|
||||
"@losStatusSummary": {
|
||||
"placeholders": {
|
||||
"clear": {
|
||||
"type": "int"
|
||||
},
|
||||
"total": {
|
||||
"type": "int"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "int"
|
||||
},
|
||||
"unknown": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losErrorElevationUnavailable": "Hoogtegegevens niet beschikbaar voor een of meer monsters.",
|
||||
"losErrorInvalidInput": "Ongeldige punten/hoogtegegevens voor LOS-berekening.",
|
||||
"losRenameCustomPoint": "Hernoem aangepast punt",
|
||||
"losPointName": "Puntnaam",
|
||||
"losShowPanelTooltip": "Toon LOS-paneel",
|
||||
"losHidePanelTooltip": "LOS-paneel verbergen",
|
||||
"losElevationAttribution": "Hoogtegegevens: Open-Meteo (CC BY 4.0)",
|
||||
"losLegendRadioHorizon": "Radiohorizon",
|
||||
"losLegendLosBeam": "Zichtlijn",
|
||||
"losLegendTerrain": "Terrein",
|
||||
"losFrequencyLabel": "Frequentie",
|
||||
"losFrequencyInfoTooltip": "Bekijk details van de berekening",
|
||||
"losFrequencyDialogTitle": "Berekening van de radiohorizon",
|
||||
"losFrequencyDialogDescription": "Beginnend met k={baselineK} bij {baselineFreq} MHz, wordt bij de berekening de k-factor aangepast voor de huidige {frequencyMHz} MHz-band, die de gebogen radiohorizonkap definieert.",
|
||||
"@losFrequencyDialogDescription": {
|
||||
"description": "Explain how the calculation uses the baseline frequency and derived k-factor.",
|
||||
"placeholders": {
|
||||
"baselineK": {
|
||||
"type": "double"
|
||||
},
|
||||
"baselineFreq": {
|
||||
"type": "double"
|
||||
},
|
||||
"frequencyMHz": {
|
||||
"type": "double"
|
||||
},
|
||||
"kFactor": {
|
||||
"type": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"listFilter_removeFromFavorites": "Verwijderen uit favorieten",
|
||||
"listFilter_favorites": "Favorieten",
|
||||
"listFilter_addToFavorites": "Toevoegen aan favorieten",
|
||||
"@contacts_searchFavorites": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchUsers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRepeaters": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRoomServers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_unread": "Ongelezen",
|
||||
"contacts_searchRepeaters": "Zoek {number}{str} Repeaters...",
|
||||
"contacts_searchContactsNoNumber": "Zoek contacten...",
|
||||
"contacts_searchUsers": "Zoek {number}{str} gebruikers...",
|
||||
"contacts_searchFavorites": "Zoek {number}{str} favorieten...",
|
||||
"contacts_searchRoomServers": "Zoek {number}{str} Room servers..."
|
||||
"snrIndicator_nearByRepeaters": "Nabije herhalingseenheden"
|
||||
}
|
||||
|
||||
+6
-205
@@ -1,12 +1,4 @@
|
||||
{
|
||||
"channels_channelDeleteFailed": "Nie udało się usunąć kanału \"{name}\"",
|
||||
"@channels_channelDeleteFailed": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@@locale": "pl",
|
||||
"appTitle": "MeshCore Open",
|
||||
"nav_contacts": "Kontakty",
|
||||
@@ -139,6 +131,9 @@
|
||||
"settings_infoContactsCount": "Liczba kontaktów",
|
||||
"settings_infoChannelCount": "Liczba kanałów",
|
||||
"settings_presets": "Preset",
|
||||
"settings_preset915Mhz": "915 MHz",
|
||||
"settings_preset868Mhz": "868 MHz",
|
||||
"settings_preset433Mhz": "433 MHz",
|
||||
"settings_frequency": "Częstotliwość (MHz)",
|
||||
"settings_frequencyHelper": "300,0 - 2500,0",
|
||||
"settings_frequencyInvalid": "Nieprawidłowa częstotliwość (300-2500 MHz)",
|
||||
@@ -148,6 +143,8 @@
|
||||
"settings_txPower": "TX Moc (dBm)",
|
||||
"settings_txPowerHelper": "0 - 22",
|
||||
"settings_txPowerInvalid": "Nieprawidłowa moc TX (0-22 dBm)",
|
||||
"settings_longRange": "Długi zasięg",
|
||||
"settings_fastSpeed": "Szybka prędkość",
|
||||
"settings_error": "Błąd: {message}",
|
||||
"@settings_error": {
|
||||
"placeholders": {
|
||||
@@ -342,8 +339,6 @@
|
||||
"channels_publicChannel": "Kanał publiczny",
|
||||
"channels_privateChannel": "Prywatny kanał",
|
||||
"channels_editChannel": "Edytuj kanał",
|
||||
"channels_muteChannel": "Wycisz kanał",
|
||||
"channels_unmuteChannel": "Wyłącz wyciszenie kanału",
|
||||
"channels_deleteChannel": "Usuń kanał",
|
||||
"channels_deleteChannelConfirm": "Usuń \"{name}\"? Nie można tego cofnąć.",
|
||||
"@channels_deleteChannelConfirm": {
|
||||
@@ -1560,8 +1555,6 @@
|
||||
"contacts_chatTraceRoute": "Śledź trasę promienia",
|
||||
"appSettings_languageRu": "Rosyjski",
|
||||
"appSettings_languageUk": "Ukraińska",
|
||||
"appSettings_enableMessageTracing": "Włącz śledzenie wiadomości",
|
||||
"appSettings_enableMessageTracingSubtitle": "Pokaż szczegółowe metadane trasowania i czasu dla wiadomości",
|
||||
"contacts_contactImportFailed": "Kontakt nie został zaimportowany.",
|
||||
"contacts_zeroHopAdvert": "Reklama Zero Hop",
|
||||
"contacts_floodAdvert": "Reklama powodziowa",
|
||||
@@ -1607,197 +1600,5 @@
|
||||
"scanner_bluetoothOff": "Bluetooth jest wyłączony",
|
||||
"scanner_enableBluetooth": "Włącz Bluetooth",
|
||||
"snrIndicator_lastSeen": "Ostatnio widziany",
|
||||
"snrIndicator_nearByRepeaters": "Nadajniki w pobliżu",
|
||||
"chat_ShowAllPaths": "Pokaż wszystkie ścieżki",
|
||||
"settings_clientRepeatSubtitle": "Pozwól temu urządzeniu powtarzać pakiety danych dla innych urządzeń.",
|
||||
"settings_clientRepeat": "Powtórzenie: Niezależne od sieci",
|
||||
"settings_clientRepeatFreqWarning": "Powtórka poza siecią wymaga częstotliwości 433, 869 lub 918 MHz.",
|
||||
"settings_aboutOpenMeteoAttribution": "Dane wysokościowe LOS: Open-Meteo (CC BY 4.0)",
|
||||
"appSettings_unitsTitle": "Jednostki",
|
||||
"appSettings_unitsMetric": "Metryczne (m / km)",
|
||||
"appSettings_unitsImperial": "Imperialne (ft / mi)",
|
||||
"map_lineOfSight": "Linia wzroku",
|
||||
"map_losScreenTitle": "Linia wzroku",
|
||||
"losSelectStartEnd": "Wybierz węzły początkowe i końcowe dla LOS.",
|
||||
"losRunFailed": "Sprawdzenie pola widzenia nie powiodło się: {error}",
|
||||
"@losRunFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losClearAllPoints": "Wyczyść wszystkie punkty",
|
||||
"losRunToViewElevationProfile": "Uruchom LOS, aby wyświetlić profil wysokości",
|
||||
"losMenuTitle": "Menu LOS",
|
||||
"losMenuSubtitle": "Stuknij węzły lub naciśnij i przytrzymaj mapę, aby uzyskać niestandardowe punkty",
|
||||
"losShowDisplayNodes": "Pokaż węzły wyświetlające",
|
||||
"losCustomPoints": "Punkty niestandardowe",
|
||||
"losCustomPointLabel": "Niestandardowe {index}",
|
||||
"@losCustomPointLabel": {
|
||||
"placeholders": {
|
||||
"index": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losPointA": "Punkt A",
|
||||
"losPointB": "Punkt B",
|
||||
"losAntennaA": "Antena A: {value} {unit}",
|
||||
"@losAntennaA": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losAntennaB": "Antena B: {value} {unit}",
|
||||
"@losAntennaB": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losRun": "Uruchom LOS-a",
|
||||
"losNoElevationData": "Brak danych o wysokości",
|
||||
"losProfileClear": "{distance} {distanceUnit}, czysty LOS, minimalny prześwit {clearance} {heightUnit}",
|
||||
"@losProfileClear": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"clearance": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losProfileBlocked": "{distance} {distanceUnit}, zablokowane przez {obstruction} {heightUnit}",
|
||||
"@losProfileBlocked": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"obstruction": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losStatusChecking": "LOS: sprawdzam...",
|
||||
"losStatusNoData": "LOS: brak danych",
|
||||
"losStatusSummary": "LOS: {clear}/{total} jasne, {blocked} zablokowane, {unknown} nieznane",
|
||||
"@losStatusSummary": {
|
||||
"placeholders": {
|
||||
"clear": {
|
||||
"type": "int"
|
||||
},
|
||||
"total": {
|
||||
"type": "int"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "int"
|
||||
},
|
||||
"unknown": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losErrorElevationUnavailable": "Dane dotyczące wysokości są niedostępne dla jednej lub większej liczby próbek.",
|
||||
"losErrorInvalidInput": "Nieprawidłowe dane punktów/wysokości do obliczenia LOS.",
|
||||
"losRenameCustomPoint": "Zmień nazwę punktu niestandardowego",
|
||||
"losPointName": "Nazwa punktu",
|
||||
"losShowPanelTooltip": "Pokaż panel LOS",
|
||||
"losHidePanelTooltip": "Ukryj panel LOS",
|
||||
"losElevationAttribution": "Dane dotyczące wysokości: Open-Meteo (CC BY 4.0)",
|
||||
"losLegendRadioHorizon": "Horyzont radiowy",
|
||||
"losLegendLosBeam": "Linia widoczności",
|
||||
"losLegendTerrain": "Teren",
|
||||
"losFrequencyLabel": "Częstotliwość",
|
||||
"losFrequencyInfoTooltip": "Zobacz szczegóły obliczenia",
|
||||
"losFrequencyDialogTitle": "Obliczanie horyzontu radiowego",
|
||||
"losFrequencyDialogDescription": "Zaczynając od k={baselineK} przy {baselineFreq} MHz, obliczenia korygują współczynnik k dla bieżącego pasma {frequencyMHz} MHz, które definiuje zakrzywiony limit horyzontu radiowego.",
|
||||
"@losFrequencyDialogDescription": {
|
||||
"description": "Explain how the calculation uses the baseline frequency and derived k-factor.",
|
||||
"placeholders": {
|
||||
"baselineK": {
|
||||
"type": "double"
|
||||
},
|
||||
"baselineFreq": {
|
||||
"type": "double"
|
||||
},
|
||||
"frequencyMHz": {
|
||||
"type": "double"
|
||||
},
|
||||
"kFactor": {
|
||||
"type": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"listFilter_removeFromFavorites": "Usuń z ulubionych",
|
||||
"listFilter_addToFavorites": "Dodaj do ulubionych",
|
||||
"listFilter_favorites": "Ulubione",
|
||||
"@contacts_searchFavorites": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchUsers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRepeaters": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRoomServers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_unread": "Nieprzeczytane",
|
||||
"contacts_searchContactsNoNumber": "Wyszukaj kontakty...",
|
||||
"contacts_searchFavorites": "Wyszukaj {number}{str} ulubione...",
|
||||
"contacts_searchRoomServers": "Wyszukaj {number}{str} serwerów Room...",
|
||||
"contacts_searchUsers": "Wyszukaj {number}{str} Użytkowników...",
|
||||
"contacts_searchRepeaters": "Wyszukaj {number}{str} powtórników..."
|
||||
"snrIndicator_nearByRepeaters": "Nadajniki w pobliżu"
|
||||
}
|
||||
|
||||
+6
-205
@@ -1,12 +1,4 @@
|
||||
{
|
||||
"channels_channelDeleteFailed": "Falha ao excluir o canal \"{name}\"",
|
||||
"@channels_channelDeleteFailed": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@@locale": "pt",
|
||||
"appTitle": "MeshCore Open",
|
||||
"nav_contacts": "Contactos",
|
||||
@@ -139,6 +131,9 @@
|
||||
"settings_infoContactsCount": "Número de Contatos",
|
||||
"settings_infoChannelCount": "Número do Canal",
|
||||
"settings_presets": "Presets",
|
||||
"settings_preset915Mhz": "915 MHz",
|
||||
"settings_preset868Mhz": "868 MHz",
|
||||
"settings_preset433Mhz": "433 MHz",
|
||||
"settings_frequency": "Frequência (MHz)",
|
||||
"settings_frequencyHelper": "300,0 - 2500,0",
|
||||
"settings_frequencyInvalid": "Frequência inválida (300-2500 MHz)",
|
||||
@@ -148,6 +143,8 @@
|
||||
"settings_txPower": "TX Potência (dBm)",
|
||||
"settings_txPowerHelper": "0 - 22",
|
||||
"settings_txPowerInvalid": "Potência de TX inválida (0-22 dBm)",
|
||||
"settings_longRange": "Alcance Longo",
|
||||
"settings_fastSpeed": "Velocidade Rápida",
|
||||
"settings_error": "Erro: {message}",
|
||||
"@settings_error": {
|
||||
"placeholders": {
|
||||
@@ -342,8 +339,6 @@
|
||||
"channels_publicChannel": "Canal público",
|
||||
"channels_privateChannel": "Canal privado",
|
||||
"channels_editChannel": "Editar canal",
|
||||
"channels_muteChannel": "Silenciar canal",
|
||||
"channels_unmuteChannel": "Ativar canal",
|
||||
"channels_deleteChannel": "Excluir canal",
|
||||
"channels_deleteChannelConfirm": "Excluir \"{name}\"? Não pode ser desfeito.",
|
||||
"@channels_deleteChannelConfirm": {
|
||||
@@ -1566,8 +1561,6 @@
|
||||
"contacts_copyAdvertToClipboard": "Copiar Anúncio para Área de Transferência",
|
||||
"contacts_addContactFromClipboard": "Adicionar Contato da Área de Transferência",
|
||||
"appSettings_languageRu": "Russo",
|
||||
"appSettings_enableMessageTracing": "Ativar rastreamento de mensagens",
|
||||
"appSettings_enableMessageTracingSubtitle": "Mostrar metadados detalhados de roteamento e tempo para as mensagens",
|
||||
"contacts_ShareContact": "Copiar contato para Área de Transferência",
|
||||
"contacts_contactImportFailed": "Contato falhou ao ser importado.",
|
||||
"contacts_zeroHopContactAdvertSent": "Enviou contato por anúncio.",
|
||||
@@ -1607,197 +1600,5 @@
|
||||
"scanner_bluetoothOff": "Bluetooth está desativado",
|
||||
"scanner_bluetoothOffMessage": "Por favor, ative o Bluetooth para escanear por dispositivos.",
|
||||
"snrIndicator_nearByRepeaters": "Repetidores Próximos",
|
||||
"snrIndicator_lastSeen": "Visto pela última vez",
|
||||
"chat_ShowAllPaths": "Mostrar todos os caminhos",
|
||||
"settings_clientRepeatFreqWarning": "A repetição fora da rede requer frequências de 433, 869 ou 918 MHz.",
|
||||
"settings_clientRepeat": "Repetição sem rede",
|
||||
"settings_clientRepeatSubtitle": "Permita que este dispositivo repita pacotes de rede para outros dispositivos.",
|
||||
"settings_aboutOpenMeteoAttribution": "Dados de elevação LOS: Open-Meteo (CC BY 4.0)",
|
||||
"appSettings_unitsTitle": "Unidades",
|
||||
"appSettings_unitsMetric": "Métrico (m/km)",
|
||||
"appSettings_unitsImperial": "Imperial (ft/mi)",
|
||||
"map_lineOfSight": "Linha de visão",
|
||||
"map_losScreenTitle": "Linha de visão",
|
||||
"losSelectStartEnd": "Selecione nós iniciais e finais para LOS.",
|
||||
"losRunFailed": "Falha na verificação da linha de visão: {error}",
|
||||
"@losRunFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losClearAllPoints": "Limpe todos os pontos",
|
||||
"losRunToViewElevationProfile": "Execute o LOS para visualizar o perfil de elevação",
|
||||
"losMenuTitle": "Menu LOS",
|
||||
"losMenuSubtitle": "Toque nos nós ou mantenha pressionado o mapa para obter pontos personalizados",
|
||||
"losShowDisplayNodes": "Mostrar nós de exibição",
|
||||
"losCustomPoints": "Pontos personalizados",
|
||||
"losCustomPointLabel": "{index} personalizado",
|
||||
"@losCustomPointLabel": {
|
||||
"placeholders": {
|
||||
"index": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losPointA": "Ponto A",
|
||||
"losPointB": "Ponto B",
|
||||
"losAntennaA": "Antena A: {value} {unit}",
|
||||
"@losAntennaA": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losAntennaB": "Antena B: {value} {unit}",
|
||||
"@losAntennaB": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losRun": "Executar LOS",
|
||||
"losNoElevationData": "Sem dados de elevação",
|
||||
"losProfileClear": "{distance} {distanceUnit}, limpar LOS, liberação mínima {clearance} {heightUnit}",
|
||||
"@losProfileClear": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"clearance": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losProfileBlocked": "{distance} {distanceUnit}, bloqueado por {obstruction} {heightUnit}",
|
||||
"@losProfileBlocked": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"obstruction": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losStatusChecking": "LOS: verificando...",
|
||||
"losStatusNoData": "LOS: sem dados",
|
||||
"losStatusSummary": "LOS: {clear}/{total} limpo, {blocked} bloqueado, {unknown} desconhecido",
|
||||
"@losStatusSummary": {
|
||||
"placeholders": {
|
||||
"clear": {
|
||||
"type": "int"
|
||||
},
|
||||
"total": {
|
||||
"type": "int"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "int"
|
||||
},
|
||||
"unknown": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losErrorElevationUnavailable": "Dados de elevação indisponíveis para uma ou mais amostras.",
|
||||
"losErrorInvalidInput": "Dados de pontos/elevação inválidos para cálculo de LOS.",
|
||||
"losRenameCustomPoint": "Renomear ponto personalizado",
|
||||
"losPointName": "Nome do ponto",
|
||||
"losShowPanelTooltip": "Mostrar painel LOS",
|
||||
"losHidePanelTooltip": "Ocultar painel LOS",
|
||||
"losElevationAttribution": "Dados de elevação: Open-Meteo (CC BY 4.0)",
|
||||
"losLegendRadioHorizon": "Horizonte de rádio",
|
||||
"losLegendLosBeam": "Linha de visada",
|
||||
"losLegendTerrain": "Terreno",
|
||||
"losFrequencyLabel": "Frequência",
|
||||
"losFrequencyInfoTooltip": "Ver detalhes do cálculo",
|
||||
"losFrequencyDialogTitle": "Cálculo do horizonte de rádio",
|
||||
"losFrequencyDialogDescription": "Começando em k={baselineK} em {baselineFreq} MHz, o cálculo ajusta o fator k para a banda atual de {frequencyMHz} MHz, que define o limite do horizonte de rádio curvo.",
|
||||
"@losFrequencyDialogDescription": {
|
||||
"description": "Explain how the calculation uses the baseline frequency and derived k-factor.",
|
||||
"placeholders": {
|
||||
"baselineK": {
|
||||
"type": "double"
|
||||
},
|
||||
"baselineFreq": {
|
||||
"type": "double"
|
||||
},
|
||||
"frequencyMHz": {
|
||||
"type": "double"
|
||||
},
|
||||
"kFactor": {
|
||||
"type": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"listFilter_addToFavorites": "Adicionar aos favoritos",
|
||||
"listFilter_removeFromFavorites": "Remover da lista de favoritos",
|
||||
"listFilter_favorites": "Favoritos",
|
||||
"@contacts_searchFavorites": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchUsers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRepeaters": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRoomServers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_searchRepeaters": "Pesquisar {number}{str} Repetidores...",
|
||||
"contacts_searchFavorites": "Pesquisar {number}{str} Favoritos...",
|
||||
"contacts_searchUsers": "Pesquisar {number}{str} Usuários...",
|
||||
"contacts_searchContactsNoNumber": "Pesquisar Contatos...",
|
||||
"contacts_unread": "Não lido",
|
||||
"contacts_searchRoomServers": "Pesquisar {number}{str} servidores de sala..."
|
||||
"snrIndicator_lastSeen": "Visto pela última vez"
|
||||
}
|
||||
|
||||
+6
-205
@@ -1,12 +1,4 @@
|
||||
{
|
||||
"channels_channelDeleteFailed": "Не удалось удалить канал {name}.",
|
||||
"@channels_channelDeleteFailed": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@@locale": "ru",
|
||||
"appTitle": "MeshCore Open",
|
||||
"nav_contacts": "Контакты",
|
||||
@@ -109,6 +101,9 @@
|
||||
"settings_infoContactsCount": "Количество контактов",
|
||||
"settings_infoChannelCount": "Количество каналов",
|
||||
"settings_presets": "Пресеты",
|
||||
"settings_preset915Mhz": "915 МГц",
|
||||
"settings_preset868Mhz": "868 МГц",
|
||||
"settings_preset433Mhz": "433 МГц",
|
||||
"settings_frequency": "Частота (МГц)",
|
||||
"settings_frequencyHelper": "300.0 – 2500.0",
|
||||
"settings_frequencyInvalid": "Недопустимая частота (300–2500 МГц)",
|
||||
@@ -118,6 +113,8 @@
|
||||
"settings_txPower": "Мощность передачи (дБм)",
|
||||
"settings_txPowerHelper": "0 – 22",
|
||||
"settings_txPowerInvalid": "Недопустимая мощность передачи (0–22 дБм)",
|
||||
"settings_longRange": "Дальний радиус",
|
||||
"settings_fastSpeed": "Высокая скорость",
|
||||
"settings_error": "Ошибка: {message}",
|
||||
"appSettings_title": "Настройки приложения",
|
||||
"appSettings_appearance": "Внешний вид",
|
||||
@@ -234,8 +231,6 @@
|
||||
"channels_publicChannel": "Публичный канал",
|
||||
"channels_privateChannel": "Приватный канал",
|
||||
"channels_editChannel": "Изменить канал",
|
||||
"channels_muteChannel": "Отключить уведомления канала",
|
||||
"channels_unmuteChannel": "Включить уведомления канала",
|
||||
"channels_deleteChannel": "Удалить канал",
|
||||
"channels_deleteChannelConfirm": "Удалить \"{name}\"? Это действие нельзя отменить.",
|
||||
"channels_channelDeleted": "Канал \"{name}\" удалён",
|
||||
@@ -804,8 +799,6 @@
|
||||
"contacts_invalidAdvertFormat": "Недействительные контактные данные",
|
||||
"contacts_zeroHopAdvert": "Реклама Zero Hop",
|
||||
"appSettings_languageUk": "Українська",
|
||||
"appSettings_enableMessageTracing": "Включить трассировку сообщений",
|
||||
"appSettings_enableMessageTracingSubtitle": "Показывать подробные метаданные о маршрутизации и времени для сообщений",
|
||||
"contacts_floodAdvert": "Рекламный поток",
|
||||
"contacts_clipboardEmpty": "Буфер обмена пуст.",
|
||||
"contacts_copyAdvertToClipboard": "Копировать рекламу в буфер обмена",
|
||||
@@ -847,197 +840,5 @@
|
||||
"scanner_bluetoothOff": "Bluetooth выключен",
|
||||
"scanner_bluetoothOffMessage": "Пожалуйста, включите Bluetooth, чтобы найти устройства.",
|
||||
"snrIndicator_nearByRepeaters": "Ближайшие ретрансляторы",
|
||||
"snrIndicator_lastSeen": "Последний раз видели",
|
||||
"chat_ShowAllPaths": "Показать все пути",
|
||||
"settings_clientRepeatFreqWarning": "Для работы в режиме \"без подключения к сети\" требуется частота 433, 869 или 918 МГц.",
|
||||
"settings_clientRepeatSubtitle": "Позвольте этому устройству повторять пакеты данных для других устройств.",
|
||||
"settings_clientRepeat": "Повторение \"вне сети\"",
|
||||
"settings_aboutOpenMeteoAttribution": "Данные о высоте LOS: Open-Meteo (CC BY 4.0)",
|
||||
"appSettings_unitsTitle": "Единицы",
|
||||
"appSettings_unitsMetric": "Метрическая (м/км)",
|
||||
"appSettings_unitsImperial": "Имперская (ft / mi)",
|
||||
"map_lineOfSight": "Линия видимости",
|
||||
"map_losScreenTitle": "Линия видимости",
|
||||
"losSelectStartEnd": "Выберите начальный и конечный узлы для LOS.",
|
||||
"losRunFailed": "Проверка прямой видимости не удалась: {error}",
|
||||
"@losRunFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losClearAllPoints": "Очистить все точки",
|
||||
"losRunToViewElevationProfile": "Запустите LOS, чтобы просмотреть профиль высот.",
|
||||
"losMenuTitle": "ЛОС Меню",
|
||||
"losMenuSubtitle": "Коснитесь узлов или нажмите и удерживайте карту для выбора пользовательских точек.",
|
||||
"losShowDisplayNodes": "Показать узлы отображения",
|
||||
"losCustomPoints": "Пользовательские точки",
|
||||
"losCustomPointLabel": "Пользовательский {index}",
|
||||
"@losCustomPointLabel": {
|
||||
"placeholders": {
|
||||
"index": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losPointA": "Точка А",
|
||||
"losPointB": "Точка Б",
|
||||
"losAntennaA": "Антенна А: {value} {unit}",
|
||||
"@losAntennaA": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losAntennaB": "Антенна Б: {value} {unit}",
|
||||
"@losAntennaB": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losRun": "Запустить ЛОС",
|
||||
"losNoElevationData": "Нет данных о высоте",
|
||||
"losProfileClear": "{distance} {distanceUnit}, свободная зона видимости, минимальный зазор {clearance} {heightUnit}",
|
||||
"@losProfileClear": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"clearance": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losProfileBlocked": "{distance} {distanceUnit}, заблокирован {obstruction} {heightUnit}",
|
||||
"@losProfileBlocked": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"obstruction": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losStatusChecking": "ЛОС: проверяю...",
|
||||
"losStatusNoData": "ЛОС: нет данных",
|
||||
"losStatusSummary": "LOS: {clear}/{total} очищено, {blocked} заблокировано, {unknown} неизвестно.",
|
||||
"@losStatusSummary": {
|
||||
"placeholders": {
|
||||
"clear": {
|
||||
"type": "int"
|
||||
},
|
||||
"total": {
|
||||
"type": "int"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "int"
|
||||
},
|
||||
"unknown": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losErrorElevationUnavailable": "Данные о высоте недоступны для одного или нескольких образцов.",
|
||||
"losErrorInvalidInput": "Неверные данные о точках/высоте для расчета LOS.",
|
||||
"losRenameCustomPoint": "Переименовать пользовательскую точку",
|
||||
"losPointName": "Имя точки",
|
||||
"losShowPanelTooltip": "Показать панель LOS",
|
||||
"losHidePanelTooltip": "Скрыть панель LOS",
|
||||
"losElevationAttribution": "Данные о высоте: Open-Meteo (CC BY 4.0)",
|
||||
"losLegendRadioHorizon": "Радиогоризонт",
|
||||
"losLegendLosBeam": "Линия прямой видимости",
|
||||
"losLegendTerrain": "Рельеф",
|
||||
"losFrequencyLabel": "Частота",
|
||||
"losFrequencyInfoTooltip": "Просмотреть детали расчёта",
|
||||
"losFrequencyDialogTitle": "Расчёт радиогоризонта",
|
||||
"losFrequencyDialogDescription": "Начиная с k={baselineK} на частоте {baselineFreq} МГц, расчет корректирует коэффициент k для текущего диапазона {frequencyMHz} МГц, который определяет изогнутую границу радиогоризонта.",
|
||||
"@losFrequencyDialogDescription": {
|
||||
"description": "Explain how the calculation uses the baseline frequency and derived k-factor.",
|
||||
"placeholders": {
|
||||
"baselineK": {
|
||||
"type": "double"
|
||||
},
|
||||
"baselineFreq": {
|
||||
"type": "double"
|
||||
},
|
||||
"frequencyMHz": {
|
||||
"type": "double"
|
||||
},
|
||||
"kFactor": {
|
||||
"type": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"listFilter_addToFavorites": "Добавить в избранное",
|
||||
"listFilter_favorites": "Избранное",
|
||||
"listFilter_removeFromFavorites": "Удалить из избранного",
|
||||
"@contacts_searchFavorites": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchUsers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRepeaters": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRoomServers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_searchRepeaters": "Поиск {number}{str} ретрансляторов...",
|
||||
"contacts_searchContactsNoNumber": "Поиск контактов...",
|
||||
"contacts_unread": "Непрочитанное",
|
||||
"contacts_searchRoomServers": "Поиск {number}{str} серверов комнат...",
|
||||
"contacts_searchFavorites": "Поиск {number}{str} избранного...",
|
||||
"contacts_searchUsers": "Поиск {number}{str} пользователей..."
|
||||
"snrIndicator_lastSeen": "Последний раз видели"
|
||||
}
|
||||
|
||||
+6
-205
@@ -1,12 +1,4 @@
|
||||
{
|
||||
"channels_channelDeleteFailed": "Kanál \"{name}\" sa nepodarilo odstrániť",
|
||||
"@channels_channelDeleteFailed": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@@locale": "sk",
|
||||
"appTitle": "MeshCore Open",
|
||||
"nav_contacts": "Kontakty",
|
||||
@@ -139,6 +131,9 @@
|
||||
"settings_infoContactsCount": "Počet kontaktov",
|
||||
"settings_infoChannelCount": "Počet kanálov",
|
||||
"settings_presets": "Prednastavenia",
|
||||
"settings_preset915Mhz": "915 MHz",
|
||||
"settings_preset868Mhz": "868 MHz",
|
||||
"settings_preset433Mhz": "433 MHz",
|
||||
"settings_frequency": "Frekvencia (MHz)",
|
||||
"settings_frequencyHelper": "300,0 – 2500,0",
|
||||
"settings_frequencyInvalid": "Neplatná frekvencia (300-2500 MHz)",
|
||||
@@ -148,6 +143,8 @@
|
||||
"settings_txPower": "TX Výkon (dBm)",
|
||||
"settings_txPowerHelper": "0 - 22",
|
||||
"settings_txPowerInvalid": "Neplatná hodnota výkonu TX (0-22 dBm)",
|
||||
"settings_longRange": "Dlhý dosah",
|
||||
"settings_fastSpeed": "Rýchla rýchlosť",
|
||||
"settings_error": "Chyba: {message}",
|
||||
"@settings_error": {
|
||||
"placeholders": {
|
||||
@@ -342,8 +339,6 @@
|
||||
"channels_publicChannel": "Veľké verejne kanály",
|
||||
"channels_privateChannel": "Osobné kanál",
|
||||
"channels_editChannel": "Upraviť kanál",
|
||||
"channels_muteChannel": "Stlmiť kanál",
|
||||
"channels_unmuteChannel": "Zrušiť stlmenie kanála",
|
||||
"channels_deleteChannel": "Odstrániť kanál",
|
||||
"channels_deleteChannelConfirm": "Odstrániť \"{name}\"? To sa nedá zrušiť.",
|
||||
"@channels_deleteChannelConfirm": {
|
||||
@@ -1566,8 +1561,6 @@
|
||||
"contacts_copyAdvertToClipboard": "Kopírovať reklamu do schránky",
|
||||
"contacts_invalidAdvertFormat": "Neplatné kontaktné údaje",
|
||||
"appSettings_languageRu": "Ruština",
|
||||
"appSettings_enableMessageTracing": "Povoliť sledovanie správ",
|
||||
"appSettings_enableMessageTracingSubtitle": "Zobraziť podrobné metadáta o smerovaní a časovaní správ",
|
||||
"contacts_addContactFromClipboard": "Pridať kontakt z schránky",
|
||||
"contacts_contactImported": "Kontakt bol importovaný.",
|
||||
"contacts_zeroHopContactAdvertSent": "Poslal kontakt cez inzerát.",
|
||||
@@ -1607,197 +1600,5 @@
|
||||
"scanner_bluetoothOff": "Bluetooth je vypnutý",
|
||||
"scanner_enableBluetooth": "Povolte Bluetooth",
|
||||
"snrIndicator_lastSeen": "Naposledy videný",
|
||||
"snrIndicator_nearByRepeaters": "Miestne opakovače",
|
||||
"chat_ShowAllPaths": "Zobraziť všetky cesty",
|
||||
"settings_clientRepeat": "Opätovné použitie bez elektrickej siete",
|
||||
"settings_clientRepeatFreqWarning": "Použitie off-grid systému vyžaduje frekvencie 433, 869 alebo 918 MHz.",
|
||||
"settings_clientRepeatSubtitle": "Umožnite, aby toto zariadenie opakovávalo siete pre ostatných.",
|
||||
"settings_aboutOpenMeteoAttribution": "Údaje o nadmorskej výške LOS: Open-Meteo (CC BY 4.0)",
|
||||
"appSettings_unitsTitle": "Jednotky",
|
||||
"appSettings_unitsMetric": "Metrické (m / km)",
|
||||
"appSettings_unitsImperial": "Imperiálne (ft / mi)",
|
||||
"map_lineOfSight": "Line of Sight",
|
||||
"map_losScreenTitle": "Line of Sight",
|
||||
"losSelectStartEnd": "Vyberte počiatočný a koncový uzol pre LOS.",
|
||||
"losRunFailed": "Kontrola priamej viditeľnosti zlyhala: {error}",
|
||||
"@losRunFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losClearAllPoints": "Vymazať všetky body",
|
||||
"losRunToViewElevationProfile": "Ak chcete zobraziť výškový profil, spustite LOS",
|
||||
"losMenuTitle": "Menu LOS",
|
||||
"losMenuSubtitle": "Klepnutím na uzly alebo dlhým stlačením mapy získate vlastné body",
|
||||
"losShowDisplayNodes": "Zobraziť uzly zobrazenia",
|
||||
"losCustomPoints": "Vlastné body",
|
||||
"losCustomPointLabel": "Vlastné {index}",
|
||||
"@losCustomPointLabel": {
|
||||
"placeholders": {
|
||||
"index": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losPointA": "Bod A",
|
||||
"losPointB": "Bod B",
|
||||
"losAntennaA": "Anténa A: {value} {unit}",
|
||||
"@losAntennaA": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losAntennaB": "Anténa B: {value} {unit}",
|
||||
"@losAntennaB": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losRun": "Spustite LOS",
|
||||
"losNoElevationData": "Žiadne údaje o nadmorskej výške",
|
||||
"losProfileClear": "{distance} {distanceUnit}, vymazať LOS, min. vôľa {clearance} {heightUnit}",
|
||||
"@losProfileClear": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"clearance": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losProfileBlocked": "{distance} {distanceUnit}, blokovaný {obstruction} {heightUnit}",
|
||||
"@losProfileBlocked": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"obstruction": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losStatusChecking": "LOS: kontrolujem...",
|
||||
"losStatusNoData": "LOS: žiadne údaje",
|
||||
"losStatusSummary": "LOS: {clear}/{total} vymazané, {blocked} blokované, {unknown} neznáme",
|
||||
"@losStatusSummary": {
|
||||
"placeholders": {
|
||||
"clear": {
|
||||
"type": "int"
|
||||
},
|
||||
"total": {
|
||||
"type": "int"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "int"
|
||||
},
|
||||
"unknown": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losErrorElevationUnavailable": "Údaje o nadmorskej výške nie sú k dispozícii pre jednu alebo viacero vzoriek.",
|
||||
"losErrorInvalidInput": "Neplatné body/údaje o nadmorskej výške pre výpočet LOS.",
|
||||
"losRenameCustomPoint": "Premenovať vlastný bod",
|
||||
"losPointName": "Názov bodu",
|
||||
"losShowPanelTooltip": "Zobraziť panel LOS",
|
||||
"losHidePanelTooltip": "Skryť panel LOS",
|
||||
"losElevationAttribution": "Údaje o nadmorskej výške: Open-Meteo (CC BY 4.0)",
|
||||
"losLegendRadioHorizon": "Rádiový horizont",
|
||||
"losLegendLosBeam": "Priama viditeľnosť",
|
||||
"losLegendTerrain": "Terén",
|
||||
"losFrequencyLabel": "Frekvencia",
|
||||
"losFrequencyInfoTooltip": "Zobraziť podrobnosti výpočtu",
|
||||
"losFrequencyDialogTitle": "Výpočet rádiového horizontu",
|
||||
"losFrequencyDialogDescription": "Počnúc od k={baselineK} pri {baselineFreq} MHz výpočet upraví k-faktor pre aktuálne pásmo {frequencyMHz} MHz, ktorý definuje zakrivený strop rádiového horizontu.",
|
||||
"@losFrequencyDialogDescription": {
|
||||
"description": "Explain how the calculation uses the baseline frequency and derived k-factor.",
|
||||
"placeholders": {
|
||||
"baselineK": {
|
||||
"type": "double"
|
||||
},
|
||||
"baselineFreq": {
|
||||
"type": "double"
|
||||
},
|
||||
"frequencyMHz": {
|
||||
"type": "double"
|
||||
},
|
||||
"kFactor": {
|
||||
"type": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"listFilter_removeFromFavorites": "Odstrániť z označení",
|
||||
"listFilter_addToFavorites": "Pridaj do obľúbených",
|
||||
"listFilter_favorites": "Obľúbené",
|
||||
"@contacts_searchFavorites": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchUsers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRepeaters": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRoomServers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_searchRoomServers": "Hľadaj {number}{str} serverov miestností...",
|
||||
"contacts_searchFavorites": "Hľadať {number}{str} obľúbené...",
|
||||
"contacts_searchRepeaters": "Hľadať {number}{str} opakovače...",
|
||||
"contacts_searchUsers": "Hľadať {number}{str} používateľov...",
|
||||
"contacts_searchContactsNoNumber": "Hľadať kontakty...",
|
||||
"contacts_unread": "Neprečítané"
|
||||
"snrIndicator_nearByRepeaters": "Miestne opakovače"
|
||||
}
|
||||
|
||||
+6
-205
@@ -1,12 +1,4 @@
|
||||
{
|
||||
"channels_channelDeleteFailed": "Kanala {name} ni bilo mogoče izbrisati",
|
||||
"@channels_channelDeleteFailed": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@@locale": "sl",
|
||||
"appTitle": "MeshCore Open",
|
||||
"nav_contacts": "Stiki",
|
||||
@@ -139,6 +131,9 @@
|
||||
"settings_infoContactsCount": "Število stikov",
|
||||
"settings_infoChannelCount": "Število kanalov",
|
||||
"settings_presets": "Prednastavitve",
|
||||
"settings_preset915Mhz": "915 MHz",
|
||||
"settings_preset868Mhz": "868 MHz",
|
||||
"settings_preset433Mhz": "433 MHz",
|
||||
"settings_frequency": "Frekvenca (MHz)",
|
||||
"settings_frequencyHelper": "300,00 - 2500,00",
|
||||
"settings_frequencyInvalid": "Neveljavna frekvenca (300-2500 MHz)",
|
||||
@@ -148,6 +143,8 @@
|
||||
"settings_txPower": "TX Moč (dBm)",
|
||||
"settings_txPowerHelper": "0 - 22",
|
||||
"settings_txPowerInvalid": "Neveljavna TX moč (0-22 dBm)",
|
||||
"settings_longRange": "DDolg doseg",
|
||||
"settings_fastSpeed": "Visoka hitrost",
|
||||
"settings_error": "Napaka: {message}",
|
||||
"@settings_error": {
|
||||
"placeholders": {
|
||||
@@ -342,8 +339,6 @@
|
||||
"channels_publicChannel": "Javni kanal",
|
||||
"channels_privateChannel": "Zasebni kanal",
|
||||
"channels_editChannel": "Uredi kanal",
|
||||
"channels_muteChannel": "Utišaj kanal",
|
||||
"channels_unmuteChannel": "Vklopi obvestila kanala",
|
||||
"channels_deleteChannel": "Pošlji kanal",
|
||||
"channels_deleteChannelConfirm": "Izbrišem \"{name}\"? To se ne da povrniti.",
|
||||
"@channels_deleteChannelConfirm": {
|
||||
@@ -1560,8 +1555,6 @@
|
||||
"contacts_pathTraceTo": "Trace route to {name}",
|
||||
"appSettings_languageRu": "Ruščina",
|
||||
"appSettings_languageUk": "Ukrajinsko",
|
||||
"appSettings_enableMessageTracing": "Omogoči sledenje sporočilom",
|
||||
"appSettings_enableMessageTracingSubtitle": "Prikaži podrobne metapodatke o usmerjanju in časovnem usklajevanju sporočil",
|
||||
"contacts_contactImported": "Kontakt je bil uvožen.",
|
||||
"contacts_contactImportFailed": "Kontakt ni bil uspešno uvožen.",
|
||||
"contacts_zeroHopAdvert": "Reklama brez posrednikov",
|
||||
@@ -1607,197 +1600,5 @@
|
||||
"scanner_bluetoothOffMessage": "Prosimo, vklopite Bluetooth, da lahko poiščete naprave.",
|
||||
"scanner_bluetoothOff": "Bluetooth je izklopljen",
|
||||
"snrIndicator_lastSeen": "Zadnjič videno",
|
||||
"snrIndicator_nearByRepeaters": "Bližnji ponovitelji",
|
||||
"chat_ShowAllPaths": "Prikaži vse poti",
|
||||
"settings_clientRepeatFreqWarning": "Za ponovni prenos na brezžični način so potrebne frekvence 433, 869 ali 918 MHz.",
|
||||
"settings_clientRepeatSubtitle": "Omogočite temu naprave, da ponavlja paketne sporočila za druge.",
|
||||
"settings_clientRepeat": "Neovadno ponavljanje",
|
||||
"settings_aboutOpenMeteoAttribution": "Podatki o višini LOS: Open-Meteo (CC BY 4.0)",
|
||||
"appSettings_unitsTitle": "Enote",
|
||||
"appSettings_unitsMetric": "Metrična (m/km)",
|
||||
"appSettings_unitsImperial": "Imperialno (ft / mi)",
|
||||
"map_lineOfSight": "Linija vida",
|
||||
"map_losScreenTitle": "Linija vida",
|
||||
"losSelectStartEnd": "Izberite začetno in končno vozlišče za LOS.",
|
||||
"losRunFailed": "Preverjanje vidnega polja ni uspelo: {error}",
|
||||
"@losRunFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losClearAllPoints": "Počisti vse točke",
|
||||
"losRunToViewElevationProfile": "Zaženite LOS za ogled višinskega profila",
|
||||
"losMenuTitle": "LOS meni",
|
||||
"losMenuSubtitle": "Tapnite vozlišča ali dolgo pritisnite na zemljevid za točke po meri",
|
||||
"losShowDisplayNodes": "Pokaži prikazna vozlišča",
|
||||
"losCustomPoints": "Točke po meri",
|
||||
"losCustomPointLabel": "Po meri {index}",
|
||||
"@losCustomPointLabel": {
|
||||
"placeholders": {
|
||||
"index": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losPointA": "Točka A",
|
||||
"losPointB": "Točka B",
|
||||
"losAntennaA": "Antena A: {value} {unit}",
|
||||
"@losAntennaA": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losAntennaB": "Antena B: {value} {unit}",
|
||||
"@losAntennaB": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losRun": "Zaženi LOS",
|
||||
"losNoElevationData": "Ni podatkov o višini",
|
||||
"losProfileClear": "{distance} {distanceUnit}, čisti LOS, najmanjša razdalja {clearance} {heightUnit}",
|
||||
"@losProfileClear": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"clearance": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losProfileBlocked": "{distance} {distanceUnit}, blokiral {obstruction} {heightUnit}",
|
||||
"@losProfileBlocked": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"obstruction": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losStatusChecking": "LOS: preverjam ...",
|
||||
"losStatusNoData": "LOS: ni podatkov",
|
||||
"losStatusSummary": "LOS: {clear}/{total} jasno, {blocked} blokirano, {unknown} neznano",
|
||||
"@losStatusSummary": {
|
||||
"placeholders": {
|
||||
"clear": {
|
||||
"type": "int"
|
||||
},
|
||||
"total": {
|
||||
"type": "int"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "int"
|
||||
},
|
||||
"unknown": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losErrorElevationUnavailable": "Podatki o nadmorski višini niso na voljo za enega ali več vzorcev.",
|
||||
"losErrorInvalidInput": "Neveljavni podatki o točkah/višini za izračun LOS.",
|
||||
"losRenameCustomPoint": "Preimenujte točko po meri",
|
||||
"losPointName": "Ime točke",
|
||||
"losShowPanelTooltip": "Pokaži ploščo LOS",
|
||||
"losHidePanelTooltip": "Skrij ploščo LOS",
|
||||
"losElevationAttribution": "Podatki o višini: Open-Meteo (CC BY 4.0)",
|
||||
"losLegendRadioHorizon": "Radijski horizont",
|
||||
"losLegendLosBeam": "Linija vidnosti",
|
||||
"losLegendTerrain": "Teren",
|
||||
"losFrequencyLabel": "Frekvenca",
|
||||
"losFrequencyInfoTooltip": "Prikaži podrobnosti izračuna",
|
||||
"losFrequencyDialogTitle": "Izračun radijskega horizonta",
|
||||
"losFrequencyDialogDescription": "Začenši od k={baselineK} pri {baselineFreq} MHz, izračun prilagodi k-faktor za trenutni pas {frequencyMHz} MHz, ki določa ukrivljeno zgornjo mejo radijskega horizonta.",
|
||||
"@losFrequencyDialogDescription": {
|
||||
"description": "Explain how the calculation uses the baseline frequency and derived k-factor.",
|
||||
"placeholders": {
|
||||
"baselineK": {
|
||||
"type": "double"
|
||||
},
|
||||
"baselineFreq": {
|
||||
"type": "double"
|
||||
},
|
||||
"frequencyMHz": {
|
||||
"type": "double"
|
||||
},
|
||||
"kFactor": {
|
||||
"type": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"listFilter_favorites": "Priljubljene",
|
||||
"listFilter_removeFromFavorites": "Odstrani iz priljubljenih",
|
||||
"listFilter_addToFavorites": "Dodaj v priljubljene",
|
||||
"@contacts_searchFavorites": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchUsers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRepeaters": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRoomServers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_unread": "Neprebrano",
|
||||
"contacts_searchFavorites": "Iskanje {number}{str} priljubljenih...",
|
||||
"contacts_searchRoomServers": "Išči {number}{str} strežnikov sob...",
|
||||
"contacts_searchContactsNoNumber": "Iskanje stikov...",
|
||||
"contacts_searchRepeaters": "Išči {number}{str} ponavljalnike...",
|
||||
"contacts_searchUsers": "Išči {number}{str} uporabnikov..."
|
||||
"snrIndicator_nearByRepeaters": "Bližnji ponovitelji"
|
||||
}
|
||||
|
||||
+6
-205
@@ -1,12 +1,4 @@
|
||||
{
|
||||
"channels_channelDeleteFailed": "Det gick inte att ta bort kanalen \"{name}\"",
|
||||
"@channels_channelDeleteFailed": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@@locale": "sv",
|
||||
"appTitle": "MeshCore Open",
|
||||
"nav_contacts": "Kontakter",
|
||||
@@ -139,6 +131,9 @@
|
||||
"settings_infoContactsCount": "Kontakterantal",
|
||||
"settings_infoChannelCount": "Kanalantal",
|
||||
"settings_presets": "Fördefinierade inställningar",
|
||||
"settings_preset915Mhz": "915 MHz",
|
||||
"settings_preset868Mhz": "868 MHz",
|
||||
"settings_preset433Mhz": "433 MHz",
|
||||
"settings_frequency": "Frekvens (MHz)",
|
||||
"settings_frequencyHelper": "300,0 - 2500,0",
|
||||
"settings_frequencyInvalid": "Ogiltig frekvens (300-2500 MHz)",
|
||||
@@ -148,6 +143,8 @@
|
||||
"settings_txPower": "TX-effekt (dBm)",
|
||||
"settings_txPowerHelper": "0 - 22",
|
||||
"settings_txPowerInvalid": "Ogiltig TX-effekt (0-22 dBm)",
|
||||
"settings_longRange": "Lång räckvidd",
|
||||
"settings_fastSpeed": "Snabb hastighet",
|
||||
"settings_error": "Fel: {message}",
|
||||
"@settings_error": {
|
||||
"placeholders": {
|
||||
@@ -342,8 +339,6 @@
|
||||
"channels_publicChannel": "Allmänt kanal",
|
||||
"channels_privateChannel": "Privat kanal",
|
||||
"channels_editChannel": "Redigera kanal",
|
||||
"channels_muteChannel": "Tysta kanal",
|
||||
"channels_unmuteChannel": "Slå på ljud för kanal",
|
||||
"channels_deleteChannel": "Ta bort kanal",
|
||||
"channels_deleteChannelConfirm": "Radera \"{name}\"? Detta kan inte ångras.",
|
||||
"@channels_deleteChannelConfirm": {
|
||||
@@ -1566,8 +1561,6 @@
|
||||
"contacts_copyAdvertToClipboard": "Kopiera annons till urklipp",
|
||||
"contacts_invalidAdvertFormat": "Ogiltiga kontaktuppgifter",
|
||||
"appSettings_languageUk": "Ukrainska",
|
||||
"appSettings_enableMessageTracing": "Aktivera meddelandespårning",
|
||||
"appSettings_enableMessageTracingSubtitle": "Visa detaljerade metadata om dirigering och tidsinställningar för meddelanden",
|
||||
"contacts_addContactFromClipboard": "Lägg till kontakt från urklipp",
|
||||
"contacts_contactImported": "Kontakt har importerats.",
|
||||
"contacts_zeroHopContactAdvertSent": "Skickat kontakt via annons.",
|
||||
@@ -1607,197 +1600,5 @@
|
||||
"scanner_bluetoothOffMessage": "Vänligen aktivera Bluetooth för att söka efter enheter.",
|
||||
"scanner_bluetoothOff": "Bluetooth är avstängt",
|
||||
"snrIndicator_lastSeen": "Senast sedd",
|
||||
"snrIndicator_nearByRepeaters": "Närliggande uppreparstationer",
|
||||
"chat_ShowAllPaths": "Visa alla vägar",
|
||||
"settings_clientRepeatSubtitle": "Låt enheten repetera nätpaket för andra användare.",
|
||||
"settings_clientRepeat": "Upprepa utan elnät",
|
||||
"settings_clientRepeatFreqWarning": "För att kunna kommunicera utanför elnätet krävs frekvenserna 433, 869 eller 918 MHz.",
|
||||
"settings_aboutOpenMeteoAttribution": "LOS-höjddata: Open-Meteo (CC BY 4.0)",
|
||||
"appSettings_unitsTitle": "Enheter",
|
||||
"appSettings_unitsMetric": "Metriskt (m/km)",
|
||||
"appSettings_unitsImperial": "Imperialt (ft / mi)",
|
||||
"map_lineOfSight": "Synlinje",
|
||||
"map_losScreenTitle": "Synlinje",
|
||||
"losSelectStartEnd": "Välj start- och slutnoder för LOS.",
|
||||
"losRunFailed": "Synlinjekontroll misslyckades: {error}",
|
||||
"@losRunFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losClearAllPoints": "Rensa alla punkter",
|
||||
"losRunToViewElevationProfile": "Kör LOS för att se höjdprofil",
|
||||
"losMenuTitle": "LOS-menyn",
|
||||
"losMenuSubtitle": "Tryck på noder eller tryck länge på kartan för anpassade punkter",
|
||||
"losShowDisplayNodes": "Visa displaynoder",
|
||||
"losCustomPoints": "Anpassade poäng",
|
||||
"losCustomPointLabel": "Anpassad {index}",
|
||||
"@losCustomPointLabel": {
|
||||
"placeholders": {
|
||||
"index": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losPointA": "Punkt A",
|
||||
"losPointB": "Punkt B",
|
||||
"losAntennaA": "Antenn A: {value} {unit}",
|
||||
"@losAntennaA": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losAntennaB": "Antenn B: {value} {unit}",
|
||||
"@losAntennaB": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losRun": "Kör LOS",
|
||||
"losNoElevationData": "Inga höjddata",
|
||||
"losProfileClear": "{distance} {distanceUnit}, rensa LOS, min clearance {clearance} {heightUnit}",
|
||||
"@losProfileClear": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"clearance": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losProfileBlocked": "{distance} {distanceUnit}, blockerad av {obstruction} {heightUnit}",
|
||||
"@losProfileBlocked": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"obstruction": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losStatusChecking": "LOS: kollar...",
|
||||
"losStatusNoData": "LOS: inga data",
|
||||
"losStatusSummary": "LOS: {clear}/{total} rensa, {blocked} blockerad, {unknown} okänd",
|
||||
"@losStatusSummary": {
|
||||
"placeholders": {
|
||||
"clear": {
|
||||
"type": "int"
|
||||
},
|
||||
"total": {
|
||||
"type": "int"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "int"
|
||||
},
|
||||
"unknown": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losErrorElevationUnavailable": "Höjddata är inte tillgänglig för ett eller flera prover.",
|
||||
"losErrorInvalidInput": "Ogiltiga poäng/höjddata för LOS-beräkning.",
|
||||
"losRenameCustomPoint": "Byt namn på anpassad punkt",
|
||||
"losPointName": "Punktnamn",
|
||||
"losShowPanelTooltip": "Visa LOS-panelen",
|
||||
"losHidePanelTooltip": "Dölj LOS-panelen",
|
||||
"losElevationAttribution": "Höjddata: Open-Meteo (CC BY 4.0)",
|
||||
"losLegendRadioHorizon": "Radiohorisont",
|
||||
"losLegendLosBeam": "Siktlinje",
|
||||
"losLegendTerrain": "Terräng",
|
||||
"losFrequencyLabel": "Frekvens",
|
||||
"losFrequencyInfoTooltip": "Visa detaljer om beräkningen",
|
||||
"losFrequencyDialogTitle": "Beräkning av radiohorisonten",
|
||||
"losFrequencyDialogDescription": "Med start från k={baselineK} vid {baselineFreq} MHz, justerar beräkningen k-faktorn för det aktuella {frequencyMHz} MHz-bandet, som definierar den böjda radiohorisonten.",
|
||||
"@losFrequencyDialogDescription": {
|
||||
"description": "Explain how the calculation uses the baseline frequency and derived k-factor.",
|
||||
"placeholders": {
|
||||
"baselineK": {
|
||||
"type": "double"
|
||||
},
|
||||
"baselineFreq": {
|
||||
"type": "double"
|
||||
},
|
||||
"frequencyMHz": {
|
||||
"type": "double"
|
||||
},
|
||||
"kFactor": {
|
||||
"type": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"listFilter_removeFromFavorites": "Ta bort från favoriter",
|
||||
"listFilter_addToFavorites": "Lägg till i favoriter",
|
||||
"listFilter_favorites": "Favoriter",
|
||||
"@contacts_searchFavorites": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchUsers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRepeaters": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRoomServers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_unread": "Oläst",
|
||||
"contacts_searchContactsNoNumber": "Sök kontakter...",
|
||||
"contacts_searchRepeaters": "Sök {number}{str} upprepningsenheter...",
|
||||
"contacts_searchFavorites": "Sök {number}{str} Favoriter...",
|
||||
"contacts_searchUsers": "Sök {number}{str} användare...",
|
||||
"contacts_searchRoomServers": "Sök {number}{str} Room-servrar..."
|
||||
"snrIndicator_nearByRepeaters": "Närliggande uppreparstationer"
|
||||
}
|
||||
|
||||
+6
-205
@@ -1,12 +1,4 @@
|
||||
{
|
||||
"channels_channelDeleteFailed": "Не вдалося видалити канал \"{name}\"",
|
||||
"@channels_channelDeleteFailed": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@@locale": "uk",
|
||||
"appTitle": "MeshCore Open",
|
||||
"nav_contacts": "Контакти",
|
||||
@@ -139,6 +131,9 @@
|
||||
"settings_infoContactsCount": "Кількість контактів",
|
||||
"settings_infoChannelCount": "Кількість каналів",
|
||||
"settings_presets": "Попередні налаштування",
|
||||
"settings_preset915Mhz": "915 МГц",
|
||||
"settings_preset868Mhz": "868 МГц",
|
||||
"settings_preset433Mhz": "433 МГц",
|
||||
"settings_frequency": "Частота (МГц)",
|
||||
"settings_frequencyHelper": "300.0 - 2500.0",
|
||||
"settings_frequencyInvalid": "Некоректна частота (300-2500 МГц)",
|
||||
@@ -148,6 +143,8 @@
|
||||
"settings_txPower": "Потужність TX (дБм)",
|
||||
"settings_txPowerHelper": "0 - 22",
|
||||
"settings_txPowerInvalid": "Некоректна потужність TX (0-22 дБм)",
|
||||
"settings_longRange": "Дальній діапазон",
|
||||
"settings_fastSpeed": "Висока швидкість",
|
||||
"settings_error": "Помилка: {message}",
|
||||
"@settings_error": {
|
||||
"placeholders": {
|
||||
@@ -343,8 +340,6 @@
|
||||
"channels_publicChannel": "Публічний канал",
|
||||
"channels_privateChannel": "Приватний канал",
|
||||
"channels_editChannel": "Редагувати канал",
|
||||
"channels_muteChannel": "Вимкнути сповіщення каналу",
|
||||
"channels_unmuteChannel": "Увімкнути сповіщення каналу",
|
||||
"channels_deleteChannel": "Видалити канал",
|
||||
"channels_deleteChannelConfirm": "Видалити {name}? Це не можна скасувати.",
|
||||
"@channels_deleteChannelConfirm": {
|
||||
@@ -1567,8 +1562,6 @@
|
||||
"contacts_copyAdvertToClipboard": "Копіювати оголошення в буфер обміну",
|
||||
"contacts_clipboardEmpty": "Буфер обміну порожній",
|
||||
"appSettings_languageRu": "Російська",
|
||||
"appSettings_enableMessageTracing": "Увімкнути відстеження повідомлень",
|
||||
"appSettings_enableMessageTracingSubtitle": "Показувати детальні метадані про маршрутизацію та час для повідомлень",
|
||||
"contacts_ShareContact": "Копіювати контакт у буфер обміну",
|
||||
"contacts_zeroHopContactAdvertFailed": "Не вдалося надіслати контакт.",
|
||||
"contacts_contactAdvertCopied": "Рекламу скопійовано до буфера обміну.",
|
||||
@@ -1607,197 +1600,5 @@
|
||||
"scanner_bluetoothOffMessage": "Будь ласка, увімкніть Bluetooth, щоб сканувати пристрої.",
|
||||
"scanner_bluetoothOff": "Bluetooth вимкнено",
|
||||
"snrIndicator_lastSeen": "Останній раз бачили",
|
||||
"snrIndicator_nearByRepeaters": "Ближні ретранслятори",
|
||||
"chat_ShowAllPaths": "Показати всі шляхи",
|
||||
"settings_clientRepeatFreqWarning": "Повтор без підключення до мережі вимагає частоти 433, 869 або 918 МГц.",
|
||||
"settings_clientRepeatSubtitle": "Дозвольте цьому пристрою повторювати пакети даних для інших пристроїв.",
|
||||
"settings_clientRepeat": "Автономна система",
|
||||
"settings_aboutOpenMeteoAttribution": "Дані про висоту LOS: Open-Meteo (CC BY 4.0)",
|
||||
"appSettings_unitsTitle": "одиниці",
|
||||
"appSettings_unitsMetric": "Метричний (м / км)",
|
||||
"appSettings_unitsImperial": "Імперська (ft / mi)",
|
||||
"map_lineOfSight": "Пряма видимість",
|
||||
"map_losScreenTitle": "Пряма видимість",
|
||||
"losSelectStartEnd": "Виберіть початковий і кінцевий вузли для LOS.",
|
||||
"losRunFailed": "Помилка перевірки прямої видимості: {error}",
|
||||
"@losRunFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losClearAllPoints": "Очистити всі пункти",
|
||||
"losRunToViewElevationProfile": "Запустіть LOS, щоб переглянути профіль висоти",
|
||||
"losMenuTitle": "Меню LOS",
|
||||
"losMenuSubtitle": "Торкніться вузлів або утримуйте карту, щоб отримати власні точки",
|
||||
"losShowDisplayNodes": "Показати вузли відображення",
|
||||
"losCustomPoints": "Користувальницькі точки",
|
||||
"losCustomPointLabel": "Спеціальний {index}",
|
||||
"@losCustomPointLabel": {
|
||||
"placeholders": {
|
||||
"index": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losPointA": "Точка А",
|
||||
"losPointB": "Точка Б",
|
||||
"losAntennaA": "Антена A: {value} {unit}",
|
||||
"@losAntennaA": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losAntennaB": "Антена B: {value} {unit}",
|
||||
"@losAntennaB": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
},
|
||||
"unit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losRun": "Запустіть LOS",
|
||||
"losNoElevationData": "Немає даних про висоту",
|
||||
"losProfileClear": "{distance} {distanceUnit}, чистий LOS, мінімальний зазор {clearance} {heightUnit}",
|
||||
"@losProfileClear": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"clearance": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losProfileBlocked": "{distance} {distanceUnit}, заблоковано {obstruction} {heightUnit}",
|
||||
"@losProfileBlocked": {
|
||||
"placeholders": {
|
||||
"distance": {
|
||||
"type": "String"
|
||||
},
|
||||
"distanceUnit": {
|
||||
"type": "String"
|
||||
},
|
||||
"obstruction": {
|
||||
"type": "String"
|
||||
},
|
||||
"heightUnit": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losStatusChecking": "LOS: перевірка...",
|
||||
"losStatusNoData": "LOS: немає даних",
|
||||
"losStatusSummary": "LOS: {clear}/{total} очищено, {blocked} заблоковано, {unknown} невідомо",
|
||||
"@losStatusSummary": {
|
||||
"placeholders": {
|
||||
"clear": {
|
||||
"type": "int"
|
||||
},
|
||||
"total": {
|
||||
"type": "int"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "int"
|
||||
},
|
||||
"unknown": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"losErrorElevationUnavailable": "Дані про висоту недоступні для одного чи кількох зразків.",
|
||||
"losErrorInvalidInput": "Недійсні дані про точки/висоту для розрахунку LOS.",
|
||||
"losRenameCustomPoint": "Перейменуйте спеціальну точку",
|
||||
"losPointName": "Назва точки",
|
||||
"losShowPanelTooltip": "Показати панель LOS",
|
||||
"losHidePanelTooltip": "Приховати панель LOS",
|
||||
"losElevationAttribution": "Дані про висоту: Open-Meteo (CC BY 4.0)",
|
||||
"losLegendRadioHorizon": "Радіогоризонт",
|
||||
"losLegendLosBeam": "Лінія прямої видимості",
|
||||
"losLegendTerrain": "Рельєф",
|
||||
"losFrequencyLabel": "Частота",
|
||||
"losFrequencyInfoTooltip": "Переглянути деталі розрахунку",
|
||||
"losFrequencyDialogTitle": "Розрахунок радіогоризонту",
|
||||
"losFrequencyDialogDescription": "Починаючи з k={baselineK} на {baselineFreq} МГц, обчислення коригує k-фактор для поточного діапазону {frequencyMHz} МГц, який визначає викривлену межу радіогоризонту.",
|
||||
"@losFrequencyDialogDescription": {
|
||||
"description": "Explain how the calculation uses the baseline frequency and derived k-factor.",
|
||||
"placeholders": {
|
||||
"baselineK": {
|
||||
"type": "double"
|
||||
},
|
||||
"baselineFreq": {
|
||||
"type": "double"
|
||||
},
|
||||
"frequencyMHz": {
|
||||
"type": "double"
|
||||
},
|
||||
"kFactor": {
|
||||
"type": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"listFilter_removeFromFavorites": "Видалити зі списку улюблених",
|
||||
"listFilter_addToFavorites": "Додати до улюблених",
|
||||
"listFilter_favorites": "Улюблені",
|
||||
"@contacts_searchFavorites": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchUsers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRepeaters": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@contacts_searchRoomServers": {
|
||||
"placeholders": {
|
||||
"number": {
|
||||
"type": "int"
|
||||
},
|
||||
"str": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_searchRoomServers": "Пошук {number}{str} серверів кімнат...",
|
||||
"contacts_searchUsers": "Пошук {number}{str} користувачів...",
|
||||
"contacts_searchFavorites": "Пошук {number}{str} улюблених...",
|
||||
"contacts_searchContactsNoNumber": "Пошук контактів...",
|
||||
"contacts_searchRepeaters": "Пошук {number}{str} ретрансляторів...",
|
||||
"contacts_unread": "Непрочитане"
|
||||
"snrIndicator_nearByRepeaters": "Ближні ретранслятори"
|
||||
}
|
||||
|
||||
+487
-691
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'l10n/app_localizations.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
@@ -15,7 +14,6 @@ import 'services/ble_debug_log_service.dart';
|
||||
import 'services/app_debug_log_service.dart';
|
||||
import 'services/background_service.dart';
|
||||
import 'services/map_tile_cache_service.dart';
|
||||
import 'services/chat_text_scale_service.dart';
|
||||
import 'storage/prefs_manager.dart';
|
||||
import 'utils/app_logger.dart';
|
||||
|
||||
@@ -35,7 +33,6 @@ void main() async {
|
||||
final appDebugLogService = AppDebugLogService();
|
||||
final backgroundService = BackgroundService();
|
||||
final mapTileCacheService = MapTileCacheService();
|
||||
final chatTextScaleService = ChatTextScaleService();
|
||||
|
||||
// Load settings
|
||||
await appSettingsService.loadSettings();
|
||||
@@ -50,9 +47,6 @@ void main() async {
|
||||
final notificationService = NotificationService();
|
||||
await notificationService.initialize();
|
||||
await backgroundService.initialize();
|
||||
_registerThirdPartyLicenses();
|
||||
|
||||
await chatTextScaleService.initialize();
|
||||
|
||||
// Wire up connector with services
|
||||
connector.initialize(
|
||||
@@ -82,32 +76,10 @@ void main() async {
|
||||
bleDebugLogService: bleDebugLogService,
|
||||
appDebugLogService: appDebugLogService,
|
||||
mapTileCacheService: mapTileCacheService,
|
||||
chatTextScaleService: chatTextScaleService,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
void _registerThirdPartyLicenses() {
|
||||
LicenseRegistry.addLicense(() async* {
|
||||
yield const LicenseEntryWithLineBreaks(
|
||||
<String>['Open-Meteo Elevation API Data'],
|
||||
'''
|
||||
Data used by LOS elevation lookups is provided by Open-Meteo.
|
||||
|
||||
Open-Meteo terms and attribution:
|
||||
https://open-meteo.com/en/terms
|
||||
|
||||
Elevation API:
|
||||
https://open-meteo.com/en/docs/elevation-api
|
||||
|
||||
Attribution license reference:
|
||||
Creative Commons Attribution 4.0 International (CC BY 4.0)
|
||||
https://creativecommons.org/licenses/by/4.0/
|
||||
''',
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
class MeshCoreApp extends StatelessWidget {
|
||||
final MeshCoreConnector connector;
|
||||
final MessageRetryService retryService;
|
||||
@@ -117,7 +89,6 @@ class MeshCoreApp extends StatelessWidget {
|
||||
final BleDebugLogService bleDebugLogService;
|
||||
final AppDebugLogService appDebugLogService;
|
||||
final MapTileCacheService mapTileCacheService;
|
||||
final ChatTextScaleService chatTextScaleService;
|
||||
|
||||
const MeshCoreApp({
|
||||
super.key,
|
||||
@@ -129,7 +100,6 @@ class MeshCoreApp extends StatelessWidget {
|
||||
required this.bleDebugLogService,
|
||||
required this.appDebugLogService,
|
||||
required this.mapTileCacheService,
|
||||
required this.chatTextScaleService,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -142,7 +112,6 @@ class MeshCoreApp extends StatelessWidget {
|
||||
ChangeNotifierProvider.value(value: appSettingsService),
|
||||
ChangeNotifierProvider.value(value: bleDebugLogService),
|
||||
ChangeNotifierProvider.value(value: appDebugLogService),
|
||||
ChangeNotifierProvider.value(value: chatTextScaleService),
|
||||
Provider.value(value: storage),
|
||||
Provider.value(value: mapTileCacheService),
|
||||
],
|
||||
|
||||
@@ -1,16 +1,3 @@
|
||||
enum UnitSystem { metric, imperial }
|
||||
|
||||
extension UnitSystemValue on UnitSystem {
|
||||
String get value {
|
||||
switch (this) {
|
||||
case UnitSystem.imperial:
|
||||
return 'imperial';
|
||||
case UnitSystem.metric:
|
||||
return 'metric';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class AppSettings {
|
||||
static const Object _unset = Object();
|
||||
|
||||
@@ -22,7 +9,6 @@ class AppSettings {
|
||||
final bool mapKeyPrefixEnabled;
|
||||
final String mapKeyPrefix;
|
||||
final bool mapShowMarkers;
|
||||
final bool enableMessageTracing;
|
||||
final Map<String, double>? mapCacheBounds;
|
||||
final int mapCacheMinZoom;
|
||||
final int mapCacheMaxZoom;
|
||||
@@ -35,9 +21,6 @@ class AppSettings {
|
||||
final String? languageOverride; // null = system default
|
||||
final bool appDebugLogEnabled;
|
||||
final Map<String, String> batteryChemistryByDeviceId;
|
||||
final Map<String, String> batteryChemistryByRepeaterId;
|
||||
final UnitSystem unitSystem;
|
||||
final Set<String> mutedChannels;
|
||||
|
||||
AppSettings({
|
||||
this.clearPathOnMaxRetry = false,
|
||||
@@ -48,7 +31,6 @@ class AppSettings {
|
||||
this.mapKeyPrefixEnabled = false,
|
||||
this.mapKeyPrefix = '',
|
||||
this.mapShowMarkers = true,
|
||||
this.enableMessageTracing = false,
|
||||
this.mapCacheBounds,
|
||||
this.mapCacheMinZoom = 10,
|
||||
this.mapCacheMaxZoom = 15,
|
||||
@@ -61,12 +43,7 @@ class AppSettings {
|
||||
this.languageOverride,
|
||||
this.appDebugLogEnabled = false,
|
||||
Map<String, String>? batteryChemistryByDeviceId,
|
||||
Map<String, String>? batteryChemistryByRepeaterId,
|
||||
this.unitSystem = UnitSystem.metric,
|
||||
Set<String>? mutedChannels,
|
||||
}) : batteryChemistryByDeviceId = batteryChemistryByDeviceId ?? {},
|
||||
batteryChemistryByRepeaterId = batteryChemistryByRepeaterId ?? {},
|
||||
mutedChannels = mutedChannels ?? {};
|
||||
}) : batteryChemistryByDeviceId = batteryChemistryByDeviceId ?? {};
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
@@ -78,7 +55,6 @@ class AppSettings {
|
||||
'map_key_prefix_enabled': mapKeyPrefixEnabled,
|
||||
'map_key_prefix': mapKeyPrefix,
|
||||
'map_show_markers': mapShowMarkers,
|
||||
'enable_message_tracing': enableMessageTracing,
|
||||
'map_cache_bounds': mapCacheBounds,
|
||||
'map_cache_min_zoom': mapCacheMinZoom,
|
||||
'map_cache_max_zoom': mapCacheMaxZoom,
|
||||
@@ -91,20 +67,10 @@ class AppSettings {
|
||||
'language_override': languageOverride,
|
||||
'app_debug_log_enabled': appDebugLogEnabled,
|
||||
'battery_chemistry_by_device_id': batteryChemistryByDeviceId,
|
||||
'battery_chemistry_by_repeater_id': batteryChemistryByRepeaterId,
|
||||
'unit_system': unitSystem.value,
|
||||
'muted_channels': mutedChannels.toList(),
|
||||
};
|
||||
}
|
||||
|
||||
factory AppSettings.fromJson(Map<String, dynamic> json) {
|
||||
UnitSystem parseUnitSystem(dynamic value) {
|
||||
if (value is String && value.toLowerCase() == 'imperial') {
|
||||
return UnitSystem.imperial;
|
||||
}
|
||||
return UnitSystem.metric;
|
||||
}
|
||||
|
||||
return AppSettings(
|
||||
clearPathOnMaxRetry: json['clear_path_on_max_retry'] as bool? ?? false,
|
||||
mapShowRepeaters: json['map_show_repeaters'] as bool? ?? true,
|
||||
@@ -115,7 +81,6 @@ class AppSettings {
|
||||
mapKeyPrefixEnabled: json['map_key_prefix_enabled'] as bool? ?? false,
|
||||
mapKeyPrefix: json['map_key_prefix'] as String? ?? '',
|
||||
mapShowMarkers: json['map_show_markers'] as bool? ?? true,
|
||||
enableMessageTracing: json['enable_message_tracing'] as bool? ?? false,
|
||||
mapCacheBounds: (json['map_cache_bounds'] as Map?)?.map(
|
||||
(key, value) => MapEntry(key.toString(), (value as num).toDouble()),
|
||||
),
|
||||
@@ -136,17 +101,6 @@ class AppSettings {
|
||||
(key, value) => MapEntry(key.toString(), value.toString()),
|
||||
) ??
|
||||
{},
|
||||
batteryChemistryByRepeaterId:
|
||||
(json['battery_chemistry_by_repeater_id'] as Map?)?.map(
|
||||
(key, value) => MapEntry(key.toString(), value.toString()),
|
||||
) ??
|
||||
{},
|
||||
unitSystem: parseUnitSystem(json['unit_system']),
|
||||
mutedChannels:
|
||||
((json['muted_channels'] as List?)
|
||||
?.map((e) => e.toString())
|
||||
.toSet()) ??
|
||||
{},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -159,7 +113,6 @@ class AppSettings {
|
||||
bool? mapKeyPrefixEnabled,
|
||||
String? mapKeyPrefix,
|
||||
bool? mapShowMarkers,
|
||||
bool? enableMessageTracing,
|
||||
Object? mapCacheBounds = _unset,
|
||||
int? mapCacheMinZoom,
|
||||
int? mapCacheMaxZoom,
|
||||
@@ -172,9 +125,6 @@ class AppSettings {
|
||||
Object? languageOverride = _unset,
|
||||
bool? appDebugLogEnabled,
|
||||
Map<String, String>? batteryChemistryByDeviceId,
|
||||
Map<String, String>? batteryChemistryByRepeaterId,
|
||||
UnitSystem? unitSystem,
|
||||
Set<String>? mutedChannels,
|
||||
}) {
|
||||
return AppSettings(
|
||||
clearPathOnMaxRetry: clearPathOnMaxRetry ?? this.clearPathOnMaxRetry,
|
||||
@@ -185,7 +135,6 @@ class AppSettings {
|
||||
mapKeyPrefixEnabled: mapKeyPrefixEnabled ?? this.mapKeyPrefixEnabled,
|
||||
mapKeyPrefix: mapKeyPrefix ?? this.mapKeyPrefix,
|
||||
mapShowMarkers: mapShowMarkers ?? this.mapShowMarkers,
|
||||
enableMessageTracing: enableMessageTracing ?? this.enableMessageTracing,
|
||||
mapCacheBounds: mapCacheBounds == _unset
|
||||
? this.mapCacheBounds
|
||||
: mapCacheBounds as Map<String, double>?,
|
||||
@@ -205,10 +154,6 @@ class AppSettings {
|
||||
appDebugLogEnabled: appDebugLogEnabled ?? this.appDebugLogEnabled,
|
||||
batteryChemistryByDeviceId:
|
||||
batteryChemistryByDeviceId ?? this.batteryChemistryByDeviceId,
|
||||
batteryChemistryByRepeaterId:
|
||||
batteryChemistryByRepeaterId ?? this.batteryChemistryByRepeaterId,
|
||||
unitSystem: unitSystem ?? this.unitSystem,
|
||||
mutedChannels: mutedChannels ?? this.mutedChannels,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@ class Contact {
|
||||
final Uint8List publicKey;
|
||||
final String name;
|
||||
final int type;
|
||||
final int flags;
|
||||
final int pathLength; // -1 = flood, 0+ = direct hops (from device)
|
||||
final Uint8List path; // Path bytes from device
|
||||
final int?
|
||||
@@ -20,7 +19,6 @@ class Contact {
|
||||
required this.publicKey,
|
||||
required this.name,
|
||||
required this.type,
|
||||
this.flags = 0,
|
||||
required this.pathLength,
|
||||
required this.path,
|
||||
this.pathOverride,
|
||||
@@ -60,13 +58,11 @@ class Contact {
|
||||
}
|
||||
|
||||
bool get hasLocation => latitude != null && longitude != null;
|
||||
bool get isFavorite => (flags & contactFlagFavorite) != 0;
|
||||
|
||||
Contact copyWith({
|
||||
Uint8List? publicKey,
|
||||
String? name,
|
||||
int? type,
|
||||
int? flags,
|
||||
int? pathLength,
|
||||
Uint8List? path,
|
||||
int? pathOverride,
|
||||
@@ -81,7 +77,6 @@ class Contact {
|
||||
publicKey: publicKey ?? this.publicKey,
|
||||
name: name ?? this.name,
|
||||
type: type ?? this.type,
|
||||
flags: flags ?? this.flags,
|
||||
pathLength: pathLength ?? this.pathLength,
|
||||
path: path ?? this.path,
|
||||
pathOverride: clearPathOverride
|
||||
@@ -172,7 +167,6 @@ class Contact {
|
||||
data.sublist(contactPubKeyOffset, contactPubKeyOffset + pubKeySize),
|
||||
);
|
||||
final type = data[contactTypeOffset];
|
||||
final flags = data[contactFlagsOffset];
|
||||
final pathLen = data[contactPathLenOffset].toSigned(8);
|
||||
final safePathLen = pathLen > 0
|
||||
? (pathLen > maxPathSize ? maxPathSize : pathLen)
|
||||
@@ -197,7 +191,6 @@ class Contact {
|
||||
publicKey: pubKey,
|
||||
name: name.isEmpty ? 'Unknown' : name,
|
||||
type: type,
|
||||
flags: flags,
|
||||
pathLength: pathLen,
|
||||
path: pathBytes,
|
||||
latitude: lat,
|
||||
|
||||
+40
-194
@@ -59,200 +59,46 @@ class RadioSettings {
|
||||
required this.txPowerDbm,
|
||||
});
|
||||
|
||||
// Regional preset configurations
|
||||
static final List<(String, RadioSettings)> presets = [
|
||||
(
|
||||
'Australia',
|
||||
RadioSettings(
|
||||
frequencyMHz: 915.8,
|
||||
bandwidth: LoRaBandwidth.bw250,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf10,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 20,
|
||||
),
|
||||
),
|
||||
(
|
||||
'Australia (Narrow)',
|
||||
RadioSettings(
|
||||
frequencyMHz: 916.575,
|
||||
bandwidth: LoRaBandwidth.bw62_5,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf7,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 20,
|
||||
),
|
||||
),
|
||||
(
|
||||
'Australia SA, WA, QLD',
|
||||
RadioSettings(
|
||||
frequencyMHz: 923.125,
|
||||
bandwidth: LoRaBandwidth.bw62_5,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf8,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 20,
|
||||
),
|
||||
),
|
||||
(
|
||||
'Czech Republic',
|
||||
RadioSettings(
|
||||
frequencyMHz: 869.432,
|
||||
bandwidth: LoRaBandwidth.bw62_5,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf7,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 14,
|
||||
),
|
||||
),
|
||||
(
|
||||
'EU 433MHz',
|
||||
RadioSettings(
|
||||
frequencyMHz: 433.650,
|
||||
bandwidth: LoRaBandwidth.bw250,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf11,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 20,
|
||||
),
|
||||
),
|
||||
(
|
||||
'EU/UK (Long Range)',
|
||||
RadioSettings(
|
||||
frequencyMHz: 869.525,
|
||||
bandwidth: LoRaBandwidth.bw250,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf11,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 14,
|
||||
),
|
||||
),
|
||||
(
|
||||
'EU/UK (Medium Range)',
|
||||
RadioSettings(
|
||||
frequencyMHz: 869.525,
|
||||
bandwidth: LoRaBandwidth.bw250,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf10,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 14,
|
||||
),
|
||||
),
|
||||
(
|
||||
'EU/UK (Narrow)',
|
||||
RadioSettings(
|
||||
frequencyMHz: 869.618,
|
||||
bandwidth: LoRaBandwidth.bw62_5,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf8,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 14,
|
||||
),
|
||||
),
|
||||
(
|
||||
'New Zealand',
|
||||
RadioSettings(
|
||||
frequencyMHz: 917.375,
|
||||
bandwidth: LoRaBandwidth.bw250,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf11,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 20,
|
||||
),
|
||||
),
|
||||
(
|
||||
'New Zealand (Narrow)',
|
||||
RadioSettings(
|
||||
frequencyMHz: 917.375,
|
||||
bandwidth: LoRaBandwidth.bw62_5,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf7,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 20,
|
||||
),
|
||||
),
|
||||
(
|
||||
'Portugal 433',
|
||||
RadioSettings(
|
||||
frequencyMHz: 433.375,
|
||||
bandwidth: LoRaBandwidth.bw62_5,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf9,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 20,
|
||||
),
|
||||
),
|
||||
(
|
||||
'Portugal 869',
|
||||
RadioSettings(
|
||||
frequencyMHz: 869.618,
|
||||
bandwidth: LoRaBandwidth.bw62_5,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf7,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 14,
|
||||
),
|
||||
),
|
||||
(
|
||||
'Switzerland',
|
||||
RadioSettings(
|
||||
frequencyMHz: 869.618,
|
||||
bandwidth: LoRaBandwidth.bw62_5,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf8,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 14,
|
||||
),
|
||||
),
|
||||
(
|
||||
'USA Arizona',
|
||||
RadioSettings(
|
||||
frequencyMHz: 908.205,
|
||||
bandwidth: LoRaBandwidth.bw62_5,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf10,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 20,
|
||||
),
|
||||
),
|
||||
(
|
||||
'USA/Canada',
|
||||
RadioSettings(
|
||||
frequencyMHz: 910.525,
|
||||
bandwidth: LoRaBandwidth.bw62_5,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf7,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 20,
|
||||
),
|
||||
),
|
||||
(
|
||||
'Vietnam',
|
||||
RadioSettings(
|
||||
frequencyMHz: 920.250,
|
||||
bandwidth: LoRaBandwidth.bw250,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf11,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 20,
|
||||
),
|
||||
),
|
||||
// Off-grid repeat presets (valid client_repeat frequencies)
|
||||
(
|
||||
'Off-Grid 433',
|
||||
RadioSettings(
|
||||
frequencyMHz: 433.0,
|
||||
bandwidth: LoRaBandwidth.bw250,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf11,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 20,
|
||||
),
|
||||
),
|
||||
(
|
||||
'Off-Grid 869',
|
||||
RadioSettings(
|
||||
frequencyMHz: 869.0,
|
||||
bandwidth: LoRaBandwidth.bw250,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf11,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 14,
|
||||
),
|
||||
),
|
||||
(
|
||||
'Off-Grid 918',
|
||||
RadioSettings(
|
||||
frequencyMHz: 918.0,
|
||||
bandwidth: LoRaBandwidth.bw250,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf11,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 20,
|
||||
),
|
||||
),
|
||||
];
|
||||
// Preset configurations
|
||||
static RadioSettings get preset915MHz => RadioSettings(
|
||||
frequencyMHz: 915.0,
|
||||
bandwidth: LoRaBandwidth.bw125,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf7,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 20,
|
||||
);
|
||||
|
||||
static RadioSettings get preset868MHz => RadioSettings(
|
||||
frequencyMHz: 868.0,
|
||||
bandwidth: LoRaBandwidth.bw125,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf7,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 14,
|
||||
);
|
||||
|
||||
static RadioSettings get preset433MHz => RadioSettings(
|
||||
frequencyMHz: 433.0,
|
||||
bandwidth: LoRaBandwidth.bw125,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf7,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 20,
|
||||
);
|
||||
|
||||
static RadioSettings get presetLongRange => RadioSettings(
|
||||
frequencyMHz: 915.0,
|
||||
bandwidth: LoRaBandwidth.bw125,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf12,
|
||||
codingRate: LoRaCodingRate.cr4_8,
|
||||
txPowerDbm: 20,
|
||||
);
|
||||
|
||||
static RadioSettings get presetFastSpeed => RadioSettings(
|
||||
frequencyMHz: 915.0,
|
||||
bandwidth: LoRaBandwidth.bw500,
|
||||
spreadingFactor: LoRaSpreadingFactor.sf7,
|
||||
codingRate: LoRaCodingRate.cr4_5,
|
||||
txPowerDbm: 20,
|
||||
);
|
||||
|
||||
int get frequencyHz => (frequencyMHz * 1000).round();
|
||||
int get bandwidthHz => bandwidth.hz;
|
||||
|
||||
@@ -4,7 +4,6 @@ import 'package:provider/provider.dart';
|
||||
|
||||
import '../l10n/l10n.dart';
|
||||
import '../services/app_debug_log_service.dart';
|
||||
import '../widgets/adaptive_app_bar_title.dart';
|
||||
|
||||
class AppDebugLogScreen extends StatelessWidget {
|
||||
const AppDebugLogScreen({super.key});
|
||||
@@ -18,7 +17,7 @@ class AppDebugLogScreen extends StatelessWidget {
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: AdaptiveAppBarTitle(context.l10n.debugLog_appTitle),
|
||||
title: Text(context.l10n.debugLog_appTitle),
|
||||
centerTitle: true,
|
||||
actions: [
|
||||
IconButton(
|
||||
|
||||
@@ -3,10 +3,8 @@ import 'package:provider/provider.dart';
|
||||
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../models/app_settings.dart';
|
||||
import '../services/app_settings_service.dart';
|
||||
import '../services/notification_service.dart';
|
||||
import '../widgets/adaptive_app_bar_title.dart';
|
||||
import 'map_cache_screen.dart';
|
||||
|
||||
class AppSettingsScreen extends StatelessWidget {
|
||||
@@ -16,7 +14,7 @@ class AppSettingsScreen extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: AdaptiveAppBarTitle(context.l10n.appSettings_title),
|
||||
title: Text(context.l10n.appSettings_title),
|
||||
centerTitle: true,
|
||||
),
|
||||
body: SafeArea(
|
||||
@@ -82,18 +80,6 @@ class AppSettingsScreen extends StatelessWidget {
|
||||
trailing: const Icon(Icons.chevron_right),
|
||||
onTap: () => _showLanguageDialog(context, settingsService),
|
||||
),
|
||||
const Divider(height: 1),
|
||||
SwitchListTile(
|
||||
secondary: const Icon(Icons.location_searching),
|
||||
title: Text(context.l10n.appSettings_enableMessageTracing),
|
||||
subtitle: Text(
|
||||
context.l10n.appSettings_enableMessageTracingSubtitle,
|
||||
),
|
||||
value: settingsService.settings.enableMessageTracing,
|
||||
onChanged: (value) {
|
||||
settingsService.setEnableMessageTracing(value);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
@@ -374,18 +360,6 @@ class AppSettingsScreen extends StatelessWidget {
|
||||
onTap: () => _showTimeFilterDialog(context, settingsService),
|
||||
),
|
||||
const Divider(height: 1),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.straighten),
|
||||
title: Text(context.l10n.appSettings_unitsTitle),
|
||||
subtitle: Text(
|
||||
settingsService.settings.unitSystem == UnitSystem.imperial
|
||||
? context.l10n.appSettings_unitsImperial
|
||||
: context.l10n.appSettings_unitsMetric,
|
||||
),
|
||||
trailing: const Icon(Icons.chevron_right),
|
||||
onTap: () => _showUnitsDialog(context, settingsService),
|
||||
),
|
||||
const Divider(height: 1),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.download_outlined),
|
||||
title: Text(context.l10n.appSettings_offlineMapCache),
|
||||
@@ -732,46 +706,6 @@ class AppSettingsScreen extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
void _showUnitsDialog(
|
||||
BuildContext context,
|
||||
AppSettingsService settingsService,
|
||||
) {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) => AlertDialog(
|
||||
title: Text(context.l10n.appSettings_unitsTitle),
|
||||
content: RadioGroup<UnitSystem>(
|
||||
groupValue: settingsService.settings.unitSystem,
|
||||
onChanged: (value) {
|
||||
if (value != null) {
|
||||
settingsService.setUnitSystem(value);
|
||||
Navigator.pop(context);
|
||||
}
|
||||
},
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
ListTile(
|
||||
title: Text(context.l10n.appSettings_unitsMetric),
|
||||
leading: const Radio<UnitSystem>(value: UnitSystem.metric),
|
||||
),
|
||||
ListTile(
|
||||
title: Text(context.l10n.appSettings_unitsImperial),
|
||||
leading: const Radio<UnitSystem>(value: UnitSystem.imperial),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.pop(context),
|
||||
child: Text(context.l10n.common_close),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildDebugCard(
|
||||
BuildContext context,
|
||||
AppSettingsService settingsService,
|
||||
|
||||
@@ -4,7 +4,6 @@ import 'package:flutter/services.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../services/ble_debug_log_service.dart';
|
||||
import '../connector/meshcore_protocol.dart';
|
||||
import '../widgets/adaptive_app_bar_title.dart';
|
||||
|
||||
enum _BleLogView { frames, rawLogRx }
|
||||
|
||||
@@ -30,7 +29,7 @@ class _BleDebugLogScreenState extends State<BleDebugLogScreen> {
|
||||
: rawEntries.isNotEmpty;
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: AdaptiveAppBarTitle(context.l10n.debugLog_bleTitle),
|
||||
title: Text(context.l10n.debugLog_bleTitle),
|
||||
actions: [
|
||||
IconButton(
|
||||
tooltip: context.l10n.debugLog_copyLog,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:math' as math;
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/scheduler.dart';
|
||||
@@ -17,15 +16,11 @@ import '../helpers/utf8_length_limiter.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../models/channel.dart';
|
||||
import '../models/channel_message.dart';
|
||||
import '../services/app_settings_service.dart';
|
||||
import '../services/chat_text_scale_service.dart';
|
||||
import '../utils/emoji_utils.dart';
|
||||
import '../widgets/chat_zoom_wrapper.dart';
|
||||
import '../widgets/emoji_picker.dart';
|
||||
import '../widgets/gif_message.dart';
|
||||
import '../widgets/jump_to_bottom_button.dart';
|
||||
import '../widgets/gif_picker.dart';
|
||||
import '../widgets/message_status_icon.dart';
|
||||
import 'channel_message_path_screen.dart';
|
||||
import 'map_screen.dart';
|
||||
|
||||
@@ -221,50 +216,37 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
|
||||
return Stack(
|
||||
children: [
|
||||
ChatZoomWrapper(
|
||||
child: ListView.builder(
|
||||
reverse: true, // List grows from bottom up
|
||||
controller: _scrollController,
|
||||
padding: const EdgeInsets.all(8),
|
||||
itemCount: itemCount,
|
||||
itemBuilder: (context, index) {
|
||||
// Loading indicator now appears at end (bottom) of reversed list
|
||||
if (_isLoadingOlder && index == itemCount - 1) {
|
||||
return const Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 16),
|
||||
child: Center(
|
||||
child: SizedBox(
|
||||
width: 20,
|
||||
height: 20,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 2,
|
||||
),
|
||||
ListView.builder(
|
||||
reverse: true, // List grows from bottom up
|
||||
controller: _scrollController,
|
||||
padding: const EdgeInsets.all(8),
|
||||
itemCount: itemCount,
|
||||
itemBuilder: (context, index) {
|
||||
// Loading indicator now appears at end (bottom) of reversed list
|
||||
if (_isLoadingOlder && index == itemCount - 1) {
|
||||
return const Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 16),
|
||||
child: Center(
|
||||
child: SizedBox(
|
||||
width: 20,
|
||||
height: 20,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 2,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
final messageIndex = index;
|
||||
final message = reversedMessages[messageIndex];
|
||||
if (!_messageKeys.containsKey(message.messageId)) {
|
||||
_messageKeys[message.messageId] = GlobalKey();
|
||||
}
|
||||
return Container(
|
||||
key: _messageKeys[message.messageId]!,
|
||||
child: Builder(
|
||||
builder: (context) {
|
||||
final textScale = context
|
||||
.select<ChatTextScaleService, double>(
|
||||
(service) => service.scale,
|
||||
);
|
||||
return _buildMessageBubble(
|
||||
message,
|
||||
textScale,
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
}
|
||||
final messageIndex = index;
|
||||
final message = reversedMessages[messageIndex];
|
||||
if (!_messageKeys.containsKey(message.messageId)) {
|
||||
_messageKeys[message.messageId] = GlobalKey();
|
||||
}
|
||||
return Container(
|
||||
key: _messageKeys[message.messageId]!,
|
||||
child: _buildMessageBubble(message),
|
||||
);
|
||||
},
|
||||
),
|
||||
JumpToBottomButton(scrollController: _scrollController),
|
||||
],
|
||||
@@ -279,9 +261,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildMessageBubble(ChannelMessage message, double textScale) {
|
||||
final settingsService = context.watch<AppSettingsService>();
|
||||
final enableTracing = settingsService.settings.enableMessageTracing;
|
||||
Widget _buildMessageBubble(ChannelMessage message) {
|
||||
final isOutgoing = message.isOutgoing;
|
||||
final gifId = _parseGifId(message.text);
|
||||
final poi = _parsePoiMessage(message.text);
|
||||
@@ -291,184 +271,107 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
? message.pathVariants.first
|
||||
: Uint8List(0));
|
||||
|
||||
const maxSwipeOffset = 64.0;
|
||||
const replySwipeThreshold = 64.0;
|
||||
const bodyFontSize = 14.0;
|
||||
final messageBody = Column(
|
||||
crossAxisAlignment: isOutgoing
|
||||
? CrossAxisAlignment.end
|
||||
: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: isOutgoing
|
||||
? MainAxisAlignment.end
|
||||
: MainAxisAlignment.start,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
if (!isOutgoing) ...[
|
||||
_buildAvatar(message.senderName),
|
||||
const SizedBox(width: 8),
|
||||
],
|
||||
Flexible(
|
||||
child: GestureDetector(
|
||||
onTap: () => _showMessagePathInfo(message),
|
||||
onLongPress: () => _showMessageActions(message),
|
||||
child: Container(
|
||||
padding: gifId != null
|
||||
? const EdgeInsets.all(4)
|
||||
: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
|
||||
constraints: BoxConstraints(
|
||||
maxWidth: MediaQuery.of(context).size.width * 0.65,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: isOutgoing
|
||||
? Theme.of(context).colorScheme.primaryContainer
|
||||
: Theme.of(context).colorScheme.surfaceContainerHighest,
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
if (!isOutgoing) ...[
|
||||
Padding(
|
||||
padding: gifId != null
|
||||
? const EdgeInsets.only(
|
||||
left: 8,
|
||||
top: 4,
|
||||
bottom: 4,
|
||||
)
|
||||
: EdgeInsets.zero,
|
||||
child: Text(
|
||||
message.senderName,
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 8),
|
||||
child: Column(
|
||||
crossAxisAlignment: isOutgoing
|
||||
? CrossAxisAlignment.end
|
||||
: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: isOutgoing
|
||||
? MainAxisAlignment.end
|
||||
: MainAxisAlignment.start,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
if (!isOutgoing) ...[
|
||||
_buildAvatar(message.senderName),
|
||||
const SizedBox(width: 8),
|
||||
],
|
||||
Flexible(
|
||||
child: GestureDetector(
|
||||
onTap: () => _showMessagePathInfo(message),
|
||||
onLongPress: () => _showMessageActions(message),
|
||||
child: Container(
|
||||
padding: gifId != null
|
||||
? const EdgeInsets.all(4)
|
||||
: const EdgeInsets.symmetric(
|
||||
horizontal: 12,
|
||||
vertical: 8,
|
||||
),
|
||||
constraints: BoxConstraints(
|
||||
maxWidth: MediaQuery.of(context).size.width * 0.65,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: isOutgoing
|
||||
? Theme.of(context).colorScheme.primaryContainer
|
||||
: Theme.of(
|
||||
context,
|
||||
).colorScheme.surfaceContainerHighest,
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
if (!isOutgoing) ...[
|
||||
Padding(
|
||||
padding: gifId != null
|
||||
? const EdgeInsets.only(
|
||||
left: 8,
|
||||
top: 4,
|
||||
bottom: 4,
|
||||
)
|
||||
: EdgeInsets.zero,
|
||||
child: Text(
|
||||
message.senderName,
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
if (gifId == null) const SizedBox(height: 4),
|
||||
],
|
||||
if (message.replyToMessageId != null) ...[
|
||||
_buildReplyPreview(message, textScale),
|
||||
const SizedBox(height: 8),
|
||||
],
|
||||
if (poi != null)
|
||||
_buildPoiMessage(
|
||||
context,
|
||||
poi,
|
||||
isOutgoing,
|
||||
textScale,
|
||||
trailing: (!enableTracing && isOutgoing)
|
||||
? Padding(
|
||||
padding: const EdgeInsets.only(bottom: 2),
|
||||
child: MessageStatusIcon(
|
||||
isAcked:
|
||||
message.status ==
|
||||
ChannelMessageStatus.sent &&
|
||||
displayPath.isNotEmpty,
|
||||
isFailed:
|
||||
message.status ==
|
||||
ChannelMessageStatus.failed,
|
||||
),
|
||||
)
|
||||
: null,
|
||||
)
|
||||
else if (gifId != null)
|
||||
Stack(
|
||||
children: [
|
||||
ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: GifMessage(
|
||||
url:
|
||||
'https://media.giphy.com/media/$gifId/giphy.gif',
|
||||
backgroundColor: Colors.transparent,
|
||||
fallbackTextColor: isOutgoing
|
||||
? Theme.of(context)
|
||||
.colorScheme
|
||||
.onPrimaryContainer
|
||||
.withValues(alpha: 0.7)
|
||||
: Theme.of(context).colorScheme.onSurface
|
||||
.withValues(alpha: 0.6),
|
||||
),
|
||||
if (gifId == null) const SizedBox(height: 4),
|
||||
],
|
||||
if (message.replyToMessageId != null) ...[
|
||||
_buildReplyPreview(message),
|
||||
const SizedBox(height: 8),
|
||||
],
|
||||
if (poi != null)
|
||||
_buildPoiMessage(context, poi, isOutgoing)
|
||||
else if (gifId != null)
|
||||
ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: GifMessage(
|
||||
url:
|
||||
'https://media.giphy.com/media/$gifId/giphy.gif',
|
||||
backgroundColor: Colors.transparent,
|
||||
fallbackTextColor: isOutgoing
|
||||
? Theme.of(context)
|
||||
.colorScheme
|
||||
.onPrimaryContainer
|
||||
.withValues(alpha: 0.7)
|
||||
: Theme.of(context).colorScheme.onSurface
|
||||
.withValues(alpha: 0.6),
|
||||
),
|
||||
if (!enableTracing && isOutgoing)
|
||||
Positioned(
|
||||
top: 0,
|
||||
right: 0,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(3),
|
||||
decoration: BoxDecoration(
|
||||
color: isOutgoing
|
||||
? Theme.of(
|
||||
context,
|
||||
).colorScheme.primaryContainer
|
||||
: Theme.of(
|
||||
context,
|
||||
).colorScheme.surfaceContainerHighest,
|
||||
borderRadius: const BorderRadius.only(
|
||||
bottomLeft: Radius.circular(10),
|
||||
topRight: Radius.circular(8),
|
||||
),
|
||||
),
|
||||
child: MessageStatusIcon(
|
||||
isAcked:
|
||||
message.status ==
|
||||
ChannelMessageStatus.sent &&
|
||||
displayPath.isNotEmpty,
|
||||
isFailed:
|
||||
message.status ==
|
||||
ChannelMessageStatus.failed,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
else
|
||||
Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
Flexible(
|
||||
child: Linkify(
|
||||
text: message.text,
|
||||
style: TextStyle(
|
||||
fontSize: bodyFontSize * textScale,
|
||||
),
|
||||
linkStyle: TextStyle(
|
||||
fontSize: bodyFontSize * textScale,
|
||||
color: Colors.green,
|
||||
decoration: TextDecoration.underline,
|
||||
),
|
||||
options: const LinkifyOptions(
|
||||
humanize: false,
|
||||
defaultToHttps: false,
|
||||
),
|
||||
linkifiers: const [UrlLinkifier()],
|
||||
onOpen: (link) => LinkHandler.handleLinkTap(
|
||||
context,
|
||||
link.url,
|
||||
),
|
||||
),
|
||||
)
|
||||
else
|
||||
Linkify(
|
||||
text: message.text,
|
||||
style: const TextStyle(fontSize: 14),
|
||||
linkStyle: const TextStyle(
|
||||
fontSize: 14,
|
||||
color: Colors.green,
|
||||
decoration: TextDecoration.underline,
|
||||
),
|
||||
if (!enableTracing && isOutgoing) ...[
|
||||
const SizedBox(width: 4),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(bottom: 2),
|
||||
child: MessageStatusIcon(
|
||||
isAcked:
|
||||
message.status ==
|
||||
ChannelMessageStatus.sent &&
|
||||
displayPath.isNotEmpty,
|
||||
isFailed:
|
||||
message.status ==
|
||||
ChannelMessageStatus.failed,
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
if (enableTracing) ...[
|
||||
options: const LinkifyOptions(
|
||||
humanize: false,
|
||||
defaultToHttps: false,
|
||||
),
|
||||
linkifiers: const [UrlLinkifier()],
|
||||
onOpen: (link) =>
|
||||
LinkHandler.handleLinkTap(context, link.url),
|
||||
),
|
||||
if (displayPath.isNotEmpty) ...[
|
||||
const SizedBox(height: 4),
|
||||
Padding(
|
||||
@@ -540,81 +443,25 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
if (message.reactions.isNotEmpty) ...[
|
||||
const SizedBox(height: 4),
|
||||
Padding(
|
||||
padding: EdgeInsets.only(left: isOutgoing ? 0 : 48),
|
||||
child: _buildReactionsDisplay(message),
|
||||
),
|
||||
],
|
||||
),
|
||||
if (message.reactions.isNotEmpty) ...[
|
||||
const SizedBox(height: 4),
|
||||
Padding(
|
||||
padding: EdgeInsets.only(left: isOutgoing ? 0 : 48),
|
||||
child: _buildReactionsDisplay(message),
|
||||
),
|
||||
],
|
||||
],
|
||||
);
|
||||
|
||||
if (!isOutgoing) {
|
||||
return _SwipeReplyBubble(
|
||||
maxSwipeOffset: maxSwipeOffset,
|
||||
replySwipeThreshold: replySwipeThreshold,
|
||||
onReplyTriggered: () => _setReplyingTo(message),
|
||||
hintBuilder: ({required isStart}) =>
|
||||
_buildReplySwipeHint(isStart: isStart),
|
||||
child: messageBody,
|
||||
);
|
||||
} else {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||
child: messageBody,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Widget _buildReplySwipeHint({required bool isStart}) {
|
||||
final colorScheme = Theme.of(context).colorScheme;
|
||||
final content = Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(Icons.reply, color: colorScheme.primary),
|
||||
const SizedBox(width: 6),
|
||||
Text(
|
||||
context.l10n.chat_reply,
|
||||
style: TextStyle(
|
||||
color: colorScheme.primary,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
return Container(
|
||||
alignment: isStart ? Alignment.centerLeft : Alignment.centerRight,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
color: colorScheme.primary.withValues(alpha: 0.08),
|
||||
child: isStart
|
||||
? content
|
||||
: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(
|
||||
context.l10n.chat_reply,
|
||||
style: TextStyle(
|
||||
color: colorScheme.primary,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
Icon(Icons.reply, color: colorScheme.primary),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildReplyPreview(ChannelMessage message, double textScale) {
|
||||
Widget _buildReplyPreview(ChannelMessage message) {
|
||||
final connector = context.read<MeshCoreConnector>();
|
||||
final isOwnNode = message.replyToSenderName == connector.selfName;
|
||||
final replyText = message.replyToText ?? '';
|
||||
@@ -642,7 +489,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
const SizedBox(width: 4),
|
||||
Text(
|
||||
context.l10n.chat_location,
|
||||
style: TextStyle(fontSize: 12 * textScale, color: previewTextColor),
|
||||
style: TextStyle(fontSize: 12, color: previewTextColor),
|
||||
),
|
||||
],
|
||||
);
|
||||
@@ -652,7 +499,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
fontSize: 12 * textScale,
|
||||
fontSize: 12,
|
||||
color: previewTextColor,
|
||||
fontStyle: FontStyle.italic,
|
||||
),
|
||||
@@ -676,7 +523,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
Text(
|
||||
context.l10n.chat_replyTo(message.replyToSenderName ?? ''),
|
||||
style: TextStyle(
|
||||
fontSize: 11 * textScale,
|
||||
fontSize: 11,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: isOwnNode
|
||||
? Theme.of(context).colorScheme.primary
|
||||
@@ -752,13 +599,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
return _PoiInfo(lat: lat, lon: lon, label: label);
|
||||
}
|
||||
|
||||
Widget _buildPoiMessage(
|
||||
BuildContext context,
|
||||
_PoiInfo poi,
|
||||
bool isOutgoing,
|
||||
double textScale, {
|
||||
Widget? trailing,
|
||||
}) {
|
||||
Widget _buildPoiMessage(BuildContext context, _PoiInfo poi, bool isOutgoing) {
|
||||
final colorScheme = Theme.of(context).colorScheme;
|
||||
final textColor = isOutgoing
|
||||
? colorScheme.onPrimaryContainer
|
||||
@@ -794,21 +635,16 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
children: [
|
||||
Text(
|
||||
context.l10n.chat_poiShared,
|
||||
style: TextStyle(
|
||||
color: textColor,
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 14 * textScale,
|
||||
),
|
||||
style: TextStyle(color: textColor, fontWeight: FontWeight.w600),
|
||||
),
|
||||
if (poi.label.isNotEmpty)
|
||||
Text(
|
||||
poi.label,
|
||||
style: TextStyle(color: metaColor, fontSize: 12 * textScale),
|
||||
style: TextStyle(color: metaColor, fontSize: 12),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
if (trailing != null) ...[const SizedBox(width: 4), trailing],
|
||||
],
|
||||
);
|
||||
}
|
||||
@@ -873,7 +709,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
return colors[hash.abs() % colors.length];
|
||||
}
|
||||
|
||||
Widget _buildReplyBanner(double textScale) {
|
||||
Widget _buildReplyBanner() {
|
||||
final message = _replyingToMessage!;
|
||||
return Container(
|
||||
width: double.infinity,
|
||||
@@ -899,7 +735,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
Text(
|
||||
context.l10n.chat_replyingTo(message.senderName),
|
||||
style: TextStyle(
|
||||
fontSize: 12 * textScale,
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Theme.of(context).colorScheme.onSecondaryContainer,
|
||||
),
|
||||
@@ -909,7 +745,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
fontSize: 11 * textScale,
|
||||
fontSize: 11,
|
||||
color: Theme.of(
|
||||
context,
|
||||
).colorScheme.onSecondaryContainer.withValues(alpha: 0.7),
|
||||
@@ -936,15 +772,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (_replyingToMessage != null)
|
||||
Builder(
|
||||
builder: (context) {
|
||||
final textScale = context.select<ChatTextScaleService, double>(
|
||||
(service) => service.scale,
|
||||
);
|
||||
return _buildReplyBanner(textScale);
|
||||
},
|
||||
),
|
||||
if (_replyingToMessage != null) _buildReplyBanner(),
|
||||
Container(
|
||||
padding: const EdgeInsets.all(8),
|
||||
decoration: BoxDecoration(
|
||||
@@ -970,47 +798,30 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
builder: (context, value, child) {
|
||||
final gifId = _parseGifId(value.text);
|
||||
if (gifId != null) {
|
||||
return Focus(
|
||||
autofocus: true,
|
||||
onKeyEvent: (node, event) {
|
||||
if (event is KeyDownEvent &&
|
||||
(event.logicalKey == LogicalKeyboardKey.enter ||
|
||||
event.logicalKey ==
|
||||
LogicalKeyboardKey.numpadEnter)) {
|
||||
_sendMessage();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
return KeyEventResult.ignored;
|
||||
},
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
child: GifMessage(
|
||||
url:
|
||||
'https://media.giphy.com/media/$gifId/giphy.gif',
|
||||
backgroundColor: Theme.of(
|
||||
context,
|
||||
).colorScheme.surfaceContainerHighest,
|
||||
fallbackTextColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.onSurface
|
||||
.withValues(alpha: 0.6),
|
||||
maxSize: 160,
|
||||
),
|
||||
return Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
child: GifMessage(
|
||||
url:
|
||||
'https://media.giphy.com/media/$gifId/giphy.gif',
|
||||
backgroundColor: Theme.of(
|
||||
context,
|
||||
).colorScheme.surfaceContainerHighest,
|
||||
fallbackTextColor: Theme.of(
|
||||
context,
|
||||
).colorScheme.onSurface.withValues(alpha: 0.6),
|
||||
maxSize: 160,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
IconButton(
|
||||
icon: const Icon(Icons.close),
|
||||
onPressed: () {
|
||||
_textController.clear();
|
||||
_textFieldFocusNode.requestFocus();
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
IconButton(
|
||||
icon: const Icon(Icons.close),
|
||||
onPressed: () => _textController.clear(),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1073,7 +884,6 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
connector.sendChannelMessage(widget.channel, messageText);
|
||||
_textController.clear();
|
||||
_cancelReply();
|
||||
_textFieldFocusNode.requestFocus();
|
||||
}
|
||||
|
||||
String _formatTime(DateTime time) {
|
||||
@@ -1197,157 +1007,6 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
}
|
||||
}
|
||||
|
||||
class _SwipeReplyBubble extends StatefulWidget {
|
||||
final double maxSwipeOffset;
|
||||
final double replySwipeThreshold;
|
||||
final VoidCallback onReplyTriggered;
|
||||
final Widget Function({required bool isStart}) hintBuilder;
|
||||
final Widget child;
|
||||
|
||||
const _SwipeReplyBubble({
|
||||
required this.maxSwipeOffset,
|
||||
required this.replySwipeThreshold,
|
||||
required this.onReplyTriggered,
|
||||
required this.hintBuilder,
|
||||
required this.child,
|
||||
});
|
||||
|
||||
@override
|
||||
State<_SwipeReplyBubble> createState() => _SwipeReplyBubbleState();
|
||||
}
|
||||
|
||||
class _SwipeReplyBubbleState extends State<_SwipeReplyBubble> {
|
||||
Offset? _swipeStartPosition;
|
||||
double _swipeOffset = 0;
|
||||
double _maxSwipeDistance = 0;
|
||||
int? _swipePointerId;
|
||||
bool _swipeLockedToHorizontal = false;
|
||||
|
||||
void _handleSwipeStart(Offset position) {
|
||||
_swipeStartPosition = position;
|
||||
_maxSwipeDistance = 0;
|
||||
if (_swipeOffset != 0) {
|
||||
setState(() => _swipeOffset = 0);
|
||||
}
|
||||
}
|
||||
|
||||
void _handleSwipePointerDown(PointerDownEvent event) {
|
||||
_swipePointerId = event.pointer;
|
||||
_swipeLockedToHorizontal = false;
|
||||
_handleSwipeStart(event.position);
|
||||
}
|
||||
|
||||
void _handleSwipePointerMove(PointerMoveEvent event) {
|
||||
if (_swipePointerId != event.pointer || _swipeStartPosition == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
final dx = event.position.dx - _swipeStartPosition!.dx;
|
||||
|
||||
const axisLockThreshold = 12.0;
|
||||
if (!_swipeLockedToHorizontal) {
|
||||
if (-dx < axisLockThreshold) {
|
||||
return;
|
||||
}
|
||||
_swipeLockedToHorizontal = true;
|
||||
}
|
||||
|
||||
_handleSwipeUpdate(event.position);
|
||||
}
|
||||
|
||||
void _handleSwipeUpdate(Offset position) {
|
||||
if (_swipeStartPosition == null) return;
|
||||
|
||||
final dx = position.dx - _swipeStartPosition!.dx;
|
||||
if (dx >= 0) return;
|
||||
|
||||
if (-dx < 6) return;
|
||||
|
||||
if (-dx > _maxSwipeDistance) {
|
||||
_maxSwipeDistance = -dx;
|
||||
}
|
||||
|
||||
final double clamped = dx.clamp(-widget.maxSwipeOffset, 0.0).toDouble();
|
||||
final adjusted = _applySwipeResistance(clamped, widget.maxSwipeOffset);
|
||||
if (adjusted != _swipeOffset) {
|
||||
setState(() => _swipeOffset = adjusted);
|
||||
}
|
||||
}
|
||||
|
||||
void _handleSwipePointerUp(Offset position) {
|
||||
if (_swipeLockedToHorizontal && _swipeStartPosition != null) {
|
||||
final dx = position.dx - _swipeStartPosition!.dx;
|
||||
final peak = math.max(
|
||||
_maxSwipeDistance,
|
||||
(-dx).clamp(0.0, double.infinity),
|
||||
);
|
||||
if (peak >= widget.replySwipeThreshold) {
|
||||
widget.onReplyTriggered();
|
||||
HapticFeedback.selectionClick();
|
||||
}
|
||||
}
|
||||
_resetSwipe();
|
||||
}
|
||||
|
||||
void _resetSwipe() {
|
||||
if (_swipeOffset != 0) {
|
||||
setState(() => _swipeOffset = 0);
|
||||
}
|
||||
_swipeStartPosition = null;
|
||||
_maxSwipeDistance = 0;
|
||||
_swipePointerId = null;
|
||||
_swipeLockedToHorizontal = false;
|
||||
}
|
||||
|
||||
double _applySwipeResistance(double rawOffset, double maxOffset) {
|
||||
final abs = rawOffset.abs();
|
||||
if (abs <= 0) return 0;
|
||||
final norm = (abs / maxOffset).clamp(0.0, 1.0);
|
||||
const deadZone = 0.18;
|
||||
if (norm <= deadZone) {
|
||||
return rawOffset.sign * maxOffset * (norm * 0.08);
|
||||
}
|
||||
final t = ((norm - deadZone) / (1 - deadZone)).clamp(0.0, 1.0);
|
||||
final curved = t < 0.5
|
||||
? 16 * math.pow(t, 5)
|
||||
: 1 - math.pow(-2 * t + 2, 5) / 2;
|
||||
const deadZoneEnd = 0.0144;
|
||||
return rawOffset.sign *
|
||||
maxOffset *
|
||||
(deadZoneEnd + curved * (1 - deadZoneEnd));
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Listener(
|
||||
onPointerDown: _handleSwipePointerDown,
|
||||
onPointerMove: _handleSwipePointerMove,
|
||||
onPointerUp: (event) => _handleSwipePointerUp(event.position),
|
||||
onPointerCancel: (_) => _resetSwipe(),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 8),
|
||||
child: Stack(
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
Positioned.fill(
|
||||
child: Opacity(
|
||||
opacity: _swipeOffset.abs() / widget.maxSwipeOffset,
|
||||
child: widget.hintBuilder(isStart: false),
|
||||
),
|
||||
),
|
||||
AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 150),
|
||||
transform: Matrix4.translationValues(_swipeOffset, 0, 0),
|
||||
curve: Curves.easeOut,
|
||||
child: widget.child,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class _PoiInfo {
|
||||
final double lat;
|
||||
final double lon;
|
||||
|
||||
@@ -9,14 +9,11 @@ import 'package:provider/provider.dart';
|
||||
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../services/map_tile_cache_service.dart';
|
||||
import '../services/app_settings_service.dart';
|
||||
import '../connector/meshcore_protocol.dart';
|
||||
import '../l10n/app_localizations.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../models/channel_message.dart';
|
||||
import '../models/app_settings.dart';
|
||||
import '../models/contact.dart';
|
||||
import '../widgets/adaptive_app_bar_title.dart';
|
||||
|
||||
class ChannelMessagePathScreen extends StatelessWidget {
|
||||
final ChannelMessage message;
|
||||
@@ -51,7 +48,7 @@ class ChannelMessagePathScreen extends StatelessWidget {
|
||||
final extraPaths = _otherPaths(primaryPath, message.pathVariants);
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: AdaptiveAppBarTitle(l10n.channelPath_title),
|
||||
title: Text(l10n.channelPath_title),
|
||||
actions: [
|
||||
IconButton(
|
||||
icon: const Icon(Icons.radar_outlined),
|
||||
@@ -300,12 +297,8 @@ class ChannelMessagePathMapScreen extends StatefulWidget {
|
||||
|
||||
class _ChannelMessagePathMapScreenState
|
||||
extends State<ChannelMessagePathMapScreen> {
|
||||
static const double _labelZoomThreshold = 8.5;
|
||||
|
||||
Uint8List? _selectedPath;
|
||||
double _pathDistance = 0.0;
|
||||
bool _showNodeLabels = true;
|
||||
bool _didReceivePositionUpdate = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -340,8 +333,6 @@ class _ChannelMessagePathMapScreenState
|
||||
Widget build(BuildContext context) {
|
||||
return Consumer<MeshCoreConnector>(
|
||||
builder: (context, connector, _) {
|
||||
final settings = context.watch<AppSettingsService>().settings;
|
||||
final isImperial = settings.unitSystem == UnitSystem.imperial;
|
||||
final tileCache = context.read<MapTileCacheService>();
|
||||
final primaryPath = _selectPrimaryPath(
|
||||
widget.message.pathBytes,
|
||||
@@ -371,7 +362,9 @@ class _ChannelMessagePathMapScreenState
|
||||
);
|
||||
|
||||
final points = <LatLng>[];
|
||||
|
||||
print(
|
||||
'outgoing: ${widget.message.isOutgoing}, channelMsg: ${widget.channelMessage}',
|
||||
);
|
||||
if ((widget.message.isOutgoing && !widget.channelMessage) ||
|
||||
(widget.message.isOutgoing && widget.channelMessage)) {
|
||||
points.add(LatLng(connector.selfLatitude!, connector.selfLongitude!));
|
||||
@@ -402,9 +395,6 @@ class _ChannelMessagePathMapScreenState
|
||||
? points.first
|
||||
: const LatLng(0, 0);
|
||||
final initialZoom = points.isNotEmpty ? 13.0 : 2.0;
|
||||
if (!_didReceivePositionUpdate) {
|
||||
_showNodeLabels = initialZoom >= _labelZoomThreshold;
|
||||
}
|
||||
final bounds = points.length > 1
|
||||
? LatLngBounds.fromPoints(points)
|
||||
: null;
|
||||
@@ -414,9 +404,7 @@ class _ChannelMessagePathMapScreenState
|
||||
_pathDistance = _getPathDistance(points);
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: AdaptiveAppBarTitle(context.l10n.channelPath_mapTitle),
|
||||
),
|
||||
appBar: AppBar(title: Text(context.l10n.channelPath_mapTitle)),
|
||||
body: SafeArea(
|
||||
top: false,
|
||||
child: Stack(
|
||||
@@ -438,17 +426,6 @@ class _ChannelMessagePathMapScreenState
|
||||
interactionOptions: InteractionOptions(
|
||||
flags: ~InteractiveFlag.rotate,
|
||||
),
|
||||
onPositionChanged: (camera, hasGesture) {
|
||||
final shouldShow = camera.zoom >= _labelZoomThreshold;
|
||||
if (!_didReceivePositionUpdate ||
|
||||
shouldShow != _showNodeLabels) {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
_didReceivePositionUpdate = true;
|
||||
_showNodeLabels = shouldShow;
|
||||
});
|
||||
}
|
||||
},
|
||||
),
|
||||
children: [
|
||||
TileLayer(
|
||||
@@ -460,12 +437,7 @@ class _ChannelMessagePathMapScreenState
|
||||
),
|
||||
if (polylines.isNotEmpty)
|
||||
PolylineLayer(polylines: polylines),
|
||||
MarkerLayer(
|
||||
markers: _buildHopMarkers(
|
||||
hops,
|
||||
showLabels: _showNodeLabels,
|
||||
),
|
||||
),
|
||||
MarkerLayer(markers: _buildHopMarkers(hops)),
|
||||
],
|
||||
),
|
||||
if (observedPaths.length > 1)
|
||||
@@ -488,7 +460,7 @@ class _ChannelMessagePathMapScreenState
|
||||
),
|
||||
),
|
||||
),
|
||||
_buildLegendCard(context, hops, isImperial),
|
||||
_buildLegendCard(context, hops),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -560,61 +532,45 @@ class _ChannelMessagePathMapScreenState
|
||||
);
|
||||
}
|
||||
|
||||
List<Marker> _buildHopMarkers(
|
||||
List<_PathHop> hops, {
|
||||
required bool showLabels,
|
||||
}) {
|
||||
final markers = <Marker>[];
|
||||
for (final hop in hops) {
|
||||
if (!hop.hasLocation) continue;
|
||||
final point = hop.position!;
|
||||
markers.add(
|
||||
Marker(
|
||||
point: point,
|
||||
width: 35,
|
||||
height: 35,
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.green,
|
||||
shape: BoxShape.circle,
|
||||
border: Border.all(color: Colors.white, width: 2),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withValues(alpha: 0.3),
|
||||
blurRadius: 4,
|
||||
offset: const Offset(0, 2),
|
||||
List<Marker> _buildHopMarkers(List<_PathHop> hops) {
|
||||
return [
|
||||
for (final hop in hops)
|
||||
if (hop.hasLocation)
|
||||
Marker(
|
||||
point: hop.position!,
|
||||
width: 35,
|
||||
height: 35,
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.green,
|
||||
shape: BoxShape.circle,
|
||||
border: Border.all(color: Colors.white, width: 2),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withValues(alpha: 0.3),
|
||||
blurRadius: 4,
|
||||
offset: const Offset(0, 2),
|
||||
),
|
||||
],
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: Text(
|
||||
hop.index.toString(),
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 12,
|
||||
),
|
||||
],
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: Text(
|
||||
hop.index.toString(),
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
if (showLabels) {
|
||||
markers.add(
|
||||
_buildNodeLabelMarker(
|
||||
point: point,
|
||||
label: hop.contact?.name ?? _formatPrefix(hop.prefix),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
final selfLat = context.read<MeshCoreConnector>().selfLatitude;
|
||||
final selfLon = context.read<MeshCoreConnector>().selfLongitude;
|
||||
if (selfLat != null && selfLon != null) {
|
||||
final selfPoint = LatLng(selfLat, selfLon);
|
||||
markers.add(
|
||||
if (context.read<MeshCoreConnector>().selfLatitude != null &&
|
||||
context.read<MeshCoreConnector>().selfLongitude != null)
|
||||
Marker(
|
||||
point: selfPoint,
|
||||
point: LatLng(
|
||||
context.read<MeshCoreConnector>().selfLatitude!,
|
||||
context.read<MeshCoreConnector>().selfLongitude!,
|
||||
),
|
||||
width: 35,
|
||||
height: 35,
|
||||
child: Container(
|
||||
@@ -641,60 +597,10 @@ class _ChannelMessagePathMapScreenState
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
if (showLabels) {
|
||||
markers.add(
|
||||
_buildNodeLabelMarker(
|
||||
point: selfPoint,
|
||||
label: context.l10n.pathTrace_you,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return markers;
|
||||
];
|
||||
}
|
||||
|
||||
Marker _buildNodeLabelMarker({required LatLng point, required String label}) {
|
||||
return Marker(
|
||||
point: point,
|
||||
width: 120,
|
||||
height: 24,
|
||||
alignment: Alignment.topCenter,
|
||||
child: IgnorePointer(
|
||||
child: Transform.translate(
|
||||
offset: const Offset(0, -20),
|
||||
child: FittedBox(
|
||||
fit: BoxFit.contain,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.black54,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: Text(
|
||||
label,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 11,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildLegendCard(
|
||||
BuildContext context,
|
||||
List<_PathHop> hops,
|
||||
bool isImperial,
|
||||
) {
|
||||
Widget _buildLegendCard(BuildContext context, List<_PathHop> hops) {
|
||||
final l10n = context.l10n;
|
||||
final maxHeight = MediaQuery.of(context).size.height * 0.35;
|
||||
final estimatedHeight = 72.0 + (hops.length * 56.0);
|
||||
@@ -713,7 +619,7 @@ class _ChannelMessagePathMapScreenState
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(12),
|
||||
child: Text(
|
||||
'${l10n.channelPath_repeaterHops} ${formatDistance(_pathDistance, isImperial: isImperial)}',
|
||||
'${l10n.channelPath_repeaterHops} (${(_pathDistance / 1609.34).toStringAsFixed(2)} Miles / ${(_pathDistance / 1000).toStringAsFixed(2)} Km)',
|
||||
style: const TextStyle(fontWeight: FontWeight.w600),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -3,14 +3,12 @@ import 'dart:math';
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:meshcore_open/storage/channel_message_store.dart';
|
||||
import 'package:meshcore_open/widgets/app_bar.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../services/app_settings_service.dart';
|
||||
import '../models/channel.dart';
|
||||
import '../models/community.dart';
|
||||
import '../storage/community_store.dart';
|
||||
@@ -106,7 +104,6 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final connector = context.watch<MeshCoreConnector>();
|
||||
final channelMessageStore = ChannelMessageStore();
|
||||
|
||||
// Auto-navigate back to scanner if disconnected
|
||||
if (!checkConnectionAndNavigate(connector)) {
|
||||
@@ -306,7 +303,6 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
return _buildChannelTile(
|
||||
context,
|
||||
connector,
|
||||
channelMessageStore,
|
||||
channel,
|
||||
showDragHandle: true,
|
||||
dragIndex: index,
|
||||
@@ -326,7 +322,6 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
return _buildChannelTile(
|
||||
context,
|
||||
connector,
|
||||
channelMessageStore,
|
||||
channel,
|
||||
);
|
||||
},
|
||||
@@ -356,7 +351,6 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
Widget _buildChannelTile(
|
||||
BuildContext context,
|
||||
MeshCoreConnector connector,
|
||||
ChannelMessageStore channelMessageStore,
|
||||
Channel channel, {
|
||||
bool showDragHandle = false,
|
||||
int? dragIndex,
|
||||
@@ -473,12 +467,7 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
);
|
||||
}
|
||||
},
|
||||
onLongPress: () => _showChannelActions(
|
||||
context,
|
||||
connector,
|
||||
channelMessageStore,
|
||||
channel,
|
||||
),
|
||||
onLongPress: () => _showChannelActions(context, connector, channel),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -486,16 +475,11 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
void _showChannelActions(
|
||||
BuildContext context,
|
||||
MeshCoreConnector connector,
|
||||
ChannelMessageStore channelMessageStore,
|
||||
Channel channel,
|
||||
) {
|
||||
final parentContext = context;
|
||||
final settingsService = context.read<AppSettingsService>();
|
||||
final isMuted = settingsService.isChannelMuted(channel.name);
|
||||
|
||||
showModalBottomSheet(
|
||||
context: parentContext,
|
||||
builder: (sheetContext) => SafeArea(
|
||||
context: context,
|
||||
builder: (context) => SafeArea(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
@@ -503,30 +487,10 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
leading: const Icon(Icons.edit_outlined),
|
||||
title: Text(context.l10n.channels_editChannel),
|
||||
onTap: () async {
|
||||
Navigator.pop(sheetContext);
|
||||
Navigator.pop(context);
|
||||
await Future.delayed(const Duration(milliseconds: 100));
|
||||
if (parentContext.mounted) {
|
||||
_showEditChannelDialog(parentContext, connector, channel);
|
||||
}
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(
|
||||
isMuted
|
||||
? Icons.notifications_outlined
|
||||
: Icons.notifications_off_outlined,
|
||||
),
|
||||
title: Text(
|
||||
isMuted
|
||||
? context.l10n.channels_unmuteChannel
|
||||
: context.l10n.channels_muteChannel,
|
||||
),
|
||||
onTap: () async {
|
||||
Navigator.pop(sheetContext);
|
||||
if (isMuted) {
|
||||
await settingsService.unmuteChannel(channel.name);
|
||||
} else {
|
||||
await settingsService.muteChannel(channel.name);
|
||||
if (context.mounted) {
|
||||
_showEditChannelDialog(context, connector, channel);
|
||||
}
|
||||
},
|
||||
),
|
||||
@@ -537,15 +501,10 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
style: const TextStyle(color: Colors.red),
|
||||
),
|
||||
onTap: () async {
|
||||
Navigator.pop(sheetContext);
|
||||
Navigator.pop(context);
|
||||
await Future.delayed(const Duration(milliseconds: 100));
|
||||
if (parentContext.mounted) {
|
||||
_confirmDeleteChannel(
|
||||
context,
|
||||
connector,
|
||||
channelMessageStore,
|
||||
channel,
|
||||
);
|
||||
if (context.mounted) {
|
||||
_confirmDeleteChannel(context, connector, channel);
|
||||
}
|
||||
},
|
||||
),
|
||||
@@ -1455,7 +1414,7 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
child: Text(dialogContext.l10n.common_cancel),
|
||||
),
|
||||
FilledButton(
|
||||
onPressed: () async {
|
||||
onPressed: () {
|
||||
final name = nameController.text.trim();
|
||||
final pskHex = pskController.text.trim();
|
||||
|
||||
@@ -1472,25 +1431,13 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
}
|
||||
|
||||
Navigator.pop(dialogContext);
|
||||
try {
|
||||
await connector.setChannel(channel.index, name, psk);
|
||||
await connector.setChannelSmazEnabled(
|
||||
channel.index,
|
||||
smazEnabled,
|
||||
);
|
||||
if (!context.mounted) return;
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(context.l10n.channels_channelUpdated(name)),
|
||||
),
|
||||
);
|
||||
} catch (e, st) {
|
||||
debugPrint(st.toString());
|
||||
if (!context.mounted) return;
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(content: Text('Failed to update channel: $e')),
|
||||
);
|
||||
}
|
||||
connector.setChannel(channel.index, name, psk);
|
||||
connector.setChannelSmazEnabled(channel.index, smazEnabled);
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(context.l10n.channels_channelUpdated(name)),
|
||||
),
|
||||
);
|
||||
},
|
||||
child: Text(dialogContext.l10n.common_save),
|
||||
),
|
||||
@@ -1503,7 +1450,6 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
void _confirmDeleteChannel(
|
||||
BuildContext context,
|
||||
MeshCoreConnector connector,
|
||||
ChannelMessageStore channelMessageStore,
|
||||
Channel channel,
|
||||
) {
|
||||
showDialog(
|
||||
@@ -1519,36 +1465,16 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
child: Text(dialogContext.l10n.common_cancel),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () async {
|
||||
onPressed: () {
|
||||
Navigator.pop(dialogContext);
|
||||
try {
|
||||
await connector.deleteChannel(channel.index);
|
||||
|
||||
channelMessageStore.clearChannelMessages(channel.index);
|
||||
|
||||
if (!context.mounted) return;
|
||||
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(
|
||||
context.l10n.channels_channelDeleted(channel.name),
|
||||
),
|
||||
connector.deleteChannel(channel.index);
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(
|
||||
context.l10n.channels_channelDeleted(channel.name),
|
||||
),
|
||||
);
|
||||
} catch (e, st) {
|
||||
if (!context.mounted) return;
|
||||
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(
|
||||
context.l10n.channels_channelDeleteFailed(channel.name),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Preserve existing logging (if it was there)
|
||||
debugPrint('Failed to delete channel: $e\n$st');
|
||||
}
|
||||
),
|
||||
);
|
||||
},
|
||||
child: Text(
|
||||
dialogContext.l10n.common_delete,
|
||||
|
||||
+405
-566
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,6 @@ import '../connector/meshcore_connector.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../models/community.dart';
|
||||
import '../storage/community_store.dart';
|
||||
import '../widgets/adaptive_app_bar_title.dart';
|
||||
import '../widgets/qr_scanner_widget.dart';
|
||||
|
||||
/// Screen for scanning community QR codes to join communities.
|
||||
@@ -30,7 +29,7 @@ class _CommunityQrScannerScreenState extends State<CommunityQrScannerScreen> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: AdaptiveAppBarTitle(context.l10n.community_scanQr),
|
||||
title: Text(context.l10n.community_scanQr),
|
||||
centerTitle: true,
|
||||
),
|
||||
body: _isProcessing
|
||||
|
||||
@@ -183,17 +183,14 @@ class _ContactsScreenState extends State<ContactsScreen>
|
||||
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
|
||||
final exportContactFrame = buildExportContactFrame(pubKey);
|
||||
_pendingOperations.add(ContactOperationType.export);
|
||||
await connector.sendFrame(exportContactFrame, expectsGenericAck: true);
|
||||
await connector.sendFrame(exportContactFrame);
|
||||
}
|
||||
|
||||
Future<void> _contactZeroHop(Uint8List pubKey) async {
|
||||
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
|
||||
final exportContactZeroHopFrame = buildZeroHopContact(pubKey);
|
||||
_pendingOperations.add(ContactOperationType.zeroHopShare);
|
||||
await connector.sendFrame(
|
||||
exportContactZeroHopFrame,
|
||||
expectsGenericAck: true,
|
||||
);
|
||||
await connector.sendFrame(exportContactZeroHopFrame);
|
||||
}
|
||||
|
||||
Future<void> _contactImport() async {
|
||||
@@ -220,7 +217,7 @@ class _ContactsScreenState extends State<ContactsScreen>
|
||||
try {
|
||||
final importContactFrame = buildImportContactFrame(hexString);
|
||||
_pendingOperations.add(ContactOperationType.import);
|
||||
await connector.sendFrame(importContactFrame, expectsGenericAck: true);
|
||||
await connector.sendFrame(importContactFrame);
|
||||
} catch (e) {
|
||||
if (mounted) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
@@ -402,41 +399,6 @@ class _ContactsScreenState extends State<ContactsScreen>
|
||||
? const <ContactGroup>[]
|
||||
: _filterAndSortGroups(_groups, contacts);
|
||||
|
||||
String hintText = "";
|
||||
|
||||
switch (_typeFilter) {
|
||||
case ContactTypeFilter.all:
|
||||
hintText = context.l10n.contacts_searchContacts(
|
||||
filteredAndSorted.length,
|
||||
_showUnreadOnly ? " ${context.l10n.contacts_unread}" : "",
|
||||
);
|
||||
break;
|
||||
case ContactTypeFilter.users:
|
||||
hintText = context.l10n.contacts_searchUsers(
|
||||
filteredAndSorted.length,
|
||||
_showUnreadOnly ? " ${context.l10n.contacts_unread}" : "",
|
||||
);
|
||||
break;
|
||||
case ContactTypeFilter.repeaters:
|
||||
hintText = context.l10n.contacts_searchRepeaters(
|
||||
filteredAndSorted.length,
|
||||
_showUnreadOnly ? " ${context.l10n.contacts_unread}" : "",
|
||||
);
|
||||
break;
|
||||
case ContactTypeFilter.rooms:
|
||||
hintText = context.l10n.contacts_searchRoomServers(
|
||||
filteredAndSorted.length,
|
||||
_showUnreadOnly ? " ${context.l10n.contacts_unread}" : "",
|
||||
);
|
||||
break;
|
||||
case ContactTypeFilter.favorites:
|
||||
hintText = context.l10n.contacts_searchFavorites(
|
||||
filteredAndSorted.length,
|
||||
_showUnreadOnly ? " ${context.l10n.contacts_unread}" : "",
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
Padding(
|
||||
@@ -444,7 +406,7 @@ class _ContactsScreenState extends State<ContactsScreen>
|
||||
child: TextField(
|
||||
controller: _searchController,
|
||||
decoration: InputDecoration(
|
||||
hintText: hintText,
|
||||
hintText: context.l10n.contacts_searchContacts,
|
||||
prefixIcon: const Icon(Icons.search),
|
||||
suffixIcon: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
@@ -516,7 +478,6 @@ class _ContactsScreenState extends State<ContactsScreen>
|
||||
contact: contact,
|
||||
lastSeen: _resolveLastSeen(contact),
|
||||
unreadCount: unreadCount,
|
||||
isFavorite: contact.isFavorite,
|
||||
onTap: () => _openChat(context, contact),
|
||||
onLongPress: () =>
|
||||
_showContactOptions(context, connector, contact),
|
||||
@@ -553,8 +514,6 @@ class _ContactsScreenState extends State<ContactsScreen>
|
||||
})
|
||||
.where((group) {
|
||||
if (_typeFilter == ContactTypeFilter.all) return true;
|
||||
// Groups don't have a favorite flag, so hide them under favorites filter
|
||||
if (_typeFilter == ContactTypeFilter.favorites) return false;
|
||||
for (final key in group.memberKeys) {
|
||||
final contact = contactsByKey[key];
|
||||
if (contact != null && _matchesTypeFilter(contact)) return true;
|
||||
@@ -629,8 +588,6 @@ class _ContactsScreenState extends State<ContactsScreen>
|
||||
switch (_typeFilter) {
|
||||
case ContactTypeFilter.all:
|
||||
return true;
|
||||
case ContactTypeFilter.favorites:
|
||||
return contact.isFavorite;
|
||||
case ContactTypeFilter.users:
|
||||
return contact.type == advTypeChat;
|
||||
case ContactTypeFilter.repeaters:
|
||||
@@ -1021,7 +978,6 @@ class _ContactsScreenState extends State<ContactsScreen>
|
||||
) {
|
||||
final isRepeater = contact.type == advTypeRepeater;
|
||||
final isRoom = contact.type == advTypeRoom;
|
||||
final isFavorite = contact.isFavorite;
|
||||
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
@@ -1128,21 +1084,6 @@ class _ContactsScreenState extends State<ContactsScreen>
|
||||
},
|
||||
),
|
||||
],
|
||||
ListTile(
|
||||
leading: Icon(
|
||||
isFavorite ? Icons.star : Icons.star_border,
|
||||
color: Colors.amber[700],
|
||||
),
|
||||
title: Text(
|
||||
isFavorite
|
||||
? context.l10n.listFilter_removeFromFavorites
|
||||
: context.l10n.listFilter_addToFavorites,
|
||||
),
|
||||
onTap: () async {
|
||||
Navigator.pop(sheetContext);
|
||||
await connector.setContactFavorite(contact, !isFavorite);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.copy),
|
||||
title: Text(context.l10n.contacts_ShareContact),
|
||||
@@ -1211,7 +1152,6 @@ class _ContactTile extends StatelessWidget {
|
||||
final Contact contact;
|
||||
final DateTime lastSeen;
|
||||
final int unreadCount;
|
||||
final bool isFavorite;
|
||||
final VoidCallback onTap;
|
||||
final VoidCallback onLongPress;
|
||||
|
||||
@@ -1219,7 +1159,6 @@ class _ContactTile extends StatelessWidget {
|
||||
required this.contact,
|
||||
required this.lastSeen,
|
||||
required this.unreadCount,
|
||||
required this.isFavorite,
|
||||
required this.onTap,
|
||||
required this.onLongPress,
|
||||
});
|
||||
@@ -1231,17 +1170,12 @@ class _ContactTile extends StatelessWidget {
|
||||
backgroundColor: _getTypeColor(contact.type),
|
||||
child: _buildContactAvatar(contact),
|
||||
),
|
||||
title: Text(contact.name, maxLines: 1, overflow: TextOverflow.ellipsis),
|
||||
title: Text(contact.name),
|
||||
subtitle: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(contact.pathLabel, maxLines: 1, overflow: TextOverflow.ellipsis),
|
||||
Text(
|
||||
contact.shortPubKeyHex,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(fontSize: 12),
|
||||
),
|
||||
Text(contact.pathLabel),
|
||||
Text(contact.shortPubKeyHex, style: TextStyle(fontSize: 12)),
|
||||
],
|
||||
),
|
||||
// Clamp text scaling in trailing section to prevent overflow while
|
||||
@@ -1252,36 +1186,26 @@ class _ContactTile extends StatelessWidget {
|
||||
MediaQuery.textScalerOf(context).scale(1.0).clamp(1.0, 1.3),
|
||||
),
|
||||
),
|
||||
child: SizedBox(
|
||||
width: 120,
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
if (unreadCount > 0) ...[
|
||||
UnreadBadge(count: unreadCount),
|
||||
const SizedBox(height: 4),
|
||||
],
|
||||
Text(
|
||||
_formatLastSeen(context, lastSeen),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
textAlign: TextAlign.right,
|
||||
style: TextStyle(fontSize: 12, color: Colors.grey[600]),
|
||||
),
|
||||
Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (isFavorite)
|
||||
Icon(Icons.star, size: 14, color: Colors.amber[700]),
|
||||
if (isFavorite && contact.hasLocation)
|
||||
const SizedBox(width: 2),
|
||||
if (contact.hasLocation)
|
||||
Icon(Icons.location_on, size: 14, color: Colors.grey[400]),
|
||||
],
|
||||
),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
if (unreadCount > 0) ...[
|
||||
UnreadBadge(count: unreadCount),
|
||||
const SizedBox(height: 4),
|
||||
],
|
||||
),
|
||||
Text(
|
||||
_formatLastSeen(context, lastSeen),
|
||||
style: TextStyle(fontSize: 12, color: Colors.grey[600]),
|
||||
),
|
||||
Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (contact.hasLocation)
|
||||
Icon(Icons.location_on, size: 14, color: Colors.grey[400]),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
onTap: onTap,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -7,7 +7,6 @@ import '../l10n/app_localizations.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../services/app_settings_service.dart';
|
||||
import '../services/map_tile_cache_service.dart';
|
||||
import '../widgets/adaptive_app_bar_title.dart';
|
||||
|
||||
class MapCacheScreen extends StatefulWidget {
|
||||
const MapCacheScreen({super.key});
|
||||
@@ -225,10 +224,7 @@ class _MapCacheScreenState extends State<MapCacheScreen> {
|
||||
: (_completedTiles / _estimatedTiles).clamp(0.0, 1.0).toDouble();
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: AdaptiveAppBarTitle(l10n.mapCache_title),
|
||||
centerTitle: true,
|
||||
),
|
||||
appBar: AppBar(title: Text(l10n.mapCache_title), centerTitle: true),
|
||||
body: Column(
|
||||
children: [
|
||||
Expanded(
|
||||
|
||||
+18
-162
@@ -11,7 +11,6 @@ import 'package:provider/provider.dart';
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../connector/meshcore_protocol.dart';
|
||||
import '../models/app_settings.dart';
|
||||
import '../models/channel.dart';
|
||||
import '../models/contact.dart';
|
||||
import '../services/app_settings_service.dart';
|
||||
@@ -20,7 +19,6 @@ import '../services/map_tile_cache_service.dart';
|
||||
import '../utils/contact_search.dart';
|
||||
import '../utils/route_transitions.dart';
|
||||
import '../widgets/quick_switch_bar.dart';
|
||||
import '../icons/los_icon.dart';
|
||||
import 'channels_screen.dart';
|
||||
import 'chat_screen.dart';
|
||||
import 'contacts_screen.dart';
|
||||
@@ -28,7 +26,6 @@ import '../widgets/repeater_login_dialog.dart';
|
||||
import '../widgets/room_login_dialog.dart';
|
||||
import 'repeater_hub_screen.dart';
|
||||
import 'settings_screen.dart';
|
||||
import 'line_of_sight_map_screen.dart';
|
||||
|
||||
class MapScreen extends StatefulWidget {
|
||||
final LatLng? highlightPosition;
|
||||
@@ -49,8 +46,6 @@ class MapScreen extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _MapScreenState extends State<MapScreen> {
|
||||
static const double _labelZoomThreshold = 8.5;
|
||||
|
||||
final MapController _mapController = MapController();
|
||||
final MapMarkerService _markerService = MapMarkerService();
|
||||
final Set<String> _hiddenMarkerIds = {};
|
||||
@@ -63,7 +58,6 @@ class _MapScreenState extends State<MapScreen> {
|
||||
final List<LatLng> _points = [];
|
||||
final List<Polyline> _polylines = [];
|
||||
bool _legendExpanded = false;
|
||||
bool _showNodeLabels = true;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -253,7 +247,6 @@ class _MapScreenState extends State<MapScreen> {
|
||||
// Re center map after removed markers have loaded
|
||||
if (!_hasInitializedMap && _removedMarkersLoaded) {
|
||||
_hasInitializedMap = true;
|
||||
_showNodeLabels = initialZoom >= _labelZoomThreshold;
|
||||
if (hasMapContent) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (mounted) {
|
||||
@@ -279,47 +272,6 @@ class _MapScreenState extends State<MapScreen> {
|
||||
onPressed: () => _startPath(),
|
||||
tooltip: context.l10n.contacts_pathTrace,
|
||||
),
|
||||
if (!_isBuildingPathTrace)
|
||||
IconButton(
|
||||
icon: const LosIcon(),
|
||||
onPressed: () {
|
||||
final candidates = <LineOfSightEndpoint>[];
|
||||
if (connector.selfLatitude != null &&
|
||||
connector.selfLongitude != null) {
|
||||
candidates.add(
|
||||
LineOfSightEndpoint(
|
||||
label: context.l10n.pathTrace_you,
|
||||
point: LatLng(
|
||||
connector.selfLatitude!,
|
||||
connector.selfLongitude!,
|
||||
),
|
||||
color: Colors.teal,
|
||||
icon: Icons.person_pin_circle,
|
||||
),
|
||||
);
|
||||
}
|
||||
for (final c in contactsWithLocation) {
|
||||
candidates.add(
|
||||
LineOfSightEndpoint(
|
||||
label: c.name,
|
||||
point: LatLng(c.latitude!, c.longitude!),
|
||||
color: _getNodeColor(c.type),
|
||||
icon: _getNodeIcon(c.type),
|
||||
),
|
||||
);
|
||||
}
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => LineOfSightMapScreen(
|
||||
title: context.l10n.map_losScreenTitle,
|
||||
candidates: candidates,
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
tooltip: context.l10n.map_lineOfSight,
|
||||
),
|
||||
PopupMenuButton(
|
||||
itemBuilder: (context) => [
|
||||
PopupMenuItem(
|
||||
@@ -398,14 +350,6 @@ class _MapScreenState extends State<MapScreen> {
|
||||
position: latLng,
|
||||
);
|
||||
},
|
||||
onPositionChanged: (camera, hasGesture) {
|
||||
final shouldShow = camera.zoom >= _labelZoomThreshold;
|
||||
if (shouldShow != _showNodeLabels && mounted) {
|
||||
setState(() {
|
||||
_showNodeLabels = shouldShow;
|
||||
});
|
||||
}
|
||||
},
|
||||
),
|
||||
children: [
|
||||
TileLayer(
|
||||
@@ -430,11 +374,7 @@ class _MapScreenState extends State<MapScreen> {
|
||||
size: 34,
|
||||
),
|
||||
),
|
||||
..._buildMarkers(
|
||||
contactsWithLocation,
|
||||
settings,
|
||||
showLabels: _showNodeLabels,
|
||||
),
|
||||
..._buildMarkers(contactsWithLocation, settings),
|
||||
...sharedMarkers.map(_buildSharedMarker),
|
||||
if (connector.selfLatitude != null &&
|
||||
connector.selfLongitude != null)
|
||||
@@ -463,31 +403,23 @@ class _MapScreenState extends State<MapScreen> {
|
||||
],
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: const Icon(
|
||||
Icons.person_pin_circle,
|
||||
color: Colors.white,
|
||||
size: 20,
|
||||
child: Text(
|
||||
context.l10n.pathTrace_you,
|
||||
style: const TextStyle(
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
if (_showNodeLabels &&
|
||||
connector.selfLatitude != null &&
|
||||
connector.selfLongitude != null)
|
||||
_buildNodeLabelMarker(
|
||||
point: LatLng(
|
||||
connector.selfLatitude!,
|
||||
connector.selfLongitude!,
|
||||
),
|
||||
label: context.l10n.pathTrace_you,
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
if (!_isBuildingPathTrace)
|
||||
_buildLegend(
|
||||
contactsWithLocation,
|
||||
settings,
|
||||
contactsWithLocation.length,
|
||||
sharedMarkers.length,
|
||||
),
|
||||
if (_isBuildingPathTrace) _buildPathTraceOverlay(),
|
||||
@@ -512,28 +444,20 @@ class _MapScreenState extends State<MapScreen> {
|
||||
);
|
||||
}
|
||||
|
||||
List<Marker> _buildMarkers(
|
||||
List<Contact> contacts,
|
||||
settings, {
|
||||
required bool showLabels,
|
||||
}) {
|
||||
List<Marker> _buildMarkers(List<Contact> contacts, settings) {
|
||||
final markers = <Marker>[];
|
||||
|
||||
for (final contact in contacts) {
|
||||
if (!contact.hasLocation) continue;
|
||||
|
||||
// Apply node type filters
|
||||
if (contact.type == advTypeRepeater &&
|
||||
(!settings.mapShowRepeaters && !_isBuildingPathTrace)) {
|
||||
continue;
|
||||
}
|
||||
if (contact.type == advTypeChat &&
|
||||
!(settings.mapShowChatNodes && !_isBuildingPathTrace)) {
|
||||
if (contact.type == advTypeRepeater && !settings.mapShowRepeaters) {
|
||||
continue;
|
||||
}
|
||||
if (contact.type == advTypeChat && !settings.mapShowChatNodes) continue;
|
||||
if (contact.type != advTypeChat &&
|
||||
contact.type != advTypeRepeater &&
|
||||
(!settings.mapShowOtherNodes && !_isBuildingPathTrace)) {
|
||||
!settings.mapShowOtherNodes) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -575,54 +499,11 @@ class _MapScreenState extends State<MapScreen> {
|
||||
);
|
||||
|
||||
markers.add(marker);
|
||||
if (showLabels) {
|
||||
markers.add(
|
||||
_buildNodeLabelMarker(
|
||||
point: LatLng(contact.latitude!, contact.longitude!),
|
||||
label: contact.name,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return markers;
|
||||
}
|
||||
|
||||
Marker _buildNodeLabelMarker({required LatLng point, required String label}) {
|
||||
return Marker(
|
||||
point: point,
|
||||
width: 120,
|
||||
height: 24,
|
||||
alignment: Alignment.topCenter,
|
||||
child: IgnorePointer(
|
||||
child: Transform.translate(
|
||||
offset: const Offset(0, -20),
|
||||
child: FittedBox(
|
||||
fit: BoxFit.contain,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.black54,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: Text(
|
||||
label,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 11,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Color _getNodeColor(int type) {
|
||||
switch (type) {
|
||||
case advTypeChat:
|
||||
@@ -653,26 +534,7 @@ class _MapScreenState extends State<MapScreen> {
|
||||
}
|
||||
}
|
||||
|
||||
Widget _buildLegend(
|
||||
List<Contact> contactsWithLocation,
|
||||
settings,
|
||||
int markerCount,
|
||||
) {
|
||||
int nodeCount = 0;
|
||||
for (final contact in contactsWithLocation) {
|
||||
// Apply node type filters
|
||||
if (contact.type == advTypeRepeater && !settings.mapShowRepeaters) {
|
||||
continue;
|
||||
}
|
||||
if (contact.type == advTypeChat && !settings.mapShowChatNodes) continue;
|
||||
if (contact.type != advTypeChat &&
|
||||
contact.type != advTypeRepeater &&
|
||||
!settings.mapShowOtherNodes) {
|
||||
continue;
|
||||
}
|
||||
nodeCount++;
|
||||
}
|
||||
|
||||
Widget _buildLegend(int nodeCount, int markerCount) {
|
||||
return Positioned(
|
||||
top: 16,
|
||||
right: 16,
|
||||
@@ -1301,8 +1163,7 @@ class _MapScreenState extends State<MapScreen> {
|
||||
padding: const EdgeInsets.fromLTRB(16, 4, 16, 8),
|
||||
child: TextField(
|
||||
decoration: InputDecoration(
|
||||
hintText:
|
||||
context.l10n.contacts_searchContactsNoNumber,
|
||||
hintText: context.l10n.contacts_searchContacts,
|
||||
prefixIcon: const Icon(Icons.search),
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
@@ -1658,9 +1519,6 @@ class _MapScreenState extends State<MapScreen> {
|
||||
|
||||
Widget _buildPathTraceOverlay() {
|
||||
final l10n = context.l10n;
|
||||
final isImperial =
|
||||
context.read<AppSettingsService>().settings.unitSystem ==
|
||||
UnitSystem.imperial;
|
||||
return Positioned(
|
||||
top: 16,
|
||||
left: 16,
|
||||
@@ -1681,7 +1539,7 @@ class _MapScreenState extends State<MapScreen> {
|
||||
const SizedBox(height: 6),
|
||||
if (_pathTrace.isNotEmpty)
|
||||
Text(
|
||||
"${l10n.path_currentPathLabel} ${formatDistance(getPathDistanceMeters(_points), isImperial: isImperial)}",
|
||||
"${l10n.path_currentPathLabel} ${formatDistance(getPathDistanceMeters(_points))}",
|
||||
style: TextStyle(fontSize: 12, color: Colors.grey[700]),
|
||||
),
|
||||
SelectableText(
|
||||
@@ -1691,10 +1549,8 @@ class _MapScreenState extends State<MapScreen> {
|
||||
style: TextStyle(fontSize: 18),
|
||||
),
|
||||
const SizedBox(height: 6),
|
||||
Wrap(
|
||||
alignment: WrapAlignment.center,
|
||||
spacing: 8,
|
||||
runSpacing: 8,
|
||||
Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (_pathTrace.isNotEmpty)
|
||||
ElevatedButton(
|
||||
|
||||
+63
-147
@@ -8,9 +8,7 @@ import 'package:latlong2/latlong.dart';
|
||||
import 'package:meshcore_open/connector/meshcore_connector.dart';
|
||||
import 'package:meshcore_open/connector/meshcore_protocol.dart';
|
||||
import 'package:meshcore_open/l10n/l10n.dart';
|
||||
import 'package:meshcore_open/models/app_settings.dart';
|
||||
import 'package:meshcore_open/models/contact.dart';
|
||||
import 'package:meshcore_open/services/app_settings_service.dart';
|
||||
import 'package:meshcore_open/services/map_tile_cache_service.dart';
|
||||
import 'package:meshcore_open/utils/app_logger.dart';
|
||||
import 'package:meshcore_open/widgets/snr_indicator.dart';
|
||||
@@ -29,11 +27,8 @@ double getPathDistanceMeters(List<LatLng> points) {
|
||||
return distanceMeters;
|
||||
}
|
||||
|
||||
String formatDistance(double distanceMeters, {required bool isImperial}) {
|
||||
if (isImperial) {
|
||||
return '(${(distanceMeters / 1609.34).toStringAsFixed(2)} mi)';
|
||||
}
|
||||
return '(${(distanceMeters / 1000).toStringAsFixed(2)} km)';
|
||||
String formatDistance(double distanceMeters) {
|
||||
return '(${(distanceMeters / 1609.34).toStringAsFixed(2)} Miles / ${(distanceMeters / 1000).toStringAsFixed(2)} Km)';
|
||||
}
|
||||
|
||||
class PathTraceData {
|
||||
@@ -69,8 +64,6 @@ class PathTraceMapScreen extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
||||
static const double _labelZoomThreshold = 8.5;
|
||||
|
||||
StreamSubscription<Uint8List>? _frameSubscription;
|
||||
Timer? _timeoutTimer;
|
||||
|
||||
@@ -85,7 +78,6 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
||||
LatLngBounds? _bounds;
|
||||
ValueKey<String> _mapKey = const ValueKey('initial');
|
||||
double _pathDistanceMeters = 0.0;
|
||||
bool _showNodeLabels = true;
|
||||
|
||||
String _formatPathPrefixes(Uint8List pathBytes) {
|
||||
return pathBytes
|
||||
@@ -140,6 +132,8 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
||||
path = pathTmp;
|
||||
}
|
||||
|
||||
print('Initiating path trace with path: ${_formatPathPrefixes(path)}');
|
||||
|
||||
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
|
||||
final frame = buildTraceReq(
|
||||
DateTime.now().millisecondsSinceEpoch ~/ 1000,
|
||||
@@ -163,20 +157,17 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
||||
if (code == respCodeSent) {
|
||||
frameBuffer.skipBytes(1); //reserved
|
||||
tagData = frameBuffer.readBytes(4);
|
||||
final timeoutMilliseconds = frameBuffer.readUInt32LE();
|
||||
final timeoutSeconds = frameBuffer.readUInt32LE();
|
||||
|
||||
// Start timeout timer for trace response
|
||||
_timeoutTimer?.cancel();
|
||||
_timeoutTimer = Timer(
|
||||
Duration(milliseconds: timeoutMilliseconds),
|
||||
() {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
_isLoading = false;
|
||||
_failed2Loaded = true;
|
||||
});
|
||||
},
|
||||
);
|
||||
_timeoutTimer = Timer(Duration(milliseconds: timeoutSeconds), () {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
_isLoading = false;
|
||||
_failed2Loaded = true;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if (code == respCodeErr) {
|
||||
@@ -222,10 +213,7 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
||||
buffer.skipBytes(5); // Skip Flag byte and tag data
|
||||
buffer.skipBytes(4); // Skip auth code
|
||||
Uint8List pathData = buffer.readBytes(pathLength);
|
||||
List<double> snrData = buffer
|
||||
.readRemainingBytes()
|
||||
.map((snr) => snr.toSigned(8).toDouble() / 4)
|
||||
.toList();
|
||||
Uint8List snrData = buffer.readRemainingBytes();
|
||||
|
||||
Map<int, Contact> pathContacts = {};
|
||||
|
||||
@@ -247,7 +235,7 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
||||
_hasData = true;
|
||||
_traceData = PathTraceData(
|
||||
pathData: pathData,
|
||||
snrData: snrData,
|
||||
snrData: snrData.map((e) => e.toSigned(8).toDouble() / 4).toList(),
|
||||
pathContacts: pathContacts,
|
||||
);
|
||||
_points = <LatLng>[];
|
||||
@@ -299,8 +287,6 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
||||
Widget build(BuildContext context) {
|
||||
return Consumer<MeshCoreConnector>(
|
||||
builder: (context, connector, _) {
|
||||
final settings = context.watch<AppSettingsService>().settings;
|
||||
final isImperial = settings.unitSystem == UnitSystem.imperial;
|
||||
final tileCache = context.read<MapTileCacheService>();
|
||||
|
||||
return Scaffold(
|
||||
@@ -365,8 +351,7 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
||||
),
|
||||
),
|
||||
),
|
||||
if (_hasData)
|
||||
_buildLegendCard(context, _traceData!, isImperial),
|
||||
if (_hasData) _buildLegendCard(context, _traceData!),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -375,61 +360,55 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
||||
);
|
||||
}
|
||||
|
||||
List<Marker> _buildHopMarkers(
|
||||
List<int> pathData, {
|
||||
required bool showLabels,
|
||||
}) {
|
||||
final markers = <Marker>[];
|
||||
for (final hop in pathData) {
|
||||
final contact = _traceData!.pathContacts[hop];
|
||||
if (contact == null || !contact.hasLocation) continue;
|
||||
final point = LatLng(contact.latitude!, contact.longitude!);
|
||||
markers.add(
|
||||
Marker(
|
||||
point: point,
|
||||
width: 35,
|
||||
height: 35,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(4),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.green,
|
||||
shape: BoxShape.circle,
|
||||
border: Border.all(color: Colors.white, width: 2),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withValues(alpha: 0.3),
|
||||
blurRadius: 4,
|
||||
offset: const Offset(0, 2),
|
||||
),
|
||||
],
|
||||
List<Marker> _buildHopMarkers(List<int> pathData) {
|
||||
return [
|
||||
for (final hop in pathData)
|
||||
if (_traceData!.pathContacts[hop] != null &&
|
||||
_traceData!.pathContacts[hop]!.hasLocation)
|
||||
Marker(
|
||||
point: LatLng(
|
||||
_traceData!.pathContacts[hop]!.latitude!,
|
||||
_traceData!.pathContacts[hop]!.longitude!,
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: Text(
|
||||
contact.publicKey
|
||||
.sublist(0, 1)
|
||||
.map((b) => b.toRadixString(16).padLeft(2, '0').toUpperCase())
|
||||
.join(),
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 12,
|
||||
width: 35,
|
||||
height: 35,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(4),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.green,
|
||||
shape: BoxShape.circle,
|
||||
border: Border.all(color: Colors.white, width: 2),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withValues(alpha: 0.3),
|
||||
blurRadius: 4,
|
||||
offset: const Offset(0, 2),
|
||||
),
|
||||
],
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: Text(
|
||||
_traceData!.pathContacts[hop]!.publicKey
|
||||
.sublist(0, 1)
|
||||
.map(
|
||||
(b) => b.toRadixString(16).padLeft(2, '0').toUpperCase(),
|
||||
)
|
||||
.join(),
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
if (showLabels) {
|
||||
markers.add(_buildNodeLabelMarker(point: point, label: contact.name));
|
||||
}
|
||||
}
|
||||
|
||||
final selfLat = context.read<MeshCoreConnector>().selfLatitude;
|
||||
final selfLon = context.read<MeshCoreConnector>().selfLongitude;
|
||||
if (selfLat != null && selfLon != null) {
|
||||
final selfPoint = LatLng(selfLat, selfLon);
|
||||
markers.add(
|
||||
if (context.read<MeshCoreConnector>().selfLatitude != null &&
|
||||
context.read<MeshCoreConnector>().selfLongitude != null)
|
||||
Marker(
|
||||
point: selfPoint,
|
||||
point: LatLng(
|
||||
context.read<MeshCoreConnector>().selfLatitude!,
|
||||
context.read<MeshCoreConnector>().selfLongitude!,
|
||||
),
|
||||
width: 35,
|
||||
height: 35,
|
||||
child: Container(
|
||||
@@ -457,53 +436,7 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
if (showLabels) {
|
||||
markers.add(
|
||||
_buildNodeLabelMarker(
|
||||
point: selfPoint,
|
||||
label: context.l10n.pathTrace_you,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return markers;
|
||||
}
|
||||
|
||||
Marker _buildNodeLabelMarker({required LatLng point, required String label}) {
|
||||
return Marker(
|
||||
point: point,
|
||||
width: 120,
|
||||
height: 24,
|
||||
alignment: Alignment.topCenter,
|
||||
child: IgnorePointer(
|
||||
child: Transform.translate(
|
||||
offset: const Offset(0, -20),
|
||||
child: FittedBox(
|
||||
fit: BoxFit.contain,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.black54,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: Text(
|
||||
label,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 11,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
];
|
||||
}
|
||||
|
||||
String formatDirectionText(PathTraceData pathTraceData, int index) {
|
||||
@@ -583,14 +516,6 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
||||
),
|
||||
minZoom: 2.0,
|
||||
maxZoom: 18.0,
|
||||
onPositionChanged: (camera, hasGesture) {
|
||||
final shouldShow = camera.zoom >= _labelZoomThreshold;
|
||||
if (shouldShow != _showNodeLabels && mounted) {
|
||||
setState(() {
|
||||
_showNodeLabels = shouldShow;
|
||||
});
|
||||
}
|
||||
},
|
||||
),
|
||||
children: [
|
||||
TileLayer(
|
||||
@@ -601,21 +526,12 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
||||
),
|
||||
if (_polylines.isNotEmpty) PolylineLayer(polylines: _polylines),
|
||||
if (_traceData!.pathData.isNotEmpty)
|
||||
MarkerLayer(
|
||||
markers: _buildHopMarkers(
|
||||
_traceData!.pathData,
|
||||
showLabels: _showNodeLabels,
|
||||
),
|
||||
),
|
||||
MarkerLayer(markers: _buildHopMarkers(_traceData!.pathData)),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildLegendCard(
|
||||
BuildContext context,
|
||||
PathTraceData pathTraceData,
|
||||
bool isImperial,
|
||||
) {
|
||||
Widget _buildLegendCard(BuildContext context, PathTraceData pathTraceData) {
|
||||
final l10n = context.l10n;
|
||||
final maxHeight = MediaQuery.of(context).size.height * 0.35;
|
||||
final estimatedHeight = 72.0 + (pathTraceData.pathData.length * 56.0);
|
||||
@@ -634,7 +550,7 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen> {
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(12),
|
||||
child: Text(
|
||||
'${l10n.channelPath_repeaterHops} ${formatDistance(_pathDistanceMeters, isImperial: isImperial)}',
|
||||
'${l10n.channelPath_repeaterHops} ${formatDistance(_pathDistanceMeters)}',
|
||||
style: const TextStyle(fontWeight: FontWeight.w600),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -168,7 +168,6 @@ class _RepeaterCliScreenState extends State<RepeaterCliScreen> {
|
||||
|
||||
_commandController.clear();
|
||||
_historyIndex = -1;
|
||||
_commandFocusNode.requestFocus();
|
||||
|
||||
// Auto-scroll to bottom
|
||||
Future.delayed(const Duration(milliseconds: 100), () {
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:meshcore_open/connector/meshcore_protocol.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../models/contact.dart';
|
||||
import '../services/app_settings_service.dart';
|
||||
import 'repeater_status_screen.dart';
|
||||
import 'repeater_cli_screen.dart';
|
||||
import 'repeater_settings_screen.dart';
|
||||
@@ -23,10 +21,6 @@ class RepeaterHubScreen extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
final settingsService = context.watch<AppSettingsService>();
|
||||
final chemistry = settingsService.batteryChemistryForRepeater(
|
||||
repeater.publicKeyHex,
|
||||
);
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Column(
|
||||
@@ -113,62 +107,6 @@ class RepeaterHubScreen extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
Card(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 16, 16, 12),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
const Icon(Icons.battery_full),
|
||||
const SizedBox(width: 10),
|
||||
Expanded(
|
||||
child: Text(
|
||||
l10n.appSettings_batteryChemistry,
|
||||
style: const TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
DropdownButtonFormField<String>(
|
||||
initialValue: chemistry,
|
||||
isExpanded: true,
|
||||
decoration: const InputDecoration(
|
||||
border: UnderlineInputBorder(),
|
||||
isDense: true,
|
||||
),
|
||||
onChanged: (value) {
|
||||
if (value == null) return;
|
||||
settingsService.setBatteryChemistryForRepeater(
|
||||
repeater.publicKeyHex,
|
||||
value,
|
||||
);
|
||||
},
|
||||
items: [
|
||||
DropdownMenuItem(
|
||||
value: 'nmc',
|
||||
child: Text(l10n.appSettings_batteryNmc),
|
||||
),
|
||||
DropdownMenuItem(
|
||||
value: 'lifepo4',
|
||||
child: Text(l10n.appSettings_batteryLifepo4),
|
||||
),
|
||||
DropdownMenuItem(
|
||||
value: 'lipo',
|
||||
child: Text(l10n.appSettings_batteryLipo),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
Text(
|
||||
l10n.repeater_managementTools,
|
||||
style: const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
|
||||
|
||||
@@ -8,9 +8,7 @@ import '../models/contact.dart';
|
||||
import '../models/path_selection.dart';
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../connector/meshcore_protocol.dart';
|
||||
import '../services/app_settings_service.dart';
|
||||
import '../services/repeater_command_service.dart';
|
||||
import '../utils/battery_utils.dart';
|
||||
import '../widgets/path_management_dialog.dart';
|
||||
|
||||
class RepeaterStatusScreen extends StatefulWidget {
|
||||
@@ -181,12 +179,6 @@ class _RepeaterStatusScreenState extends State<RepeaterStatusScreen> {
|
||||
_dupDirect = directDups;
|
||||
_dupFlood = floodDups;
|
||||
});
|
||||
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
|
||||
connector.updateRepeaterBatterySnapshot(
|
||||
widget.repeater.publicKeyHex,
|
||||
batteryMv,
|
||||
source: 'status_binary',
|
||||
);
|
||||
_recordStatusResult(true);
|
||||
}
|
||||
|
||||
@@ -209,18 +201,6 @@ class _RepeaterStatusScreenState extends State<RepeaterStatusScreen> {
|
||||
_uptimeSecs = _asInt(data['uptime_secs']);
|
||||
_queueLen = _asInt(data['queue_len']);
|
||||
_debugFlags = _asInt(data['errors']);
|
||||
final batteryMv = _batteryMv;
|
||||
if (batteryMv != null) {
|
||||
final connector = Provider.of<MeshCoreConnector>(
|
||||
context,
|
||||
listen: false,
|
||||
);
|
||||
connector.updateRepeaterBatterySnapshot(
|
||||
widget.repeater.publicKeyHex,
|
||||
batteryMv,
|
||||
source: 'status_text',
|
||||
);
|
||||
}
|
||||
} else if (data.containsKey('noise_floor')) {
|
||||
_noiseFloor = _asInt(data['noise_floor']);
|
||||
_lastRssi = _asInt(data['last_rssi']);
|
||||
@@ -610,24 +590,18 @@ class _RepeaterStatusScreenState extends State<RepeaterStatusScreen> {
|
||||
}
|
||||
|
||||
String _batteryText() {
|
||||
final connector = context.watch<MeshCoreConnector>();
|
||||
final batteryMv =
|
||||
connector.getRepeaterBatteryMillivolts(widget.repeater.publicKeyHex) ??
|
||||
_batteryMv;
|
||||
if (batteryMv == null) return '—';
|
||||
final percent = estimateBatteryPercentFromMillivolts(
|
||||
batteryMv,
|
||||
_batteryChemistry(),
|
||||
);
|
||||
final volts = (batteryMv / 1000.0).toStringAsFixed(2);
|
||||
if (_batteryMv == null) return '—';
|
||||
final percent = _batteryPercentFromMv(_batteryMv!);
|
||||
final volts = (_batteryMv! / 1000.0).toStringAsFixed(2);
|
||||
return '$percent% / ${volts}V';
|
||||
}
|
||||
|
||||
String _batteryChemistry() {
|
||||
final settingsService = context.read<AppSettingsService>();
|
||||
return settingsService.batteryChemistryForRepeater(
|
||||
widget.repeater.publicKeyHex,
|
||||
);
|
||||
int _batteryPercentFromMv(int millivolts) {
|
||||
const minMv = 3000;
|
||||
const maxMv = 4200;
|
||||
if (millivolts <= minMv) return 0;
|
||||
if (millivolts >= maxMv) return 100;
|
||||
return (((millivolts - minMv) * 100) / (maxMv - minMv)).round();
|
||||
}
|
||||
|
||||
String _clockText() {
|
||||
|
||||
@@ -7,7 +7,6 @@ import 'package:provider/provider.dart';
|
||||
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../widgets/adaptive_app_bar_title.dart';
|
||||
import '../widgets/device_tile.dart';
|
||||
import 'contacts_screen.dart';
|
||||
|
||||
@@ -71,7 +70,7 @@ class _ScannerScreenState extends State<ScannerScreen> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: AdaptiveAppBarTitle(context.l10n.scanner_title),
|
||||
title: Text(context.l10n.scanner_title),
|
||||
centerTitle: true,
|
||||
automaticallyImplyLeading: false,
|
||||
),
|
||||
|
||||
@@ -8,7 +8,6 @@ import '../connector/meshcore_connector.dart';
|
||||
import '../connector/meshcore_protocol.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../models/radio_settings.dart';
|
||||
import '../widgets/adaptive_app_bar_title.dart';
|
||||
import 'app_settings_screen.dart';
|
||||
import 'app_debug_log_screen.dart';
|
||||
import 'ble_debug_log_screen.dart';
|
||||
@@ -42,10 +41,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
Widget build(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: AdaptiveAppBarTitle(l10n.settings_title),
|
||||
centerTitle: true,
|
||||
),
|
||||
appBar: AppBar(title: Text(l10n.settings_title), centerTitle: true),
|
||||
body: SafeArea(
|
||||
top: false,
|
||||
child: Consumer<MeshCoreConnector>(
|
||||
@@ -866,7 +862,6 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> {
|
||||
LoRaSpreadingFactor _spreadingFactor = LoRaSpreadingFactor.sf7;
|
||||
LoRaCodingRate _codingRate = LoRaCodingRate.cr4_5;
|
||||
final _txPowerController = TextEditingController(text: '20');
|
||||
bool _clientRepeat = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -916,8 +911,6 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> {
|
||||
if (widget.connector.currentTxPower != null) {
|
||||
_txPowerController.text = widget.connector.currentTxPower.toString();
|
||||
}
|
||||
|
||||
_clientRepeat = widget.connector.clientRepeat ?? false;
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -967,29 +960,9 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> {
|
||||
widget.connector.currentCr,
|
||||
);
|
||||
|
||||
// if the client repeat isnt null then we know its supported
|
||||
//otherwise we leave it out of the frame to avoid accidentally enabling
|
||||
final knownRepeat = widget.connector.clientRepeat != null;
|
||||
|
||||
if (knownRepeat) {
|
||||
const validRepeatFreqsKHz = {433000, 869000, 918000};
|
||||
if (_clientRepeat && !validRepeatFreqsKHz.contains(freqHz)) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(content: Text(l10n.settings_clientRepeatFreqWarning)),
|
||||
);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
await widget.connector.sendFrame(
|
||||
buildSetRadioParamsFrame(
|
||||
freqHz,
|
||||
bwHz,
|
||||
sf,
|
||||
cr,
|
||||
clientRepeat: knownRepeat ? _clientRepeat : null,
|
||||
),
|
||||
buildSetRadioParamsFrame(freqHz, bwHz, sf, cr),
|
||||
);
|
||||
await widget.connector.sendFrame(buildSetRadioTxPowerFrame(txPower));
|
||||
await widget.connector.refreshDeviceInfo();
|
||||
@@ -1028,25 +1001,37 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
DropdownButtonFormField<int>(
|
||||
decoration: InputDecoration(
|
||||
labelText: l10n.settings_presets,
|
||||
border: const OutlineInputBorder(),
|
||||
),
|
||||
items: [
|
||||
for (var i = 0; i < RadioSettings.presets.length; i++)
|
||||
DropdownMenuItem(
|
||||
value: i,
|
||||
child: Text(RadioSettings.presets[i].$1),
|
||||
),
|
||||
],
|
||||
onChanged: (index) {
|
||||
if (index != null) {
|
||||
_applyPreset(RadioSettings.presets[index].$2);
|
||||
}
|
||||
},
|
||||
Text(
|
||||
l10n.settings_presets,
|
||||
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
const SizedBox(height: 8),
|
||||
Wrap(
|
||||
spacing: 8,
|
||||
children: [
|
||||
_PresetChip(
|
||||
label: l10n.settings_preset915Mhz,
|
||||
onTap: () => _applyPreset(RadioSettings.preset915MHz),
|
||||
),
|
||||
_PresetChip(
|
||||
label: l10n.settings_preset868Mhz,
|
||||
onTap: () => _applyPreset(RadioSettings.preset868MHz),
|
||||
),
|
||||
_PresetChip(
|
||||
label: l10n.settings_preset433Mhz,
|
||||
onTap: () => _applyPreset(RadioSettings.preset433MHz),
|
||||
),
|
||||
_PresetChip(
|
||||
label: l10n.settings_longRange,
|
||||
onTap: () => _applyPreset(RadioSettings.presetLongRange),
|
||||
),
|
||||
_PresetChip(
|
||||
label: l10n.settings_fastSpeed,
|
||||
onTap: () => _applyPreset(RadioSettings.presetFastSpeed),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
TextField(
|
||||
controller: _frequencyController,
|
||||
decoration: InputDecoration(
|
||||
@@ -1118,16 +1103,6 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> {
|
||||
),
|
||||
keyboardType: TextInputType.number,
|
||||
),
|
||||
if (widget.connector.clientRepeat != null) ...[
|
||||
const SizedBox(height: 16),
|
||||
SwitchListTile(
|
||||
title: Text(l10n.settings_clientRepeat),
|
||||
subtitle: Text(l10n.settings_clientRepeatSubtitle),
|
||||
value: _clientRepeat,
|
||||
onChanged: (value) => setState(() => _clientRepeat = value),
|
||||
contentPadding: EdgeInsets.zero,
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -1141,3 +1116,15 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class _PresetChip extends StatelessWidget {
|
||||
final String label;
|
||||
final VoidCallback onTap;
|
||||
|
||||
const _PresetChip({required this.label, required this.onTap});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ActionChip(label: Text(label), onPressed: onTap);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,14 +5,11 @@ import 'package:provider/provider.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../models/contact.dart';
|
||||
import '../models/path_selection.dart';
|
||||
import '../models/app_settings.dart';
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../connector/meshcore_protocol.dart';
|
||||
import '../services/app_settings_service.dart';
|
||||
import '../services/repeater_command_service.dart';
|
||||
import '../widgets/path_management_dialog.dart';
|
||||
import '../helpers/cayenne_lpp.dart';
|
||||
import '../utils/battery_utils.dart';
|
||||
|
||||
class TelemetryScreen extends StatefulWidget {
|
||||
final Contact repeater;
|
||||
@@ -75,19 +72,9 @@ class _TelemetryScreenState extends State<TelemetryScreen> {
|
||||
}
|
||||
|
||||
void _handleStatusResponse(Uint8List frame) {
|
||||
final parsedTelemetry = CayenneLpp.parseByChannel(frame);
|
||||
final batteryMv = _extractTelemetryBatteryMillivolts(parsedTelemetry);
|
||||
if (batteryMv != null) {
|
||||
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
|
||||
connector.updateRepeaterBatterySnapshot(
|
||||
widget.repeater.publicKeyHex,
|
||||
batteryMv,
|
||||
source: 'telemetry',
|
||||
);
|
||||
}
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
_parsedTelemetry = parsedTelemetry;
|
||||
_parsedTelemetry = CayenneLpp.parseByChannel(frame);
|
||||
});
|
||||
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
@@ -194,8 +181,6 @@ class _TelemetryScreenState extends State<TelemetryScreen> {
|
||||
Widget build(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
final connector = context.watch<MeshCoreConnector>();
|
||||
final settings = context.watch<AppSettingsService>().settings;
|
||||
final isImperialUnits = settings.unitSystem == UnitSystem.imperial;
|
||||
final repeater = _resolveRepeater(connector);
|
||||
final isFloodMode = repeater.pathOverride == -1;
|
||||
|
||||
@@ -322,7 +307,6 @@ class _TelemetryScreenState extends State<TelemetryScreen> {
|
||||
entry['values'],
|
||||
l10n.telemetry_channelTitle(entry['channel']),
|
||||
entry['channel'],
|
||||
isImperialUnits,
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -335,7 +319,6 @@ class _TelemetryScreenState extends State<TelemetryScreen> {
|
||||
Map<String, dynamic> channelData,
|
||||
String title,
|
||||
int channel,
|
||||
bool isImperialUnits,
|
||||
) {
|
||||
final l10n = context.l10n;
|
||||
return Card(
|
||||
@@ -375,12 +358,12 @@ class _TelemetryScreenState extends State<TelemetryScreen> {
|
||||
else if (entry.key == 'temperature' && channel == 1)
|
||||
_buildInfoRow(
|
||||
l10n.telemetry_mcuTemperatureLabel,
|
||||
_temperatureText(entry.value, isImperialUnits),
|
||||
_temperatureText(entry.value),
|
||||
)
|
||||
else if (entry.key == 'temperature')
|
||||
_buildInfoRow(
|
||||
l10n.telemetry_temperatureLabel,
|
||||
_temperatureText(entry.value, isImperialUnits),
|
||||
_temperatureText(entry.value),
|
||||
)
|
||||
else if (entry.key == 'current' && channel == 1)
|
||||
_buildInfoRow(
|
||||
@@ -422,44 +405,29 @@ class _TelemetryScreenState extends State<TelemetryScreen> {
|
||||
);
|
||||
}
|
||||
|
||||
int? _extractTelemetryBatteryMillivolts(List<Map<String, dynamic>> entries) {
|
||||
for (final entry in entries) {
|
||||
if (entry['channel'] != 1) continue;
|
||||
final values = entry['values'];
|
||||
if (values is! Map<String, dynamic>) continue;
|
||||
final voltage = values['voltage'];
|
||||
if (voltage is num) return (voltage.toDouble() * 1000).round();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
String _batteryText(double? telemetryVolts) {
|
||||
String _batteryText(double? batteryMv) {
|
||||
final l10n = context.l10n;
|
||||
final connector = context.watch<MeshCoreConnector>();
|
||||
final batteryMv =
|
||||
connector.getRepeaterBatteryMillivolts(widget.repeater.publicKeyHex) ??
|
||||
(telemetryVolts == null ? null : (telemetryVolts * 1000).round());
|
||||
if (batteryMv == null) return l10n.common_notAvailable;
|
||||
final chemistry = _batteryChemistry();
|
||||
final percent = estimateBatteryPercentFromMillivolts(batteryMv, chemistry);
|
||||
final volts = (batteryMv / 1000).toStringAsFixed(2);
|
||||
final percent = _batteryPercentFromMv(batteryMv);
|
||||
final volts = batteryMv.toStringAsFixed(2);
|
||||
return l10n.telemetry_batteryValue(percent, volts);
|
||||
}
|
||||
|
||||
String _batteryChemistry() {
|
||||
final settingsService = context.read<AppSettingsService>();
|
||||
return settingsService.batteryChemistryForRepeater(
|
||||
widget.repeater.publicKeyHex,
|
||||
);
|
||||
int _batteryPercentFromMv(double millivolts) {
|
||||
const minMv = 2.800;
|
||||
const maxMv = 4.200;
|
||||
if (millivolts <= minMv) return 0;
|
||||
if (millivolts >= maxMv) return 100;
|
||||
return (((millivolts - minMv) * 100) / (maxMv - minMv)).round();
|
||||
}
|
||||
|
||||
String _temperatureText(double? tempC, bool isImperialUnits) {
|
||||
String _temperatureText(double? tempC) {
|
||||
final l10n = context.l10n;
|
||||
if (tempC == null) return l10n.common_notAvailable;
|
||||
final tempF = (tempC * 9 / 5) + 32;
|
||||
if (isImperialUnits) {
|
||||
return '${tempF.toStringAsFixed(1)}°F';
|
||||
}
|
||||
return '${tempC.toStringAsFixed(1)}°C';
|
||||
return l10n.telemetry_temperatureValue(
|
||||
tempC.toStringAsFixed(1),
|
||||
tempF.toStringAsFixed(1),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,12 +17,6 @@ class AppSettingsService extends ChangeNotifier {
|
||||
return stored ?? 'nmc';
|
||||
}
|
||||
|
||||
String batteryChemistryForRepeater(String repeaterPubKeyHex) {
|
||||
final stored = _settings.batteryChemistryByRepeaterId[repeaterPubKeyHex];
|
||||
if (stored == 'liion') return 'nmc';
|
||||
return stored ?? 'nmc';
|
||||
}
|
||||
|
||||
Future<void> loadSettings() async {
|
||||
final prefs = PrefsManager.instance;
|
||||
final jsonStr = prefs.getString(_settingsKey);
|
||||
@@ -80,10 +74,6 @@ class AppSettingsService extends ChangeNotifier {
|
||||
await updateSettings(_settings.copyWith(mapShowMarkers: value));
|
||||
}
|
||||
|
||||
Future<void> setEnableMessageTracing(bool value) async {
|
||||
await updateSettings(_settings.copyWith(enableMessageTracing: value));
|
||||
}
|
||||
|
||||
Future<void> setMapCacheBounds(Map<String, double>? value) async {
|
||||
await updateSettings(_settings.copyWith(mapCacheBounds: value));
|
||||
}
|
||||
@@ -142,36 +132,4 @@ class AppSettingsService extends ChangeNotifier {
|
||||
_settings.copyWith(batteryChemistryByDeviceId: updated),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> setBatteryChemistryForRepeater(
|
||||
String repeaterPubKeyHex,
|
||||
String chemistry,
|
||||
) async {
|
||||
final updated = Map<String, String>.from(
|
||||
_settings.batteryChemistryByRepeaterId,
|
||||
);
|
||||
updated[repeaterPubKeyHex] = chemistry;
|
||||
await updateSettings(
|
||||
_settings.copyWith(batteryChemistryByRepeaterId: updated),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> setUnitSystem(UnitSystem value) async {
|
||||
await updateSettings(_settings.copyWith(unitSystem: value));
|
||||
}
|
||||
|
||||
bool isChannelMuted(String channelName) {
|
||||
return _settings.mutedChannels.contains(channelName);
|
||||
}
|
||||
|
||||
Future<void> muteChannel(String channelName) async {
|
||||
final updated = Set<String>.from(_settings.mutedChannels)..add(channelName);
|
||||
await updateSettings(_settings.copyWith(mutedChannels: updated));
|
||||
}
|
||||
|
||||
Future<void> unmuteChannel(String channelName) async {
|
||||
final updated = Set<String>.from(_settings.mutedChannels)
|
||||
..remove(channelName);
|
||||
await updateSettings(_settings.copyWith(mutedChannels: updated));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/scheduler.dart';
|
||||
import '../connector/meshcore_protocol.dart';
|
||||
|
||||
class BleDebugLogEntry {
|
||||
@@ -45,7 +44,6 @@ class BleDebugLogService extends ChangeNotifier {
|
||||
static const int maxEntries = 500;
|
||||
final List<BleDebugLogEntry> _entries = [];
|
||||
final List<BleRawLogRxEntry> _rawLogRxEntries = [];
|
||||
bool _notifyScheduled = false;
|
||||
|
||||
List<BleDebugLogEntry> get entries => List.unmodifiable(_entries);
|
||||
List<BleRawLogRxEntry> get rawLogRxEntries =>
|
||||
@@ -80,31 +78,13 @@ class BleDebugLogService extends ChangeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
_notifyListenersSafely();
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void clear() {
|
||||
_entries.clear();
|
||||
_rawLogRxEntries.clear();
|
||||
_notifyListenersSafely();
|
||||
}
|
||||
|
||||
void _notifyListenersSafely() {
|
||||
final phase = SchedulerBinding.instance.schedulerPhase;
|
||||
final canNotifyNow =
|
||||
phase == SchedulerPhase.idle ||
|
||||
phase == SchedulerPhase.postFrameCallbacks;
|
||||
if (canNotifyNow) {
|
||||
notifyListeners();
|
||||
return;
|
||||
}
|
||||
|
||||
if (_notifyScheduled) return;
|
||||
_notifyScheduled = true;
|
||||
SchedulerBinding.instance.addPostFrameCallback((_) {
|
||||
_notifyScheduled = false;
|
||||
notifyListeners();
|
||||
});
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
String _describeFrame(
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
import '../storage/prefs_manager.dart';
|
||||
|
||||
/// Client-side accessibility/UI service that exposes a persistent shared text scale
|
||||
/// factor. No MeshCoreConnector/RoomServer or protocol interaction occurs, and the
|
||||
/// value is saved locally via SharedPreferences so it can be reused in Markdown
|
||||
/// viewers, log panels, or other text-heavy widgets without redundant network
|
||||
/// dependencies.
|
||||
///
|
||||
/// Widgets should scope rebuilds using the snippet below so only the scaled text
|
||||
/// is rebuilt instead of the entire chat list:
|
||||
/// ```dart
|
||||
/// context.select<ChatTextScaleService, double>(
|
||||
/// (service) => service.scale,
|
||||
/// )
|
||||
/// ```
|
||||
class ChatTextScaleService extends ChangeNotifier {
|
||||
static const _prefKey = 'chat_text_scale';
|
||||
static const double _minScale = 0.8;
|
||||
static const double _maxScale = 1.8;
|
||||
|
||||
double _scale = 1.0;
|
||||
Timer? _saveTimer;
|
||||
|
||||
double get scale => _scale;
|
||||
|
||||
Future<void> initialize() async {
|
||||
final stored = PrefsManager.instance.getDouble(_prefKey);
|
||||
if (stored != null) {
|
||||
_scale = _clamp(stored);
|
||||
}
|
||||
}
|
||||
|
||||
void setScale(double value, {bool persistImmediately = false}) {
|
||||
final next = _clamp(value);
|
||||
if (next == _scale) return;
|
||||
_scale = next;
|
||||
notifyListeners();
|
||||
if (persistImmediately) {
|
||||
_commitScale();
|
||||
} else {
|
||||
_scheduleSave();
|
||||
}
|
||||
}
|
||||
|
||||
void reset() {
|
||||
setScale(1.0, persistImmediately: true);
|
||||
}
|
||||
|
||||
void persist() => _commitScale();
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_saveTimer?.cancel();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
void _scheduleSave() {
|
||||
_saveTimer?.cancel();
|
||||
_saveTimer = Timer(const Duration(milliseconds: 250), _commitScale);
|
||||
}
|
||||
|
||||
void _commitScale() {
|
||||
_saveTimer?.cancel();
|
||||
PrefsManager.instance.setDouble(_prefKey, _scale);
|
||||
}
|
||||
|
||||
double _clamp(double value) => value.clamp(_minScale, _maxScale).toDouble();
|
||||
}
|
||||
@@ -1,446 +0,0 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:async';
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:latlong2/latlong.dart';
|
||||
|
||||
typedef ElevationDataSource =
|
||||
Future<List<double?>> Function(List<LatLng> points);
|
||||
|
||||
class LineOfSightSample {
|
||||
final double distanceMeters;
|
||||
final double terrainMeters;
|
||||
final double lineHeightMeters;
|
||||
final double refractedHeightMeters;
|
||||
final double clearanceMeters;
|
||||
|
||||
const LineOfSightSample({
|
||||
required this.distanceMeters,
|
||||
required this.terrainMeters,
|
||||
required this.lineHeightMeters,
|
||||
required this.refractedHeightMeters,
|
||||
required this.clearanceMeters,
|
||||
});
|
||||
}
|
||||
|
||||
class LineOfSightResult {
|
||||
final bool hasData;
|
||||
final bool isClear;
|
||||
final double totalDistanceMeters;
|
||||
final double maxObstructionMeters;
|
||||
final double? firstObstructionDistanceMeters;
|
||||
final List<LineOfSightSample> samples;
|
||||
final String? errorMessage;
|
||||
final double usedKFactor;
|
||||
final double? frequencyMHz;
|
||||
|
||||
const LineOfSightResult({
|
||||
required this.hasData,
|
||||
required this.isClear,
|
||||
required this.totalDistanceMeters,
|
||||
required this.maxObstructionMeters,
|
||||
required this.firstObstructionDistanceMeters,
|
||||
required this.samples,
|
||||
required this.usedKFactor,
|
||||
this.frequencyMHz,
|
||||
this.errorMessage,
|
||||
});
|
||||
|
||||
const LineOfSightResult.error({
|
||||
required this.totalDistanceMeters,
|
||||
required this.errorMessage,
|
||||
this.usedKFactor = 4.0 / 3.0,
|
||||
this.frequencyMHz,
|
||||
}) : hasData = false,
|
||||
isClear = false,
|
||||
maxObstructionMeters = 0,
|
||||
firstObstructionDistanceMeters = null,
|
||||
samples = const [];
|
||||
}
|
||||
|
||||
class LineOfSightPathSegment {
|
||||
final int index;
|
||||
final LatLng start;
|
||||
final LatLng end;
|
||||
final LineOfSightResult result;
|
||||
|
||||
const LineOfSightPathSegment({
|
||||
required this.index,
|
||||
required this.start,
|
||||
required this.end,
|
||||
required this.result,
|
||||
});
|
||||
}
|
||||
|
||||
class LineOfSightPathResult {
|
||||
final List<LineOfSightPathSegment> segments;
|
||||
final int clearSegments;
|
||||
final int blockedSegments;
|
||||
final int unknownSegments;
|
||||
|
||||
const LineOfSightPathResult({
|
||||
required this.segments,
|
||||
required this.clearSegments,
|
||||
required this.blockedSegments,
|
||||
required this.unknownSegments,
|
||||
});
|
||||
}
|
||||
|
||||
class LineOfSightService {
|
||||
static const String errorElevationUnavailable =
|
||||
'los_error_elevation_unavailable';
|
||||
static const String errorInvalidInput = 'los_error_invalid_input';
|
||||
|
||||
static const double _earthRadiusMeters = 6371000.0;
|
||||
static const Distance _distance = Distance();
|
||||
static const Duration _cacheTtl = Duration(hours: 24);
|
||||
static const int _maxFetchAttempts = 4; // initial try + 3 retries
|
||||
static const Duration _initialBackoff = Duration(milliseconds: 300);
|
||||
static const double _baselineFrequencyMHz = 915.0;
|
||||
static const double _baselineKFactor = 4.0 / 3.0;
|
||||
|
||||
static double get baselineFrequencyMHz => _baselineFrequencyMHz;
|
||||
static double get baselineKFactor => _baselineKFactor;
|
||||
|
||||
final http.Client _httpClient;
|
||||
final bool _ownsHttpClient;
|
||||
final ElevationDataSource? _elevationDataSource;
|
||||
final Map<String, _CachedElevation> _elevationCache = {};
|
||||
|
||||
LineOfSightService({
|
||||
http.Client? httpClient,
|
||||
ElevationDataSource? elevationDataSource,
|
||||
}) : _httpClient = httpClient ?? http.Client(),
|
||||
_ownsHttpClient = httpClient == null,
|
||||
_elevationDataSource = elevationDataSource;
|
||||
|
||||
Future<LineOfSightPathResult> analyzePath(
|
||||
List<LatLng> points, {
|
||||
double startAntennaHeightMeters = 1.5,
|
||||
double endAntennaHeightMeters = 1.5,
|
||||
double? frequencyMHz,
|
||||
double obstructionToleranceMeters = 0.0,
|
||||
}) async {
|
||||
if (points.length < 2) {
|
||||
return const LineOfSightPathResult(
|
||||
segments: [],
|
||||
clearSegments: 0,
|
||||
blockedSegments: 0,
|
||||
unknownSegments: 0,
|
||||
);
|
||||
}
|
||||
|
||||
final segments = <LineOfSightPathSegment>[];
|
||||
var clearSegments = 0;
|
||||
var blockedSegments = 0;
|
||||
var unknownSegments = 0;
|
||||
|
||||
final kFactor = _kFactorForFrequency(frequencyMHz);
|
||||
for (int i = 0; i < points.length - 1; i++) {
|
||||
final result = await analyzeLink(
|
||||
points[i],
|
||||
points[i + 1],
|
||||
startAntennaHeightMeters: startAntennaHeightMeters,
|
||||
endAntennaHeightMeters: endAntennaHeightMeters,
|
||||
kFactor: kFactor,
|
||||
frequencyMHz: frequencyMHz,
|
||||
obstructionToleranceMeters: obstructionToleranceMeters,
|
||||
);
|
||||
segments.add(
|
||||
LineOfSightPathSegment(
|
||||
index: i,
|
||||
start: points[i],
|
||||
end: points[i + 1],
|
||||
result: result,
|
||||
),
|
||||
);
|
||||
|
||||
if (!result.hasData) {
|
||||
unknownSegments++;
|
||||
} else if (result.isClear) {
|
||||
clearSegments++;
|
||||
} else {
|
||||
blockedSegments++;
|
||||
}
|
||||
}
|
||||
|
||||
return LineOfSightPathResult(
|
||||
segments: segments,
|
||||
clearSegments: clearSegments,
|
||||
blockedSegments: blockedSegments,
|
||||
unknownSegments: unknownSegments,
|
||||
);
|
||||
}
|
||||
|
||||
Future<LineOfSightResult> analyzeLink(
|
||||
LatLng start,
|
||||
LatLng end, {
|
||||
double startAntennaHeightMeters = 1.5,
|
||||
double endAntennaHeightMeters = 1.5,
|
||||
required double kFactor,
|
||||
double? frequencyMHz,
|
||||
double obstructionToleranceMeters = 0.0,
|
||||
}) async {
|
||||
final totalDistanceMeters = _distance.as(LengthUnit.Meter, start, end);
|
||||
if (totalDistanceMeters <= 1) {
|
||||
return LineOfSightResult(
|
||||
hasData: true,
|
||||
isClear: true,
|
||||
totalDistanceMeters: totalDistanceMeters,
|
||||
maxObstructionMeters: 0,
|
||||
firstObstructionDistanceMeters: null,
|
||||
samples: const [],
|
||||
usedKFactor: kFactor,
|
||||
frequencyMHz: frequencyMHz,
|
||||
);
|
||||
}
|
||||
|
||||
final samplePoints = _buildSamplePoints(start, end, totalDistanceMeters);
|
||||
final elevations = await _getElevations(samplePoints);
|
||||
|
||||
if (elevations.any((e) => e == null)) {
|
||||
return LineOfSightResult.error(
|
||||
totalDistanceMeters: totalDistanceMeters,
|
||||
errorMessage: errorElevationUnavailable,
|
||||
usedKFactor: kFactor,
|
||||
frequencyMHz: frequencyMHz,
|
||||
);
|
||||
}
|
||||
|
||||
return computeFromElevations(
|
||||
points: samplePoints,
|
||||
elevations: elevations.cast<double>(),
|
||||
startAntennaHeightMeters: startAntennaHeightMeters,
|
||||
endAntennaHeightMeters: endAntennaHeightMeters,
|
||||
kFactor: kFactor,
|
||||
frequencyMHz: frequencyMHz,
|
||||
obstructionToleranceMeters: obstructionToleranceMeters,
|
||||
);
|
||||
}
|
||||
|
||||
static LineOfSightResult computeFromElevations({
|
||||
required List<LatLng> points,
|
||||
required List<double> elevations,
|
||||
double startAntennaHeightMeters = 1.5,
|
||||
double endAntennaHeightMeters = 1.5,
|
||||
required double kFactor,
|
||||
double? frequencyMHz,
|
||||
double obstructionToleranceMeters = 0.0,
|
||||
}) {
|
||||
if (points.length < 2 || elevations.length != points.length) {
|
||||
return LineOfSightResult.error(
|
||||
totalDistanceMeters: 0,
|
||||
errorMessage: errorInvalidInput,
|
||||
usedKFactor: kFactor,
|
||||
frequencyMHz: frequencyMHz,
|
||||
);
|
||||
}
|
||||
|
||||
final totalDistanceMeters = _distance.as(
|
||||
LengthUnit.Meter,
|
||||
points.first,
|
||||
points.last,
|
||||
);
|
||||
final effectiveEarthRadius = _earthRadiusMeters * kFactor;
|
||||
final startLineHeight = elevations.first + startAntennaHeightMeters;
|
||||
final endLineHeight = elevations.last + endAntennaHeightMeters;
|
||||
|
||||
var maxObstructionMeters = 0.0;
|
||||
double? firstObstructionDistanceMeters;
|
||||
final samples = <LineOfSightSample>[];
|
||||
var isClear = true;
|
||||
|
||||
for (int i = 0; i < points.length; i++) {
|
||||
final fraction = points.length == 1 ? 0.0 : i / (points.length - 1);
|
||||
final distanceFromStart = totalDistanceMeters * fraction;
|
||||
final lineHeight =
|
||||
startLineHeight + (endLineHeight - startLineHeight) * fraction;
|
||||
|
||||
final earthBulge =
|
||||
(distanceFromStart * (totalDistanceMeters - distanceFromStart)) /
|
||||
(2 * effectiveEarthRadius);
|
||||
final terrainHeight = elevations[i] + earthBulge;
|
||||
final clearance = lineHeight - terrainHeight;
|
||||
final unrefBulge =
|
||||
(distanceFromStart * (totalDistanceMeters - distanceFromStart)) /
|
||||
(2 * _earthRadiusMeters);
|
||||
final refractedHeight = lineHeight + (unrefBulge - earthBulge);
|
||||
|
||||
if (clearance < -obstructionToleranceMeters) {
|
||||
isClear = false;
|
||||
final obstruction = -clearance;
|
||||
if (obstruction > maxObstructionMeters) {
|
||||
maxObstructionMeters = obstruction;
|
||||
}
|
||||
firstObstructionDistanceMeters ??= distanceFromStart;
|
||||
}
|
||||
|
||||
samples.add(
|
||||
LineOfSightSample(
|
||||
distanceMeters: distanceFromStart,
|
||||
terrainMeters: terrainHeight,
|
||||
lineHeightMeters: lineHeight,
|
||||
refractedHeightMeters: refractedHeight,
|
||||
clearanceMeters: clearance,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
return LineOfSightResult(
|
||||
hasData: true,
|
||||
isClear: isClear,
|
||||
totalDistanceMeters: totalDistanceMeters,
|
||||
maxObstructionMeters: maxObstructionMeters,
|
||||
firstObstructionDistanceMeters: firstObstructionDistanceMeters,
|
||||
samples: samples,
|
||||
usedKFactor: kFactor,
|
||||
frequencyMHz: frequencyMHz,
|
||||
);
|
||||
}
|
||||
|
||||
static double _kFactorForFrequency(double? frequencyMHz) {
|
||||
if (frequencyMHz == null) return _baselineKFactor;
|
||||
final delta =
|
||||
(frequencyMHz - _baselineFrequencyMHz) / _baselineFrequencyMHz;
|
||||
final adjustment = delta * 0.15;
|
||||
final scaled = _baselineKFactor * (1 + adjustment);
|
||||
return scaled.clamp(1.1, 1.6).toDouble();
|
||||
}
|
||||
|
||||
List<LatLng> _buildSamplePoints(
|
||||
LatLng start,
|
||||
LatLng end,
|
||||
double distanceMeters,
|
||||
) {
|
||||
final sampleCount = distanceMeters < 2000
|
||||
? 21
|
||||
: distanceMeters < 10000
|
||||
? 41
|
||||
: 81;
|
||||
|
||||
final points = <LatLng>[];
|
||||
for (int i = 0; i < sampleCount; i++) {
|
||||
final t = i / (sampleCount - 1);
|
||||
points.add(
|
||||
LatLng(
|
||||
start.latitude + (end.latitude - start.latitude) * t,
|
||||
start.longitude + (end.longitude - start.longitude) * t,
|
||||
),
|
||||
);
|
||||
}
|
||||
return points;
|
||||
}
|
||||
|
||||
Future<List<double?>> _getElevations(List<LatLng> points) async {
|
||||
final dataSource = _elevationDataSource;
|
||||
if (dataSource != null) {
|
||||
return dataSource(points);
|
||||
}
|
||||
|
||||
final uncached = <int, LatLng>{};
|
||||
final values = List<double?>.filled(points.length, null);
|
||||
for (int i = 0; i < points.length; i++) {
|
||||
final key = _cacheKey(points[i]);
|
||||
final cached = _readCachedValue(key);
|
||||
if (cached != null) {
|
||||
values[i] = cached;
|
||||
} else {
|
||||
uncached[i] = points[i];
|
||||
}
|
||||
}
|
||||
|
||||
if (uncached.isEmpty) return values;
|
||||
|
||||
final latCsv = uncached.values
|
||||
.map((p) => p.latitude.toStringAsFixed(6))
|
||||
.join(',');
|
||||
final lonCsv = uncached.values
|
||||
.map((p) => p.longitude.toStringAsFixed(6))
|
||||
.join(',');
|
||||
|
||||
final uri = Uri.parse(
|
||||
'https://api.open-meteo.com/v1/elevation?latitude=$latCsv&longitude=$lonCsv',
|
||||
);
|
||||
|
||||
final response = await _getWithBackoff(uri);
|
||||
if (response.statusCode != 200) {
|
||||
return values;
|
||||
}
|
||||
|
||||
final decoded = jsonDecode(response.body);
|
||||
if (decoded is! Map<String, dynamic>) {
|
||||
return values;
|
||||
}
|
||||
final elevations = decoded['elevation'];
|
||||
if (elevations is! List) {
|
||||
return values;
|
||||
}
|
||||
|
||||
final indices = uncached.keys.toList();
|
||||
for (int i = 0; i < min(indices.length, elevations.length); i++) {
|
||||
final value = elevations[i];
|
||||
if (value is! num) continue;
|
||||
final index = indices[i];
|
||||
final elevation = value.toDouble();
|
||||
values[index] = elevation;
|
||||
_elevationCache[_cacheKey(points[index])] = _CachedElevation(
|
||||
value: elevation,
|
||||
expiresAt: DateTime.now().add(_cacheTtl),
|
||||
);
|
||||
}
|
||||
return values;
|
||||
}
|
||||
|
||||
Future<http.Response> _getWithBackoff(Uri uri) async {
|
||||
var attempt = 0;
|
||||
Duration backoff = _initialBackoff;
|
||||
|
||||
while (true) {
|
||||
attempt++;
|
||||
try {
|
||||
final response = await _httpClient.get(uri);
|
||||
if (!_shouldRetryStatus(response.statusCode) ||
|
||||
attempt >= _maxFetchAttempts) {
|
||||
return response;
|
||||
}
|
||||
} catch (_) {
|
||||
if (attempt >= _maxFetchAttempts) rethrow;
|
||||
}
|
||||
|
||||
await Future.delayed(backoff);
|
||||
backoff *= 2;
|
||||
}
|
||||
}
|
||||
|
||||
bool _shouldRetryStatus(int statusCode) {
|
||||
return statusCode == 429 || statusCode >= 500;
|
||||
}
|
||||
|
||||
double? _readCachedValue(String key) {
|
||||
final cached = _elevationCache[key];
|
||||
if (cached == null) return null;
|
||||
if (DateTime.now().isAfter(cached.expiresAt)) {
|
||||
_elevationCache.remove(key);
|
||||
return null;
|
||||
}
|
||||
return cached.value;
|
||||
}
|
||||
|
||||
String _cacheKey(LatLng point) {
|
||||
return '${point.latitude.toStringAsFixed(5)},${point.longitude.toStringAsFixed(5)}';
|
||||
}
|
||||
|
||||
void dispose() {
|
||||
if (_ownsHttpClient) {
|
||||
_httpClient.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class _CachedElevation {
|
||||
final double value;
|
||||
final DateTime expiresAt;
|
||||
|
||||
const _CachedElevation({required this.value, required this.expiresAt});
|
||||
}
|
||||
@@ -234,11 +234,7 @@ class MessageRetryService extends ChangeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
bool updateMessageFromSent(
|
||||
Uint8List ackHash,
|
||||
int timeoutMs, {
|
||||
bool allowQueueFallback = true,
|
||||
}) {
|
||||
void updateMessageFromSent(Uint8List ackHash, int timeoutMs) {
|
||||
final ackHashHex = ackHash
|
||||
.map((b) => b.toRadixString(16).padLeft(2, '0'))
|
||||
.join();
|
||||
@@ -281,7 +277,7 @@ class MessageRetryService extends ChangeNotifier {
|
||||
}
|
||||
|
||||
// FALLBACK: Old queue-based matching (for messages sent before hash computation was added)
|
||||
if (messageId == null && allowQueueFallback) {
|
||||
if (messageId == null) {
|
||||
_debugLogService?.warn(
|
||||
'RESP_CODE_SENT: ACK hash $ackHashHex not found in hash table, falling back to queue',
|
||||
tag: 'AckHash',
|
||||
@@ -324,7 +320,7 @@ class MessageRetryService extends ChangeNotifier {
|
||||
|
||||
if (messageId == null || contact == null) {
|
||||
debugPrint('No pending message found for ACK hash: $ackHashHex');
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
// Store the mapping for future lookups (e.g., when ACK arrives)
|
||||
@@ -343,7 +339,7 @@ class MessageRetryService extends ChangeNotifier {
|
||||
'Message $messageId no longer pending for ACK hash: $ackHashHex',
|
||||
);
|
||||
_ackHashToMessageId.remove(ackHashHex);
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
// Add this ACK hash to the list of expected ACKs for this message (for history)
|
||||
@@ -393,11 +389,8 @@ class MessageRetryService extends ChangeNotifier {
|
||||
|
||||
_startTimeoutTimer(messageId, actualTimeout);
|
||||
debugPrint('Updated message $messageId with ACK hash: $ackHashHex');
|
||||
return true;
|
||||
}
|
||||
|
||||
bool get hasPendingMessages => _pendingMessages.isNotEmpty;
|
||||
|
||||
void _startTimeoutTimer(String messageId, int timeoutMs) {
|
||||
_timeoutTimers[messageId]?.cancel();
|
||||
_timeoutTimers[messageId] = Timer(Duration(milliseconds: timeoutMs), () {
|
||||
|
||||
@@ -58,17 +58,11 @@ class NotificationService {
|
||||
requestBadgePermission: true,
|
||||
requestSoundPermission: true,
|
||||
);
|
||||
const windowsSettings = WindowsInitializationSettings(
|
||||
appName: 'MeshCore Open',
|
||||
appUserModelId: 'org.meshcore.open.app',
|
||||
guid: 'e7ea8f85-72f5-4f36-91f6-038f740ccf86',
|
||||
);
|
||||
|
||||
const initSettings = InitializationSettings(
|
||||
android: androidSettings,
|
||||
iOS: iosSettings,
|
||||
macOS: macSettings,
|
||||
windows: windowsSettings,
|
||||
);
|
||||
|
||||
try {
|
||||
@@ -82,13 +76,6 @@ class NotificationService {
|
||||
}
|
||||
}
|
||||
|
||||
Future<bool> _ensureInitialized() async {
|
||||
if (!_isInitialized) {
|
||||
await initialize();
|
||||
}
|
||||
return _isInitialized;
|
||||
}
|
||||
|
||||
Future<bool> requestPermissions() async {
|
||||
if (!_isInitialized) {
|
||||
await initialize();
|
||||
@@ -127,7 +114,9 @@ class NotificationService {
|
||||
String? contactId,
|
||||
int? badgeCount,
|
||||
}) async {
|
||||
if (!await _ensureInitialized()) return;
|
||||
if (!_isInitialized) {
|
||||
await initialize();
|
||||
}
|
||||
|
||||
final androidDetails = AndroidNotificationDetails(
|
||||
'messages',
|
||||
@@ -159,17 +148,13 @@ class NotificationService {
|
||||
macOS: macDetails,
|
||||
);
|
||||
|
||||
try {
|
||||
await _notifications.show(
|
||||
id: contactId?.hashCode ?? 0,
|
||||
title: contactName,
|
||||
body: message,
|
||||
notificationDetails: notificationDetails,
|
||||
payload: 'message:$contactId',
|
||||
);
|
||||
} catch (e) {
|
||||
debugPrint('Failed to show message notification: $e');
|
||||
}
|
||||
await _notifications.show(
|
||||
id: contactId?.hashCode ?? 0,
|
||||
title: contactName,
|
||||
body: message,
|
||||
notificationDetails: notificationDetails,
|
||||
payload: 'message:$contactId',
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _showAdvertNotificationImpl({
|
||||
@@ -177,7 +162,9 @@ class NotificationService {
|
||||
required String contactType,
|
||||
String? contactId,
|
||||
}) async {
|
||||
if (!await _ensureInitialized()) return;
|
||||
if (!_isInitialized) {
|
||||
await initialize();
|
||||
}
|
||||
|
||||
const androidDetails = AndroidNotificationDetails(
|
||||
'adverts',
|
||||
@@ -206,17 +193,13 @@ class NotificationService {
|
||||
macOS: macDetails,
|
||||
);
|
||||
|
||||
try {
|
||||
await _notifications.show(
|
||||
id: contactId?.hashCode ?? DateTime.now().millisecondsSinceEpoch,
|
||||
title: _l10n.notification_newTypeDiscovered(contactType),
|
||||
body: contactName,
|
||||
notificationDetails: notificationDetails,
|
||||
payload: 'advert:$contactId',
|
||||
);
|
||||
} catch (e) {
|
||||
debugPrint('Failed to show advert notification: $e');
|
||||
}
|
||||
await _notifications.show(
|
||||
id: contactId?.hashCode ?? DateTime.now().millisecondsSinceEpoch,
|
||||
title: _l10n.notification_newTypeDiscovered(contactType),
|
||||
body: contactName,
|
||||
notificationDetails: notificationDetails,
|
||||
payload: 'advert:$contactId',
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _showChannelMessageNotificationImpl({
|
||||
@@ -225,7 +208,9 @@ class NotificationService {
|
||||
int? channelIndex,
|
||||
int? badgeCount,
|
||||
}) async {
|
||||
if (!await _ensureInitialized()) return;
|
||||
if (!_isInitialized) {
|
||||
await initialize();
|
||||
}
|
||||
|
||||
final androidDetails = AndroidNotificationDetails(
|
||||
'channel_messages',
|
||||
@@ -262,17 +247,13 @@ class NotificationService {
|
||||
? _l10n.notification_receivedNewMessage
|
||||
: preview;
|
||||
|
||||
try {
|
||||
await _notifications.show(
|
||||
id: channelIndex?.hashCode ?? DateTime.now().millisecondsSinceEpoch,
|
||||
title: channelName,
|
||||
body: body,
|
||||
notificationDetails: notificationDetails,
|
||||
payload: 'channel:$channelIndex',
|
||||
);
|
||||
} catch (e) {
|
||||
debugPrint('Failed to show channel notification: $e');
|
||||
}
|
||||
await _notifications.show(
|
||||
id: channelIndex?.hashCode ?? DateTime.now().millisecondsSinceEpoch,
|
||||
title: channelName,
|
||||
body: body,
|
||||
notificationDetails: notificationDetails,
|
||||
payload: 'channel:$channelIndex',
|
||||
);
|
||||
}
|
||||
|
||||
/// Returns a privacy-safe identifier for debug logging.
|
||||
@@ -415,39 +396,35 @@ class NotificationService {
|
||||
Future<void> _showNotificationImmediately(
|
||||
_PendingNotification notification,
|
||||
) async {
|
||||
try {
|
||||
switch (notification.type) {
|
||||
case _NotificationType.message:
|
||||
await _showMessageNotificationImpl(
|
||||
contactName: notification.title,
|
||||
message: notification.body,
|
||||
contactId: notification.id,
|
||||
badgeCount: notification.badgeCount,
|
||||
);
|
||||
break;
|
||||
case _NotificationType.advert:
|
||||
await _showAdvertNotificationImpl(
|
||||
contactName: notification.body,
|
||||
contactType: notification.title,
|
||||
contactId: notification.id,
|
||||
);
|
||||
break;
|
||||
case _NotificationType.channelMessage:
|
||||
await _showChannelMessageNotificationImpl(
|
||||
channelName: notification.title,
|
||||
message: notification.body,
|
||||
channelIndex: int.tryParse(notification.id ?? ''),
|
||||
badgeCount: notification.badgeCount,
|
||||
);
|
||||
break;
|
||||
}
|
||||
} catch (e) {
|
||||
debugPrint('Failed to show immediate notification: $e');
|
||||
switch (notification.type) {
|
||||
case _NotificationType.message:
|
||||
await _showMessageNotificationImpl(
|
||||
contactName: notification.title,
|
||||
message: notification.body,
|
||||
contactId: notification.id,
|
||||
badgeCount: notification.badgeCount,
|
||||
);
|
||||
break;
|
||||
case _NotificationType.advert:
|
||||
await _showAdvertNotificationImpl(
|
||||
contactName: notification.body,
|
||||
contactType: notification.title,
|
||||
contactId: notification.id,
|
||||
);
|
||||
break;
|
||||
case _NotificationType.channelMessage:
|
||||
await _showChannelMessageNotificationImpl(
|
||||
channelName: notification.title,
|
||||
message: notification.body,
|
||||
channelIndex: int.tryParse(notification.id ?? ''),
|
||||
badgeCount: notification.badgeCount,
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _showBatchSummary(List<_PendingNotification> batch) async {
|
||||
if (!await _ensureInitialized()) return;
|
||||
if (!_isInitialized) await initialize();
|
||||
|
||||
// Group by type
|
||||
final messages = batch
|
||||
@@ -491,17 +468,13 @@ class NotificationService {
|
||||
|
||||
const notificationDetails = NotificationDetails(android: androidDetails);
|
||||
|
||||
try {
|
||||
await _notifications.show(
|
||||
id: 'batch_summary'.hashCode,
|
||||
title: _l10n.notification_activityTitle,
|
||||
body: parts.join(', '),
|
||||
notificationDetails: notificationDetails,
|
||||
payload: 'batch',
|
||||
);
|
||||
} catch (e) {
|
||||
debugPrint('Failed to show batch summary notification: $e');
|
||||
}
|
||||
await _notifications.show(
|
||||
id: 'batch_summary'.hashCode,
|
||||
title: _l10n.notification_activityTitle,
|
||||
body: parts.join(', '),
|
||||
notificationDetails: notificationDetails,
|
||||
payload: 'batch',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,6 @@ class ContactStore {
|
||||
'publicKey': base64Encode(contact.publicKey),
|
||||
'name': contact.name,
|
||||
'type': contact.type,
|
||||
'flags': contact.flags,
|
||||
'pathLength': contact.pathLength,
|
||||
'path': base64Encode(contact.path),
|
||||
'pathOverride': contact.pathOverride,
|
||||
@@ -54,7 +53,6 @@ class ContactStore {
|
||||
publicKey: Uint8List.fromList(base64Decode(json['publicKey'] as String)),
|
||||
name: json['name'] as String? ?? 'Unknown',
|
||||
type: json['type'] as int? ?? 0,
|
||||
flags: json['flags'] as int? ?? 0,
|
||||
pathLength: json['pathLength'] as int? ?? -1,
|
||||
path: json['path'] != null
|
||||
? Uint8List.fromList(base64Decode(json['path'] as String))
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
typedef BatteryVoltageRange = ({int minMv, int maxMv});
|
||||
|
||||
BatteryVoltageRange batteryVoltageRange(String chemistry) {
|
||||
switch (chemistry) {
|
||||
case 'lifepo4':
|
||||
return (minMv: 2600, maxMv: 3650);
|
||||
case 'lipo':
|
||||
return (minMv: 3000, maxMv: 4200);
|
||||
case 'nmc':
|
||||
default:
|
||||
return (minMv: 3000, maxMv: 4200);
|
||||
}
|
||||
}
|
||||
|
||||
int estimateBatteryPercentFromMillivolts(int millivolts, String chemistry) {
|
||||
final range = batteryVoltageRange(chemistry);
|
||||
if (millivolts <= range.minMv) return 0;
|
||||
if (millivolts >= range.maxMv) return 100;
|
||||
return (((millivolts - range.minMv) * 100) / (range.maxMv - range.minMv))
|
||||
.round();
|
||||
}
|
||||
|
||||
int estimateBatteryPercentFromVolts(double volts, String chemistry) {
|
||||
final millivolts = (volts * 1000).round();
|
||||
return estimateBatteryPercentFromMillivolts(millivolts, chemistry);
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AdaptiveAppBarTitle extends StatelessWidget {
|
||||
final String text;
|
||||
|
||||
const AdaptiveAppBarTitle(this.text, {super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return LayoutBuilder(
|
||||
builder: (context, constraints) => SizedBox(
|
||||
width: constraints.maxWidth,
|
||||
child: FittedBox(fit: BoxFit.scaleDown, child: Text(text, maxLines: 1)),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
+32
-45
@@ -14,54 +14,41 @@ class AppBarTitle extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final connector = context.watch<MeshCoreConnector>();
|
||||
final selfName = connector.selfName;
|
||||
|
||||
return LayoutBuilder(
|
||||
builder: (context, constraints) {
|
||||
final availableWidth = constraints.hasBoundedWidth
|
||||
? constraints.maxWidth
|
||||
: MediaQuery.sizeOf(context).width;
|
||||
final compact = availableWidth < 240;
|
||||
final showSubtitle =
|
||||
!compact && connector.isConnected && selfName != null;
|
||||
final showBattery = availableWidth >= 60;
|
||||
final showSnr = availableWidth >= 110;
|
||||
final showIndicators = showBattery || showSnr;
|
||||
|
||||
return Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
return Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
leading ?? const SizedBox.shrink(),
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
leading ?? const SizedBox.shrink(),
|
||||
Text(
|
||||
title,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
if (connector.isConnected && connector.selfName != null)
|
||||
Center(
|
||||
child: Text(
|
||||
'(${connector.selfName})',
|
||||
style: TextStyle(fontSize: 14, color: Colors.grey[600]),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
leading ?? const SizedBox.shrink(),
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(title, maxLines: 1, overflow: TextOverflow.ellipsis),
|
||||
if (showSubtitle)
|
||||
Text(
|
||||
'($selfName)',
|
||||
style: TextStyle(fontSize: 14, color: Colors.grey[600]),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
if (showIndicators) const SizedBox(width: 6),
|
||||
if (showIndicators)
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (showBattery) BatteryIndicator(connector: connector),
|
||||
if (showSnr) SNRIndicator(connector: connector),
|
||||
],
|
||||
),
|
||||
trailing ?? const SizedBox.shrink(),
|
||||
BatteryIndicator(connector: connector),
|
||||
SNRIndicator(connector: connector),
|
||||
],
|
||||
);
|
||||
},
|
||||
),
|
||||
trailing ?? const SizedBox.shrink(),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import '../services/chat_text_scale_service.dart';
|
||||
|
||||
/// Gesture wrapper that exposes two-finger pinch-to-zoom for chat scrollables.
|
||||
/// Double-tap resets the scale. Only the wrapper itself listens to gestures;
|
||||
/// child scrollables keep their normal touch handling.
|
||||
class ChatZoomWrapper extends StatefulWidget {
|
||||
const ChatZoomWrapper({super.key, required this.child, this.onDoubleTap});
|
||||
|
||||
final Widget child;
|
||||
final VoidCallback? onDoubleTap;
|
||||
|
||||
@override
|
||||
State<ChatZoomWrapper> createState() => _ChatZoomWrapperState();
|
||||
}
|
||||
|
||||
class _ChatZoomWrapperState extends State<ChatZoomWrapper> {
|
||||
double? _startScale;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final service = context.read<ChatTextScaleService>();
|
||||
|
||||
return GestureDetector(
|
||||
behavior: HitTestBehavior.translucent,
|
||||
onDoubleTap: () {
|
||||
service.reset();
|
||||
service.persist();
|
||||
widget.onDoubleTap?.call();
|
||||
},
|
||||
onScaleStart: (details) {
|
||||
if (details.pointerCount != 2) return;
|
||||
_startScale = service.scale;
|
||||
},
|
||||
onScaleUpdate: (details) {
|
||||
if (details.pointerCount != 2) return;
|
||||
final baseScale = _startScale ?? service.scale;
|
||||
service.setScale(baseScale * details.scale);
|
||||
},
|
||||
onScaleEnd: (_) {
|
||||
_startScale = null;
|
||||
service.persist();
|
||||
},
|
||||
child: widget.child,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@ import '../l10n/l10n.dart';
|
||||
|
||||
enum ContactSortOption { lastSeen, recentMessages, name }
|
||||
|
||||
enum ContactTypeFilter { all, favorites, users, repeaters, rooms }
|
||||
enum ContactTypeFilter { all, users, repeaters, rooms }
|
||||
|
||||
class SortFilterMenuOption {
|
||||
final int value;
|
||||
@@ -94,12 +94,11 @@ const int _actionSortRecentMessages = 1;
|
||||
const int _actionSortName = 2;
|
||||
const int _actionSortLastSeen = 3;
|
||||
const int _actionFilterAll = 4;
|
||||
const int _actionFilterFavorites = 5;
|
||||
const int _actionFilterUsers = 6;
|
||||
const int _actionFilterRepeaters = 7;
|
||||
const int _actionFilterRooms = 8;
|
||||
const int _actionToggleUnreadOnly = 9;
|
||||
const int _actionNewGroup = 10;
|
||||
const int _actionFilterUsers = 5;
|
||||
const int _actionFilterRepeaters = 6;
|
||||
const int _actionFilterRooms = 7;
|
||||
const int _actionToggleUnreadOnly = 8;
|
||||
const int _actionNewGroup = 9;
|
||||
|
||||
class ContactsFilterMenu extends StatelessWidget {
|
||||
final ContactSortOption sortOption;
|
||||
@@ -155,11 +154,6 @@ class ContactsFilterMenu extends StatelessWidget {
|
||||
label: l10n.listFilter_all,
|
||||
checked: typeFilter == ContactTypeFilter.all,
|
||||
),
|
||||
SortFilterMenuOption(
|
||||
value: _actionFilterFavorites,
|
||||
label: l10n.listFilter_favorites,
|
||||
checked: typeFilter == ContactTypeFilter.favorites,
|
||||
),
|
||||
SortFilterMenuOption(
|
||||
value: _actionFilterUsers,
|
||||
label: l10n.listFilter_users,
|
||||
@@ -204,9 +198,6 @@ class ContactsFilterMenu extends StatelessWidget {
|
||||
case _actionFilterUsers:
|
||||
onTypeFilterChanged(ContactTypeFilter.users);
|
||||
break;
|
||||
case _actionFilterFavorites:
|
||||
onTypeFilterChanged(ContactTypeFilter.favorites);
|
||||
break;
|
||||
case _actionFilterRepeaters:
|
||||
onTypeFilterChanged(ContactTypeFilter.repeaters);
|
||||
break;
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
|
||||
class MessageStatusIcon extends StatelessWidget {
|
||||
final bool isAcked;
|
||||
final bool isFailed;
|
||||
final double size;
|
||||
|
||||
const MessageStatusIcon({
|
||||
super.key,
|
||||
required this.isAcked,
|
||||
this.isFailed = false,
|
||||
this.size = 14,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (isFailed) {
|
||||
return Icon(Icons.cancel, size: size, color: Colors.red);
|
||||
}
|
||||
|
||||
final Color color;
|
||||
if (isAcked) {
|
||||
color = Colors.green;
|
||||
} else {
|
||||
color = Colors.grey;
|
||||
}
|
||||
|
||||
return SvgPicture.asset(
|
||||
'assets/icons/done_all.svg',
|
||||
width: size,
|
||||
height: size,
|
||||
colorFilter: ColorFilter.mode(color, BlendMode.srcIn),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,7 @@
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:meshcore_open/models/path_history.dart';
|
||||
import 'package:meshcore_open/screens/path_trace_map.dart';
|
||||
import 'package:meshcore_open/widgets/elements_ui.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import '../connector/meshcore_connector.dart';
|
||||
@@ -21,22 +19,15 @@ class PathManagementDialog {
|
||||
}
|
||||
}
|
||||
|
||||
class _PathManagementDialog extends StatefulWidget {
|
||||
class _PathManagementDialog extends StatelessWidget {
|
||||
final Contact contact;
|
||||
|
||||
const _PathManagementDialog({required this.contact});
|
||||
|
||||
@override
|
||||
State<_PathManagementDialog> createState() => _PathManagementDialogState();
|
||||
}
|
||||
|
||||
class _PathManagementDialogState extends State<_PathManagementDialog> {
|
||||
bool _showAllPaths = false;
|
||||
|
||||
Contact _resolveContact(MeshCoreConnector connector) {
|
||||
return connector.contacts.firstWhere(
|
||||
(c) => c.publicKeyHex == widget.contact.publicKeyHex,
|
||||
orElse: () => widget.contact,
|
||||
(c) => c.publicKeyHex == contact.publicKeyHex,
|
||||
orElse: () => contact,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -146,10 +137,6 @@ class _PathManagementDialogState extends State<_PathManagementDialog> {
|
||||
final repeatersList = List.of(connector.directRepeaters)
|
||||
..sort((a, b) => b.ranking.compareTo(a.ranking));
|
||||
|
||||
if (repeatersList.isEmpty) {
|
||||
_showAllPaths = true;
|
||||
}
|
||||
|
||||
final directRepeater = repeatersList.isEmpty
|
||||
? null
|
||||
: repeatersList.first;
|
||||
@@ -160,42 +147,6 @@ class _PathManagementDialogState extends State<_PathManagementDialog> {
|
||||
? null
|
||||
: repeatersList.elementAt(2);
|
||||
|
||||
List<MapEntry<int, MapEntry<Color, PathRecord>>> pathsWithRepeaters =
|
||||
paths.map((path) {
|
||||
final isDirectRepeater =
|
||||
directRepeater != null &&
|
||||
path.pathBytes.isNotEmpty &&
|
||||
directRepeater.pubkeyFirstByte == path.pathBytes.first;
|
||||
final isSecondDirectRepeater =
|
||||
secondDirectRepeater != null &&
|
||||
path.pathBytes.isNotEmpty &&
|
||||
secondDirectRepeater.pubkeyFirstByte == path.pathBytes.first;
|
||||
final isThirdDirectRepeater =
|
||||
thirdDirectRepeater != null &&
|
||||
path.pathBytes.isNotEmpty &&
|
||||
thirdDirectRepeater.pubkeyFirstByte == path.pathBytes.first;
|
||||
|
||||
int ranking = -1;
|
||||
Color color = Colors.grey;
|
||||
if (isDirectRepeater) {
|
||||
color = Colors.green;
|
||||
ranking = 3;
|
||||
} else if (isSecondDirectRepeater) {
|
||||
color = Colors.yellow;
|
||||
ranking = 2;
|
||||
} else if (isThirdDirectRepeater) {
|
||||
color = Colors.red;
|
||||
ranking = 1;
|
||||
} else if (path.wasFloodDiscovery) {
|
||||
color = Colors.blue;
|
||||
ranking = 0;
|
||||
}
|
||||
|
||||
return MapEntry(ranking, MapEntry(color, path));
|
||||
}).toList();
|
||||
|
||||
pathsWithRepeaters.sort((a, b) => b.key.compareTo(a.key));
|
||||
|
||||
return AlertDialog(
|
||||
title: Text(l10n.chat_pathManagement),
|
||||
content: SingleChildScrollView(
|
||||
@@ -209,17 +160,6 @@ class _PathManagementDialogState extends State<_PathManagementDialog> {
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
if (paths.isNotEmpty) ...[
|
||||
if (repeatersList.isNotEmpty)
|
||||
FeatureToggleRow(
|
||||
title: l10n.chat_ShowAllPaths,
|
||||
subtitle: "",
|
||||
value: _showAllPaths,
|
||||
onChanged: (val) {
|
||||
setState(() {
|
||||
_showAllPaths = val;
|
||||
});
|
||||
},
|
||||
),
|
||||
Text(
|
||||
l10n.chat_recentAckPaths,
|
||||
style: const TextStyle(
|
||||
@@ -227,7 +167,7 @@ class _PathManagementDialogState extends State<_PathManagementDialog> {
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
if (pathsWithRepeaters.length >= 100) ...[
|
||||
if (paths.length >= 100) ...[
|
||||
const SizedBox(height: 8),
|
||||
Container(
|
||||
width: double.infinity,
|
||||
@@ -246,99 +186,115 @@ class _PathManagementDialogState extends State<_PathManagementDialog> {
|
||||
),
|
||||
],
|
||||
const SizedBox(height: 8),
|
||||
...pathsWithRepeaters.map((entry) {
|
||||
final path = entry.value.value;
|
||||
final color = entry.value.key;
|
||||
...paths.map((path) {
|
||||
final isDirectRepeater =
|
||||
directRepeater != null &&
|
||||
path.pathBytes.isNotEmpty &&
|
||||
directRepeater.pubkeyFirstByte == path.pathBytes.first;
|
||||
final isSecondDirectRepeater =
|
||||
secondDirectRepeater != null &&
|
||||
path.pathBytes.isNotEmpty &&
|
||||
secondDirectRepeater.pubkeyFirstByte ==
|
||||
path.pathBytes.first;
|
||||
final isThirdDirectRepeater =
|
||||
thirdDirectRepeater != null &&
|
||||
path.pathBytes.isNotEmpty &&
|
||||
thirdDirectRepeater.pubkeyFirstByte ==
|
||||
path.pathBytes.first;
|
||||
|
||||
if (!_showAllPaths && entry.key < 1) {
|
||||
return const SizedBox.shrink();
|
||||
} else {
|
||||
return Card(
|
||||
margin: const EdgeInsets.symmetric(vertical: 4),
|
||||
child: ListTile(
|
||||
dense: true,
|
||||
leading: CircleAvatar(
|
||||
radius: 16,
|
||||
backgroundColor: color,
|
||||
child: Text(
|
||||
'${path.hopCount}',
|
||||
style: const TextStyle(fontSize: 12),
|
||||
Color color = Colors.grey;
|
||||
if (isDirectRepeater) {
|
||||
color = Colors.green;
|
||||
} else if (isSecondDirectRepeater) {
|
||||
color = Colors.yellow;
|
||||
} else if (isThirdDirectRepeater) {
|
||||
color = Colors.red;
|
||||
} else if (path.wasFloodDiscovery) {
|
||||
color = Colors.blue;
|
||||
}
|
||||
return Card(
|
||||
margin: const EdgeInsets.symmetric(vertical: 4),
|
||||
child: ListTile(
|
||||
dense: true,
|
||||
leading: CircleAvatar(
|
||||
radius: 16,
|
||||
backgroundColor: color,
|
||||
child: Text(
|
||||
'${path.hopCount}',
|
||||
style: const TextStyle(fontSize: 12),
|
||||
),
|
||||
),
|
||||
title: Text(
|
||||
l10n.chat_hopsCount(path.hopCount),
|
||||
style: const TextStyle(fontSize: 14),
|
||||
),
|
||||
subtitle: Text(
|
||||
'${(path.tripTimeMs / 1000).toStringAsFixed(2)}s • ${_formatRelativeTime(context, path.timestamp)} • ${path.successCount} ${l10n.chat_successes}',
|
||||
style: const TextStyle(fontSize: 11),
|
||||
),
|
||||
trailing: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
IconButton(
|
||||
icon: const Icon(Icons.close, size: 16),
|
||||
tooltip: l10n.chat_removePath,
|
||||
onPressed: () async {
|
||||
await pathService.removePathRecord(
|
||||
currentContact.publicKeyHex,
|
||||
path.pathBytes,
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
title: Text(
|
||||
l10n.chat_hopsCount(path.hopCount),
|
||||
style: const TextStyle(fontSize: 14),
|
||||
),
|
||||
subtitle: Text(
|
||||
'${(path.tripTimeMs / 1000).toStringAsFixed(2)}s • ${_formatRelativeTime(context, path.timestamp)} • ${path.successCount} ${l10n.chat_successes}',
|
||||
style: const TextStyle(fontSize: 11),
|
||||
),
|
||||
trailing: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
IconButton(
|
||||
icon: const Icon(Icons.close, size: 16),
|
||||
tooltip: l10n.chat_removePath,
|
||||
onPressed: () async {
|
||||
await pathService.removePathRecord(
|
||||
currentContact.publicKeyHex,
|
||||
path.pathBytes,
|
||||
);
|
||||
},
|
||||
),
|
||||
path.wasFloodDiscovery
|
||||
? const Icon(
|
||||
Icons.waves,
|
||||
size: 16,
|
||||
color: Colors.grey,
|
||||
)
|
||||
: const Icon(
|
||||
Icons.route,
|
||||
size: 16,
|
||||
color: Colors.grey,
|
||||
),
|
||||
],
|
||||
),
|
||||
onLongPress: () =>
|
||||
_showFullPathDialog(context, path.pathBytes),
|
||||
onTap: () async {
|
||||
if (path.pathBytes.isEmpty) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(
|
||||
l10n.chat_pathDetailsNotAvailable,
|
||||
path.wasFloodDiscovery
|
||||
? const Icon(
|
||||
Icons.waves,
|
||||
size: 16,
|
||||
color: Colors.grey,
|
||||
)
|
||||
: const Icon(
|
||||
Icons.route,
|
||||
size: 16,
|
||||
color: Colors.grey,
|
||||
),
|
||||
duration: const Duration(seconds: 2),
|
||||
),
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
final pathBytes = Uint8List.fromList(
|
||||
path.pathBytes,
|
||||
);
|
||||
final pathLength = path.pathBytes.length;
|
||||
|
||||
await connector.setPathOverride(
|
||||
currentContact,
|
||||
pathLen: pathLength,
|
||||
pathBytes: pathBytes,
|
||||
);
|
||||
|
||||
if (!context.mounted) return;
|
||||
Navigator.pop(context);
|
||||
],
|
||||
),
|
||||
onLongPress: () =>
|
||||
_showFullPathDialog(context, path.pathBytes),
|
||||
onTap: () async {
|
||||
if (path.pathBytes.isEmpty) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(
|
||||
l10n.path_usingHopsPath(path.hopCount),
|
||||
l10n.chat_pathDetailsNotAvailable,
|
||||
),
|
||||
duration: const Duration(seconds: 2),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
final pathBytes = Uint8List.fromList(path.pathBytes);
|
||||
final pathLength = path.pathBytes.length;
|
||||
|
||||
await connector.setPathOverride(
|
||||
currentContact,
|
||||
pathLen: pathLength,
|
||||
pathBytes: pathBytes,
|
||||
);
|
||||
|
||||
if (!context.mounted) return;
|
||||
Navigator.pop(context);
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(
|
||||
l10n.path_usingHopsPath(path.hopCount),
|
||||
),
|
||||
duration: const Duration(seconds: 2),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
}),
|
||||
const Divider(),
|
||||
] else ...[
|
||||
|
||||
@@ -139,10 +139,10 @@ class _SNRIndicatorState extends State<SNRIndicator> {
|
||||
}
|
||||
if (diff.inHours < 24) {
|
||||
final hours = diff.inHours;
|
||||
return "${hours}h";
|
||||
return hours == 1 ? "1h" : "${hours}hs";
|
||||
}
|
||||
final days = diff.inDays;
|
||||
return "${days}d";
|
||||
return days == 1 ? "1d" : "${days}ds";
|
||||
}
|
||||
|
||||
void _showFullPathDialog(
|
||||
|
||||
+5
-12
@@ -5,13 +5,10 @@ PODS:
|
||||
- flutter_local_notifications (0.0.1):
|
||||
- FlutterMacOS
|
||||
- FlutterMacOS (1.0.0)
|
||||
- mobile_scanner (7.0.0):
|
||||
- Flutter
|
||||
- mobile_scanner (6.0.2):
|
||||
- FlutterMacOS
|
||||
- package_info_plus (0.0.1):
|
||||
- FlutterMacOS
|
||||
- share_plus (0.0.1):
|
||||
- FlutterMacOS
|
||||
- shared_preferences_foundation (0.0.1):
|
||||
- Flutter
|
||||
- FlutterMacOS
|
||||
@@ -27,9 +24,8 @@ DEPENDENCIES:
|
||||
- flutter_blue_plus_darwin (from `Flutter/ephemeral/.symlinks/plugins/flutter_blue_plus_darwin/darwin`)
|
||||
- flutter_local_notifications (from `Flutter/ephemeral/.symlinks/plugins/flutter_local_notifications/macos`)
|
||||
- FlutterMacOS (from `Flutter/ephemeral`)
|
||||
- mobile_scanner (from `Flutter/ephemeral/.symlinks/plugins/mobile_scanner/darwin`)
|
||||
- mobile_scanner (from `Flutter/ephemeral/.symlinks/plugins/mobile_scanner/macos`)
|
||||
- package_info_plus (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos`)
|
||||
- share_plus (from `Flutter/ephemeral/.symlinks/plugins/share_plus/macos`)
|
||||
- shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`)
|
||||
- sqflite_darwin (from `Flutter/ephemeral/.symlinks/plugins/sqflite_darwin/darwin`)
|
||||
- url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`)
|
||||
@@ -43,11 +39,9 @@ EXTERNAL SOURCES:
|
||||
FlutterMacOS:
|
||||
:path: Flutter/ephemeral
|
||||
mobile_scanner:
|
||||
:path: Flutter/ephemeral/.symlinks/plugins/mobile_scanner/darwin
|
||||
:path: Flutter/ephemeral/.symlinks/plugins/mobile_scanner/macos
|
||||
package_info_plus:
|
||||
:path: Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos
|
||||
share_plus:
|
||||
:path: Flutter/ephemeral/.symlinks/plugins/share_plus/macos
|
||||
shared_preferences_foundation:
|
||||
:path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin
|
||||
sqflite_darwin:
|
||||
@@ -59,11 +53,10 @@ EXTERNAL SOURCES:
|
||||
|
||||
SPEC CHECKSUMS:
|
||||
flutter_blue_plus_darwin: 20a08bfeaa0f7804d524858d3d8744bcc1b6dbc3
|
||||
flutter_local_notifications: 4bf37a31afde695b56091b4ae3e4d9c7a7e6cda0
|
||||
flutter_local_notifications: 13862b132e32eb858dea558a86d45d08daeacfe7
|
||||
FlutterMacOS: d0db08ddef1a9af05a5ec4b724367152bb0500b1
|
||||
mobile_scanner: 9157936403f5a0644ca3779a38ff8404c5434a93
|
||||
mobile_scanner: 0e365ed56cad24f28c0fd858ca04edefb40dfac3
|
||||
package_info_plus: f0052d280d17aa382b932f399edf32507174e870
|
||||
share_plus: 510bf0af1a42cd602274b4629920c9649c52f4cc
|
||||
shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb
|
||||
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
|
||||
url_launcher_macos: f87a979182d112f911de6820aefddaf56ee9fbfd
|
||||
|
||||
+1095
File diff suppressed because it is too large
Load Diff
+1
-5
@@ -50,7 +50,7 @@ dependencies:
|
||||
cached_network_image: ^3.4.1
|
||||
flutter_cache_manager: ^3.4.1
|
||||
flutter_foreground_task: ^9.2.0
|
||||
wakelock_plus: ^1.4.0
|
||||
wakelock_plus: ^1.2.8
|
||||
characters: ^1.4.0
|
||||
package_info_plus: ^9.0.0
|
||||
mobile_scanner: ^7.1.4 # QR/barcode scanning
|
||||
@@ -60,9 +60,6 @@ dependencies:
|
||||
gpx: ^2.3.0
|
||||
path_provider: ^2.1.5
|
||||
share_plus: ^12.0.1
|
||||
material_symbols_icons: ^4.2906.0
|
||||
web: ^1.1.1
|
||||
flutter_svg: ^2.0.10+1
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
@@ -90,7 +87,6 @@ flutter:
|
||||
|
||||
assets:
|
||||
- assets/images/
|
||||
- assets/icons/
|
||||
|
||||
flutter_launcher_icons:
|
||||
android: true
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:latlong2/latlong.dart';
|
||||
import 'package:meshcore_open/services/line_of_sight_service.dart';
|
||||
|
||||
void main() {
|
||||
List<LatLng> makePoints(int count) {
|
||||
return List<LatLng>.generate(count, (i) => LatLng(0, i * 0.00001));
|
||||
}
|
||||
|
||||
test('computeFromElevations reports clear LOS on flat terrain', () {
|
||||
final points = makePoints(21);
|
||||
final elevations = List<double>.filled(points.length, 100);
|
||||
|
||||
final result = LineOfSightService.computeFromElevations(
|
||||
points: points,
|
||||
elevations: elevations,
|
||||
startAntennaHeightMeters: 2,
|
||||
endAntennaHeightMeters: 2,
|
||||
kFactor: 4.0 / 3.0,
|
||||
);
|
||||
|
||||
expect(result.hasData, isTrue);
|
||||
expect(result.isClear, isTrue);
|
||||
expect(result.maxObstructionMeters, equals(0));
|
||||
expect(result.firstObstructionDistanceMeters, isNull);
|
||||
});
|
||||
|
||||
test(
|
||||
'computeFromElevations reports blocked LOS with central obstruction',
|
||||
() {
|
||||
final points = makePoints(21);
|
||||
final elevations = List<double>.filled(points.length, 100);
|
||||
elevations[10] = 300;
|
||||
|
||||
final result = LineOfSightService.computeFromElevations(
|
||||
points: points,
|
||||
elevations: elevations,
|
||||
startAntennaHeightMeters: 1.5,
|
||||
endAntennaHeightMeters: 1.5,
|
||||
kFactor: 4.0 / 3.0,
|
||||
);
|
||||
|
||||
expect(result.hasData, isTrue);
|
||||
expect(result.isClear, isFalse);
|
||||
expect(result.maxObstructionMeters, greaterThan(0));
|
||||
expect(result.firstObstructionDistanceMeters, isNotNull);
|
||||
},
|
||||
);
|
||||
|
||||
test('analyzePath summarizes clear and blocked segments', () async {
|
||||
final service = LineOfSightService(
|
||||
elevationDataSource: (points) async {
|
||||
final elevations = List<double?>.filled(points.length, 100);
|
||||
if (points.first.longitude > 0.00005) {
|
||||
elevations[elevations.length ~/ 2] = 300;
|
||||
}
|
||||
return elevations;
|
||||
},
|
||||
);
|
||||
|
||||
final path = [
|
||||
const LatLng(0, 0),
|
||||
const LatLng(0, 0.0001),
|
||||
const LatLng(0, 0.0002),
|
||||
];
|
||||
|
||||
final result = await service.analyzePath(path);
|
||||
|
||||
expect(result.segments.length, 2);
|
||||
expect(result.clearSegments, 1);
|
||||
expect(result.blockedSegments, 1);
|
||||
expect(result.unknownSegments, 0);
|
||||
});
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:meshcore_open/utils/battery_utils.dart';
|
||||
|
||||
void main() {
|
||||
group('battery utils', () {
|
||||
test('nmc range maps 3.0V to 0% and 4.2V to 100%', () {
|
||||
expect(estimateBatteryPercentFromVolts(3.0, 'nmc'), 0);
|
||||
expect(estimateBatteryPercentFromVolts(4.2, 'nmc'), 100);
|
||||
});
|
||||
|
||||
test('lifepo4 range maps 2.6V to 0% and 3.65V to 100%', () {
|
||||
expect(estimateBatteryPercentFromVolts(2.6, 'lifepo4'), 0);
|
||||
expect(estimateBatteryPercentFromVolts(3.65, 'lifepo4'), 100);
|
||||
});
|
||||
|
||||
test('unknown chemistry falls back to nmc mapping', () {
|
||||
expect(
|
||||
estimateBatteryPercentFromMillivolts(3600, 'unknown'),
|
||||
estimateBatteryPercentFromMillivolts(3600, 'nmc'),
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user