gnumeric r17216 - in trunk: . src



Author: mortenw
Date: Mon Mar 16 23:39:41 2009
New Revision: 17216
URL: http://svn.gnome.org/viewvc/gnumeric?rev=17216&view=rev

Log:
2009-03-16  Morten Welinder  <terra gnome org>

	* src/number-match.c (datetime_locale_setup): Handle the nb_NO
	case where abbreviated months end in a period by making that
	period optional on entry.



Modified:
   trunk/ChangeLog
   trunk/NEWS
   trunk/src/number-match.c

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Mon Mar 16 23:39:41 2009
@@ -38,6 +38,8 @@
 	* Fix criticals in xls export for comments without author.
 	* Fix crash while loading broken xls.  [#575393]
 	* Fix string problem with broken xls.  [#575452]
+	* Improve date entry for locales that end abbreviated month names
+	with punctuation.
 
 Sum1:
 	* Implement OOO probing.  [#574381]

Modified: trunk/src/number-match.c
==============================================================================
--- trunk/src/number-match.c	(original)
+++ trunk/src/number-match.c	Mon Mar 16 23:39:41 2009
@@ -184,6 +184,9 @@
 		g_string_append_c (p_MMM, '(');
 		s = go_date_month_name (m, TRUE);
 		go_regexp_quote (p_MMM, s);
+		/* nb_NO actually adds a "." for these abbreviations.  */
+		if (g_unichar_ispunct (g_utf8_get_char (g_utf8_prev_char (p_MMM->str + p_MMM->len))))
+			g_string_append_c (p_MMM, '?');
 		g_free (s);
 		g_string_append_c (p_MMM, ')');
 	}



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