]> git.sur5r.net Git - glabels/commitdiff
Added text merge backend for semicolon separated values
authorJim Evins <evins@snaught.com>
Thu, 10 Jun 2010 00:30:05 +0000 (20:30 -0400)
committerJim Evins <evins@snaught.com>
Thu, 10 Jun 2010 00:30:05 +0000 (20:30 -0400)
Feature request #3013910.  Added entry for a text merge backend using
a semicolon as delimiter.

src/merge-init.c

index 550acbb322aa456bc55f6b8d5a9dd2450455091e..f8f02d6fe683aebe3f960f55d630e992371d0d46 100644 (file)
@@ -97,6 +97,21 @@ gl_merge_init (void)
                                    "line1_has_keys", TRUE,
                                   NULL);
 
+        gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
+                                   "Text/Semicolon",
+                                   _("Text: Semicolon separated values"),
+                                   GL_MERGE_SRC_IS_FILE,
+                                   "delim", ';',
+                                   NULL);
+
+        gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
+                                   "Text/Semicolon/Line1Keys",
+                                   _("Text: Semicolon separated values with keys on line 1"),
+                                   GL_MERGE_SRC_IS_FILE,
+                                   "delim", ';',
+                                   "line1_has_keys", TRUE,
+                                   NULL);
+
 #ifdef HAVE_LIBEBOOK
 
        gl_merge_register_backend (GL_TYPE_MERGE_EVOLUTION,