r16202 - gnucash/trunk/src/gnome - Fixup i18n as per cstim (thanks! :).

Josh Sled jsled at cvs.gnucash.org
Fri Jun 22 15:43:30 EDT 2007


Author: jsled
Date: 2007-06-22 15:43:29 -0400 (Fri, 22 Jun 2007)
New Revision: 16202
Trac: http://svn.gnucash.org/trac/changeset/16202

Modified:
   gnucash/trunk/src/gnome/dialog-sx-since-last-run.c
Log:
Fixup i18n as per cstim (thanks! :).


Modified: gnucash/trunk/src/gnome/dialog-sx-since-last-run.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-sx-since-last-run.c	2007-06-22 17:42:52 UTC (rev 16201)
+++ gnucash/trunk/src/gnome/dialog-sx-since-last-run.c	2007-06-22 19:43:29 UTC (rev 16202)
@@ -361,11 +361,11 @@
 
 /* @@fixme: non-staticize. **/
 static char* gnc_sx_instance_state_names[] = {
-    "Ignored",
-    "Postponed",
-    "To-Create",
-    "Reminder",
-    "Created",
+    N_("Ignored"),
+    N_("Postponed"),
+    N_("To-Create"),
+    N_("Reminder"),
+    N_("Created"),
     NULL
 };
 
@@ -374,17 +374,6 @@
 GtkTreeModel*
 gnc_sx_get_slr_state_model(void)
 {
-    // This lists exists only to have translatable versions of the strings above.
-    char* _i18n_gnc_sx_instance_state_names[] = {
-        _("Ignored"),
-        _("Postponed"),
-        _("To-Create"),
-        _("Reminder"),
-        _("Created"),
-        NULL
-    };
-    if (_i18n_gnc_sx_instance_state_names == NULL) { ; }
-
     if (_singleton_slr_state_model == NULL)
     {
         int i;
@@ -396,7 +385,7 @@
             gtk_list_store_insert_with_values(GTK_LIST_STORE(_singleton_slr_state_model),
                                               &iter,
                                               SX_INSTANCE_STATE_MAX_STATE + 1,
-                                              0, _(gnc_sx_instance_state_names[i]), -1);
+                                              0, gnc_sx_instance_state_names[i], -1);
         }
     }
     return _singleton_slr_state_model;
@@ -445,7 +434,7 @@
             GDate *last_occur = xaccSchedXactionGetLastOccurDate(instances->sx);
             if (last_occur == NULL || !g_date_valid(last_occur))
             {
-                g_stpcpy(last_occur_date_buf, _("never"));
+                g_stpcpy(last_occur_date_buf, _("Never"));
             }
             else
             {
@@ -487,7 +476,7 @@
                 }
                 gtk_tree_store_set(model->real, &inst_tree_iter,
                                    SLR_MODEL_COL_NAME, instance_date_buf,
-                                   SLR_MODEL_COL_INSTANCE_STATE, _(gnc_sx_instance_state_names[inst->state]),
+                                   SLR_MODEL_COL_INSTANCE_STATE, gnc_sx_instance_state_names[inst->state],
                                    SLR_MODEL_COL_VARAIBLE_VALUE, NULL,
                                    SLR_MODEL_COL_INSTANCE_VISIBILITY, TRUE,
                                    SLR_MODEL_COL_VARIABLE_VISIBILITY, FALSE,
@@ -515,7 +504,7 @@
                         }
                         else
                         {
-                            tmp_str = g_string_new(_("(need value)"));
+                            tmp_str = g_string_new(_("(Need Value)"));
                         }
 
                         if (!gtk_tree_model_iter_nth_child(GTK_TREE_MODEL(model->real),
@@ -836,7 +825,7 @@
      
     for (i = 0; i < SX_INSTANCE_STATE_CREATED; i++)
     {
-        if (strcmp(value, _(gnc_sx_instance_state_names[i])) == 0)
+        if (strcmp(value, gnc_sx_instance_state_names[i]) == 0)
             break;
     }
     if (i == SX_INSTANCE_STATE_CREATED)



More information about the gnucash-changes mailing list