eda: Fixed i18n strings typos; samples/db/MovieCollection: Fixed default driver to...
authorJerome St-Louis <jerome@ecere.com>
Thu, 15 Mar 2012 07:21:49 +0000 (03:21 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 15 Mar 2012 07:21:49 +0000 (03:21 -0400)
eda/libeda/src/gui.ec
eda/libeda/src/gui/TableEditor.ec
eda/libeda/src/idList.ec
samples/db/MovieCollection/movieSchema.ec

index 67b36ab..d09361f 100644 (file)
@@ -759,7 +759,7 @@ public class ListSection : Group
                   r.SetData(fldActive, active);
 
                if(NotifyNew(master, this, r))
-                  list.currentRow = list.AddString("$[New]");
+                  list.currentRow = list.AddString($"[New]");
                delete r;
             }
 
index 5f4364a..2fecacc 100644 (file)
@@ -285,7 +285,7 @@ public:
                   {
                      if(lf.field.type == class(String))
                      {
-                        r.SetData(lf.field, "$[New]");
+                        r.SetData(lf.field, $"[New]");
                      }
                   }
                }
@@ -295,8 +295,8 @@ public:
             }
             else if(idField && stringField)
             {
-               r.SetData(stringField, "$[New]");
-               list.AddString("$[New]").tag = id;
+               r.SetData(stringField, $"[New]");
+               list.AddString($"[New]").tag = id;
             }
             delete r;
          }
index 265c34c..363aab1 100644 (file)
@@ -180,7 +180,7 @@ public class Id : uint
          }
          else
          {
-            sprintf(tempString, "$(Click to add a new %s...)", $"item"/*class_data(addText)*/);
+            sprintf(tempString, $"(Click to add a new %s...)", $"item"/*class_data(addText)*/);
          }
          delete r;
       }
index e21488f..beba806 100644 (file)
@@ -30,10 +30,10 @@ class MovieCollectionApp : GuiApplication
    {
       SetDefaultIdField("ID");
       SetDefaultNameField("Name");
-      //ds = DataSource { driver = "SQLite" };
-      //db = database_open(ds, "collection");
-      ds = DataSource { driver = "Oracle", host = "localhost", port = "1521", user = "test", pass = "test" };
-      db = database_open(ds, "xe");
+      ds = DataSource { driver = "SQLite" };
+      //ds = DataSource { driver = "Oracle", host = "localhost", port = "1521", user = "test", pass = "test" };
+
+      db = database_open(ds, "collection");
    }
    ~MovieCollectionApp()
    {