Commits

Anonymous committed 30b53f4 Draft

Fixed some bugs on compatibility and values charts

  • Participants
  • Parent commits 199d9b6

Comments (0)

Files changed (10)

src/nyagua/Bundle.properties

 SELECT_AN_AQUARIUM_BEFORE...=Select an aquarium before...
 DESCRIPTION=Description
 VALUE=Value
-SET_TITLE_'AQUARIUM_MEASURES'=set title 'Aquarium measures'
+SET_TITLE_'AQUARIUM_MEASURES'=Aquarium measures
 \\T=\t
 CAN_T_CREATE_THE_MACRO_FILE=Can't create the macro file:
 SAVE_CURRENT_SETTINGS=Save current settings

src/nyagua/Bundle_de_DE.properties

 SELECT_AN_AQUARIUM_BEFORE...=Erst ein Aquarium w\u00e4len...
 DESCRIPTION=Beschreibung
 VALUE=Wert
-SET_TITLE_'AQUARIUM_MEASURES'=set title 'Aquarium Ma\u00dfnahmen'
+SET_TITLE_'AQUARIUM_MEASURES'=Aquarium Ma\u00dfnahmen
 \\T=\t
 CAN_T_CREATE_THE_MACRO_FILE=Macro Datei kann nicht erstellt werden:
 SAVE_CURRENT_SETTINGS=Einstellungen speichern

src/nyagua/Bundle_en_US.properties

 SELECT_AN_AQUARIUM_BEFORE...=Select an aquarium before...
 DESCRIPTION=Description
 VALUE=Value
-SET_TITLE_'AQUARIUM_MEASURES'=set title 'Aquarium measures'
+SET_TITLE_'AQUARIUM_MEASURES'=Aquarium measures
 \\T=\t
 CAN_T_CREATE_THE_MACRO_FILE=Can't create the macro file:
 SAVE_CURRENT_SETTINGS=Save current settings

src/nyagua/Bundle_it_IT.properties

 SELECT_AN_AQUARIUM_BEFORE...=Prima selezionare un acquario...
 DESCRIPTION=Descrizione
 VALUE=Valore
-SET_TITLE_'AQUARIUM_MEASURES'=set title 'Misure Acquario'
+SET_TITLE_'AQUARIUM_MEASURES'=Misure Acquario
 \\T=\t
 CAN_T_CREATE_THE_MACRO_FILE=Impossibile creare il file delle macro:
 SAVE_CURRENT_SETTINGS=Salva configurazione

src/nyagua/Bundle_pl_PL.properties

 SELECT_AN_AQUARIUM_BEFORE...=Wybierz akwarium zanim...
 SELECT_BACKUP_DIRECTORY=Wybierz folder kopii zapasowej
 SELECTED=Zaznaczone
-SET_TITLE_'AQUARIUM_MEASURES'=ustaw tytu\u0142 'Pomiary akwarium'
+SET_TITLE_'AQUARIUM_MEASURES'=Pomiary akwarium
 SETTINGS=Ustawienia
 SETTINGS_LOADED=Za\u0142adowano ustawienia
 SETTINGS_SAVED_IN_FILE=Ustawienia zapisane w pliku:

src/nyagua/Bundle_pt_BR.properties

 SELECT_AN_AQUARIUM_BEFORE...=Selecione um aqu\u00e1rio antes...
 DESCRIPTION=Descri\u00e7\u00e3o
 VALUE=Valor
-SET_TITLE_'AQUARIUM_MEASURES'=set title 'Medidas do aqu\u00e1rio'
+SET_TITLE_'AQUARIUM_MEASURES'=Medidas do aqu\u00e1rio
 \\T=\t
 CAN_T_CREATE_THE_MACRO_FILE=O arquivo macro n\u00e3o pode ser criado:
 SAVE_CURRENT_SETTINGS=Salvar prefer\u00eancias

src/nyagua/Bundle_sk_SK.properties

 SELECT_AN_AQUARIUM_BEFORE...=Najprv vyberte akv\u00e1rium...
 SELECT_BACKUP_DIRECTORY=Vyberte adres\u00e1r pre z\u00e1lohu
 SELECTED=Zvolen\u00e9
-SET_TITLE_'AQUARIUM_MEASURES'=nastavi\u0165 nadpis 'Merania akv\u00e1ria'
+SET_TITLE_'AQUARIUM_MEASURES'=Merania akv\u00e1ria
 SETTINGS=Nastavenia
 SETTINGS_LOADED=Nastavenia na\u010d\u00edtan\u00e9
 SETTINGS_SAVED_IN_FILE=Nastavenia ulo\u017een\u00e9 v s\u00fabore:

src/nyagua/Bundle_tr_TR.properties

 SELECT_AN_AQUARIUM_BEFORE...=\u00d6nce bir akvaryum se\u00e7in...
 SELECT_BACKUP_DIRECTORY=Yedekleme dizinini se\u00e7in
 SELECTED=Se\u00e7ilen
-SET_TITLE_'AQUARIUM_MEASURES'=Ba\u015fl\u0131\u011f\u0131 'Akvaryum \u00d6l\u00e7\u00fcmleri' yap
+SET_TITLE_'AQUARIUM_MEASURES'=Akvaryum \u00d6l\u00e7\u00fcmleri
 SETTINGS=Ayarlar
 SETTINGS_LOADED=Ayarlar y\u00fcklendi
 SETTINGS_SAVED_IN_FILE=Ayarlar \u015fu dosyaya kaydedildi:

src/nyagua/Compatibility.java

             int lastId=DB.DBLastIdInAquarium("Measures");// NOI18N
             Reading measure=new Reading();
             measure=Reading.getById(lastId);
-            PH=measure.getPh();
-            KH=measure.getKh();
-            temp=measure.getTemp();
+            PH=LocUtil.delocalizeDouble(measure.getPh());
+            KH=LocUtil.delocalizeDouble(measure.getKh());
+            temp=LocUtil.delocalizeDouble(measure.getTemp());
             
         } else if (mediumRadioButton.isSelected()){ //medium value is used
             String qry="SELECT  avg(KH) AS KH, avg(PH) AS PH, avg(temp) AS temp" +// NOI18N
              DB.openConn();
              ResultSet rs = DB.getQuery(qry);
              while (rs.next()) {
-                PH = rs.getString("PH");// NOI18N
-                KH = rs.getString("KH");// NOI18N
-                temp = rs.getString("temp");// NOI18N
+                PH = LocUtil.delocalizeDouble(rs.getString("PH"));// NOI18N
+                KH = LocUtil.delocalizeDouble(rs.getString("KH"));// NOI18N
+                temp = LocUtil.delocalizeDouble(rs.getString("temp"));// NOI18N
             }
             DB.closeConn();
         } else {    //current selected value

src/nyagua/Plotting.java

             out.println("set terminal postscript");// NOI18N
             out.println("set output 'Plotted.ps'");// NOI18N
         }
-        out.println(java.util.ResourceBundle.getBundle("nyagua/Bundle").getString("SET_TITLE_'AQUARIUM_MEASURES'"));
+        out.println("set title'"+java.util.ResourceBundle.getBundle("nyagua/Bundle").getString("SET_TITLE_'AQUARIUM_MEASURES'")+"'");
         if (gridCheckBox.isSelected()){
             out.println("set grid");// NOI18N
         }