kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
localization
rodzic
e27a3d937d
commit
ba86d3e88f
|
@ -622,7 +622,7 @@ class MainActivity : AppCompatActivity(), Logging,
|
|||
val builder = MaterialAlertDialogBuilder(this)
|
||||
.setTitle(titleText)
|
||||
.setMessage(messageText)
|
||||
.setPositiveButton("Okay") { _, _ ->
|
||||
.setPositiveButton(R.string.okay) { _, _ ->
|
||||
info("User acknowledged")
|
||||
}
|
||||
|
||||
|
@ -660,7 +660,7 @@ class MainActivity : AppCompatActivity(), Logging,
|
|||
val curVer = DeviceVersion(info.firmwareVersion ?: "0.0.0")
|
||||
val minVer = DeviceVersion("1.2.0")
|
||||
if(curVer < minVer)
|
||||
showAlert(R.string.app_too_old, R.string.firmware_old)
|
||||
showAlert(R.string.firmware_too_old, R.string.firmware_old)
|
||||
else {
|
||||
// If our app is too old/new, we probably don't understand the new radioconfig messages, so we don't read them until here
|
||||
|
||||
|
|
|
@ -91,4 +91,5 @@
|
|||
<string name="advanced_settings">Advanced settings</string>
|
||||
<string name="firmware_too_old">Firmware update required</string>
|
||||
<string name="firmware_old">The radio firmware is too old to talk to this application, please go to the settings pane and choose "Update Firmware". For more information on this see <a href="https://www.meshtastic.org/software/firmware-too-old.html">our wiki</a>.</string>
|
||||
<string name="okay">Okay</string>
|
||||
</resources>
|
||||
|
|
Ładowanie…
Reference in New Issue