mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-04-30 12:42:27 +00:00
internationalize pin lock message
This commit is contained in:
@ -40,6 +40,8 @@
|
||||
<string id="Empty">Empty</string>
|
||||
<string id="TemplateError">Template Error</string>
|
||||
<string id="PotentialError">Potential Error</string>
|
||||
<string id="PinInputLocked">PIN input locked for</string>
|
||||
<string id="Seconds">seconds</string>
|
||||
|
||||
<!-- For the settings GUI -->
|
||||
<string id="SettingsSelect">Select...</string>
|
||||
|
@ -109,7 +109,10 @@ class HomeAssistantPinConfirmationDelegate extends WatchUi.BehaviorDelegate {
|
||||
BehaviorDelegate.initialize();
|
||||
mFailures = new PinFailures();
|
||||
if (mFailures.isLocked()) {
|
||||
WatchUi.showToast("PIN input locked for " + mFailures.getLockedUntilSeconds() + " seconds", {});
|
||||
var msg = WatchUi.loadResource($.Rez.Strings.PinInputLocked) + " " +
|
||||
mFailures.getLockedUntilSeconds() + " " +
|
||||
WatchUi.loadResource($.Rez.Strings.Seconds);
|
||||
WatchUi.showToast(msg, {});
|
||||
}
|
||||
mPin = pin.toCharArray();
|
||||
mCurrentIndex = 0;
|
||||
|
Reference in New Issue
Block a user