Procházet zdrojové kódy

Fix Localizations of new Orange/Ema - link settings.

Jon Mårtensson před 4 roky
rodič
revize
445d010aef

+ 9 - 9
Dependencies/rileylink_ios/RileyLinkKitUI/RileyLinkDeviceTableViewController.swift

@@ -584,17 +584,17 @@ public class RileyLinkDeviceTableViewController: UITableViewController {
                 cell.textLabel?.text = LocalizedString("Frequency", comment: "The title of the cell showing current rileylink frequency")
                 cell.textLabel?.text = LocalizedString("Frequency", comment: "The title of the cell showing current rileylink frequency")
                 cell.setDetailFrequency(frequency, formatter: frequencyFormatter)
                 cell.setDetailFrequency(frequency, formatter: frequencyFormatter)
             case .battery:
             case .battery:
-                cell.textLabel?.text = NSLocalizedString("Battery level", comment: "The title of the cell showing battery level")
+                cell.textLabel?.text = LocalizedString("Battery level", comment: "The title of the cell showing battery level")
                 cell.setDetailBatteryLevel(battery)
                 cell.setDetailBatteryLevel(battery)
             case .voltage:
             case .voltage:
-                cell.textLabel?.text = NSLocalizedString("Voltage", comment: "The title of the cell showing ORL")
+                cell.textLabel?.text = LocalizedString("Voltage", comment: "The title of the cell showing ORL")
                 cell.setVoltage(voltage)
                 cell.setVoltage(voltage)
             }
             }
         case .alert:
         case .alert:
             switch AlertRow(rawValue: indexPath.row)! {
             switch AlertRow(rawValue: indexPath.row)! {
             case .battery:
             case .battery:
                 cell.accessoryType = .disclosureIndicator
                 cell.accessoryType = .disclosureIndicator
-                cell.textLabel?.text = NSLocalizedString("Low Battery Alert", comment: "The title of the cell showing battery level")
+                cell.textLabel?.text = LocalizedString("Low Battery Alert", comment: "The title of the cell showing battery level")
                 cell.setBatteryAlert(batteryAlertLevel, formatter: integerFormatter)
                 cell.setBatteryAlert(batteryAlertLevel, formatter: integerFormatter)
             }
             }
         case .rileyLinkCommands:
         case .rileyLinkCommands:
@@ -622,19 +622,19 @@ public class RileyLinkDeviceTableViewController: UITableViewController {
                 switchView.isHidden = false
                 switchView.isHidden = false
                 cell.accessoryType = .none
                 cell.accessoryType = .none
                 switchView.isOn = yellowOn
                 switchView.isOn = yellowOn
-                cell.textLabel?.text = NSLocalizedString("Lighten Yellow LED", comment: "The title of the cell showing Lighten Yellow LED")
+                cell.textLabel?.text = LocalizedString("Lighten Yellow LED", comment: "The title of the cell showing Lighten Yellow LED")
             case .red:
             case .red:
                 switchView.isHidden = false
                 switchView.isHidden = false
                 cell.accessoryType = .none
                 cell.accessoryType = .none
                 switchView.isOn = redOn
                 switchView.isOn = redOn
-                cell.textLabel?.text = NSLocalizedString("Lighten Red LED", comment: "The title of the cell showing Lighten Red LED")
+                cell.textLabel?.text = LocalizedString("Lighten Red LED", comment: "The title of the cell showing Lighten Red LED")
             case .shake:
             case .shake:
                 switchView.isHidden = false
                 switchView.isHidden = false
                 switchView.isOn = shakeOn
                 switchView.isOn = shakeOn
                 cell.accessoryType = .none
                 cell.accessoryType = .none
-                cell.textLabel?.text = NSLocalizedString("Test Vibration", comment: "The title of the cell showing Test Vibration")
+                cell.textLabel?.text = LocalizedString("Test Vibration", comment: "The title of the cell showing Test Vibration")
             case .findDevice:
             case .findDevice:
-                cell.textLabel?.text = NSLocalizedString("Find Device", comment: "The title of the cell for sounding device finding piezo")
+                cell.textLabel?.text = LocalizedString("Find Device", comment: "The title of the cell for sounding device finding piezo")
                 cell.detailTextLabel?.text = nil
                 cell.detailTextLabel?.text = nil
             }
             }
         case .configureCommand:
         case .configureCommand:
@@ -643,12 +643,12 @@ public class RileyLinkDeviceTableViewController: UITableViewController {
                 switchView.isHidden = false
                 switchView.isHidden = false
                 switchView.isOn = ledOn
                 switchView.isOn = ledOn
                 cell.accessoryType = .none
                 cell.accessoryType = .none
-                cell.textLabel?.text = NSLocalizedString("Connection LED", comment: "The title of the cell for connection LED")
+                cell.textLabel?.text = LocalizedString("Connection LED", comment: "The title of the cell for connection LED")
             case .connectionVibrate:
             case .connectionVibrate:
                 switchView.isHidden = false
                 switchView.isHidden = false
                 switchView.isOn = vibrationOn
                 switchView.isOn = vibrationOn
                 cell.accessoryType = .none
                 cell.accessoryType = .none
-                cell.textLabel?.text = NSLocalizedString("Connection Vibration", comment: "The title of the cell for connection vibration")
+                cell.textLabel?.text = LocalizedString("Connection Vibration", comment: "The title of the cell for connection vibration")
             }
             }
         }
         }