Re: [evolution-patches] Patch for translation-issues in save-calendar plugin (#73099)




This is pretty nasty code.  It would be MUCH cleaner to just use a loop.

i.e.

static char *labels[] = {
    N_("Uid"),
    N_("Summary"),
    N_("Description"),
    N_("Categories List"),
...
};

{
    for (i=0;i<G_ARRAY_SIZE(labels);i++) {
        if (i>0)
            g_string_append(line, config->delimiter);
        g_string_append(line, _(labels[i]));
    }
}


On Tue, 2005-03-01 at 21:39 +0100, Philip Van Hoof wrote:
+                               line = g_string_append (line, _("Uid"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("Summary"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("Description List"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("Categories List"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("Comment List"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("Completed"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("Created"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("Contact List"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("Start"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("End"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("Due"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("percent Done"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("Priority"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("Url"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("Attendees List"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("Location"));
+                               line = g_string_append (line, config->delimiter);
+                               line = g_string_append (line, _("Modified"));
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]