[Tux4kids-commits] r130 - in tuxmath/trunk/src: . po

Karl Ove Hufthammer huftis-guest at alioth.debian.org
Wed Mar 14 19:58:36 CET 2007


Author: huftis-guest
Date: 2007-03-14 18:58:35 +0000 (Wed, 14 Mar 2007)
New Revision: 130

Added:
   tuxmath/trunk/src/po/lessons_desc.txt
   tuxmath/trunk/src/po/update-po.sh
Modified:
   tuxmath/trunk/src/po/POTFILES.in
   tuxmath/trunk/src/po/nn.po
   tuxmath/trunk/src/po/tuxmath.pot
   tuxmath/trunk/src/titlescreen.c
Log:
Added translation support for the lesson names.

Modified: tuxmath/trunk/src/po/POTFILES.in
===================================================================
--- tuxmath/trunk/src/po/POTFILES.in	2007-03-14 02:01:49 UTC (rev 129)
+++ tuxmath/trunk/src/po/POTFILES.in	2007-03-14 18:58:35 UTC (rev 130)
@@ -1,3 +1,5 @@
 [encoding: UTF-8]
 pause.c
 titlescreen.c
+po/lessons_desc.txt
+

Added: tuxmath/trunk/src/po/lessons_desc.txt
===================================================================
--- tuxmath/trunk/src/po/lessons_desc.txt	2007-03-14 02:01:49 UTC (rev 129)
+++ tuxmath/trunk/src/po/lessons_desc.txt	2007-03-14 18:58:35 UTC (rev 130)
@@ -0,0 +1,165 @@
+_(Number Typing)
+_(Addition: 1 to 3)
+_(Addition: 0 to 5)
+_(Addition: Sums To 10)
+_(Addition: Sums To 15)
+_(Addition: Sums To 20)
+_(Addition: Two Digit Numbers)
+_(Addition: Missing Numbers)
+_(Subtraction: 0 to 10)
+_(Subtraction: Two Digit Numbers)
+_(Addition and Subtraction Review)
+_(Multiplication: 0 to 3)
+_(Multiples of 2)
+_(Multiples of 3)
+_(Multiples of 4)
+_(Multiples of 5)
+_(Multiplication: 0 to 5)
+_(Multiples of 6)
+_(Multiples of 7)
+_(Multiplication: 0 to 7)
+_(Multiples of 8)
+_(Multiples of 9)
+_(Multiples of 10)
+_(Multiplication: 0 to 10)
+_(Multiples of 11 and 12)
+_(Multiplication: 0 to 12)
+_(Multiples of 13, 14, and 15)
+_(Multiplication: 0 to 15)
+_(Multiplication: Missing Numbers)
+_(Division by 2)
+_(Division by 3)
+_(Division by 4)
+_(Division by 5)
+_(Division: 1 to 5)
+_(Division by 6)
+_(Division by 7)
+_(Division by 8)
+_(Division by 9)
+_(Division by 10)
+_(Division: 1 to 10)
+_(Division by 11 and 12)
+_(Division: 1 to 12)
+_(Division by 13, 14 and 15)
+_(Division: 1 to 15)
+_(Multiplication/Division Super Review!)
+_(Typing Negative Numbers)
+_(Subtraction: Negative Answers)
+_(Adding Negatives To Positives)
+_(Subtracting Negatives From Positives)
+_(Adding Negatives To Negatives)
+_(Subtracting Negatives From Negatives)
+_(Neg/Pos Review)
+_(Multiplication And Division Of Negatives)
+_(Multiplication Of Positives And Negatives)
+_(Division Of Positives And Negatives)
+_(Number Typing)
+_(Addition: 1 to 3)
+_(Addition: 0 to 5)
+_(Addition: Sums To 10)
+_(Addition: Sums To 15)
+_(Addition: Sums To 20)
+_(Addition: Two Digit Numbers)
+_(Addition: Missing Numbers)
+_(Subtraction: 0 to 10)
+_(Subtraction: Two Digit Numbers)
+_(Addition and Subtraction Review)
+_(Multiplication: 0 to 3)
+_(Multiples of 2)
+_(Multiples of 3)
+_(Multiples of 4)
+_(Multiples of 5)
+_(Multiplication: 0 to 5)
+_(Multiples of 6)
+_(Multiples of 7)
+_(Multiplication: 0 to 7)
+_(Multiples of 8)
+_(Multiples of 9)
+_(Multiples of 10)
+_(Multiplication: 0 to 10)
+_(Multiples of 11 and 12)
+_(Multiplication: 0 to 12)
+_(Multiples of 13, 14, and 15)
+_(Multiplication: 0 to 15)
+_(Multiplication: Missing Numbers)
+_(Division by 2)
+_(Division by 3)
+_(Division by 4)
+_(Division by 5)
+_(Division: 1 to 5)
+_(Division by 6)
+_(Division by 7)
+_(Division by 8)
+_(Division by 9)
+_(Division by 10)
+_(Division: 1 to 10)
+_(Division by 11 and 12)
+_(Division: 1 to 12)
+_(Division by 13, 14 and 15)
+_(Division: 1 to 15)
+_(Multiplication/Division Super Review!)
+_(Typing Negative Numbers)
+_(Subtraction: Negative Answers)
+_(Adding Negatives To Positives)
+_(Subtracting Negatives From Positives)
+_(Adding Negatives To Negatives)
+_(Subtracting Negatives From Negatives)
+_(Neg/Pos Review)
+_(Multiplication And Division Of Negatives)
+_(Multiplication Of Positives And Negatives)
+_(Division Of Positives And Negatives)
+_("Number Typing")
+_("Addition: 1 to 3")
+_("Addition: 0 to 5")
+_("Addition: Sums To 10")
+_("Addition: Sums To 15")
+_("Addition: Sums To 20")
+_("Addition: Two Digit Numbers")
+_("Addition: Missing Numbers")
+_("Subtraction: 0 to 10")
+_("Subtraction: Two Digit Numbers")
+_("Addition and Subtraction Review")
+_("Multiplication: 0 to 3")
+_("Multiples of 2")
+_("Multiples of 3")
+_("Multiples of 4")
+_("Multiples of 5")
+_("Multiplication: 0 to 5")
+_("Multiples of 6")
+_("Multiples of 7")
+_("Multiplication: 0 to 7")
+_("Multiples of 8")
+_("Multiples of 9")
+_("Multiples of 10")
+_("Multiplication: 0 to 10")
+_("Multiples of 11 and 12")
+_("Multiplication: 0 to 12")
+_("Multiples of 13, 14, and 15")
+_("Multiplication: 0 to 15")
+_("Multiplication: Missing Numbers")
+_("Division by 2")
+_("Division by 3")
+_("Division by 4")
+_("Division by 5")
+_("Division: 1 to 5")
+_("Division by 6")
+_("Division by 7")
+_("Division by 8")
+_("Division by 9")
+_("Division by 10")
+_("Division: 1 to 10")
+_("Division by 11 and 12")
+_("Division: 1 to 12")
+_("Division by 13, 14 and 15")
+_("Division: 1 to 15")
+_("Multiplication/Division Super Review!")
+_("Typing Negative Numbers")
+_("Subtraction: Negative Answers")
+_("Adding Negatives To Positives")
+_("Subtracting Negatives From Positives")
+_("Adding Negatives To Negatives")
+_("Subtracting Negatives From Negatives")
+_("Neg/Pos Review")
+_("Multiplication And Division Of Negatives")
+_("Multiplication Of Positives And Negatives")
+_("Division Of Positives And Negatives")


Property changes on: tuxmath/trunk/src/po/lessons_desc.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: tuxmath/trunk/src/po/nn.po
===================================================================
--- tuxmath/trunk/src/po/nn.po	2007-03-14 02:01:49 UTC (rev 129)
+++ tuxmath/trunk/src/po/nn.po	2007-03-14 18:58:35 UTC (rev 130)
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: nn\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-03-10 13:54+0100\n"
+"POT-Creation-Date: 2007-03-14 19:56+0100\n"
 "PO-Revision-Date: 2007-03-10 13:59+0100\n"
 "Last-Translator: Karl Ove Hufthammer <karl at huftis.org>\n"
 "Language-Team: Norwegian Nynorsk <i18n-nn at lister.ping.uio.no>\n"
@@ -113,15 +113,234 @@
 msgid "Main Menu"
 msgstr "Hovudmeny"
 
-#: ../titlescreen.c:1211
+#: ../titlescreen.c:1246
 msgid "Work In Progress!"
 msgstr "Uferdig!"
 
-#: ../titlescreen.c:1212
+#: ../titlescreen.c:1247
 msgid "This feature is not ready yet"
 msgstr "Denne funksjonen er ikkje klar enno."
 
-#: ../titlescreen.c:1213
+#: ../titlescreen.c:1248
 msgid "Discuss the future of TuxMath at"
 msgstr "Diskuter framtida til TuxMath på"
 
+#: ../po/lessons_desc.txt:111
+msgid "Number Typing"
+msgstr "Talskriving"
+
+#: ../po/lessons_desc.txt:112
+msgid "Addition: 1 to 3"
+msgstr ""
+
+#: ../po/lessons_desc.txt:113
+msgid "Addition: 0 to 5"
+msgstr ""
+
+#: ../po/lessons_desc.txt:114
+msgid "Addition: Sums To 10"
+msgstr ""
+
+#: ../po/lessons_desc.txt:115
+msgid "Addition: Sums To 15"
+msgstr ""
+
+#: ../po/lessons_desc.txt:116
+msgid "Addition: Sums To 20"
+msgstr ""
+
+#: ../po/lessons_desc.txt:117
+msgid "Addition: Two Digit Numbers"
+msgstr ""
+
+#: ../po/lessons_desc.txt:118
+msgid "Addition: Missing Numbers"
+msgstr ""
+
+#: ../po/lessons_desc.txt:119
+msgid "Subtraction: 0 to 10"
+msgstr ""
+
+#: ../po/lessons_desc.txt:120
+msgid "Subtraction: Two Digit Numbers"
+msgstr ""
+
+#: ../po/lessons_desc.txt:121
+msgid "Addition and Subtraction Review"
+msgstr ""
+
+#: ../po/lessons_desc.txt:122
+msgid "Multiplication: 0 to 3"
+msgstr ""
+
+#: ../po/lessons_desc.txt:123
+msgid "Multiples of 2"
+msgstr ""
+
+#: ../po/lessons_desc.txt:124
+msgid "Multiples of 3"
+msgstr ""
+
+#: ../po/lessons_desc.txt:125
+msgid "Multiples of 4"
+msgstr ""
+
+#: ../po/lessons_desc.txt:126
+msgid "Multiples of 5"
+msgstr ""
+
+#: ../po/lessons_desc.txt:127
+msgid "Multiplication: 0 to 5"
+msgstr ""
+
+#: ../po/lessons_desc.txt:128
+msgid "Multiples of 6"
+msgstr ""
+
+#: ../po/lessons_desc.txt:129
+msgid "Multiples of 7"
+msgstr ""
+
+#: ../po/lessons_desc.txt:130
+msgid "Multiplication: 0 to 7"
+msgstr ""
+
+#: ../po/lessons_desc.txt:131
+msgid "Multiples of 8"
+msgstr ""
+
+#: ../po/lessons_desc.txt:132
+msgid "Multiples of 9"
+msgstr ""
+
+#: ../po/lessons_desc.txt:133
+msgid "Multiples of 10"
+msgstr ""
+
+#: ../po/lessons_desc.txt:134
+msgid "Multiplication: 0 to 10"
+msgstr ""
+
+#: ../po/lessons_desc.txt:135
+msgid "Multiples of 11 and 12"
+msgstr ""
+
+#: ../po/lessons_desc.txt:136
+msgid "Multiplication: 0 to 12"
+msgstr ""
+
+#: ../po/lessons_desc.txt:137
+msgid "Multiples of 13, 14, and 15"
+msgstr ""
+
+#: ../po/lessons_desc.txt:138
+msgid "Multiplication: 0 to 15"
+msgstr ""
+
+#: ../po/lessons_desc.txt:139
+msgid "Multiplication: Missing Numbers"
+msgstr ""
+
+#: ../po/lessons_desc.txt:140
+msgid "Division by 2"
+msgstr ""
+
+#: ../po/lessons_desc.txt:141
+msgid "Division by 3"
+msgstr ""
+
+#: ../po/lessons_desc.txt:142
+msgid "Division by 4"
+msgstr ""
+
+#: ../po/lessons_desc.txt:143
+msgid "Division by 5"
+msgstr ""
+
+#: ../po/lessons_desc.txt:144
+msgid "Division: 1 to 5"
+msgstr ""
+
+#: ../po/lessons_desc.txt:145
+msgid "Division by 6"
+msgstr ""
+
+#: ../po/lessons_desc.txt:146
+msgid "Division by 7"
+msgstr ""
+
+#: ../po/lessons_desc.txt:147
+msgid "Division by 8"
+msgstr ""
+
+#: ../po/lessons_desc.txt:148
+msgid "Division by 9"
+msgstr ""
+
+#: ../po/lessons_desc.txt:149
+msgid "Division by 10"
+msgstr ""
+
+#: ../po/lessons_desc.txt:150
+msgid "Division: 1 to 10"
+msgstr ""
+
+#: ../po/lessons_desc.txt:151
+msgid "Division by 11 and 12"
+msgstr ""
+
+#: ../po/lessons_desc.txt:152
+msgid "Division: 1 to 12"
+msgstr ""
+
+#: ../po/lessons_desc.txt:153
+msgid "Division by 13, 14 and 15"
+msgstr ""
+
+#: ../po/lessons_desc.txt:154
+msgid "Division: 1 to 15"
+msgstr ""
+
+#: ../po/lessons_desc.txt:155
+msgid "Multiplication/Division Super Review!"
+msgstr ""
+
+#: ../po/lessons_desc.txt:156
+msgid "Typing Negative Numbers"
+msgstr ""
+
+#: ../po/lessons_desc.txt:157
+msgid "Subtraction: Negative Answers"
+msgstr ""
+
+#: ../po/lessons_desc.txt:158
+msgid "Adding Negatives To Positives"
+msgstr ""
+
+#: ../po/lessons_desc.txt:159
+msgid "Subtracting Negatives From Positives"
+msgstr ""
+
+#: ../po/lessons_desc.txt:160
+msgid "Adding Negatives To Negatives"
+msgstr ""
+
+#: ../po/lessons_desc.txt:161
+msgid "Subtracting Negatives From Negatives"
+msgstr ""
+
+#: ../po/lessons_desc.txt:162
+msgid "Neg/Pos Review"
+msgstr ""
+
+#: ../po/lessons_desc.txt:163
+msgid "Multiplication And Division Of Negatives"
+msgstr ""
+
+#: ../po/lessons_desc.txt:164
+msgid "Multiplication Of Positives And Negatives"
+msgstr ""
+
+#: ../po/lessons_desc.txt:165
+msgid "Division Of Positives And Negatives"
+msgstr ""

Modified: tuxmath/trunk/src/po/tuxmath.pot
===================================================================
--- tuxmath/trunk/src/po/tuxmath.pot	2007-03-14 02:01:49 UTC (rev 129)
+++ tuxmath/trunk/src/po/tuxmath.pot	2007-03-14 18:58:35 UTC (rev 130)
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-03-10 13:53+0100\n"
+"POT-Creation-Date: 2007-03-14 19:56+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -112,14 +112,234 @@
 msgid "Main Menu"
 msgstr ""
 
-#: ../titlescreen.c:1211
+#: ../titlescreen.c:1246
 msgid "Work In Progress!"
 msgstr ""
 
-#: ../titlescreen.c:1212
+#: ../titlescreen.c:1247
 msgid "This feature is not ready yet"
 msgstr ""
 
-#: ../titlescreen.c:1213
+#: ../titlescreen.c:1248
 msgid "Discuss the future of TuxMath at"
 msgstr ""
+
+#: ../po/lessons_desc.txt:111
+msgid "Number Typing"
+msgstr ""
+
+#: ../po/lessons_desc.txt:112
+msgid "Addition: 1 to 3"
+msgstr ""
+
+#: ../po/lessons_desc.txt:113
+msgid "Addition: 0 to 5"
+msgstr ""
+
+#: ../po/lessons_desc.txt:114
+msgid "Addition: Sums To 10"
+msgstr ""
+
+#: ../po/lessons_desc.txt:115
+msgid "Addition: Sums To 15"
+msgstr ""
+
+#: ../po/lessons_desc.txt:116
+msgid "Addition: Sums To 20"
+msgstr ""
+
+#: ../po/lessons_desc.txt:117
+msgid "Addition: Two Digit Numbers"
+msgstr ""
+
+#: ../po/lessons_desc.txt:118
+msgid "Addition: Missing Numbers"
+msgstr ""
+
+#: ../po/lessons_desc.txt:119
+msgid "Subtraction: 0 to 10"
+msgstr ""
+
+#: ../po/lessons_desc.txt:120
+msgid "Subtraction: Two Digit Numbers"
+msgstr ""
+
+#: ../po/lessons_desc.txt:121
+msgid "Addition and Subtraction Review"
+msgstr ""
+
+#: ../po/lessons_desc.txt:122
+msgid "Multiplication: 0 to 3"
+msgstr ""
+
+#: ../po/lessons_desc.txt:123
+msgid "Multiples of 2"
+msgstr ""
+
+#: ../po/lessons_desc.txt:124
+msgid "Multiples of 3"
+msgstr ""
+
+#: ../po/lessons_desc.txt:125
+msgid "Multiples of 4"
+msgstr ""
+
+#: ../po/lessons_desc.txt:126
+msgid "Multiples of 5"
+msgstr ""
+
+#: ../po/lessons_desc.txt:127
+msgid "Multiplication: 0 to 5"
+msgstr ""
+
+#: ../po/lessons_desc.txt:128
+msgid "Multiples of 6"
+msgstr ""
+
+#: ../po/lessons_desc.txt:129
+msgid "Multiples of 7"
+msgstr ""
+
+#: ../po/lessons_desc.txt:130
+msgid "Multiplication: 0 to 7"
+msgstr ""
+
+#: ../po/lessons_desc.txt:131
+msgid "Multiples of 8"
+msgstr ""
+
+#: ../po/lessons_desc.txt:132
+msgid "Multiples of 9"
+msgstr ""
+
+#: ../po/lessons_desc.txt:133
+msgid "Multiples of 10"
+msgstr ""
+
+#: ../po/lessons_desc.txt:134
+msgid "Multiplication: 0 to 10"
+msgstr ""
+
+#: ../po/lessons_desc.txt:135
+msgid "Multiples of 11 and 12"
+msgstr ""
+
+#: ../po/lessons_desc.txt:136
+msgid "Multiplication: 0 to 12"
+msgstr ""
+
+#: ../po/lessons_desc.txt:137
+msgid "Multiples of 13, 14, and 15"
+msgstr ""
+
+#: ../po/lessons_desc.txt:138
+msgid "Multiplication: 0 to 15"
+msgstr ""
+
+#: ../po/lessons_desc.txt:139
+msgid "Multiplication: Missing Numbers"
+msgstr ""
+
+#: ../po/lessons_desc.txt:140
+msgid "Division by 2"
+msgstr ""
+
+#: ../po/lessons_desc.txt:141
+msgid "Division by 3"
+msgstr ""
+
+#: ../po/lessons_desc.txt:142
+msgid "Division by 4"
+msgstr ""
+
+#: ../po/lessons_desc.txt:143
+msgid "Division by 5"
+msgstr ""
+
+#: ../po/lessons_desc.txt:144
+msgid "Division: 1 to 5"
+msgstr ""
+
+#: ../po/lessons_desc.txt:145
+msgid "Division by 6"
+msgstr ""
+
+#: ../po/lessons_desc.txt:146
+msgid "Division by 7"
+msgstr ""
+
+#: ../po/lessons_desc.txt:147
+msgid "Division by 8"
+msgstr ""
+
+#: ../po/lessons_desc.txt:148
+msgid "Division by 9"
+msgstr ""
+
+#: ../po/lessons_desc.txt:149
+msgid "Division by 10"
+msgstr ""
+
+#: ../po/lessons_desc.txt:150
+msgid "Division: 1 to 10"
+msgstr ""
+
+#: ../po/lessons_desc.txt:151
+msgid "Division by 11 and 12"
+msgstr ""
+
+#: ../po/lessons_desc.txt:152
+msgid "Division: 1 to 12"
+msgstr ""
+
+#: ../po/lessons_desc.txt:153
+msgid "Division by 13, 14 and 15"
+msgstr ""
+
+#: ../po/lessons_desc.txt:154
+msgid "Division: 1 to 15"
+msgstr ""
+
+#: ../po/lessons_desc.txt:155
+msgid "Multiplication/Division Super Review!"
+msgstr ""
+
+#: ../po/lessons_desc.txt:156
+msgid "Typing Negative Numbers"
+msgstr ""
+
+#: ../po/lessons_desc.txt:157
+msgid "Subtraction: Negative Answers"
+msgstr ""
+
+#: ../po/lessons_desc.txt:158
+msgid "Adding Negatives To Positives"
+msgstr ""
+
+#: ../po/lessons_desc.txt:159
+msgid "Subtracting Negatives From Positives"
+msgstr ""
+
+#: ../po/lessons_desc.txt:160
+msgid "Adding Negatives To Negatives"
+msgstr ""
+
+#: ../po/lessons_desc.txt:161
+msgid "Subtracting Negatives From Negatives"
+msgstr ""
+
+#: ../po/lessons_desc.txt:162
+msgid "Neg/Pos Review"
+msgstr ""
+
+#: ../po/lessons_desc.txt:163
+msgid "Multiplication And Division Of Negatives"
+msgstr ""
+
+#: ../po/lessons_desc.txt:164
+msgid "Multiplication Of Positives And Negatives"
+msgstr ""
+
+#: ../po/lessons_desc.txt:165
+msgid "Division Of Positives And Negatives"
+msgstr ""

Added: tuxmath/trunk/src/po/update-po.sh
===================================================================
--- tuxmath/trunk/src/po/update-po.sh	2007-03-14 02:01:49 UTC (rev 129)
+++ tuxmath/trunk/src/po/update-po.sh	2007-03-14 18:58:35 UTC (rev 130)
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# Create a 'source' file holding all the descriptions for the missions.
+rm -f ../lessons_desc.txt
+for i in ../../data/missions/lessons/lesson*; do
+ head --lines=1 $i | sed 's/^# \(.*\)$/_("\1")/' >> lessons_desc.txt;
+done;
+
+# Update the POT translation template file.
+intltool-update --pot --gettext-package=tuxmath
+
+# Update all the PO translation files.
+for i in *.po ; do
+  echo $i
+  msgmerge $i tuxmath.pot > temp.tmp && mv -f temp.tmp $i
+done
+


Property changes on: tuxmath/trunk/src/po/update-po.sh
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native

Modified: tuxmath/trunk/src/titlescreen.c
===================================================================
--- tuxmath/trunk/src/titlescreen.c	2007-03-14 02:01:49 UTC (rev 129)
+++ tuxmath/trunk/src/titlescreen.c	2007-03-14 18:58:35 UTC (rev 130)
@@ -1505,8 +1505,8 @@
   /* FIXME black_outline() segfaults if passed "" as arg */
   for (i = 0; i < lessons; i++)
   {
-    titles[i] = black_outline( lesson_names[i], default_font, &white );
-    select[i] = black_outline( lesson_names[i], default_font, &yellow);
+    titles[i] = black_outline( _(lesson_names[i]), default_font, &white );
+    select[i] = black_outline( _(lesson_names[i]), default_font, &yellow);
   }
 
 //   if (images[IMG_MENU_BKG])




More information about the Tux4kids-commits mailing list