Skip to content

Commit 37bc5aa

Browse files
committed
build 6
1 parent 4b658f8 commit 37bc5aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1886
-1123
lines changed

CanZE/CanZE.xcodeproj/project.pbxproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@
505505
);
506506
inputPaths = (
507507
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}",
508+
"$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)",
508509
);
509510
outputFileListPaths = (
510511
);
@@ -823,8 +824,9 @@
823824
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
824825
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
825826
CODE_SIGN_ENTITLEMENTS = CanZE/CanZE.entitlements;
827+
CODE_SIGN_IDENTITY = "Apple Development";
826828
CODE_SIGN_STYLE = Automatic;
827-
CURRENT_PROJECT_VERSION = 5;
829+
CURRENT_PROJECT_VERSION = 6;
828830
DEVELOPMENT_TEAM = USQU9Q295J;
829831
INFOPLIST_FILE = "$(SRCROOT)/CanZE/Info.plist";
830832
LD_RUNPATH_SEARCH_PATHS = (
@@ -833,6 +835,7 @@
833835
);
834836
PRODUCT_BUNDLE_IDENTIFIER = lu.fisch.canze;
835837
PRODUCT_NAME = "$(TARGET_NAME)";
838+
PROVISIONING_PROFILE_SPECIFIER = "";
836839
SWIFT_VERSION = 5.0;
837840
TARGETED_DEVICE_FAMILY = "1,2";
838841
};
@@ -845,8 +848,9 @@
845848
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
846849
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
847850
CODE_SIGN_ENTITLEMENTS = CanZE/CanZE.entitlements;
851+
CODE_SIGN_IDENTITY = "Apple Development";
848852
CODE_SIGN_STYLE = Automatic;
849-
CURRENT_PROJECT_VERSION = 5;
853+
CURRENT_PROJECT_VERSION = 6;
850854
DEVELOPMENT_TEAM = USQU9Q295J;
851855
INFOPLIST_FILE = "$(SRCROOT)/CanZE/Info.plist";
852856
LD_RUNPATH_SEARCH_PATHS = (
@@ -855,6 +859,7 @@
855859
);
856860
PRODUCT_BUNDLE_IDENTIFIER = lu.fisch.canze;
857861
PRODUCT_NAME = "$(TARGET_NAME)";
862+
PROVISIONING_PROFILE_SPECIFIER = "";
858863
SWIFT_VERSION = 5.0;
859864
TARGETED_DEVICE_FAMILY = "1,2";
860865
};

CanZE/CanZE/AllDataViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class AllDataViewController: CanZeViewController {
9797
override func startQueue() {
9898
if !Globals.shared.deviceIsConnected || !Globals.shared.deviceIsInitialized {
9999
DispatchQueue.main.async { [self] in
100-
view.makeToast("_device not connected")
100+
view.makeToast(NSLocalizedString_("Device not connected", comment: ""))
101101
}
102102
return
103103
}

CanZE/CanZE/AppDelegate.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2929
#endif
3030

3131
return true
32+
3233
}
3334
}

CanZE/CanZE/AuxBatteryViewController.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ class AuxBatteryViewController: CanZeViewController {
6262
textDcLoad.text = "-"
6363
label_vehiclestate.text = NSLocalizedString_("label_vehiclestate", comment: "")
6464
text_vehicle_state.text = "-"
65-
label_VoltageUnderLoad.text = NSLocalizedString_("label_VoltageLoad", comment: "")
65+
label_VoltageUnderLoad.text = NSLocalizedString_("Voltage under load", comment: "")
6666
textVoltageUnderLoad.text = "-"
67-
label_CurrentUnderLoad.text = NSLocalizedString_("label_CurrentUnderLoad", comment: "")
67+
label_CurrentUnderLoad.text = NSLocalizedString_("Current under load", comment: "")
6868
textCurrentUnderLoad.text = "-"
6969
label_AuxStatus.text = NSLocalizedString_("label_AuxStatus", comment: "")
7070
textAuxStatus.text = "-"
7171

72-
lblGraphTitle.text = "_Voltage, Vehicle state"
72+
lblGraphTitle.text = NSLocalizedString_("Voltage, Vehicle state", comment: "")
7373
lblVoltage.text = "-"
7474
lblVehicleState.text = "-"
7575

@@ -113,7 +113,7 @@ class AuxBatteryViewController: CanZeViewController {
113113
override func startQueue() {
114114
if !Globals.shared.deviceIsConnected || !Globals.shared.deviceIsInitialized {
115115
DispatchQueue.main.async { [self] in
116-
view.makeToast("_device not connected")
116+
view.makeToast(NSLocalizedString_("Device not connected", comment: ""))
117117
}
118118
return
119119
}

CanZE/CanZE/Base.lproj/Main.storyboard

Lines changed: 175 additions & 131 deletions
Large diffs are not rendered by default.

CanZE/CanZE/BatteryViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class BatteryViewController: CanZeViewController {
6767
lblGraph_CellVoltages_title.text = NSLocalizedString_("graph_CellVoltages", comment: "")
6868
lblGraph_ModuleTemperatures_title.text = NSLocalizedString_("graph_ModuleTemperatures", comment: "")
6969

70-
lblBatterySerial.text = "Serial:"
70+
lblBatterySerial.text = "\(NSLocalizedString_("Serial", comment: "")):"
7171

7272
initSocChart()
7373
initVoltChart()
@@ -146,7 +146,7 @@ class BatteryViewController: CanZeViewController {
146146
override func startQueue() {
147147
if !Globals.shared.deviceIsConnected || !Globals.shared.deviceIsInitialized {
148148
DispatchQueue.main.async { [self] in
149-
view.makeToast("_device not connected")
149+
view.makeToast(NSLocalizedString_("Device not connected", comment: ""))
150150
}
151151
return
152152
}
@@ -217,7 +217,7 @@ class BatteryViewController: CanZeViewController {
217217
}
218218
case Sid.BatterySerial:
219219
if strVal != nil {
220-
lblBatterySerial.text = "Serial: \(strVal!)"
220+
lblBatterySerial.text = "\(NSLocalizedString_("Serial", comment: "")): \(strVal!)"
221221
}
222222
default:
223223
if let f = Fields.getInstance.fieldsBySid[sid!] {

CanZE/CanZE/BrakingViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class BrakingViewController: CanZeViewController {
139139
override func startQueue() {
140140
if !Globals.shared.deviceIsConnected || !Globals.shared.deviceIsInitialized {
141141
DispatchQueue.main.async { [self] in
142-
view.makeToast("_device not connected")
142+
view.makeToast(NSLocalizedString_("Device not connected", comment: ""))
143143
}
144144
return
145145
}

CanZE/CanZE/CanZeVC.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ class CanZeViewController: UIViewController {
218218

219219
func NSLocalizedString_(_ key: String, comment: String) -> String {
220220
var v = NSLocalizedString(key, comment: "")
221+
if v == key {
222+
debug("manca traduzione ? \(key)")
223+
}
221224
v = v.replacingOccurrences(of: "u0020", with: " ")
222225
while v.contains("\\'") {
223226
v = v.replacingOccurrences(of: "\\'", with: "'")

0 commit comments

Comments
 (0)