Unlimited the number of variables that the GUI can cope with.
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 4 Jun 2006 08:02:44 +0000 (08:02 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 4 Jun 2006 08:02:44 +0000 (08:02 +0000)
Yet more i18n issues.

po/de.po
po/pspp.pot
src/ui/gui/ChangeLog
src/ui/gui/psppire-var-store.c
src/ui/gui/psppire.c
src/ui/gui/psppire.glade
src/ui/gui/var-sheet.c

index 57500f29533b9bdeba563c699ebf4b24f1e2d995..719716e34b6831feeb084808e60b8070fc1c5d71 100644 (file)
--- a/po/de.po
+++ b/po/de.po
@@ -10,7 +10,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PSPP 0.4.2\n"
 "Report-Msgid-Bugs-To: pspp-dev@gnu.org\n"
 msgstr ""
 "Project-Id-Version: PSPP 0.4.2\n"
 "Report-Msgid-Bugs-To: pspp-dev@gnu.org\n"
-"POT-Creation-Date: 2006-06-03 10:37+0800\n"
+"POT-Creation-Date: 2006-06-04 13:53+0800\n"
 "PO-Revision-Date: 2006-05-26 17:49+0800\n"
 "Last-Translator: John Darrington <john@darrington.wattle.id.au>\n"
 "Language-Team: German <pspp-dev@gnu.org>\n"
 "PO-Revision-Date: 2006-05-26 17:49+0800\n"
 "Last-Translator: John Darrington <john@darrington.wattle.id.au>\n"
 "Language-Team: German <pspp-dev@gnu.org>\n"
@@ -390,13 +390,13 @@ msgstr ""
 
 #: src/data/format.c:197 src/data/por-file-reader.c:481
 #: src/data/sys-file-reader.c:1265 src/data/sys-file-reader.c:1274
 
 #: src/data/format.c:197 src/data/por-file-reader.c:481
 #: src/data/sys-file-reader.c:1265 src/data/sys-file-reader.c:1274
-#: src/ui/gui/psppire.glade:764 src/ui/gui/psppire-var-store.c:432
+#: src/ui/gui/psppire.glade:764 src/ui/gui/psppire-var-store.c:448
 msgid "String"
 msgstr "Zeichenkette"
 
 #: src/data/format.c:197 src/data/por-file-reader.c:481
 #: src/data/sys-file-reader.c:1265 src/data/sys-file-reader.c:1274
 msgid "String"
 msgstr "Zeichenkette"
 
 #: src/data/format.c:197 src/data/por-file-reader.c:481
 #: src/data/sys-file-reader.c:1265 src/data/sys-file-reader.c:1274
-#: src/ui/gui/psppire.glade:625 src/ui/gui/psppire-var-store.c:425
+#: src/ui/gui/psppire.glade:625 src/ui/gui/psppire-var-store.c:441
 msgid "Numeric"
 msgstr "Nummer"
 
 msgid "Numeric"
 msgstr "Nummer"
 
@@ -958,7 +958,7 @@ msgstr "Ein Variablename darf nicht eines leeres Kette sein."
 #: src/data/variable.c:199
 #, c-format
 msgid "Variable name %s exceeds %d-character limit."
 #: src/data/variable.c:199
 #, c-format
 msgid "Variable name %s exceeds %d-character limit."
-msgstr ""
+msgstr "Der Variabelname %s ist große als %d Buchstaben."
 
 #: src/data/variable.c:207
 #, c-format
 
 #: src/data/variable.c:207
 #, c-format
@@ -1225,7 +1225,7 @@ msgid "Record"
 msgstr ""
 
 #: src/language/data-io/data-list.c:768 src/language/data-io/print.c:804
 msgstr ""
 
 #: src/language/data-io/data-list.c:768 src/language/data-io/print.c:804
-#: src/ui/gui/var-sheet.c:77
+#: src/ui/gui/var-sheet.c:78
 msgid "Columns"
 msgstr "Spalten"
 
 msgid "Columns"
 msgstr "Spalten"
 
@@ -1937,7 +1937,7 @@ msgstr ""
 
 #: src/language/dictionary/split-file.c:85
 #: src/language/dictionary/sys-file-info.c:384
 
 #: src/language/dictionary/split-file.c:85
 #: src/language/dictionary/sys-file-info.c:384
-#: src/language/dictionary/sys-file-info.c:523 src/ui/gui/var-sheet.c:74
+#: src/language/dictionary/sys-file-info.c:523 src/ui/gui/var-sheet.c:75
 msgid "Label"
 msgstr "Kennsatz"
 
 msgid "Label"
 msgstr "Kennsatz"
 
@@ -2654,7 +2654,7 @@ msgstr ""
 
 #: src/language/stats/crosstabs.q:818 src/language/stats/examine.q:869
 #: src/language/stats/frequencies.q:1215 src/language/stats/frequencies.q:1521
 
 #: src/language/stats/crosstabs.q:818 src/language/stats/examine.q:869
 #: src/language/stats/frequencies.q:1215 src/language/stats/frequencies.q:1521
-#: src/ui/gui/var-sheet.c:76
+#: src/ui/gui/var-sheet.c:77
 msgid "Missing"
 msgstr "Löse"
 
 msgid "Missing"
 msgstr "Löse"
 
@@ -2782,7 +2782,7 @@ msgstr ""
 msgid "Directional measures."
 msgstr ""
 
 msgid "Directional measures."
 msgstr ""
 
-#: src/language/stats/crosstabs.q:1181 src/ui/gui/var-sheet.c:71
+#: src/language/stats/crosstabs.q:1181 src/ui/gui/var-sheet.c:72
 msgid "Type"
 msgstr "Typ"
 
 msgid "Type"
 msgstr "Typ"
 
@@ -4313,7 +4313,7 @@ msgstr "Unpassend Wert für Variable"
 msgid "Incorrect range specification"
 msgstr "Falshe Spannweitebeschreibung"
 
 msgid "Incorrect range specification"
 msgstr "Falshe Spannweitebeschreibung"
 
-#: src/ui/gui/psppire.c:72
+#: src/ui/gui/psppire.c:70
 msgid "Sorry. The help system hasn't yet been implemented."
 msgstr "Es gibt noch nicht kein Helpsysteme. Schade!"
 
 msgid "Sorry. The help system hasn't yet been implemented."
 msgstr "Es gibt noch nicht kein Helpsysteme. Schade!"
 
@@ -4339,7 +4339,7 @@ msgstr "_Ansicht"
 
 #: src/ui/gui/psppire.glade:167
 msgid "Status Bar"
 
 #: src/ui/gui/psppire.glade:167
 msgid "Status Bar"
-msgstr ""
+msgstr "Statusleiste"
 
 #: src/ui/gui/psppire.glade:176
 msgid "Toolbars"
 
 #: src/ui/gui/psppire.glade:176
 msgid "Toolbars"
@@ -4375,9 +4375,8 @@ msgid "_About"
 msgstr "_Info"
 
 #: src/ui/gui/psppire.glade:310
 msgstr "_Info"
 
 #: src/ui/gui/psppire.glade:310
-#, fuzzy
 msgid "Save"
 msgid "Save"
-msgstr "Name"
+msgstr "Speichen"
 
 #: src/ui/gui/psppire.glade:328
 msgid "Print"
 
 #: src/ui/gui/psppire.glade:328
 msgid "Print"
@@ -4413,19 +4412,15 @@ msgid ""
 "    02110-1301, USA.\n"
 msgstr ""
 
 "    02110-1301, USA.\n"
 msgstr ""
 
-#: src/ui/gui/psppire.glade:587
-msgid "translator-credits"
-msgstr "Überseztenangaben"
-
 #: src/ui/gui/psppire.glade:593
 msgid "Variable Type"
 msgstr "Variableansicht"
 
 #: src/ui/gui/psppire.glade:593
 msgid "Variable Type"
 msgstr "Variableansicht"
 
-#: src/ui/gui/psppire.glade:644 src/ui/gui/psppire-var-store.c:426
+#: src/ui/gui/psppire.glade:644 src/ui/gui/psppire-var-store.c:442
 msgid "Comma"
 msgstr "Komma"
 
 msgid "Comma"
 msgstr "Komma"
 
-#: src/ui/gui/psppire.glade:664 src/ui/gui/psppire-var-store.c:427
+#: src/ui/gui/psppire.glade:664 src/ui/gui/psppire-var-store.c:443
 msgid "Dot"
 msgstr "Punkt"
 
 msgid "Dot"
 msgstr "Punkt"
 
@@ -4433,11 +4428,11 @@ msgstr "Punkt"
 msgid "Scientific notation"
 msgstr "Wissenschaftlichnotation"
 
 msgid "Scientific notation"
 msgstr "Wissenschaftlichnotation"
 
-#: src/ui/gui/psppire.glade:704 src/ui/gui/psppire-var-store.c:429
+#: src/ui/gui/psppire.glade:704 src/ui/gui/psppire-var-store.c:445
 msgid "Date"
 msgstr "Datum"
 
 msgid "Date"
 msgstr "Datum"
 
-#: src/ui/gui/psppire.glade:724 src/ui/gui/psppire-var-store.c:430
+#: src/ui/gui/psppire.glade:724 src/ui/gui/psppire-var-store.c:446
 msgid "Dollar"
 msgstr "Euro"
 
 msgid "Dollar"
 msgstr "Euro"
 
@@ -4454,14 +4449,12 @@ msgid "negative"
 msgstr "negativ"
 
 #: src/ui/gui/psppire.glade:943
 msgstr "negativ"
 
 #: src/ui/gui/psppire.glade:943
-#, fuzzy
 msgid "Sample"
 msgid "Sample"
-msgstr "Name"
+msgstr "Muster"
 
 #: src/ui/gui/psppire.glade:1021
 
 #: src/ui/gui/psppire.glade:1021
-#, fuzzy
 msgid "Decimal Places:"
 msgid "Decimal Places:"
-msgstr "Detzimalen"
+msgstr "Dezimalstellen:"
 
 #: src/ui/gui/psppire.glade:1098
 msgid "Width:"
 
 #: src/ui/gui/psppire.glade:1098
 msgid "Width:"
@@ -4472,7 +4465,6 @@ msgid "Value:"
 msgstr "Werte:"
 
 #: src/ui/gui/psppire.glade:1344
 msgstr "Werte:"
 
 #: src/ui/gui/psppire.glade:1344
-#, fuzzy
 msgid "Value Label:"
 msgstr "Kennsatz:"
 
 msgid "Value Label:"
 msgstr "Kennsatz:"
 
@@ -4485,9 +4477,8 @@ msgid "_No missing values"
 msgstr "_Kein Lösewerten"
 
 #: src/ui/gui/psppire.glade:1670
 msgstr "_Kein Lösewerten"
 
 #: src/ui/gui/psppire.glade:1670
-#, fuzzy
 msgid "_Discrete missing values"
 msgid "_Discrete missing values"
-msgstr "_Kein Lösewerten"
+msgstr "_Diskret Lösewerten"
 
 #: src/ui/gui/psppire.glade:1799
 msgid "_Range plus one optional discrete missing value"
 
 #: src/ui/gui/psppire.glade:1799
 msgid "_Range plus one optional discrete missing value"
@@ -4505,63 +4496,69 @@ msgstr "_Hoch:"
 msgid "Di_screte value:"
 msgstr "Di_skretwerte"
 
 msgid "Di_screte value:"
 msgstr "Di_skretwerte"
 
-#: src/ui/gui/psppire-var-store.c:421
+#: src/ui/gui/psppire-var-store.c:437
 msgid "None"
 msgstr "Keine"
 
 msgid "None"
 msgstr "Keine"
 
-#: src/ui/gui/psppire-var-store.c:428
+#: src/ui/gui/psppire-var-store.c:444
 msgid "Scientific"
 msgstr "Wissenschäflich"
 
 msgid "Scientific"
 msgstr "Wissenschäflich"
 
-#: src/ui/gui/psppire-var-store.c:431
+#: src/ui/gui/psppire-var-store.c:447
 msgid "Custom"
 msgstr "Spezial"
 
 msgid "Custom"
 msgstr "Spezial"
 
-#: src/ui/gui/var-sheet.c:70
+#: src/ui/gui/psppire-var-store.c:515 src/ui/gui/psppire-var-store.c:525
+#: src/ui/gui/psppire-var-store.c:535 src/ui/gui/psppire-var-store.c:706
+#, c-format
+msgid "%d"
+msgstr ""
+
+#: src/ui/gui/var-sheet.c:71
 msgid "Name"
 msgstr "Name"
 
 msgid "Name"
 msgstr "Name"
 
-#: src/ui/gui/var-sheet.c:72
+#: src/ui/gui/var-sheet.c:73
 msgid "Width"
 msgstr "Große"
 
 msgid "Width"
 msgstr "Große"
 
-#: src/ui/gui/var-sheet.c:73
+#: src/ui/gui/var-sheet.c:74
 msgid "Decimals"
 msgid "Decimals"
-msgstr "Detzimalen"
+msgstr "Dezimalstellen"
 
 
-#: src/ui/gui/var-sheet.c:75
+#: src/ui/gui/var-sheet.c:76
 msgid "Values"
 msgstr "Werten"
 
 msgid "Values"
 msgstr "Werten"
 
-#: src/ui/gui/var-sheet.c:78
+#: src/ui/gui/var-sheet.c:79
 msgid "Align"
 msgstr "Einstellung"
 
 msgid "Align"
 msgstr "Einstellung"
 
-#: src/ui/gui/var-sheet.c:79
+#: src/ui/gui/var-sheet.c:80
 msgid "Measure"
 msgstr "Messe"
 
 msgid "Measure"
 msgstr "Messe"
 
-#: src/ui/gui/var-sheet.c:102
+#: src/ui/gui/var-sheet.c:103
 msgid "Left"
 msgstr "Links"
 
 msgid "Left"
 msgstr "Links"
 
-#: src/ui/gui/var-sheet.c:103
+#: src/ui/gui/var-sheet.c:104
 msgid "Right"
 msgstr "Rechts"
 
 msgid "Right"
 msgstr "Rechts"
 
-#: src/ui/gui/var-sheet.c:104
+#: src/ui/gui/var-sheet.c:105
 msgid "Centre"
 msgstr "Mittel"
 
 msgid "Centre"
 msgstr "Mittel"
 
-#: src/ui/gui/var-sheet.c:109
+#: src/ui/gui/var-sheet.c:110
 msgid "Nominal"
 msgstr "Nominalwert"
 
 msgid "Nominal"
 msgstr "Nominalwert"
 
-#: src/ui/gui/var-sheet.c:110
+#: src/ui/gui/var-sheet.c:111
 msgid "Ordinal"
 msgstr "Ordinalwert"
 
 msgid "Ordinal"
 msgstr "Ordinalwert"
 
-#: src/ui/gui/var-sheet.c:111
+#: src/ui/gui/var-sheet.c:112
 msgid "Scale"
 msgstr "Skalwert"
 
 msgid "Scale"
 msgstr "Skalwert"
 
index cfcac569b8b2d701e9bb17eb6764014ebefc674d..6990ea0d65f433537dcbce9fceb40eff74848318 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: pspp-dev@gnu.org\n"
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: pspp-dev@gnu.org\n"
-"POT-Creation-Date: 2006-06-03 10:37+0800\n"
+"POT-Creation-Date: 2006-06-04 13:53+0800\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -389,13 +389,13 @@ msgstr ""
 
 #: src/data/format.c:197 src/data/por-file-reader.c:481
 #: src/data/sys-file-reader.c:1265 src/data/sys-file-reader.c:1274
 
 #: src/data/format.c:197 src/data/por-file-reader.c:481
 #: src/data/sys-file-reader.c:1265 src/data/sys-file-reader.c:1274
-#: src/ui/gui/psppire.glade:764 src/ui/gui/psppire-var-store.c:432
+#: src/ui/gui/psppire.glade:764 src/ui/gui/psppire-var-store.c:448
 msgid "String"
 msgstr ""
 
 #: src/data/format.c:197 src/data/por-file-reader.c:481
 #: src/data/sys-file-reader.c:1265 src/data/sys-file-reader.c:1274
 msgid "String"
 msgstr ""
 
 #: src/data/format.c:197 src/data/por-file-reader.c:481
 #: src/data/sys-file-reader.c:1265 src/data/sys-file-reader.c:1274
-#: src/ui/gui/psppire.glade:625 src/ui/gui/psppire-var-store.c:425
+#: src/ui/gui/psppire.glade:625 src/ui/gui/psppire-var-store.c:441
 msgid "Numeric"
 msgstr ""
 
 msgid "Numeric"
 msgstr ""
 
@@ -1224,7 +1224,7 @@ msgid "Record"
 msgstr ""
 
 #: src/language/data-io/data-list.c:768 src/language/data-io/print.c:804
 msgstr ""
 
 #: src/language/data-io/data-list.c:768 src/language/data-io/print.c:804
-#: src/ui/gui/var-sheet.c:77
+#: src/ui/gui/var-sheet.c:78
 msgid "Columns"
 msgstr ""
 
 msgid "Columns"
 msgstr ""
 
@@ -1936,7 +1936,7 @@ msgstr ""
 
 #: src/language/dictionary/split-file.c:85
 #: src/language/dictionary/sys-file-info.c:384
 
 #: src/language/dictionary/split-file.c:85
 #: src/language/dictionary/sys-file-info.c:384
-#: src/language/dictionary/sys-file-info.c:523 src/ui/gui/var-sheet.c:74
+#: src/language/dictionary/sys-file-info.c:523 src/ui/gui/var-sheet.c:75
 msgid "Label"
 msgstr ""
 
 msgid "Label"
 msgstr ""
 
@@ -2653,7 +2653,7 @@ msgstr ""
 
 #: src/language/stats/crosstabs.q:818 src/language/stats/examine.q:869
 #: src/language/stats/frequencies.q:1215 src/language/stats/frequencies.q:1521
 
 #: src/language/stats/crosstabs.q:818 src/language/stats/examine.q:869
 #: src/language/stats/frequencies.q:1215 src/language/stats/frequencies.q:1521
-#: src/ui/gui/var-sheet.c:76
+#: src/ui/gui/var-sheet.c:77
 msgid "Missing"
 msgstr ""
 
 msgid "Missing"
 msgstr ""
 
@@ -2781,7 +2781,7 @@ msgstr ""
 msgid "Directional measures."
 msgstr ""
 
 msgid "Directional measures."
 msgstr ""
 
-#: src/language/stats/crosstabs.q:1181 src/ui/gui/var-sheet.c:71
+#: src/language/stats/crosstabs.q:1181 src/ui/gui/var-sheet.c:72
 msgid "Type"
 msgstr ""
 
 msgid "Type"
 msgstr ""
 
@@ -4312,7 +4312,7 @@ msgstr ""
 msgid "Incorrect range specification"
 msgstr ""
 
 msgid "Incorrect range specification"
 msgstr ""
 
-#: src/ui/gui/psppire.c:72
+#: src/ui/gui/psppire.c:70
 msgid "Sorry. The help system hasn't yet been implemented."
 msgstr ""
 
 msgid "Sorry. The help system hasn't yet been implemented."
 msgstr ""
 
@@ -4411,19 +4411,15 @@ msgid ""
 "    02110-1301, USA.\n"
 msgstr ""
 
 "    02110-1301, USA.\n"
 msgstr ""
 
-#: src/ui/gui/psppire.glade:587
-msgid "translator-credits"
-msgstr ""
-
 #: src/ui/gui/psppire.glade:593
 msgid "Variable Type"
 msgstr ""
 
 #: src/ui/gui/psppire.glade:593
 msgid "Variable Type"
 msgstr ""
 
-#: src/ui/gui/psppire.glade:644 src/ui/gui/psppire-var-store.c:426
+#: src/ui/gui/psppire.glade:644 src/ui/gui/psppire-var-store.c:442
 msgid "Comma"
 msgstr ""
 
 msgid "Comma"
 msgstr ""
 
-#: src/ui/gui/psppire.glade:664 src/ui/gui/psppire-var-store.c:427
+#: src/ui/gui/psppire.glade:664 src/ui/gui/psppire-var-store.c:443
 msgid "Dot"
 msgstr ""
 
 msgid "Dot"
 msgstr ""
 
@@ -4431,11 +4427,11 @@ msgstr ""
 msgid "Scientific notation"
 msgstr ""
 
 msgid "Scientific notation"
 msgstr ""
 
-#: src/ui/gui/psppire.glade:704 src/ui/gui/psppire-var-store.c:429
+#: src/ui/gui/psppire.glade:704 src/ui/gui/psppire-var-store.c:445
 msgid "Date"
 msgstr ""
 
 msgid "Date"
 msgstr ""
 
-#: src/ui/gui/psppire.glade:724 src/ui/gui/psppire-var-store.c:430
+#: src/ui/gui/psppire.glade:724 src/ui/gui/psppire-var-store.c:446
 msgid "Dollar"
 msgstr ""
 
 msgid "Dollar"
 msgstr ""
 
@@ -4499,63 +4495,69 @@ msgstr ""
 msgid "Di_screte value:"
 msgstr ""
 
 msgid "Di_screte value:"
 msgstr ""
 
-#: src/ui/gui/psppire-var-store.c:421
+#: src/ui/gui/psppire-var-store.c:437
 msgid "None"
 msgstr ""
 
 msgid "None"
 msgstr ""
 
-#: src/ui/gui/psppire-var-store.c:428
+#: src/ui/gui/psppire-var-store.c:444
 msgid "Scientific"
 msgstr ""
 
 msgid "Scientific"
 msgstr ""
 
-#: src/ui/gui/psppire-var-store.c:431
+#: src/ui/gui/psppire-var-store.c:447
 msgid "Custom"
 msgstr ""
 
 msgid "Custom"
 msgstr ""
 
-#: src/ui/gui/var-sheet.c:70
+#: src/ui/gui/psppire-var-store.c:515 src/ui/gui/psppire-var-store.c:525
+#: src/ui/gui/psppire-var-store.c:535 src/ui/gui/psppire-var-store.c:706
+#, c-format
+msgid "%d"
+msgstr ""
+
+#: src/ui/gui/var-sheet.c:71
 msgid "Name"
 msgstr ""
 
 msgid "Name"
 msgstr ""
 
-#: src/ui/gui/var-sheet.c:72
+#: src/ui/gui/var-sheet.c:73
 msgid "Width"
 msgstr ""
 
 msgid "Width"
 msgstr ""
 
-#: src/ui/gui/var-sheet.c:73
+#: src/ui/gui/var-sheet.c:74
 msgid "Decimals"
 msgstr ""
 
 msgid "Decimals"
 msgstr ""
 
-#: src/ui/gui/var-sheet.c:75
+#: src/ui/gui/var-sheet.c:76
 msgid "Values"
 msgstr ""
 
 msgid "Values"
 msgstr ""
 
-#: src/ui/gui/var-sheet.c:78
+#: src/ui/gui/var-sheet.c:79
 msgid "Align"
 msgstr ""
 
 msgid "Align"
 msgstr ""
 
-#: src/ui/gui/var-sheet.c:79
+#: src/ui/gui/var-sheet.c:80
 msgid "Measure"
 msgstr ""
 
 msgid "Measure"
 msgstr ""
 
-#: src/ui/gui/var-sheet.c:102
+#: src/ui/gui/var-sheet.c:103
 msgid "Left"
 msgstr ""
 
 msgid "Left"
 msgstr ""
 
-#: src/ui/gui/var-sheet.c:103
+#: src/ui/gui/var-sheet.c:104
 msgid "Right"
 msgstr ""
 
 msgid "Right"
 msgstr ""
 
-#: src/ui/gui/var-sheet.c:104
+#: src/ui/gui/var-sheet.c:105
 msgid "Centre"
 msgstr ""
 
 msgid "Centre"
 msgstr ""
 
-#: src/ui/gui/var-sheet.c:109
+#: src/ui/gui/var-sheet.c:110
 msgid "Nominal"
 msgstr ""
 
 msgid "Nominal"
 msgstr ""
 
-#: src/ui/gui/var-sheet.c:110
+#: src/ui/gui/var-sheet.c:111
 msgid "Ordinal"
 msgstr ""
 
 msgid "Ordinal"
 msgstr ""
 
-#: src/ui/gui/var-sheet.c:111
+#: src/ui/gui/var-sheet.c:112
 msgid "Scale"
 msgstr ""
 
 msgid "Scale"
 msgstr ""
 
index d4e34e39284282852c920cd3bf834ae19214325e..9cf8b0ed7d67df9c119f1ca4f38ff4b2136d4ff5 100644 (file)
@@ -1,5 +1,9 @@
-   
-Tue May 30 19:53:35 WST 2006 John Darringotn <john@darrington.wattle.id.au>
+Sun Jun  4 15:50:28 WST 2006 John Darrington <john@darrington.wattle.id.au>
+
+   * psppire-var-store.c, psppire.c, var-sheet.c :  Unlimited the number of 
+   variables that can be displayed. Minor i18n issues.
+
+Tue May 30 19:53:35 WST 2006 John Darrington <john@darrington.wattle.id.au>
 
    * menu-actions.c menu-actions.h psppire.c: Fixed up load/new 
    interactions with startup.
 
    * menu-actions.c menu-actions.h psppire.c: Fixed up load/new 
    interactions with startup.
index 4cdc295886009a7961b2832daf7f2d02ee12a338..1435a4a24500e44c64dd6e3f7bf666896169a752 100644 (file)
@@ -64,6 +64,10 @@ static gboolean psppire_var_store_set_string(GSheetModel *model,
 static gchar *text_for_column(const struct PsppireVariable *pv, gint c, GError **err);
 
 
 static gchar *text_for_column(const struct PsppireVariable *pv, gint c, GError **err);
 
 
+static void psppire_var_store_sheet_row_init (GSheetRowIface *iface);
+
+
+
 static GObjectClass *parent_class = NULL;
 
 GType
 static GObjectClass *parent_class = NULL;
 
 GType
@@ -93,12 +97,24 @@ psppire_var_store_get_type (void)
        NULL
       };
 
        NULL
       };
 
-      var_store_type = g_type_register_static (G_TYPE_OBJECT, "PsppireVarStore",
-                                               &var_store_info, 0);
+      static const GInterfaceInfo sheet_row_info =
+      {
+       (GInterfaceInitFunc) psppire_var_store_sheet_row_init,
+       NULL,
+       NULL
+      };
+
+      var_store_type = g_type_register_static (G_TYPE_OBJECT, "PsppireVarStore", &var_store_info, 0);
 
       g_type_add_interface_static (var_store_type,
                                   G_TYPE_SHEET_MODEL,
                                   &sheet_model_info);
 
       g_type_add_interface_static (var_store_type,
                                   G_TYPE_SHEET_MODEL,
                                   &sheet_model_info);
+
+      g_type_add_interface_static (var_store_type,
+                                  G_TYPE_SHEET_ROW,
+                                  &sheet_row_info);
+
+
     }
 
   return var_store_type;
     }
 
   return var_store_type;
@@ -496,7 +512,7 @@ text_for_column(const struct PsppireVariable *pv, gint c, GError **err)
       {
        gchar *s;
        GString *gstr = g_string_sized_new(10);
       {
        gchar *s;
        GString *gstr = g_string_sized_new(10);
-       g_string_printf(gstr, "%d", write_spec->w);
+       g_string_printf(gstr, _("%d"), write_spec->w);
        s = g_locale_to_utf8(gstr->str, gstr->len, 0, 0, err);
        g_string_free(gstr, TRUE);
        return s;
        s = g_locale_to_utf8(gstr->str, gstr->len, 0, 0, err);
        g_string_free(gstr, TRUE);
        return s;
@@ -506,7 +522,7 @@ text_for_column(const struct PsppireVariable *pv, gint c, GError **err)
       {
        gchar *s;
        GString *gstr = g_string_sized_new(10);
       {
        gchar *s;
        GString *gstr = g_string_sized_new(10);
-       g_string_printf(gstr, "%d", write_spec->d);
+       g_string_printf(gstr, _("%d"), write_spec->d);
        s = g_locale_to_utf8(gstr->str, gstr->len, 0, 0, err);
        g_string_free(gstr, TRUE);
        return s;
        s = g_locale_to_utf8(gstr->str, gstr->len, 0, 0, err);
        g_string_free(gstr, TRUE);
        return s;
@@ -516,7 +532,7 @@ text_for_column(const struct PsppireVariable *pv, gint c, GError **err)
       {
        gchar *s;
        GString *gstr = g_string_sized_new(10);
       {
        gchar *s;
        GString *gstr = g_string_sized_new(10);
-       g_string_printf(gstr, "%d", psppire_variable_get_columns(pv));
+       g_string_printf(gstr, _("%d"), psppire_variable_get_columns(pv));
        s = g_locale_to_utf8(gstr->str, gstr->len, 0, 0, err);
        g_string_free(gstr, TRUE);
        return s;
        s = g_locale_to_utf8(gstr->str, gstr->len, 0, 0, err);
        g_string_free(gstr, TRUE);
        return s;
@@ -621,7 +637,7 @@ text_for_column(const struct PsppireVariable *pv, gint c, GError **err)
        const gint align = psppire_variable_get_alignment(pv);
 
        g_assert(align < n_ALIGNMENTS);
        const gint align = psppire_variable_get_alignment(pv);
 
        g_assert(align < n_ALIGNMENTS);
-       return g_locale_to_utf8(gettext(alignments[align]),-1, -0, 0, err);
+       return g_locale_to_utf8(gettext(alignments[align]), -1, 0, 0, err);
       }
       break;
     case COL_MEASURE:
       }
       break;
     case COL_MEASURE:
@@ -629,7 +645,7 @@ text_for_column(const struct PsppireVariable *pv, gint c, GError **err)
        const gint measure = psppire_variable_get_measure(pv);
 
        g_assert(measure < n_MEASURES);
        const gint measure = psppire_variable_get_measure(pv);
 
        g_assert(measure < n_MEASURES);
-       return g_locale_to_utf8(gettext(measures[measure]), -1, -0, 0, err);
+       return g_locale_to_utf8(gettext(measures[measure]), -1, 0, 0, err);
       }
       break;
     }
       }
       break;
     }
@@ -659,4 +675,48 @@ psppire_var_store_set_font(PsppireVarStore *store, const PangoFontDescription *f
 
 
 
 
 
 
+/* Row related funcs */
+
+static gint
+geometry_get_row_count(const GSheetRow *geom)
+{
+  PsppireVarStore *vs = PSPPIRE_VAR_STORE(geom);
 
 
+  return psppire_dict_get_var_cnt(vs->dict)+ 40;
+}
+
+
+static gint
+geometry_get_height(const GSheetRow *geom)
+{
+  return 25;
+}
+
+
+static
+gboolean always_true()
+{
+  return TRUE;
+}
+
+
+static const gchar *
+geometry_get_button_label(const GSheetRow *geom, gint unit)
+{
+  gchar *label = g_strdup_printf(_("%d"), unit);
+  
+  return label;
+}
+
+
+static void
+psppire_var_store_sheet_row_init (GSheetRowIface *iface)
+{
+  iface->get_row_count =     geometry_get_row_count;
+  iface->get_height =        geometry_get_height;
+  iface->set_height =        0;
+  iface->get_visibility =    always_true;
+  iface->get_sensitivity =   always_true;
+
+  iface->get_button_label = geometry_get_button_label;
+}
index ae962e66fcc408c8e56ded614754f219dbf319db..9a341ec424da1922d5246d2b9e1042f86c1c290a 100644 (file)
@@ -18,7 +18,6 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA. */
 
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA. */
 
-
 #include <assert.h>
 #include <libintl.h>
 
 #include <assert.h>
 #include <libintl.h>
 
@@ -34,7 +33,6 @@
 #include "psppire-dict.h"
 #include "psppire-var-store.h"
 #include "psppire-data-store.h"
 #include "psppire-dict.h"
 #include "psppire-var-store.h"
 #include "psppire-data-store.h"
-
 #include "helper.h"
 #include "data-sheet.h"
 #include "var-sheet.h"
 #include "helper.h"
 #include "data-sheet.h"
 #include "var-sheet.h"
@@ -74,10 +72,12 @@ give_help(void)
   popup_message(&m);
 }
 
   popup_message(&m);
 }
 
+PsppireVarStore *var_store = 0;
+
 int 
 main(int argc, char *argv[]) 
 {
 int 
 main(int argc, char *argv[]) 
 {
-  PsppireVarStore *var_store ;
+
   GtkWidget *data_editor ;
   GtkSheet *var_sheet ; 
   GtkSheet *data_sheet ;
   GtkWidget *data_editor ;
   GtkSheet *var_sheet ; 
   GtkSheet *data_sheet ;
@@ -92,6 +92,7 @@ main(int argc, char *argv[])
   setlocale (LC_NUMERIC, "C");
 
   bindtextdomain (PACKAGE, locale_dir);
   setlocale (LC_NUMERIC, "C");
 
   bindtextdomain (PACKAGE, locale_dir);
+
   textdomain (PACKAGE);
 
   if ( ! parse_command_line(&argc, &argv, &filename, &err) ) 
   textdomain (PACKAGE);
 
   if ( ! parse_command_line(&argc, &argv, &filename, &err) ) 
@@ -100,13 +101,12 @@ main(int argc, char *argv[])
       return 1;
     }
 
       return 1;
     }
 
+
   glade_init();
 
 
   settings_init();
 
   glade_init();
 
 
   settings_init();
 
-  
-
   /* 
   set_pspp_locale("da_DK");
   */
   /* 
   set_pspp_locale("da_DK");
   */
@@ -115,6 +115,8 @@ main(int argc, char *argv[])
 
   the_dictionary = psppire_dict_new();
 
 
   the_dictionary = psppire_dict_new();
 
+  bind_textdomain_codeset(PACKAGE, "UTF-8");
+
   /* Create the model for the var_sheet */
   var_store = psppire_var_store_new(the_dictionary);
 
   /* Create the model for the var_sheet */
   var_store = psppire_var_store_new(the_dictionary);
 
index 179cc5872f262e8ada97de175fa2265caf076757..e6f25b3b44eca926c80e6bf48a64333255a6b320 100644 (file)
   <property name="website">http://www.gnu.org/software/pspp</property>
   <property name="authors">John Darrington</property>
   <property name="artists">Patrick Brunier</property>
   <property name="website">http://www.gnu.org/software/pspp</property>
   <property name="authors">John Darrington</property>
   <property name="artists">Patrick Brunier</property>
-  <property name="translator_credits" translatable="yes" comments="TRANSLATORS: Replace this string with your names, one name per line.">translator-credits</property>
+  <property name="translator_credits" translatable="no" comments="TRANSLATORS: Replace this string with your names, one name per line.">translator-credits</property>
   <property name="logo">pspplogo.png</property>
 </widget>
 
   <property name="logo">pspplogo.png</property>
 </widget>
 
index 5dcbf2f655fbb254836e739d3aa37fb9b697e3dd..4358c78326e835e1d794c48808583241c2660f10 100644 (file)
@@ -34,6 +34,7 @@
 
 #include <stdlib.h>
 #include <string.h>
 
 #include <stdlib.h>
 #include <string.h>
+#include <langinfo.h>
 
 #include <data/value.h>
 
 
 #include <data/value.h>
 
@@ -409,6 +410,8 @@ var_sheet_cell_change_entry (GtkSheet * sheet, gint row, gint column,
 }
 
 
 }
 
 
+extern PsppireVarStore *var_store;
+
 
 /* Create the var sheet */
 GtkWidget*
 
 /* Create the var sheet */
 GtkWidget*
@@ -417,15 +420,13 @@ psppire_variable_sheet_create (gchar *widget_name,
                               gchar *string2,
                               gint int1, gint int2)
 {
                               gchar *string2,
                               gint int1, gint int2)
 {
+  gchar *codeset;
   gint i;
   GtkWidget *sheet;
 
   GObject *geo = g_sheet_hetero_column_new(75, n_COLS);
   gint i;
   GtkWidget *sheet;
 
   GObject *geo = g_sheet_hetero_column_new(75, n_COLS);
-  GObject *row_geometry = g_sheet_uniform_row_new(25, n_initial_rows); 
-
-
 
 
-  sheet = gtk_sheet_new(G_SHEET_ROW(row_geometry),
+  sheet = gtk_sheet_new(G_SHEET_ROW(var_store),
                        G_SHEET_COLUMN(geo), 
                        "variable sheet", 0); 
 
                        G_SHEET_COLUMN(geo), 
                        "variable sheet", 0); 
 
@@ -445,14 +446,19 @@ psppire_variable_sheet_create (gchar *widget_name,
                    GTK_SIGNAL_FUNC (click2row),
                    sheet);
 
                    GTK_SIGNAL_FUNC (click2row),
                    sheet);
 
+  /* Since this happens inside glade_xml_new, we must prevent strings from 
+   * being re-encoded twice */
+  codeset = bind_textdomain_codeset(PACKAGE, 0);
+  bind_textdomain_codeset(PACKAGE, nl_langinfo(CODESET));
   for (i = 0 ; i < n_COLS ; ++i ) 
     {
       g_sheet_hetero_column_set_button_label(G_SHEET_HETERO_COLUMN(geo), i, 
   for (i = 0 ; i < n_COLS ; ++i ) 
     {
       g_sheet_hetero_column_set_button_label(G_SHEET_HETERO_COLUMN(geo), i, 
-                                              gettext(column_def[i].label));
-
+                       gettext(column_def[i].label));
+      
       g_sheet_hetero_column_set_width(G_SHEET_HETERO_COLUMN(geo), i, 
                                               column_def[i].width);
     }
       g_sheet_hetero_column_set_width(G_SHEET_HETERO_COLUMN(geo), i, 
                                               column_def[i].width);
     }
+  bind_textdomain_codeset(PACKAGE, codeset);
 
   gtk_widget_show(sheet);
 
 
   gtk_widget_show(sheet);