Commit ddceee4f authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

remove pointless checking for lists in english and another language.

2001-12-31  Jody Goldberg <jody@gnome.org>

	* src/sheet-autofill.c (in_list) : remove pointless checking for lists
	  in english and another language.
parent 10d944ce
2001-12-31 Jody Goldberg <jody@gnome.org>
* src/sheet-autofill.c (in_list) : remove pointless checking for lists
in english and another language.
* src/sheet-object-widget.c (sheet_widget_checkbox_read_xml) : do not
set the sheet here. That happens latter. Handle no input smoothly.
(sheet_widget_checkbox_write_xml) : handle no input smoothly.
......
2001-12-31 Jody Goldberg <jody@gnome.org>
* src/sheet-autofill.c (in_list) : remove pointless checking for lists
in english and another language.
* src/sheet-object-widget.c (sheet_widget_checkbox_read_xml) : do not
set the sheet here. That happens latter. Handle no input smoothly.
(sheet_widget_checkbox_write_xml) : handle no input smoothly.
......
2001-12-31 Jody Goldberg <jody@gnome.org>
* src/sheet-autofill.c (in_list) : remove pointless checking for lists
in english and another language.
* src/sheet-object-widget.c (sheet_widget_checkbox_read_xml) : do not
set the sheet here. That happens latter. Handle no input smoothly.
(sheet_widget_checkbox_write_xml) : handle no input smoothly.
......
2001-12-31 Jody Goldberg <jody@gnome.org>
* src/sheet-autofill.c (in_list) : remove pointless checking for lists
in english and another language.
* src/sheet-object-widget.c (sheet_widget_checkbox_read_xml) : do not
set the sheet here. That happens latter. Handle no input smoothly.
(sheet_widget_checkbox_write_xml) : handle no input smoothly.
......
......@@ -156,22 +156,9 @@ in_list (AutoFillList const *afl, char const *s, int *n, int *is_i18n)
int i;
for (i = 0; i < afl->count; i++) {
const char *english_text, *translated_text;
english_text = afl->items [i];
if (english_text [0] == '*')
english_text++;
if ((g_strcasecmp (english_text, s) == 0)) {
*is_i18n = FALSE;
*n = i;
return TRUE;
}
translated_text = _(afl->items [i]);
char const *translated_text = _(afl->items [i]);
if (*translated_text == '*')
translated_text++;
if (g_strcasecmp (translated_text, s) == 0) {
*is_i18n = TRUE;
*n = i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment