mirror of
				https://github.com/house-of-abbey/GarminHomeAssistant.git
				synced 2025-11-03 16:38:14 +00:00 
			
		
		
		
	Added internationalisation of new strings
This commit is contained in:
		@@ -37,6 +37,9 @@
 | 
			
		||||
  <string id="Cached" scope="glance">Cached</string>
 | 
			
		||||
  <string id="GlanceMenu" scope="glance">Menu</string>
 | 
			
		||||
  <string id="Memory" scope="glance">Memory</string>
 | 
			
		||||
  <string id="Empty" scope="glance">Empty</string>
 | 
			
		||||
  <string id="TemplateError" scope="glance">Template Error</string>
 | 
			
		||||
  <string id="PotentialError" scope="glance">Potential Error</string>
 | 
			
		||||
 | 
			
		||||
  <!-- For the settings GUI -->
 | 
			
		||||
  <string id="SettingsSelect">Select...</string>
 | 
			
		||||
 
 | 
			
		||||
@@ -133,15 +133,15 @@ class HomeAssistantTemplateMenuItem extends WatchUi.IconMenuItem {
 | 
			
		||||
                status = WatchUi.loadResource($.Rez.Strings.Available) as Lang.String;
 | 
			
		||||
                var label = data.get("request");
 | 
			
		||||
                if (label == null) {
 | 
			
		||||
                    setSubLabel("Empty");
 | 
			
		||||
                    setSubLabel($.Rez.Strings.Empty);
 | 
			
		||||
                } else if(label instanceof Lang.String) {
 | 
			
		||||
                    setSubLabel(label);
 | 
			
		||||
                } else if(label instanceof Lang.Dictionary) {
 | 
			
		||||
                    System.println("HomeAssistantTemplateMenuItem onReturnGetState() label = " + label);
 | 
			
		||||
                    if (label.get("error") != null) {
 | 
			
		||||
                        setSubLabel("Template Error");
 | 
			
		||||
                        setSubLabel($.Rez.Strings.TemplateError);
 | 
			
		||||
                    } else {
 | 
			
		||||
                        setSubLabel("Potential Error");
 | 
			
		||||
                        setSubLabel($.Rez.Strings.PotentialError);
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
                requestUpdate();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user