private void loadLanguageValues() {
        if (xmlLang==null) return;
        
        langValues.put("LanguageName", xmlLang.getLanguageValue("Lang", "LanguageName"));
        
        langValues.put("mainLabel", xmlLang.getLanguageValue("main", "CardName"));
        langValues.put("Connect", xmlLang.getLanguageValue("main", "Connect"));
        langValues.put("Connecting", xmlLang.getLanguageValue("main", "Connecting"));
        langValues.put("Disconnect", xmlLang.getLanguageValue("main", "Disconnect"));
        
        langValues.put("TakePhoto", xmlLang.getLanguageValue("main", "TakePhoto"));
        
        langValues.put("Rudder", xmlLang.getLanguageValue("main", "Rudder"));
        langValues.put("Sail1", xmlLang.getLanguageValue("main", "Sail1"));
        langValues.put("Sail2", xmlLang.getLanguageValue("main", "Sail2"));
        
        langValues.put("ConnectSettings", xmlLang.getLanguageValue("settings", "ConnectSettings"));
        langValues.put("IpAddress", xmlLang.getLanguageValue("settings", "IpAddress"));
        langValues.put("Port", xmlLang.getLanguageValue("settings", "Port"));
        langValues.put("WifiNetwork", xmlLang.getLanguageValue("settings", "WifiNetwork"));
        langValues.put("WifiPassword", xmlLang.getLanguageValue("settings", "WifiPassword"));
        langValues.put("Language", xmlLang.getLanguageValue("settings", "Language"));
        langValues.put("Save", xmlLang.getLanguageValue("settings", "Save"));
        langValues.put("AutoPhotos", xmlLang.getLanguageValue("settings", "AutoPhotos"));
        langValues.put("AutoPhotosTime", xmlLang.getLanguageValue("settings", "AutoPhotosTime"));
        
        try {
            String langs = xmlLang.getByKey("/localizableStrings/group[@id='Lang']/string[@id='LanguageName']");
            String[] langsArr = langs.split("\n");
            for (int i = 1; i < langsArr.length-1; i++) {
                String lang = langsArr[i].trim();
                app.getLangModul().addElement(lang);
            }
            app.setLang(langValues.get("LanguageName"));
        } catch (XPathExpressionException ex) {
            Logger.getLogger(BridgeAppCode.class.getName()).log(Level.SEVERE, null, ex);
        }
    }