From 8085afea4f907dbd2f1ea58e7531c9cc8fd26b79 Mon Sep 17 00:00:00 2001 From: Andrea Busi Date: Tue, 6 Apr 2021 22:07:44 +0200 Subject: [PATCH] refactor: Align strings with Android app --- .../Alerts/AllerteViewController.m | 12 +- ...micNotificationExpandedTableViewCell.swift | 2 +- .../Reports/SegnalazioniViewController.m | 10 +- .../SeismicFiltersViewController.swift | 12 +- .../SeismicNetworkViewModel.swift | 4 +- ...eismicSettingsNetworksViewController.swift | 2 +- .../SettingsRealTimeAlertsViewController.m | 17 +- ...ttingsSeismicNetworkAlertsViewController.m | 16 +- ...ettingsSeismicNetworksViewController.swift | 2 +- .../SettingsUserReportAlertsViewController.m | 6 +- .../Settings/SettingsViewController.swift | 8 +- .../Costanti+Extensions.swift | 19 +- Sources/Earthquake Network/Costanti.h | 3 +- .../Earthquake Network/Models/EQNData.swift | 22 +- .../Models/EQNSeismic.swift | 14 +- .../Server Requests/EQNGeneratoreURLServer.m | 10 +- .../Server Requests/ServerRequest.m | 2 +- .../en.lproj/Localizable.strings | 228 +++++------------- .../es.lproj/Localizable.strings | 227 ++++------------- .../it.lproj/Localizable.strings | 226 ++++------------- 20 files changed, 233 insertions(+), 609 deletions(-) diff --git a/Sources/Earthquake Network/Controllers/Alerts/AllerteViewController.m b/Sources/Earthquake Network/Controllers/Alerts/AllerteViewController.m index c4da318..f67618f 100644 --- a/Sources/Earthquake Network/Controllers/Alerts/AllerteViewController.m +++ b/Sources/Earthquake Network/Controllers/Alerts/AllerteViewController.m @@ -162,8 +162,7 @@ typedef NS_ENUM(NSInteger, AllerteTableRow) { - (void)actionShareApp { - NSString *appName = [NSProcessInfo processInfo].processName; - NSString *content = [NSString stringWithFormat:@"%@ %@ %@",NSLocalizedString(@"Scarica", @""), appName, EQNAppStoreUrl]; + NSString *content = NSLocalizedString(@"main_share_text", @""); UIActivityViewController* activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[content] applicationActivities:nil]; @@ -335,10 +334,11 @@ typedef NS_ENUM(NSInteger, AllerteTableRow) { [[EQNManager defaultManager] sincronizza]; EQNAreaCheck *areaCheck = [EQNManager defaultManager].area_check; - UIAlertController * alertController = [UIAlertController - alertControllerWithTitle:NSLocalizedString(@"Copertura" , @"") - message:[NSString stringWithFormat:@"%@ %@ %@", NSLocalizedString(@"Dispositivi totali", @""), areaCheck.total, NSLocalizedString(@"Dispositivi attivi", @"")] - preferredStyle:UIAlertControllerStyleAlert]; + NSString *message = [NSString stringWithFormat:NSLocalizedString(@"main_areacheck_message", @""), areaCheck.total]; + + UIAlertController * alertController = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"main_coverage" , @"") + message:message + preferredStyle:UIAlertControllerStyleAlert]; [alertController addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"OK" ,@"") style:UIAlertActionStyleDefault diff --git a/Sources/Earthquake Network/Controllers/Alerts/Cells/AlertsSeismicNotificationExpandedTableViewCell.swift b/Sources/Earthquake Network/Controllers/Alerts/Cells/AlertsSeismicNotificationExpandedTableViewCell.swift index 13f1089..f93f8ab 100644 --- a/Sources/Earthquake Network/Controllers/Alerts/Cells/AlertsSeismicNotificationExpandedTableViewCell.swift +++ b/Sources/Earthquake Network/Controllers/Alerts/Cells/AlertsSeismicNotificationExpandedTableViewCell.swift @@ -108,7 +108,7 @@ class AlertsSeismicNotificationExpandedTableViewCell: EQNBaseTableViewCell, MKMa let difference = Int(NSDate().timeIntervalSince(date) / 60.0) notificationDescriptionLabel.text = "" - + NSLocalizedString("Distanza", comment: "") + " \(distanceRound) km" + + NSLocalizedString("official_card_distance", comment: "") + " \(distanceRound) km" + " - " + EQNUtility.formattedString(forTimeDifference: difference) + "\n" + String(format: NSLocalizedString("map_number", comment: ""), "\(counter)") } diff --git a/Sources/Earthquake Network/Controllers/Reports/SegnalazioniViewController.m b/Sources/Earthquake Network/Controllers/Reports/SegnalazioniViewController.m index d52cd4a..921be9f 100644 --- a/Sources/Earthquake Network/Controllers/Reports/SegnalazioniViewController.m +++ b/Sources/Earthquake Network/Controllers/Reports/SegnalazioniViewController.m @@ -123,7 +123,7 @@ if ([self.userDefoult objectForKey:CODE_MESSAGE_EQN]) { NSDate *dateMessage = [self.userDefoult objectForKey:DATA_MESSAGE_EQN]; if ([EQNUtility getDifferenceMinute:dateMessage] <= EQNSendReportDelayBetweenMessages){ - NSString *message = NSLocalizedString(@"Il messaggio è già stato in viato, al momento non è possibile inviare una nuova segnalazione", @""); + NSString *message = NSLocalizedString(@"manual_wait", @""); [self showErrorAlertWithMessage:message]; [self performSelectorOnMainThread:@selector(sincronizzazione) withObject:nil waitUntilDone:YES]; return; @@ -144,7 +144,7 @@ CLGeocoder *geocoder = [CLGeocoder new]; [geocoder reverseGeocodeLocation:[EQNUser defaultUser].lastPosition completionHandler:^(NSArray *placemarks, NSError *error) { if (error) { - NSString *message = NSLocalizedString(@"La tua posizione geografica è sconosciuta e non è possibile segnalare il sisma", @""); + NSString *message = NSLocalizedString(@"manual_nolocation", @""); [self showErrorAlertWithMessage:message]; return; } @@ -163,7 +163,7 @@ dispatch_async(dispatch_get_main_queue(), ^{ UIAlertController *alert = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Segnalazione", @"") - message:NSLocalizedString(@"La tua segnalazione è stata inviata correttamente", @"") + message:NSLocalizedString(@"manual_ok", @"") preferredStyle:UIAlertControllerStyleAlert]; [alert addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"OK", nil) style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) { [self sendComment]; @@ -179,7 +179,7 @@ - (void)sendComment { - UIAlertController *alertController = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Messaggio" , @"") + UIAlertController *alertController = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"manual_sendmessage_button" , @"") message:NSLocalizedString(@"manual_sendmessage", @"") preferredStyle:UIAlertControllerStyleAlert]; [alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) { @@ -193,7 +193,7 @@ [[ServerRequest defaultServerConnectionSingleton] inviaInformazioniAlServerWithURL:url richiesta:EQNTipoChiamataCommentoTerremoto success:^(id result) { dispatch_async(dispatch_get_main_queue(), ^{ - UIAlertController *alert = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Messaggio" , @"") + UIAlertController *alert = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"manual_sendmessage_button" , @"") message:NSLocalizedString(@"manual_message_received", @"") preferredStyle:UIAlertControllerStyleAlert]; [alert addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"OK", nil) style:UIAlertActionStyleCancel handler:nil]]; diff --git a/Sources/Earthquake Network/Controllers/Seismic Networks/Filters/SeismicFiltersViewController.swift b/Sources/Earthquake Network/Controllers/Seismic Networks/Filters/SeismicFiltersViewController.swift index 8d976b0..e6408cb 100644 --- a/Sources/Earthquake Network/Controllers/Seismic Networks/Filters/SeismicFiltersViewController.swift +++ b/Sources/Earthquake Network/Controllers/Seismic Networks/Filters/SeismicFiltersViewController.swift @@ -36,13 +36,13 @@ class SeismicFiltersViewController: UIViewController, UITableViewDelegate, UITab @IBOutlet private weak var closeButton: UIButton! private var settings = [ - SettingItem(type: .slider, title: NSLocalizedString("Magnitudo minima", comment: "")), + SettingItem(type: .slider, title: NSLocalizedString("filter_magnitude", comment: "")), SettingItem(type: .slider, title: NSLocalizedString("Distanza massima", comment: "")), - SettingItem(type: .slider, title: NSLocalizedString("Periodo temporale", comment: "")), - SettingItem(type: .enable, title: NSLocalizedString("Mostra sismi forti a qualsiasi distanza se di", comment: "")), - SettingItem(type: .slider, title: NSLocalizedString("Magnitudo", comment: "")), - SettingItem(type: .enable, title: NSLocalizedString("Mostra sismi di qualsiasi magnitudo se a meno di 50 km", comment: "")), - SettingItem(type: .enable, title: NSLocalizedString("Modifica le impostazioni di notifica dei sismi in accordo con i filtri", comment: "")) + SettingItem(type: .slider, title: NSLocalizedString("filter_timeframe", comment: "")), + SettingItem(type: .enable, title: NSLocalizedString("filter_strong", comment: "")), + SettingItem(type: .slider, title: NSLocalizedString("options_strong_magnitude", comment: "")), + SettingItem(type: .enable, title: NSLocalizedString("filter_near", comment: "")), + SettingItem(type: .enable, title: NSLocalizedString("filter_reflect", comment: "")) ] private let dataSourceMagnitudoMinima = EQNData.magitudoDeboli() private let dataSourceDistanzaMassima = EQNData.raggioSismi() diff --git a/Sources/Earthquake Network/Controllers/Seismic Networks/SeismicNetworkViewModel.swift b/Sources/Earthquake Network/Controllers/Seismic Networks/SeismicNetworkViewModel.swift index 6d02839..524ff45 100644 --- a/Sources/Earthquake Network/Controllers/Seismic Networks/SeismicNetworkViewModel.swift +++ b/Sources/Earthquake Network/Controllers/Seismic Networks/SeismicNetworkViewModel.swift @@ -38,7 +38,7 @@ struct SeismicNetworkViewModel { self.depth = "" } else { self.magnitude = String(format: "%.1f%@", seismic.magnitude.doubleValue, seismic.magnitudeType) - self.depth = String(format: "%@: %.1f km", NSLocalizedString("Profondità", comment: ""), seismic.depth.doubleValue) + self.depth = String(format: "%@ %.1f km", NSLocalizedString("official_depth", comment: ""), seismic.depth.doubleValue) } // we need to check agains null values, because sometimes WS returns invalid dates @@ -52,7 +52,7 @@ struct SeismicNetworkViewModel { // distance let distanceRounded = Int(round(seismic.userDistance)) - self.distance = "\(distanceRounded) km \(NSLocalizedString("dalla tua posizione", comment: ""))" + self.distance = "\(distanceRounded) \(NSLocalizedString("timer_message2_other", comment: ""))" let coordinateText = EQNUtility.coordinateString(coordinate: seismic.coordinate.coordinate) self.coordinate = "\(coordinateText)" diff --git a/Sources/Earthquake Network/Controllers/Seismic Networks/SeismicSettingsNetworksViewController.swift b/Sources/Earthquake Network/Controllers/Seismic Networks/SeismicSettingsNetworksViewController.swift index f07f494..8b693e3 100644 --- a/Sources/Earthquake Network/Controllers/Seismic Networks/SeismicSettingsNetworksViewController.swift +++ b/Sources/Earthquake Network/Controllers/Seismic Networks/SeismicSettingsNetworksViewController.swift @@ -50,7 +50,7 @@ class SeismicSettingsNetworksViewController: UITableViewController { override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { let headerView = tableView.dequeueReusableHeaderFooterView(withIdentifier: SettingSectionHeaderView.Identifier) as! SettingSectionHeaderView - headerView.titleLabel.text = NSLocalizedString("Reti sismiche", comment: ""); + headerView.titleLabel.text = NSLocalizedString("options_agencies", comment: ""); return headerView } diff --git a/Sources/Earthquake Network/Controllers/Settings/SettingsRealTimeAlertsViewController.m b/Sources/Earthquake Network/Controllers/Settings/SettingsRealTimeAlertsViewController.m index 15a58b7..f235ea6 100644 --- a/Sources/Earthquake Network/Controllers/Settings/SettingsRealTimeAlertsViewController.m +++ b/Sources/Earthquake Network/Controllers/Settings/SettingsRealTimeAlertsViewController.m @@ -65,19 +65,12 @@ typedef NS_ENUM(NSInteger, RowIdentifier) { [self setupUI]; self.settings = @[ - [[SettingItem alloc] initWithType:SettingTypeEnable title:NSLocalizedString(@"Suona un allarme quando un sisma è rilevato dalla rete smartphone", @"")], + [[SettingItem alloc] initWithType:SettingTypeEnable title:NSLocalizedString(@"options_notification_enable_alarm", @"")], [[SettingItem alloc] initWithType:SettingTypeEnable title:NSLocalizedString(@"critical_alerts_setting", @"")], - [[SettingItem alloc] initWithType:SettingTypeSegmented title:NSLocalizedString(@"Sismi da notificare", @"") subtitle:NSLocalizedString(@"", @"")], - [[SettingItem alloc] initWithType:SettingTypeSlider title:NSLocalizedString(@"Raggio sismi lievi", @"")], - [[SettingItem alloc] initWithType:SettingTypeSlider title:NSLocalizedString(@"Raggio sismi forti", @"")] + [[SettingItem alloc] initWithType:SettingTypeSegmented title:NSLocalizedString(@"options_notification_eqn_intensity", @"") subtitle:NSLocalizedString(@"", @"")], + [[SettingItem alloc] initWithType:SettingTypeSlider title:NSLocalizedString(@"options_radius_mild", @"")], + [[SettingItem alloc] initWithType:SettingTypeSlider title:NSLocalizedString(@"options_radius_strong", @"")] ]; - - // these settings are disabled because on iOS app are not handled - /* - [[SettingItem alloc] initWithType:SettingTypeEnable title:NSLocalizedString(@"Intervallo allarme", @"") subtitle:NSLocalizedString(@"Non attivare allarmi o notifiche in questo lasso di tempo", @"") icon:nil segue:nil], - [[SettingItem alloc] initWithType:SettingTypeDate title:NSLocalizedString(@"Ora di inizio", @"") subtitle:nil icon:nil segue:nil], - [[SettingItem alloc] initWithType:SettingTypeDate title:NSLocalizedString(@"Ora di fine", @"") subtitle:nil icon:nil segue:nil] - */ self.dataSourceSismi = [EQNData seismicToNotify]; self.dataSourceRaggioSisma = [EQNData raggioSismi]; @@ -142,7 +135,7 @@ typedef NS_ENUM(NSInteger, RowIdentifier) { - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { SettingSectionHeaderView *headerView = [tableView dequeueReusableHeaderFooterViewWithIdentifier:SettingSectionHeaderView.Identifier]; - headerView.titleLabel.text = NSLocalizedString(@"Alerta sismica", @"titolo impostazioni notifiche"); + headerView.titleLabel.text = NSLocalizedString(@"options_alarms", @""); return headerView; } diff --git a/Sources/Earthquake Network/Controllers/Settings/SettingsSeismicNetworkAlertsViewController.m b/Sources/Earthquake Network/Controllers/Settings/SettingsSeismicNetworkAlertsViewController.m index 6614999..edbb324 100644 --- a/Sources/Earthquake Network/Controllers/Settings/SettingsSeismicNetworkAlertsViewController.m +++ b/Sources/Earthquake Network/Controllers/Settings/SettingsSeismicNetworkAlertsViewController.m @@ -49,13 +49,13 @@ typedef NS_ENUM(NSInteger, RowIdentifier) { [self setupUI]; self.settings = @[ - [[SettingItem alloc] initWithType:SettingTypeEnable title:NSLocalizedString(@"Ricevi le notifiche dei sismi rilevati dalle agenzie nazionalie internazionali", @"")], - [[SettingItem alloc] initWithType:SettingTypeMultiValues title:NSLocalizedString(@"Reti sismiche", @"") segue:SegueIdentifierListaEnti], - [[SettingItem alloc] initWithType:SettingTypeSlider title:NSLocalizedString(@"Raggio dalla tua posizione", @"")], - [[SettingItem alloc] initWithType:SettingTypeSlider title:NSLocalizedString(@"Energia sisma", @"")], - [[SettingItem alloc] initWithType:SettingTypeEnable title:NSLocalizedString(@"Terremoti vicini", @"") subtitle:NSLocalizedString(@"options_near_alert", @"")], - [[SettingItem alloc] initWithType:SettingTypeEnable title:NSLocalizedString(@"Terremoti forti", @"") subtitle:NSLocalizedString(@"Notifica sismi forti a qualsiasi distanza se la magnitudo è maggiore a", @"")], - [[SettingItem alloc] initWithType:SettingTypeSlider title:NSLocalizedString(@"Magnitudo", @"")] + [[SettingItem alloc] initWithType:SettingTypeEnable title:NSLocalizedString(@"options_notification_enable_official", @"")], + [[SettingItem alloc] initWithType:SettingTypeMultiValues title:NSLocalizedString(@"options_agencies", @"") segue:SegueIdentifierListaEnti], + [[SettingItem alloc] initWithType:SettingTypeSlider title:NSLocalizedString(@"options_radius", @"")], + [[SettingItem alloc] initWithType:SettingTypeSlider title:NSLocalizedString(@"options_energy", @"")], + [[SettingItem alloc] initWithType:SettingTypeEnable title:NSLocalizedString(@"options_near", @"") subtitle:NSLocalizedString(@"options_near_alert", @"")], + [[SettingItem alloc] initWithType:SettingTypeEnable title:NSLocalizedString(@"options_strong", @"") subtitle:NSLocalizedString(@"options_strong_alert", @"")], + [[SettingItem alloc] initWithType:SettingTypeSlider title:NSLocalizedString(@"options_strong_magnitude", @"")] ]; self.dataSourceMagnitudoDeboli = [EQNData magitudoDeboli]; @@ -120,7 +120,7 @@ typedef NS_ENUM(NSInteger, RowIdentifier) { - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { SettingSectionHeaderView *headerView = [tableView dequeueReusableHeaderFooterViewWithIdentifier:SettingSectionHeaderView.Identifier]; - headerView.titleLabel.text = NSLocalizedString(@"Notifiche da reti sismiche", @"titolo impostazioni notifiche"); + headerView.titleLabel.text = NSLocalizedString(@"options_notification_official", @"titolo impostazioni notifiche"); return headerView; } diff --git a/Sources/Earthquake Network/Controllers/Settings/SettingsSeismicNetworksViewController.swift b/Sources/Earthquake Network/Controllers/Settings/SettingsSeismicNetworksViewController.swift index 5c9191d..50c3712 100644 --- a/Sources/Earthquake Network/Controllers/Settings/SettingsSeismicNetworksViewController.swift +++ b/Sources/Earthquake Network/Controllers/Settings/SettingsSeismicNetworksViewController.swift @@ -25,7 +25,7 @@ class SettingsSeismicNetworksViewController: UITableViewController { override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { let headerView = tableView.dequeueReusableHeaderFooterView(withIdentifier: SettingSectionHeaderView.Identifier) as! SettingSectionHeaderView - headerView.titleLabel.text = NSLocalizedString("Reti sismiche", comment: ""); + headerView.titleLabel.text = NSLocalizedString("options_agencies", comment: ""); return headerView } diff --git a/Sources/Earthquake Network/Controllers/Settings/SettingsUserReportAlertsViewController.m b/Sources/Earthquake Network/Controllers/Settings/SettingsUserReportAlertsViewController.m index cf8ff2c..add986a 100644 --- a/Sources/Earthquake Network/Controllers/Settings/SettingsUserReportAlertsViewController.m +++ b/Sources/Earthquake Network/Controllers/Settings/SettingsUserReportAlertsViewController.m @@ -27,8 +27,8 @@ [self setupUI]; self.settings = @[ - [[SettingItem alloc] initWithType:SettingTypeEnable title:NSLocalizedString(@"Ricevi le notifiche dei sismi segnalati manualmente dagli utenti", @"")], - [[SettingItem alloc] initWithType:SettingTypeSlider title:NSLocalizedString(@"Raggio dalla tua posizione", @"")] + [[SettingItem alloc] initWithType:SettingTypeEnable title:NSLocalizedString(@"options_notification_enable_manual", @"")], + [[SettingItem alloc] initWithType:SettingTypeSlider title:NSLocalizedString(@"options_radius", @"")] ]; [self updateUI]; @@ -72,7 +72,7 @@ - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { SettingSectionHeaderView *headerView = [tableView dequeueReusableHeaderFooterViewWithIdentifier:SettingSectionHeaderView.Identifier]; - headerView.titleLabel.text = NSLocalizedString(@"Notifiche segnalazioni utente", @"titolo impostazioni notifiche"); + headerView.titleLabel.text = NSLocalizedString(@"options_notification_manual", @"titolo impostazioni notifiche"); return headerView; } diff --git a/Sources/Earthquake Network/Controllers/Settings/SettingsViewController.swift b/Sources/Earthquake Network/Controllers/Settings/SettingsViewController.swift index a31b494..16a6f4f 100644 --- a/Sources/Earthquake Network/Controllers/Settings/SettingsViewController.swift +++ b/Sources/Earthquake Network/Controllers/Settings/SettingsViewController.swift @@ -41,9 +41,9 @@ class SettingsViewController: UITableViewController { private var settings: [[SettingItem]] = [ [ - SettingItem(type: .detail, title: NSLocalizedString("Allerta in tempo reale", comment: ""), segue: SegueIdentifierAllertaSismica, emoji: "🚨"), - SettingItem(type: .detail, title: NSLocalizedString("Notifiche da reti sismiche", comment: ""), segue: SegueIdentifierNotificheRetiSismiche, emoji: "🔔"), - SettingItem(type: .detail, title: NSLocalizedString("Notifiche segnalazioni utente", comment: ""), segue: SegueIdentifierNotificheSegnalazioniUtente, emoji: "🔔") + SettingItem(type: .detail, title: NSLocalizedString("options_alarms", comment: ""), segue: SegueIdentifierAllertaSismica, emoji: "🚨"), + SettingItem(type: .detail, title: NSLocalizedString("options_notification_official", comment: ""), segue: SegueIdentifierNotificheRetiSismiche, emoji: "🔔"), + SettingItem(type: .detail, title: NSLocalizedString("options_notification_manual", comment: ""), segue: SegueIdentifierNotificheSegnalazioniUtente, emoji: "🔔") ], [ SettingItem(type: .detail, title: NSLocalizedString("drawer_main_info", comment: ""), segue: SegueIdentifierSafari, icon: "menu-icon-info"), @@ -85,7 +85,7 @@ class SettingsViewController: UITableViewController { var title = "" if let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String { - let version = NSLocalizedString("Versione", comment: "etichetta versione app") + let version = NSLocalizedString("main_version", comment: "etichetta versione app") title = "\(version): \(appVersion)" } diff --git a/Sources/Earthquake Network/Costanti+Extensions.swift b/Sources/Earthquake Network/Costanti+Extensions.swift index 6634249..9dfc777 100644 --- a/Sources/Earthquake Network/Costanti+Extensions.swift +++ b/Sources/Earthquake Network/Costanti+Extensions.swift @@ -11,15 +11,14 @@ import Foundation extension EQNFiltroMappa: Comparable { var title: String { switch self { - case .dieciMinuti: return NSLocalizedString("Dieci minuti", comment: "") - case .unOra: return NSLocalizedString("Un ora", comment: "") - case .dueOre: return NSLocalizedString("Due ore", comment: "") - case .seiOre: return NSLocalizedString("Sei ore", comment: "") - case .dodiciOre: return NSLocalizedString("Dodici ore", comment: "") - case .unGiorno: return NSLocalizedString("Un giorno", comment: "") - case .unaSettimana: return NSLocalizedString("Ultima settimana", comment: "") - case .unMese: return NSLocalizedString("Ultimo mese", comment: "") - case .unAnno: return NSLocalizedString("Ultimo anno", comment: "") + case .dieciMinuti: return NSLocalizedString("report_timeframe_ten_minutes", comment: "") + case .unOra: return NSLocalizedString("eqn_timeframe_last_hour", comment: "") + case .dueOre: return NSLocalizedString("report_timeframe_two_hours", comment: "") + case .seiOre: return NSLocalizedString("report_timeframe_six_hours", comment: "") + case .dodiciOre: return NSLocalizedString("report_timeframe_twelve_hours", comment: "") + case .unGiorno: return NSLocalizedString("eqn_timeframe_last_day", comment: "") + case .unaSettimana: return NSLocalizedString("eqn_timeframe_last_week", comment: "") + case .unMese: return NSLocalizedString("eqn_timeframe_last_month", comment: "") } } @@ -33,7 +32,6 @@ extension EQNFiltroMappa: Comparable { case .unGiorno: return 1440 case .unaSettimana: return 10080 case .unMese: return 44640 - case .unAnno: return 525600 } } @@ -43,7 +41,6 @@ extension EQNFiltroMappa: Comparable { var components = calendar.dateComponents([.year, .month, .day, .hour, .minute], from: now) switch self { - case .unAnno: components.year! -= 1 case .unMese: components.month! -= 1 case .unaSettimana: components.day! -= 7 case .unGiorno: components.day! -= 1 diff --git a/Sources/Earthquake Network/Costanti.h b/Sources/Earthquake Network/Costanti.h index 932a9dc..e4798c5 100644 --- a/Sources/Earthquake Network/Costanti.h +++ b/Sources/Earthquake Network/Costanti.h @@ -123,8 +123,7 @@ typedef NS_CLOSED_ENUM(NSInteger, EQNFiltroMappa) { EQNFiltroMappaDodiciOre, EQNFiltroMappaUnGiorno, EQNFiltroMappaUnaSettimana, - EQNFiltroMappaUnMese, - EQNFiltroMappaUnAnno + EQNFiltroMappaUnMese }; // Tipologie mappa diff --git a/Sources/Earthquake Network/Models/EQNData.swift b/Sources/Earthquake Network/Models/EQNData.swift index 3412012..35b9a5f 100644 --- a/Sources/Earthquake Network/Models/EQNData.swift +++ b/Sources/Earthquake Network/Models/EQNData.swift @@ -11,13 +11,13 @@ import Foundation @objc class EQNData: NSObject { @objc public static let MaxRaggioSisma = "100000" - @objc public static let DefaultRaggioSisma = EQNGenericValue(value:MaxRaggioSisma, display:"Qualsiasi distanza") + @objc public static let DefaultRaggioSisma = EQNGenericValue(value:MaxRaggioSisma, display:"radius_any_distance") @objc public static let DefaultMagitudoDebole = EQNGenericValue(value:"2.0", display:"Magnitudo >= 2.0") @objc public static let DefaultMagitudoForte = EQNGenericValue(value:"5.5", display:"Magnitudo >= 5.5") - @objc public static let DefaultSeismicToNotify = EQNGenericValue(value: "0", display: "Qualsiasi intensità") + @objc public static let DefaultSeismicToNotify = EQNGenericValue(value: "0", display: "eqn_intensity_any") @objc public static let DefaultDoNotDisturbStartTime = 8 @objc public static let DefaultDoNotDisturbEndTime = 22 - @objc public static let DefaultPeriodoTemporale = EQNGenericValue(value: "1440", display: "Un giorno") + @objc public static let DefaultPeriodoTemporale = EQNGenericValue(value: "1440", display: "report_timeframe_one_day") // MARK: - Public @@ -34,7 +34,7 @@ import Foundation EQNGenericValue(value:"1000", display:"1000 km"), EQNGenericValue(value:"2000", display:"2000 km"), EQNGenericValue(value:"4000", display:"4000 km"), - EQNGenericValue(value:Self.MaxRaggioSisma, display:"Qualsiasi distanza"), + EQNGenericValue(value:Self.MaxRaggioSisma, display:"radius_any_distance"), ] } @@ -135,8 +135,8 @@ import Foundation @objc class func seismicToNotify() -> [EQNGenericValue] { [ - EQNGenericValue(value:"0", display:"Qualsiasi intensità"), - EQNGenericValue(value:"1", display:"Solo sismi forti") + EQNGenericValue(value:"0", display:"eqn_intensity_any"), + EQNGenericValue(value:"1", display:"eqn_intensity_strong") ] } @@ -179,11 +179,11 @@ import Foundation @objc class func periodiTemporali() -> [EQNGenericValue] { [ EQNGenericValue(value: "10", display: "10 minuti"), - EQNGenericValue(value: "60", display: "Un ora"), - EQNGenericValue(value: "120", display: "Due ore"), - EQNGenericValue(value: "360", display: "Sei ore"), - EQNGenericValue(value: "720", display: "Dodici ore"), - EQNGenericValue(value: "1440", display: "Un giorno") + EQNGenericValue(value: "60", display: "report_timeframe_one_hour"), + EQNGenericValue(value: "120", display: "report_timeframe_two_hours"), + EQNGenericValue(value: "360", display: "report_timeframe_six_hours"), + EQNGenericValue(value: "720", display: "report_timeframe_twelve_hours"), + EQNGenericValue(value: "1440", display: "report_timeframe_one_day") ] } diff --git a/Sources/Earthquake Network/Models/EQNSeismic.swift b/Sources/Earthquake Network/Models/EQNSeismic.swift index 259b348..b437e66 100644 --- a/Sources/Earthquake Network/Models/EQNSeismic.swift +++ b/Sources/Earthquake Network/Models/EQNSeismic.swift @@ -67,7 +67,7 @@ import Foundation return } - if savedValue.lowercased() == NSLocalizedString("Qualsiasi distanza", comment: "").lowercased() { + if savedValue.lowercased() == NSLocalizedString("radius_any_distance", comment: "").lowercased() { print("[EQNSeismic] Distanza massima: trovato qualsiasi distanza, salvo valore") UserDefaults.standard.set("100000", forKey: EQN_DISTANZA_MASSIMA) } else { @@ -83,17 +83,17 @@ import Foundation } var convertedValue: String? - if savedValue.lowercased() == NSLocalizedString("Un giorno", comment: "").lowercased() { + if savedValue.lowercased() == NSLocalizedString("report_timeframe_one_day", comment: "").lowercased() { convertedValue = "1440" - } else if savedValue.lowercased() == NSLocalizedString("Dodici ore", comment: "").lowercased() { + } else if savedValue.lowercased() == NSLocalizedString("report_timeframe_twelve_hours", comment: "").lowercased() { convertedValue = "720" - } else if savedValue.lowercased() == NSLocalizedString("Sei ore", comment: "").lowercased() { + } else if savedValue.lowercased() == NSLocalizedString("report_timeframe_six_hours", comment: "").lowercased() { convertedValue = "360" - } else if savedValue.lowercased() == NSLocalizedString("Due ore", comment: "").lowercased() { + } else if savedValue.lowercased() == NSLocalizedString("report_timeframe_two_hours", comment: "").lowercased() { convertedValue = "120" - } else if savedValue.lowercased() == NSLocalizedString("Un ora", comment: "").lowercased() { + } else if savedValue.lowercased() == NSLocalizedString("report_timeframe_one_hour", comment: "").lowercased() { convertedValue = "60" - } else if savedValue.lowercased() == NSLocalizedString("Dieci minuti", comment: "").lowercased() { + } else if savedValue.lowercased() == NSLocalizedString("report_timeframe_ten_minutes", comment: "").lowercased() { convertedValue = "10" } diff --git a/Sources/Earthquake Network/Server Requests/EQNGeneratoreURLServer.m b/Sources/Earthquake Network/Server Requests/EQNGeneratoreURLServer.m index 06665e3..3c7b861 100644 --- a/Sources/Earthquake Network/Server Requests/EQNGeneratoreURLServer.m +++ b/Sources/Earthquake Network/Server Requests/EQNGeneratoreURLServer.m @@ -205,27 +205,27 @@ // per sicurezza, però, teniamo i controlli NSString *n_o_strmag = [NSString stringWithFormat:@"&n_o_strmag=%@", [EQNNotificheReteSismiche sharedInstance].energiaTerremotiForti]; - if ([[EQNAllertaSismica sharedInstance].sismiDaNotificare isEqualToString:NSLocalizedString(@"Qualsiasi intensità", @"")]) { + if ([[EQNAllertaSismica sharedInstance].sismiDaNotificare isEqualToString:NSLocalizedString(@"eqn_intensity_any", @"")]) { n_o_strmag = @"&n_o_strmag=0"; } NSString *r_e_mild = [NSString stringWithFormat:@"&r_e_mild=%@", [EQNAllertaSismica sharedInstance].raggioSismiLievi]; - if ([[EQNAllertaSismica sharedInstance].raggioSismiLievi isEqualToString:NSLocalizedString(@"Qualsiasi distanza", @"")]) { + if ([[EQNAllertaSismica sharedInstance].raggioSismiLievi isEqualToString:NSLocalizedString(@"radius_any_distance", @"")]) { r_e_mild = @"&r_e_mild=100000"; } NSString *r_e_strong = [NSString stringWithFormat:@"&r_e_strong=%@", [EQNAllertaSismica sharedInstance].raggioSismiForti]; - if ([[EQNAllertaSismica sharedInstance].raggioSismiForti isEqualToString:NSLocalizedString(@"Qualsiasi distanza", @"")]) { + if ([[EQNAllertaSismica sharedInstance].raggioSismiForti isEqualToString:NSLocalizedString(@"radius_any_distance", @"")]) { r_e_strong = @"&r_e_strong=100000"; } NSString *r_m = [NSString stringWithFormat:@"&r_m=%@", [EQNNotificheSegnalazioniUtente sharedInstance].distanzaPosizione]; - if ([[EQNNotificheSegnalazioniUtente sharedInstance].distanzaPosizione isEqualToString:NSLocalizedString(@"Qualsiasi distanza", @"")]) { + if ([[EQNNotificheSegnalazioniUtente sharedInstance].distanzaPosizione isEqualToString:NSLocalizedString(@"radius_any_distance", @"")]) { r_m = @"&r_m=100000"; } NSString *r_o = [NSString stringWithFormat:@"&r_o=%@", [EQNNotificheReteSismiche sharedInstance].distanzaPosizione]; - if ([[EQNNotificheReteSismiche sharedInstance].distanzaPosizione isEqualToString:NSLocalizedString(@"Qualsiasi distanza", @"")]) { + if ([[EQNNotificheReteSismiche sharedInstance].distanzaPosizione isEqualToString:NSLocalizedString(@"radius_any_distance", @"")]) { r_o = @"&r_o=100000"; } diff --git a/Sources/Earthquake Network/Server Requests/ServerRequest.m b/Sources/Earthquake Network/Server Requests/ServerRequest.m index e85e0e7..34d393b 100644 --- a/Sources/Earthquake Network/Server Requests/ServerRequest.m +++ b/Sources/Earthquake Network/Server Requests/ServerRequest.m @@ -149,7 +149,7 @@ } else { NSLog(@"[ServerRequest] Unable to create string with response: %@", [jsonError description]); - NSError *error = [NSError errorWithDomain:NSMachErrorDomain code:0 userInfo:@{MESSAGGIO : NSLocalizedString(@"Username e Password sbagliati", @"messaggio errore inserimento credenziali")}]; + NSError *error = [NSError errorWithDomain:NSMachErrorDomain code:0 userInfo:@{MESSAGGIO : NSLocalizedString(@"manual_error", @"messaggio errore inserimento credenziali")}]; onFailure(error); dispatch_async(dispatch_get_main_queue(), ^{ [UIApplication sharedApplication].networkActivityIndicatorVisible = NO; diff --git a/Sources/Earthquake Network/en.lproj/Localizable.strings b/Sources/Earthquake Network/en.lproj/Localizable.strings index efcfb33..d621ba1 100644 --- a/Sources/Earthquake Network/en.lproj/Localizable.strings +++ b/Sources/Earthquake Network/en.lproj/Localizable.strings @@ -1,160 +1,3 @@ -/* titolo impostazioni notifiche */ -"Alerta sismica" = "Seismic alert"; - -/* voce menu */ -"Allerta in tempo reale" = "Real-time alert"; - -/* No comment provided by engineer. */ -"Altro" = "Other"; - -/* No comment provided by engineer. */ -"Attenzione" = "Attention"; - -/* No comment provided by engineer. */ -"Copertura" = "Coverage"; - -/* No comment provided by engineer. */ -"dalla tua posizione" = "from your location"; - -/* No comment provided by engineer. */ -"Dispositivi attivi" = "smartphones monitoring in real time for earthquakes. To improve detection share the app with your family and friends, thanks!"; - -/* No comment provided by engineer. */ -"Dispositivi totali" = "At this time, in your area there are"; - -/* voce menu */ -"Distanza" = "Distance"; - -/* voce menu */ -"Energia sisma" = "Earthquake energy"; - -/* No comment provided by engineer. */ -"Il messaggio è già stato in viato, al momento non è possibile inviare una nuova segnalazione" = "The report has already been sent, at the moment it is not possible to send a new report"; - -/* voce menu */ -"Intervallo allarme" = "Alarm interval"; - -/* No comment provided by engineer. */ -"La tua posizione geografica è sconosciuta e non è possibile segnalare il sisma" = "Your location is unknown and the earthquake cannot be reported"; - -/* No comment provided by engineer. */ -"La tua segnalazione è stata inviata correttamente" = "Your report has been sent correctly"; - -/* voce menu */ -"Magnitudo" = "Magnitude"; - -/* No comment provided by engineer. */ -"Messaggio" = "Message"; - -/* messaggio assenza connesione */ -"Nessuna connessione" = "No Internet connection"; - -/* No comment provided by engineer. */ -"Non hai seleziato nessuna nazione" = "You have not selected any country"; - -/* voce menu */ -"Notifica sismi forti a qualsiasi distanza se la magnitudo è maggiore a" = "Notify strong earthquakes at any distance if the magnitude is greater than"; - -/* titolo impostazioni notifiche - voce menu */ -"Notifiche da reti sismiche" = "Notifications from seismic networks"; - -/* titolo impostazioni notifiche - voce menu */ -"Notifiche segnalazioni utente" = "Notification of user reports"; - -/* titolo impostazioni notifiche - voce menu */ -"Notifiche sismi" = "Earthquake notifications"; - -/* No comment provided by engineer. */ -"OK" = "OK"; - -/* voce menu */ -"Ora di fine" = "Ending time"; - -/* voce menu */ -"Ora di inizio" = "Starting time"; - -/* No comment provided by engineer. */ -"pagerai al mese:" = "you will pay per month:"; - -/* No comment provided by engineer. */ -"pagerai all'anno:" = "you will pay per year:"; - -/* No comment provided by engineer. */ -"Profondità" = "Depth"; - -/* voce elenco raggio sismi */ -"Qualsiasi distanza" = "Any distance"; - -/* voce menu */ -"Qualsiasi intensità" = "Any intensity"; - -/* voce menu */ -"Raggio dalla tua posizione" = "Radius from your location"; - -/* voce menu */ -"Raggio sismi forti" = "Radius strong earthquakes"; - -/* voce menu */ -"Raggio sismi lievi" = "Radius mild earthquakes"; - -/* titolo impostazioni notifiche - voce menu */ -"Reti sismiche" = "Seismic networks"; - -/* voce menu */ -"Ricevi le notifiche dei sismi rilevati dalle agenzie nazionalie internazionali" = "Receive notifications of earthquakes detected by national and international seismic agencies"; - -/* voce menu */ -"Ricevi le notifiche dei sismi segnalati manualmente dagli utenti" = "Receive notifications of earthquakes manually reported by users"; - -/* titolo navigation bar */ -"Rilevatore Terremoti" = "Earthquake Network"; - -/* No comment provided by engineer. */ -"Scarica" = "Download"; - -/* No comment provided by engineer. */ -"Segnalazione" = "Report"; - -/* No comment provided by engineer. */ -"Seleziona" = "Select"; - -/* voce menu */ -"Sismi da notificare" = "Earthquakes to report"; - -/* voce menu */ -"Solo sismi forti" = "Only strong earthquakes"; - -/* voce menu */ -"Terremoti forti" = "Strong earthquakes"; - -/* voce menu */ -"Terremoti vicini" = "Nearby earthquakes"; - -/* No comment provided by engineer. */ -"Ultim'ora" = "Last hour"; - -/* No comment provided by engineer. */ -"Ultima settimana" = "Last week"; - -/* No comment provided by engineer. */ -"Ultimo anno" = "Last year"; - -/* No comment provided by engineer. */ -"Ultimo giorno" = "Last day"; - -/* No comment provided by engineer. */ -"Ultimo mese" = "Last month"; - -/* messaggio errore inserimento credenziali */ -"Username e Password sbagliati" = "Username e Password sbagliati"; - -/* etichetta versione app */ -"Versione" = "Version"; - // Nazioni "Stati Uniti" = "United States"; "Italia" = "Italy"; @@ -240,24 +83,13 @@ "Magnitudo >= 7.0" = "Magnitude >= 7.0"; "Magnitudo >= 7.5" = "Magnitude >= 7.5"; -"Suona un allarme quando un sisma è rilevato dalla rete smartphone" = "Activate an alarm when an earthquake is detected by the smartphone network"; -"Attiva l'allerta anche su i sismi per i quali non è possibile stimare l'intensità" = "Enable the alert even for earthquakes for which it is not possible to estimate the intensity"; -"Non attivare allarmi o notifiche in questo lasso di tempo" = "Do not disturb with alert or notifications in this time frame"; -"critical_alerts_setting" = "Critical alerts. Make a sound also in do not disturb mode"; // Filtri sismi -"Magnitudo minima" = "Minumum magnitude"; -"Distanza massima" = "Maximum distance"; -"Periodo temporale" = "Time frame"; -"Un giorno" = "One day"; -"Dodici ore" = "Twelve hours"; -"Sei ore" = "Six hours"; -"Due ore" = "Two hours"; -"Un ora" = "One hour"; -"Dieci minuti" = "Ten minutes"; -"Mostra sismi forti a qualsiasi distanza se di" = "Show strong earthquakes at any distance if"; -"Mostra sismi di qualsiasi magnitudo se a meno di 50 km" = "Show quakes of any magnitude if closer than 50 km"; -"Modifica le impostazioni di notifica dei sismi in accordo con i filtri" = "Change the earthquake notification settings according to the filters"; +"filter_magnitude" = "Minumum magnitude"; +"filter_timeframe" = "Time frame"; +"filter_strong" = "Show strong earthquakes at any distance if"; +"filter_near" = "Show quakes of any magnitude if closer than 50 km"; +"filter_reflect" = "Change the earthquake notification settings according to the filters"; "main_understood" = "Understood"; "options_low_magnitude" = "Beware that not all seismic networks provide earthquake data below magnitude 2.0. Moreover, you significantly increase the data transfer and the battery usage due to notifications. Unless your device is recently manufactured, you will also notice a general slowdown."; "share_radius100" = "in a radius of 100km"; @@ -339,6 +171,45 @@ "official_select_country_placeholder" = "Select the country"; "options_cancel" = "Cancel"; "options_near_alert" = "Notify earthquakes of any magnitude if the distance is less than 50 km"; +"options_alarms" = "Real-time alert"; +"options_notification_enable_alarm" = "Activate an alarm when an earthquake is detected by the smartphone network"; +"options_notification_eqn_intensity" = "Earthquakes to report"; +"eqn_intensity_any" = "Any intensity"; +"eqn_intensity_strong" = "Only strong earthquakes"; +"options_radius_mild" = "Radius mild earthquakes"; +"options_radius_strong" = "Radius strong earthquakes"; +"options_notification_official" = "Notifications from seismic networks"; +"options_notification_enable_official" = "Receive notifications of earthquakes detected by national and international seismic agencies"; +"options_agencies" = "Seismic networks"; +"options_radius" = "Radius from your location"; +"options_energy" = "Earthquake energy"; +"options_near" = "Nearby earthquakes"; +"options_strong" = "Strong earthquakes"; +"options_strong_alert" = "Notify strong earthquakes at any distance if the magnitude is greater than"; +"options_strong_magnitude" = "Magnitude"; +"options_notification_manual" = "Notification of user reports"; +"options_notification_enable_manual" = "Receive notifications of earthquakes manually reported by users"; +"main_areacheck_message" = "At this time, in your area there are %@ smartphones monitoring in real time for earthquakes. To improve detection share the app with your family and friends, thanks!"; +"main_version" = "Version"; +"manual_error" = "Username e Password sbagliati "; +"eqn_timeframe_last_month" = "Last month"; +"eqn_timeframe_last_day" = "Last day"; +"eqn_timeframe_last_week" = "Last week"; +"eqn_timeframe_last_hour" = "Last hour"; +"app_name" = "Earthquake Network"; +"official_depth" = "Depth:"; +"manual_nolocation" = "Your location is unknown and the earthquake cannot be reported"; +"manual_wait" = "The report has already been sent, at the moment it is not possible to send a new report"; +"manual_ok" = "Your report has been sent correctly"; +"report_timeframe_one_day" = "One day"; +"report_timeframe_twelve_hours" = "Twelve hours"; +"report_timeframe_six_hours" = "Six hours"; +"report_timeframe_two_hours" = "Two hours"; +"report_timeframe_one_hour" = "One hour"; +"report_timeframe_ten_minutes" = "Ten minutes"; +"radius_any_distance" = "Any distance"; +"timer_message2_other" = "km from your location"; + // da tradurre @@ -383,8 +254,19 @@ "official_card_distance" = "Distance"; "official_card_coordinates" = "Coordinates"; "official_card_population" = "Population"; +"main_share_text" = "Hi! I suggest you the app of the Earthquake Network project with real time alerts. Download from https://sismo.app/download/ #earthquake @SismoDetector"; +"manual_sendmessage_button" = "Send the message"; + // ios only "Abbonamenti annuali" = "Annual subscriptions"; "Abbonamenti mensili" = "Monthly subscriptions"; +"OK" = "OK"; +"critical_alerts_setting" = "Critical alerts. Make a sound also in do not disturb mode"; +"pagerai al mese:" = "you will pay per month:"; +"pagerai all'anno:" = "you will pay per year:"; +"Attenzione" = "Attention"; +"Nessuna connessione" = "No Internet connection"; +"Non hai seleziato nessuna nazione" = "You have not selected any country"; +"Segnalazione" = "Report"; diff --git a/Sources/Earthquake Network/es.lproj/Localizable.strings b/Sources/Earthquake Network/es.lproj/Localizable.strings index db448e2..6835f95 100644 --- a/Sources/Earthquake Network/es.lproj/Localizable.strings +++ b/Sources/Earthquake Network/es.lproj/Localizable.strings @@ -1,161 +1,3 @@ - -/* titolo impostazioni notifiche */ -"Alerta sismica" = "Alerta sismica"; - -/* voce menu */ -"Allerta in tempo reale" = "Alerta en tiempo real"; - -/* No comment provided by engineer. */ -"Altro" = "Otro"; - -/* No comment provided by engineer. */ -"Attenzione" = "Atención"; - -/* No comment provided by engineer. */ -"Copertura" = "Cobertura"; - -/* No comment provided by engineer. */ -"dalla tua posizione" = "desde tu ubicación"; - -/* No comment provided by engineer. */ -"Dispositivi attivi" = "smartphones que están monitoreando los sismos en tiempo real. Para mejorar la detección comparta la app con tus amigos y familia, gracias!"; - -/* No comment provided by engineer. */ -"Dispositivi totali" = "En este momento, en tu área hay"; - -/* voce menu */ -"Distanza" = "Distancia"; - -/* voce menu */ -"Energia sisma" = "Energía del sismos"; - -/* No comment provided by engineer. */ -"Il messaggio è già stato in viato, al momento non è possibile inviare una nuova segnalazione" = "El informe ya ha sido enviado, por el momento no es posible enviar un nuevo informe."; - -/* voce menu */ -"Intervallo allarme" = "Intervalo de alarma"; - -/* No comment provided by engineer. */ -"La tua posizione geografica è sconosciuta e non è possibile segnalare il sisma" = "Tu ubicación es desconocida y el sismos no puede ser reportado"; - -/* No comment provided by engineer. */ -"La tua segnalazione è stata inviata correttamente" = "Tu informe ha sido enviado correctamente"; - -/* voce menu */ -"Magnitudo" = "Magnitud"; - -/* No comment provided by engineer. */ -"Messaggio" = "Mensaje"; - -/* messaggio assenza connesione */ -"Nessuna connessione" = "No hay conexión a internet"; - -/* No comment provided by engineer. */ -"Non hai seleziato nessuna nazione" = "No has seleccionado ningún país"; - -/* voce menu */ -"Notifica sismi forti a qualsiasi distanza se la magnitudo è maggiore a" = "Notificar sismos fuertes a cualquier distancia si la magnitud es mayor que"; - -/* titolo impostazioni notifiche - voce menu */ -"Notifiche da reti sismiche" = "Notificaciones desde redes sísmicas"; - -/* titolo impostazioni notifiche - voce menu */ -"Notifiche segnalazioni utente" = "Notificaciones desde informes de usuario"; - -/* titolo impostazioni notifiche - voce menu */ -"Notifiche sismi" = "Notificaciones de sismos"; - -/* No comment provided by engineer. */ -"OK" = "OK"; - -/* voce menu */ -"Ora di fine" = "Hora de inicio"; - -/* voce menu */ -"Ora di inizio" = "Hora de fine"; - -/* No comment provided by engineer. */ -"pagerai al mese:" = "pagaras por mes:"; - -/* No comment provided by engineer. */ -"pagerai all'anno:" = "pagaras por año:"; - -/* No comment provided by engineer. */ -"Profondità" = "Profundidad"; - -/* voce elenco raggio sismi */ -"Qualsiasi distanza" = "Cualquier distancia"; - -/* voce menu */ -"Qualsiasi intensità" = "Cualquier intensidad"; - -/* voce menu */ -"Raggio dalla tua posizione" = "Radio desde tu ubicación"; - -/* voce menu */ -"Raggio sismi forti" = "Radio sismos fuertes"; - -/* voce menu */ -"Raggio sismi lievi" = "Radio sismos leves"; - -/* titolo impostazioni notifiche - voce menu */ -"Reti sismiche" = "Redes sismicas"; - -/* voce menu */ -"Ricevi le notifiche dei sismi rilevati dalle agenzie nazionalie internazionali" = "Recibe notificaciones de sismos detectados por las agencias sísmicas nacionales e internacionales."; - -/* voce menu */ -"Ricevi le notifiche dei sismi segnalati manualmente dagli utenti" = "Recibe notificaciones de sismos reportados manualmente por los usuarios."; - -/* titolo navigation bar */ -"Rilevatore Terremoti" = "Sismo Detector"; - -/* No comment provided by engineer. */ -"Scarica" = "Download"; - -/* No comment provided by engineer. */ -"Segnalazione" = "Informe"; - -/* No comment provided by engineer. */ -"Seleziona" = "Seleccionar"; - -/* voce menu */ -"Sismi da notificare" = "Sismos para informar"; - -/* voce menu */ -"Solo sismi forti" = "Solo sismos fuertes"; - -/* voce menu */ -"Terremoti forti" = "Sismos fuertes"; - -/* voce menu */ -"Terremoti vicini" = "Sismos cercanos"; - -/* No comment provided by engineer. */ -"Ultim'ora" = "Ultima hora"; - -/* No comment provided by engineer. */ -"Ultima settimana" = "Ultima semana"; - -/* No comment provided by engineer. */ -"Ultimo anno" = "Ultima año"; - -/* No comment provided by engineer. */ -"Ultimo giorno" = "Ultimo dia"; - -/* No comment provided by engineer. */ -"Ultimo mese" = "Ultimo mes"; - -/* messaggio errore inserimento credenziali */ -"Username e Password sbagliati" = "Username e Password sbagliati"; - -/* etichetta versione app */ -"Versione" = "Versión"; - // Nazioni "Stati Uniti" = "Estados Unidos"; "Italia" = "Italia"; @@ -241,24 +83,13 @@ "Magnitudo >= 7.0" = "Magnitud >= 7.0"; "Magnitudo >= 7.5" = "Magnitud >= 7.5"; -"Suona un allarme quando un sisma è rilevato dalla rete smartphone" = "Activa una alarma cuando la red de teléfonos inteligentes detecta un sismo"; -"Attiva l'allerta anche su i sismi per i quali non è possibile stimare l'intensità" = "También activa la alerta de sismos para los cuales no es posible estimar la intensidad."; -"Non attivare allarmi o notifiche in questo lasso di tempo" = "No molestar con alertas o notificaciones en este período de tiempo"; -"critical_alerts_setting" = "Alertas críticas. Emite un sonido también en el modo no molestar"; // Filtri sismi -"Magnitudo minima" = "Magnitud mínima"; -"Distanza massima" = "Distancia maxima"; -"Periodo temporale" = "Periodo de tiempo"; -"Un giorno" = "Un dia"; -"Dodici ore" = "Doce horas"; -"Sei ore" = "Seis horas"; -"Due ore" = "Dos horas"; -"Un ora" = "Una hora"; -"Dieci minuti" = "Diez minutos"; -"Mostra sismi forti a qualsiasi distanza se di" = "Mostrar sismos fuertes a cualquier distancia si"; -"Mostra sismi di qualsiasi magnitudo se a meno di 50 km" = "Muestra sismos de cualquier magnitud si están a menos de 50 km"; -"Modifica le impostazioni di notifica dei sismi in accordo con i filtri" = "Cambia las notificaciones de sismo de acuerdo a los filtros"; +"filter_magnitude" = "Magnitud mínima"; +"filter_timeframe" = "Periodo de tiempo"; +"filter_strong" = "Mostrar sismos fuertes a cualquier distancia si"; +"filter_near" = "Muestra sismos de cualquier magnitud si están a menos de 50 km"; +"filter_reflect" = "Cambia las notificaciones de sismo de acuerdo a los filtros"; "main_understood" = "Entendido"; "options_low_magnitude" = "Tenga en cuenta que no todas las redes sísmicas proporcionan datos para sismos de magnitud inferior a 2.0. Además, aumenta significativamente la transferencia de datos con el servidor y el uso de la batería debido a la mayor cantidad de notificaciones. Si tu dispositivo no se ha fabricado recientemente, también notará una desaceleración general de la aplicación."; "share_radius100" = "en un radio de 100km"; @@ -340,8 +171,54 @@ "official_select_country_placeholder" = "Selecciona el pais"; "options_cancel" = "Cancelar"; "options_near_alert" = "Notificar sismos de cualquier magnitud si la distancia es inferior a 50 km"; +"options_alarms" = "Alerta en tiempo real"; +"options_notification_enable_alarm" = "Activa una alarma cuando la red de teléfonos inteligentes detecta un sismo"; +"options_notification_eqn_intensity" = "Sismos para informar"; +"eqn_intensity_any" = "Cualquier intensidad"; +"eqn_intensity_strong" = "Solo sismos fuertes"; +"options_radius_mild" = "Radio sismos leves"; +"options_radius_strong" = "Radio sismos fuertes"; +"options_notification_official" = "Notificaciones desde redes sísmicas"; +"options_notification_enable_official" = "Recibe notificaciones de sismos detectados por las agencias sísmicas nacionales e internacionales."; +"options_agencies" = "Redes sismicas"; +"options_radius" = "Radio desde tu ubicación"; +"options_energy" = "Energía del sismos"; +"options_near" = "Sismos cercanos"; +"options_strong" = "Sismos fuertes"; +"options_strong_alert" = "Notificar sismos fuertes a cualquier distancia si la magnitud es mayor que"; +"options_strong_magnitude" = "Magnitud"; +"options_notification_manual" = "Notificaciones desde informes de usuario"; +"options_notification_enable_manual" = "Recibe notificaciones de sismos reportados manualmente por los usuarios."; +"main_areacheck_message" = "En este momento, en tu área hay %@ smartphones que están monitoreando los sismos en tiempo real. Para mejorar la detección comparta la app con tus amigos y familia, gracias!"; +"main_version" = "Versión"; +"manual_error" = "Username e Password sbagliati "; +"eqn_timeframe_last_month" = "Ultimo mes"; +"eqn_timeframe_last_day" = "Ultimo dia"; +"eqn_timeframe_last_week" = "Ultima semana"; +"eqn_timeframe_last_hour" = "Ultima hora"; +"app_name" = "Sismo Detector"; +"official_depth" = "Profundidad:"; +"manual_nolocation" = "Tu ubicación es desconocida y el sismos no puede ser reportado"; +"manual_wait" = "El informe ya ha sido enviado, por el momento no es posible enviar un nuevo informe."; +"manual_ok" = "Tu informe ha sido enviado correctamente"; +"report_timeframe_one_day" = "Un dia"; +"report_timeframe_twelve_hours" = "Doce horas"; +"report_timeframe_six_hours" = "Seis horas"; +"report_timeframe_two_hours" = "Dos horas"; +"report_timeframe_one_hour" = "Una hora"; +"report_timeframe_ten_minutes" = "Diez minutos"; +"radius_any_distance" = "Cualquier distancia"; +"timer_message2_other" = "km desde tu ubicación"; + // ios only "Abbonamenti annuali" = "Suscripciones anuales"; "Abbonamenti mensili" = "Suscripciones mensuales"; - +"OK" = "OK"; +"critical_alerts_setting" = "Alertas críticas. Emite un sonido también en el modo no molestar"; +"pagerai al mese:" = "pagaras por mes:"; +"pagerai all'anno:" = "pagaras por año:"; +"Attenzione" = "Atención"; +"Nessuna connessione" = "No hay conexión a internet"; +"Non hai seleziato nessuna nazione" = "No has seleccionado ningún país"; +"Segnalazione" = "Informe"; diff --git a/Sources/Earthquake Network/it.lproj/Localizable.strings b/Sources/Earthquake Network/it.lproj/Localizable.strings index 99ec142..3c68fb3 100644 --- a/Sources/Earthquake Network/it.lproj/Localizable.strings +++ b/Sources/Earthquake Network/it.lproj/Localizable.strings @@ -1,160 +1,3 @@ -/* titolo impostazioni notifiche */ -"Alerta sismica" = "Alerta sismica"; - -/* voce menu */ -"Allerta in tempo reale" = "Allerta in tempo reale"; - -/* No comment provided by engineer. */ -"Altro" = "Altro"; - -/* No comment provided by engineer. */ -"Attenzione" = "Attenzione"; - -/* No comment provided by engineer. */ -"Copertura" = "Copertura"; - -/* No comment provided by engineer. */ -"dalla tua posizione" = "dalla tua posizione"; - -/* No comment provided by engineer. */ -"Dispositivi attivi" = "smartphone che stanno monitorando in tempo reale eventuali sismi. Condividi la app per migliorare il rilevamento."; - -/* No comment provided by engineer. */ -"Dispositivi totali" = "In questo momento, nella tua zona ci sono"; - -/* voce menu */ -"Distanza" = "Distanza"; - -/* voce menu */ -"Energia sisma" = "Energia sisma"; - -/* No comment provided by engineer. */ -"Il messaggio è già stato in viato, al momento non è possibile inviare una nuova segnalazione" = "La segnalazione è già stata inviata, al momento non è possibile inviare una nuova segnalazione"; - -/* voce menu */ -"Intervallo allarme" = "Intervallo allarme"; - -/* No comment provided by engineer. */ -"La tua posizione geografica è sconosciuta e non è possibile segnalare il sisma" = "La tua posizione geografica è sconosciuta e non è possibile segnalare il sisma"; - -/* No comment provided by engineer. */ -"La tua segnalazione è stata inviata correttamente" = "La tua segnalazione è stata inviata correttamente"; - -/* voce menu */ -"Magnitudo" = "Magnitudo"; - -/* No comment provided by engineer. */ -"Messaggio" = "Messaggio"; - -/* messaggio assenza connesione */ -"Nessuna connessione" = "Nessuna connessione"; - -/* No comment provided by engineer. */ -"Non hai seleziato nessuna nazione" = "Non hai seleziato nessuna nazione"; - -/* voce menu */ -"Notifica sismi forti a qualsiasi distanza se la magnitudo è maggiore a" = "Notifica sismi forti a qualsiasi distanza se la magnitudo è maggiore a"; - -/* titolo impostazioni notifiche - voce menu */ -"Notifiche da reti sismiche" = "Notifiche da reti sismiche"; - -/* titolo impostazioni notifiche - voce menu */ -"Notifiche segnalazioni utente" = "Notifiche segnalazioni utente"; - -/* titolo impostazioni notifiche - voce menu */ -"Notifiche sismi" = "Notifiche sismi"; - -/* No comment provided by engineer. */ -"OK" = "OK"; - -/* voce menu */ -"Ora di fine" = "Ora di fine"; - -/* voce menu */ -"Ora di inizio" = "Ora di inizio"; - -/* No comment provided by engineer. */ -"pagerai al mese:" = "pagerai al mese:"; - -/* No comment provided by engineer. */ -"pagerai all'anno:" = "pagerai all'anno:"; - -/* No comment provided by engineer. */ -"Profondità" = "Profondità"; - -/* voce elenco raggio sismi */ -"Qualsiasi distanza" = "Qualsiasi distanza"; - -/* voce menu */ -"Qualsiasi intensità" = "Qualsiasi intensità"; - -/* voce menu */ -"Raggio dalla tua posizione" = "Raggio dalla tua posizione"; - -/* voce menu */ -"Raggio sismi forti" = "Raggio sismi forti"; - -/* voce menu */ -"Raggio sismi lievi" = "Raggio sismi lievi"; - -/* titolo impostazioni notifiche - voce menu */ -"Reti sismiche" = "Reti sismiche"; - -/* voce menu */ -"Ricevi le notifiche dei sismi rilevati dalle agenzie nazionalie internazionali" = "Ricevi le notifiche dei sismi rilevati dalle agenzie nazionali e internazionali"; - -/* voce menu */ -"Ricevi le notifiche dei sismi segnalati manualmente dagli utenti" = "Ricevi le notifiche dei sismi segnalati manualmente dagli utenti"; - -/* titolo navigation bar */ -"Rilevatore Terremoti" = "Rilevatore Terremoto"; - -/* No comment provided by engineer. */ -"Scarica" = "Scarica"; - -/* No comment provided by engineer. */ -"Segnalazione" = "Segnalazione"; - -/* No comment provided by engineer. */ -"Seleziona" = "Seleziona"; - -/* voce menu */ -"Sismi da notificare" = "Sismi da notificare"; - -/* voce menu */ -"Solo sismi forti" = "Solo sismi forti"; - -/* voce menu */ -"Terremoti forti" = "Sismi forti"; - -/* voce menu */ -"Terremoti vicini" = "Sismi vicini"; - -/* No comment provided by engineer. */ -"Ultim'ora" = "Ultim'ora"; - -/* No comment provided by engineer. */ -"Ultima settimana" = "Ultima settimana"; - -/* No comment provided by engineer. */ -"Ultimo anno" = "Ultimo anno"; - -/* No comment provided by engineer. */ -"Ultimo giorno" = "Ultimo giorno"; - -/* No comment provided by engineer. */ -"Ultimo mese" = "Ultimo mese"; - -/* messaggio errore inserimento credenziali */ -"Username e Password sbagliati" = "Username e Password sbagliati"; - -/* etichetta versione app */ -"Versione" = "Versione"; - // Nazioni "Stati Uniti" = "Stati Uniti"; "Italia" = "Italia"; @@ -239,24 +82,13 @@ "Magnitudo >= 6.5" = "Magnitudo >= 6.5"; "Magnitudo >= 7.5" = "Magnitudo >= 7.5"; -"Suona un allarme quando un sisma è rilevato dalla rete smartphone" = "Suona un allarme quando un sisma è rilevato dalla rete smartphone"; -"Attiva l'allerta anche su i sismi per i quali non è possibile stimare l'intensità" = "Attiva l'allerta anche sui sismi per i quali non è possibile stimare l'intensità"; -"Non attivare allarmi o notifiche in questo lasso di tempo" = "Non attivare allarmi o notifiche in questo lasso di tempo"; -"critical_alerts_setting" = "Utilizza avvisi critici. Il telefono suonerà anche in modalità non disturbare"; // Filtri sismi -"Magnitudo minima" = "Magnitudo minima"; -"Distanza massima" = "Distanza massima"; -"Periodo temporale" = "Periodo temporale"; -"Un giorno" = "Un giorno"; -"Dodici ore" = "Dodici ore"; -"Sei ore" = "Sei ore"; -"Due ore" = "Due ore"; -"Un ora" = "Un'ora"; -"Dieci minuti" = "Dieci minuti"; -"Mostra sismi forti a qualsiasi distanza se di" = "Mostra sismi forti a qualsiasi distanza se di"; -"Mostra sismi di qualsiasi magnitudo se a meno di 50 km" = "Mostra sismi di qualsiasi magnitudo se a meno di 50 km"; -"Modifica le impostazioni di notifica dei sismi in accordo con i filtri" = "Modifica le impostazioni di notifica dei sismi in accordo con i filtri"; +"filter_magnitude" = "Magnitudo minima"; +"filter_timeframe" = "Periodo temporale"; +"filter_strong" = "Mostra sismi forti a qualsiasi distanza se di"; +"filter_near" = "Mostra sismi di qualsiasi magnitudo se a meno di 50 km"; +"filter_reflect" = "Modifica le impostazioni di notifica dei sismi in accordo con i filtri"; "main_understood" = "Ho capito"; "options_low_magnitude" = "Considera che non tutte le reti sismiche forniscono dati per sismi sotto magnitudo 2.0. Inoltre, incrementi significativamente il trasferimento dati con il server e l'utilizzo batteria dovuto al maggior numero di notifiche. Se il tuo dispositivo non è di recente fabbricazione, noterai anche un generale rallentamento dell'app."; "official_smartphones" = "Sisma rilevato in tempo reale da %@ smartphones. Allerta inviata."; @@ -338,9 +170,53 @@ "official_select_country_placeholder" = "Seleziona la nazione"; "options_cancel" = "Annulla"; "options_near_alert" = "Notifica sismi di qualsiasi magnitudo se la distanza è inferiore a 50 km"; - +"options_alarms" = "Allerta in tempo reale"; +"options_notification_enable_alarm" = "Suona un allarme quando un sisma è rilevato dalla rete smartphone"; +"options_notification_eqn_intensity" = "Sismi da notificare"; +"eqn_intensity_any" = "Qualsiasi intensità"; +"eqn_intensity_strong" = "Solo sismi forti"; +"options_radius_mild" = "Raggio sismi lievi"; +"options_radius_strong" = "Raggio sismi forti"; +"options_notification_official" = "Notifiche da reti sismiche"; +"options_notification_enable_official" = "Ricevi le notifiche dei sismi rilevati dalle agenzie nazionali e internazionali"; +"options_agencies" = "Reti sismiche"; +"options_radius" = "Raggio dalla tua posizione"; +"options_energy" = "Energia sisma"; +"options_near" = "Sismi vicini"; +"options_strong" = "Sismi forti"; +"options_strong_alert" = "Notifica sismi forti a qualsiasi distanza se la magnitudo è maggiore a "; +"options_strong_magnitude" = "Magnitudo"; +"options_notification_manual" = "Notifiche segnalazioni utente"; +"options_notification_enable_manual" = "Ricevi le notifiche dei sismi segnalati manualmente dagli utenti"; +"main_areacheck_message" = "In questo momento, nella tua zona ci sono %@ smartphone che stanno monitorando in tempo reale eventuali sismi. Condividi la app per migliorare il rilevamento."; +"main_version" = "Versione"; +"manual_error" = "Username e Password sbagliati "; +"eqn_timeframe_last_month" = "Ultimo mese "; +"eqn_timeframe_last_day" = "Ultimo giorno"; +"eqn_timeframe_last_week" = "Ultima settimana"; +"eqn_timeframe_last_hour" = "Ultim'ora "; +"app_name" = "Rilevatore Terremoto"; +"official_depth" = "Profondità:"; +"manual_nolocation" = "La tua posizione geografica è sconosciuta e non è possibile segnalare il sisma"; +"manual_wait" = "La segnalazione è già stata inviata, al momento non è possibile inviare una nuova segnalazione"; +"manual_ok" = "La tua segnalazione è stata inviata correttamente"; +"report_timeframe_one_day" = "Un giorno"; +"report_timeframe_twelve_hours" = "Dodici ore"; +"report_timeframe_six_hours" = "Sei ore"; +"report_timeframe_two_hours" = "Due ore"; +"report_timeframe_one_hour" = "Un'ora"; +"report_timeframe_ten_minutes" = "Dieci minuti"; +"radius_any_distance" = "Qualsiasi distanza"; +"timer_message2_other" = "km dalla tua posizione"; // ios only "Abbonamenti annuali" = "Abbonamenti annuali"; "Abbonamenti mensili" = "Abbonamenti mensili"; - +"OK" = "OK"; +"critical_alerts_setting" = "Utilizza avvisi critici. Il telefono suonerà anche in modalità non disturbare"; +"pagerai al mese:" = "pagerai al mese:"; +"pagerai all'anno:" = "pagerai all'anno:"; +"Attenzione" = "Attenzione"; +"Nessuna connessione" = "Nessuna connessione"; +"Non hai seleziato nessuna nazione" = "Non hai seleziato nessuna nazione"; +"Segnalazione" = "Segnalazione";