Yet more i18n issues.
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"
#: 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
-#: 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"
#: 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
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"
#: 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"
#: 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 "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 "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!"
#: src/ui/gui/psppire.glade:167
msgid "Status Bar"
-msgstr ""
+msgstr "Statusleiste"
#: src/ui/gui/psppire.glade:176
msgid "Toolbars"
msgstr "_Info"
#: src/ui/gui/psppire.glade:310
-#, fuzzy
msgid "Save"
-msgstr "Name"
+msgstr "Speichen"
#: src/ui/gui/psppire.glade:328
msgid "Print"
" 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: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"
-#: 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 "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"
-#: 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"
msgstr "negativ"
#: src/ui/gui/psppire.glade:943
-#, fuzzy
msgid "Sample"
-msgstr "Name"
+msgstr "Muster"
#: src/ui/gui/psppire.glade:1021
-#, fuzzy
msgid "Decimal Places:"
-msgstr "Detzimalen"
+msgstr "Dezimalstellen:"
#: src/ui/gui/psppire.glade:1098
msgid "Width:"
msgstr "Werte:"
#: src/ui/gui/psppire.glade:1344
-#, fuzzy
msgid "Value Label:"
msgstr "Kennsatz:"
msgstr "_Kein Lösewerten"
#: src/ui/gui/psppire.glade:1670
-#, fuzzy
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"
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"
-#: src/ui/gui/psppire-var-store.c:428
+#: src/ui/gui/psppire-var-store.c:444
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"
-#: 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"
-#: src/ui/gui/var-sheet.c:72
+#: src/ui/gui/var-sheet.c:73
msgid "Width"
msgstr "Große"
-#: src/ui/gui/var-sheet.c:73
+#: src/ui/gui/var-sheet.c:74
msgid "Decimals"
-msgstr "Detzimalen"
+msgstr "Dezimalstellen"
-#: src/ui/gui/var-sheet.c:75
+#: src/ui/gui/var-sheet.c:76
msgid "Values"
msgstr "Werten"
-#: src/ui/gui/var-sheet.c:78
+#: src/ui/gui/var-sheet.c:79
msgid "Align"
msgstr "Einstellung"
-#: src/ui/gui/var-sheet.c:79
+#: src/ui/gui/var-sheet.c:80
msgid "Measure"
msgstr "Messe"
-#: src/ui/gui/var-sheet.c:102
+#: src/ui/gui/var-sheet.c:103
msgid "Left"
msgstr "Links"
-#: src/ui/gui/var-sheet.c:103
+#: src/ui/gui/var-sheet.c:104
msgid "Right"
msgstr "Rechts"
-#: src/ui/gui/var-sheet.c:104
+#: src/ui/gui/var-sheet.c:105
msgid "Centre"
msgstr "Mittel"
-#: src/ui/gui/var-sheet.c:109
+#: src/ui/gui/var-sheet.c:110
msgid "Nominal"
msgstr "Nominalwert"
-#: src/ui/gui/var-sheet.c:110
+#: src/ui/gui/var-sheet.c:111
msgid "Ordinal"
msgstr "Ordinalwert"
-#: src/ui/gui/var-sheet.c:111
+#: src/ui/gui/var-sheet.c:112
msgid "Scale"
msgstr "Skalwert"
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"
#: 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
-#: 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 ""
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 ""
#: 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 ""
#: 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 "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 "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 ""
" 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: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 ""
-#: 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 "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 ""
-#: 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 "Di_screte value:"
msgstr ""
-#: src/ui/gui/psppire-var-store.c:421
+#: src/ui/gui/psppire-var-store.c:437
msgid "None"
msgstr ""
-#: src/ui/gui/psppire-var-store.c:428
+#: src/ui/gui/psppire-var-store.c:444
msgid "Scientific"
msgstr ""
-#: src/ui/gui/psppire-var-store.c:431
+#: src/ui/gui/psppire-var-store.c:447
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 ""
-#: src/ui/gui/var-sheet.c:72
+#: src/ui/gui/var-sheet.c:73
msgid "Width"
msgstr ""
-#: src/ui/gui/var-sheet.c:73
+#: src/ui/gui/var-sheet.c:74
msgid "Decimals"
msgstr ""
-#: src/ui/gui/var-sheet.c:75
+#: src/ui/gui/var-sheet.c:76
msgid "Values"
msgstr ""
-#: src/ui/gui/var-sheet.c:78
+#: src/ui/gui/var-sheet.c:79
msgid "Align"
msgstr ""
-#: src/ui/gui/var-sheet.c:79
+#: src/ui/gui/var-sheet.c:80
msgid "Measure"
msgstr ""
-#: src/ui/gui/var-sheet.c:102
+#: src/ui/gui/var-sheet.c:103
msgid "Left"
msgstr ""
-#: src/ui/gui/var-sheet.c:103
+#: src/ui/gui/var-sheet.c:104
msgid "Right"
msgstr ""
-#: src/ui/gui/var-sheet.c:104
+#: src/ui/gui/var-sheet.c:105
msgid "Centre"
msgstr ""
-#: src/ui/gui/var-sheet.c:109
+#: src/ui/gui/var-sheet.c:110
msgid "Nominal"
msgstr ""
-#: src/ui/gui/var-sheet.c:110
+#: src/ui/gui/var-sheet.c:111
msgid "Ordinal"
msgstr ""
-#: src/ui/gui/var-sheet.c:111
+#: src/ui/gui/var-sheet.c:112
msgid "Scale"
msgstr ""
-
-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.
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
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_ROW,
+ &sheet_row_info);
+
+
}
return var_store_type;
{
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;
{
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;
{
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;
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:
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;
}
+/* 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;
+}
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA. */
-
#include <assert.h>
#include <libintl.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"
popup_message(&m);
}
+PsppireVarStore *var_store = 0;
+
int
main(int argc, char *argv[])
{
- PsppireVarStore *var_store ;
+
GtkWidget *data_editor ;
GtkSheet *var_sheet ;
GtkSheet *data_sheet ;
setlocale (LC_NUMERIC, "C");
bindtextdomain (PACKAGE, locale_dir);
+
textdomain (PACKAGE);
if ( ! parse_command_line(&argc, &argv, &filename, &err) )
return 1;
}
+
glade_init();
settings_init();
-
-
/*
set_pspp_locale("da_DK");
*/
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);
<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>
#include <stdlib.h>
#include <string.h>
+#include <langinfo.h>
#include <data/value.h>
}
+extern PsppireVarStore *var_store;
+
/* Create the var sheet */
GtkWidget*
gchar *string2,
gint int1, gint int2)
{
+ gchar *codeset;
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);
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,
- 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);
}
+ bind_textdomain_codeset(PACKAGE, codeset);
gtk_widget_show(sheet);