[gcompris/gcomprixogoo] Fixed memory word number activity. It was broken related to translations.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gcompris/gcomprixogoo] Fixed memory word number activity. It was broken related to translations.
- Date: Mon, 18 Jan 2010 21:34:04 +0000 (UTC)
commit 3c9e414f2d95774fd67d77cbcb07b7246622c993
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Mon Jan 18 22:30:34 2010 +0100
Fixed memory word number activity. It was broken related to translations.
https://bugzilla.gnome.org/show_bug.cgi?id=607056
src/memory-activity/memory.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/memory-activity/memory.c b/src/memory-activity/memory.c
index 04ce95d..a68aa34 100644
--- a/src/memory-activity/memory.c
+++ b/src/memory-activity/memory.c
@@ -651,7 +651,7 @@ void get_random_token(int token_type, gint *returned_type, gchar **string, gchar
{
result = g_malloc0(2*sizeof(gunichar));
g_utf8_strncpy(result, g_utf8_offset_to_pointer (numbers,k),1);
- second = g_strdup(wordnumberList[k]);
+ second = g_strdup(gettext(wordnumberList[k]));
break;
}
default:
@@ -1757,7 +1757,6 @@ compare_card (gconstpointer a,
{
MemoryItem *card1 = (MemoryItem *)a;
MemoryItem *card2 = (MemoryItem *)b;
-
if (card1->type & (TYPE_ADD|TYPE_MINUS|TYPE_MULT|TYPE_DIV|TYPE_ENUMERATE|TYPE_ENUMERATE_IMAGE|TYPE_WORDNUMBER)){
if ((!card1->second_value) && ( card2->second_value)){
return strcmp(card1->data,card2->second_value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]