[Goodies-commits] r7054 - in xfbib/branches/gobject: . po src

Jesper Karlsson zarper at xfce.org
Mon Mar 30 21:31:14 CEST 2009


Author: zarper
Date: 2009-03-30 19:31:14 +0000 (Mon, 30 Mar 2009)
New Revision: 7054

Added:
   xfbib/branches/gobject/po/xfbib.pot
Modified:
   xfbib/branches/gobject/ChangeLog
   xfbib/branches/gobject/Makefile.am
   xfbib/branches/gobject/po/POTFILES.in
   xfbib/branches/gobject/src/main.c
   xfbib/branches/gobject/src/xfbib-bibtex-field.c
   xfbib/branches/gobject/src/xfbib-bibtex-field.h
   xfbib/branches/gobject/src/xfbib-bibtex-string.c
   xfbib/branches/gobject/src/xfbib-bibtex-value.c
   xfbib/branches/gobject/src/xfbib-bibtex.c
   xfbib/branches/gobject/src/xfbib-entry-edit-dialog.c
   xfbib/branches/gobject/src/xfbib-entry-tree-view.c
   xfbib/branches/gobject/src/xfbib-file-io.c
   xfbib/branches/gobject/src/xfbib-input-dialog.c
   xfbib/branches/gobject/src/xfbib-menu-bar.c
   xfbib/branches/gobject/src/xfbib-multiple-input.c
   xfbib/branches/gobject/src/xfbib-string-tree-view.c
   xfbib/branches/gobject/src/xfbib-string.c
   xfbib/branches/gobject/src/xfbib-toolbar.c
   xfbib/branches/gobject/src/xfbib-window.c
Log:
Add potfile and make strings translateable.


Modified: xfbib/branches/gobject/ChangeLog
===================================================================
--- xfbib/branches/gobject/ChangeLog	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/ChangeLog	2009-03-30 19:31:14 UTC (rev 7054)
@@ -0,0 +1,12 @@
+2009-03-30  gettextize  <bug-gnu-gettext at gnu.org>
+
+	* Makefile.am (SUBDIRS): Add intl.
+	* configure.ac (AC_OUTPUT): Add intl/Makefile.
+
+2009-03-30  gettextize  <bug-gnu-gettext at gnu.org>
+
+	* Makefile.am (SUBDIRS): Add intl.
+	(ACLOCAL_AMFLAGS): New variable.
+	(EXTRA_DIST): Add config.rpath, m4/ChangeLog.
+	* configure.ac (AC_OUTPUT): Add intl/Makefile.
+

Modified: xfbib/branches/gobject/Makefile.am
===================================================================
--- xfbib/branches/gobject/Makefile.am	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/Makefile.am	2009-03-30 19:31:14 UTC (rev 7054)
@@ -14,7 +14,7 @@
 	1.8 \
 	dist-bzip2
 
-EXTRA_DIST = \
+EXTRA_DIST = config.rpath m4/ChangeLog  \
 	autogen.sh \
 	intltool-extract.in \
 	intltool-merge.in \
@@ -32,3 +32,5 @@
 
 distclean-local:
 	-rm -rf *.cache *~
+
+ACLOCAL_AMFLAGS = -I m4

Modified: xfbib/branches/gobject/po/POTFILES.in
===================================================================
--- xfbib/branches/gobject/po/POTFILES.in	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/po/POTFILES.in	2009-03-30 19:31:14 UTC (rev 7054)
@@ -1 +1,15 @@
 src/main.c
+src/xfbib-bibtex.c
+src/xfbib-bibtex-field.c
+src/xfbib-bibtex-string.c
+src/xfbib-bibtex-value.c
+src/xfbib-entry-edit-dialog.c
+src/xfbib-entry-tree-view.c
+src/xfbib-file-io.c
+src/xfbib-input-dialog.c
+src/xfbib-menu-bar.c
+src/xfbib-multiple-input.c
+src/xfbib-string.c
+src/xfbib-string-tree-view.c
+src/xfbib-toolbar.c
+src/xfbib-window.c

Added: xfbib/branches/gobject/po/xfbib.pot
===================================================================
--- xfbib/branches/gobject/po/xfbib.pot	                        (rev 0)
+++ xfbib/branches/gobject/po/xfbib.pot	2009-03-30 19:31:14 UTC (rev 7054)
@@ -0,0 +1,379 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2009-03-30 21:29+0200\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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../src/main.c:70
+msgid "main_entries"
+msgstr ""
+
+#: ../src/main.c:71
+msgid "Report bugs to http://bugs.xfce.org/\n"
+msgstr ""
+
+#: ../src/main.c:73
+#, c-format
+msgid "Error parsing: %s\n"
+msgstr ""
+
+#: ../src/main.c:112
+msgid "Error merging files, no output file specified\n"
+msgstr ""
+
+#: ../src/xfbib-bibtex.c:129 ../src/xfbib-bibtex.c:244
+#, c-format
+msgid "Error, on line %d(TODO)\n"
+msgstr ""
+
+#: ../src/xfbib-bibtex.c:148
+msgid "Error, could not parse wrong entry type (TODO)\n"
+msgstr ""
+
+#: ../src/xfbib-bibtex-field.c:96
+msgid "No equal sign found in definition of Field\n"
+msgstr ""
+
+#: ../src/xfbib-bibtex-string.c:125
+msgid "No equal sign found in definition of String\n"
+msgstr ""
+
+#: ../src/xfbib-bibtex-value.c:121
+#, c-format
+msgid "Braced string contains @: %s\n"
+msgstr ""
+
+#: ../src/xfbib-bibtex-value.c:134
+#, c-format
+msgid "Quote not inside braces in string: %s\n"
+msgstr ""
+
+#: ../src/xfbib-bibtex-value.c:141
+#, c-format
+msgid "Braces not balanced in field string: %s\n"
+msgstr ""
+
+#: ../src/xfbib-bibtex-value.c:151
+msgid "Variable contains double quote\n"
+msgstr ""
+
+#: ../src/xfbib-bibtex-value.c:164
+msgid "TODO: Add a character in number warning\n"
+msgstr ""
+
+#: ../src/xfbib-entry-edit-dialog.c:123
+msgid "Edit compund string"
+msgstr ""
+
+#: ../src/xfbib-entry-edit-dialog.c:134
+msgid "Text/String key"
+msgstr ""
+
+#: ../src/xfbib-entry-edit-dialog.c:178
+#, c-format
+msgid "Button icon missing: %s"
+msgstr ""
+
+#: ../src/xfbib-entry-edit-dialog.c:224
+msgid "Type:"
+msgstr ""
+
+#: ../src/xfbib-entry-edit-dialog.c:231
+msgid "Key:"
+msgstr ""
+
+#: ../src/xfbib-entry-edit-dialog.c:327 ../src/xfbib-multiple-input.c:168
+msgid "Title"
+msgstr ""
+
+#: ../src/xfbib-entry-edit-dialog.c:328
+msgid "Author/Editor"
+msgstr ""
+
+#: ../src/xfbib-entry-edit-dialog.c:329
+msgid "Publication"
+msgstr ""
+
+#: ../src/xfbib-entry-edit-dialog.c:330
+msgid "Publisher"
+msgstr ""
+
+#: ../src/xfbib-entry-edit-dialog.c:331
+msgid "Misc"
+msgstr ""
+
+#: ../src/xfbib-entry-edit-dialog.c:484
+msgid "A BibTeX type is required!"
+msgstr ""
+
+#: ../src/xfbib-entry-edit-dialog.c:488
+msgid "BibTex key is required!"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:172
+msgid "Address of publisher"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:173
+msgid "Annotation for annotated bibliography styles"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:174
+msgid "Name(s) of the author(s), separated by 'and' if more than one"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:175
+msgid "Title of the book, if only part of it is being cited"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:176
+msgid "Chapter number"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:177
+msgid "Citation key of the cross-referenced entry"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:178
+msgid "Edition of the book (such as \"first\" or \"second\")"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:179
+msgid "Name(s) of the editor(s), separated by 'and' if more than one"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:180
+msgid "Specification of electronic publication"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:181
+msgid "Publishing method if the method is nonstandard"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:182
+msgid "Institution that was involved in the publishing"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:183
+msgid "Journal or magazine in which the work was published"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:184
+msgid ""
+"Hidden field used for specifying or overriding the alphabetical order of "
+"entries"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:185
+msgid "Month of publication or creation if unpublished"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:186
+msgid "Miscellaneous extra information"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:187
+msgid "Number of journal, magazine, or tech-report"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:188
+msgid "Sponsor of the conference"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:189
+msgid "Page numbers separated by commas or double-hyphens"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:190
+msgid "Name of publisher"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:191
+msgid "School where thesis was written"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:192
+msgid "Series of books in which the book was published"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:193
+msgid "Title of the work"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:194
+msgid "Type of technical report"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:195
+msgid "Internet address"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:196
+msgid "Number of the volume"
+msgstr ""
+
+#: ../src/xfbib-entry-tree-view.c:197
+msgid "Year of publication or creation if unpublished"
+msgstr ""
+
+#: ../src/xfbib-file-io.c:75
+msgid "Open"
+msgstr ""
+
+#: ../src/xfbib-file-io.c:83
+msgid "BibTeX files"
+msgstr ""
+
+#: ../src/xfbib-file-io.c:99 ../src/xfbib-file-io.c:141
+#, c-format
+msgid "An error occured when opening the file: %s\n"
+msgstr ""
+
+#: ../src/xfbib-file-io.c:146
+#, c-format
+msgid "An error occured when writing to the file: %s\n"
+msgstr ""
+
+#: ../src/xfbib-file-io.c:162
+msgid "Save as\n"
+msgstr ""
+
+#: ../src/xfbib-file-io.c:167
+msgid "Save As"
+msgstr ""
+
+#: ../src/xfbib-file-io.c:206
+#, c-format
+msgid "printing bibtex string to file\n"
+msgstr ""
+
+#: ../src/xfbib-file-io.c:227
+#, c-format
+msgid "Unknown object!\n"
+msgstr ""
+
+#: ../src/xfbib-input-dialog.c:92
+msgid "String key:"
+msgstr ""
+
+#: ../src/xfbib-input-dialog.c:93
+msgid "Text:"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:66
+msgid "File/New\n"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:74
+msgid "File/Open\n"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:88
+msgid "File/Save\n"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:97
+msgid "File/Save As\n"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:114
+msgid "Entry/Add\n"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:143
+msgid "Entry/Remove\n"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:153 ../src/xfbib-menu-bar.c:234
+msgid "No row has been selected for removal"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:166
+msgid "Entry/Edit\n"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:189 ../src/xfbib-menu-bar.c:266
+msgid "No row has been selected for edit"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:200
+msgid "Variable/add\n"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:224
+msgid "Variable/Remove\n"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:247
+msgid "Variable/Edit\n"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:285
+msgid "Xfbib is a BibTeX editor for the Xfce Desktop Environment."
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:373
+msgid "File"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:398 ../src/xfbib-window.c:113
+msgid "Entry"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:422 ../src/xfbib-window.c:121
+msgid "Variable"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:446
+msgid "Show Toolbar"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:449
+msgid "Show Status Bar"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:452
+msgid "View"
+msgstr ""
+
+#: ../src/xfbib-menu-bar.c:465
+msgid "Help"
+msgstr ""
+
+#: ../src/xfbib-multiple-input.c:81
+#, c-format
+msgid "Add %s"
+msgstr ""
+
+#: ../src/xfbib-string.c:95
+#, c-format
+msgid "Setting string: <%s>\n"
+msgstr ""
+
+#: ../src/xfbib-string-tree-view.c:213
+msgid "Value"
+msgstr ""
+
+#: ../src/xfbib-toolbar.c:57
+msgid "Toolbar_Open\n"
+msgstr ""
+
+#: ../src/xfbib-toolbar.c:71
+msgid "Toolbar_Save\n"
+msgstr ""
+
+#: ../src/xfbib-window.c:152
+msgid "(Untitled)"
+msgstr ""

Modified: xfbib/branches/gobject/src/main.c
===================================================================
--- xfbib/branches/gobject/src/main.c	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/main.c	2009-03-30 19:31:14 UTC (rev 7054)
@@ -23,6 +23,7 @@
 
 #include <stdlib.h>
 #include <gtk/gtk.h>
+#include <libxfcegui4/libxfcegui4.h>
 
 #include "xfbib-bibtex.h"
 #include "xfbib-state.h"
@@ -55,6 +56,9 @@
 		{ NULL, 0, 0, 0, 0, NULL, NULL },
 	};
 
+	setlocale( LC_MESSAGES, "");
+    bindtextdomain( PACKAGE, LOCALEDIR);
+    textdomain (PACKAGE);
 
 	gtk_init(&argc, &argv);
 	
@@ -63,10 +67,10 @@
 	/**/
 
         opt_contxt = g_option_context_new(NULL);
-        g_option_context_add_main_entries(opt_contxt, options, "main_entries");
-	g_option_context_set_description(opt_contxt, "Report bugs to http://bugs.xfce.org/\n");
+        g_option_context_add_main_entries(opt_contxt, options, _("main_entries"));
+	g_option_context_set_description(opt_contxt, _("Report bugs to http://bugs.xfce.org/\n"));
         if (!g_option_context_parse(opt_contxt, &argc, &argv, &error)) {
-		g_printerr("Error parsing: %s\n", error->message);
+		g_printerr(_("Error parsing: %s\n"), error->message);
 		g_error_free(error);
 		g_option_context_free(opt_contxt);
 		return EXIT_FAILURE;
@@ -105,7 +109,7 @@
 			/* Multiple files */
 			/* TODO: Check that output file is present */
 			if (output_file == NULL) {
-				g_print("Error merging files, no output file specified\n");
+				g_print(_("Error merging files, no output file specified\n"));
 				return EXIT_FAILURE;
 			}
 			xfbib_state_set_filename(state, output_file);

Modified: xfbib/branches/gobject/src/xfbib-bibtex-field.c
===================================================================
--- xfbib/branches/gobject/src/xfbib-bibtex-field.c	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/xfbib-bibtex-field.c	2009-03-30 19:31:14 UTC (rev 7054)
@@ -93,7 +93,7 @@
 
 	if (split[1] == NULL) {
 		/* Equal sign missing */
-		g_warning("No equal sign found in definition of Field\n");
+		g_warning(_("No equal sign found in definition of Field\n"));
 		g_strfreev(split);
 		return FALSE;
 	}

Modified: xfbib/branches/gobject/src/xfbib-bibtex-field.h
===================================================================
--- xfbib/branches/gobject/src/xfbib-bibtex-field.h	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/xfbib-bibtex-field.h	2009-03-30 19:31:14 UTC (rev 7054)
@@ -21,6 +21,7 @@
 #define __XFBIB_BIBTEX_FIELD_H
 
 #include <glib-object.h>
+#include <libxfcegui4/libxfcegui4.h>
 #include "xfbib-bibtex-value.h"
 
 #define XFBIB_TYPE_BIBTEX_FIELD             (xfbib_bibtex_field_get_type())
@@ -65,33 +66,34 @@
 static struct {
 	gchar *label;
 	gchar *tooltip;
+	/* TODO: Make translateable, but need to be inside a function */
 }xfbib_bibtex_field_constants[] = {
-	{"Address", "Address of publisher"},
-	{"Annote", "Annotation for annotated bibliography styles"},
-	{"Author", "Name(s) of the author(s), separated by 'and' if more than one"},
-	{"Booktitle", "Title of the book, if only part of it is being cited"},
-	{"Chapter", "Chapter number"},
-	{"Crossref", "Citation key of the cross-referenced entry"},
-	{"Edition", "Edition of the book (such as \"first\" or \"second\")"},
-	{"Editor", "Name(s) of the editor(s), separated by 'and' if more than one"},
-	{"E-print", "Specification of electronic publication"},
-	{"HowPublished", "Publishing method if the method is nonstandard"},
-	{"Institution", "Institution that was involved in the publishing"},
-	{"Journal", "Journal or magazine in which the work was published"},
-	{"Key", "Hidden field used for specifying or overriding the alphabetical order of entries"},
-	{"Month", "Month of publication or creation if unpublished"},
-	{"Note", "Miscellaneous extra information"},
-	{"Number", "Number of journal, magazine, or tech-report"},
-	{"Organization", "Sponsor of the conference"},
-	{"Pages", "Page numbers separated by commas or double-hyphens"},
-	{"Publisher", "Name of publisher"},
-	{"School", "School where thesis was written"},
-	{"Series", "Series of books in which the book was published"},
-	{"Title", "Title of the work"},
-	{"Type", "Type of technical report"},
-	{"URL", "Internet address"},
-	{"Volume", "Number of the volume"},
-	{"Year", "Year of publication or creation if unpublished"}
+	{"Address", ("Address of publisher")},
+	{"Annote", ("Annotation for annotated bibliography styles")},
+	{"Author", ("Name(s) of the author(s), separated by 'and' if more than one")},
+	{"Booktitle", ("Title of the book, if only part of it is being cited")},
+	{"Chapter", ("Chapter number")},
+	{"Crossref", ("Citation key of the cross-referenced entry")},
+	{"Edition", ("Edition of the book (such as \"first\" or \"second\")")},
+	{"Editor", ("Name(s) of the editor(s), separated by 'and' if more than one")},
+	{"E-print", ("Specification of electronic publication")},
+	{"HowPublished", ("Publishing method if the method is nonstandard")},
+	{"Institution", ("Institution that was involved in the publishing")},
+	{"Journal", ("Journal or magazine in which the work was published")},
+	{"Key", ("Hidden field used for specifying or overriding the alphabetical order of entries")},
+	{"Month", ("Month of publication or creation if unpublished")},
+	{"Note", ("Miscellaneous extra information")},
+	{"Number", ("Number of journal, magazine, or tech-report")},
+	{"Organization", ("Sponsor of the conference")},
+	{"Pages", ("Page numbers separated by commas or double-hyphens")},
+	{"Publisher", ("Name of publisher")},
+	{"School", ("School where thesis was written")},
+	{"Series", ("Series of books in which the book was published")},
+	{"Title", ("Title of the work")},
+	{"Type", ("Type of technical report")},
+	{"URL", ("Internet address")},
+	{"Volume", ("Number of the volume")},
+	{"Year", ("Year of publication or creation if unpublished")}
 };
 
 typedef struct _XfbibBibtexField         XfbibBibtexField;

Modified: xfbib/branches/gobject/src/xfbib-bibtex-string.c
===================================================================
--- xfbib/branches/gobject/src/xfbib-bibtex-string.c	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/xfbib-bibtex-string.c	2009-03-30 19:31:14 UTC (rev 7054)
@@ -22,6 +22,7 @@
 #endif
 #include <gtk/gtk.h>
 #include <string.h>
+#include <libxfcegui4/libxfcegui4.h>
 
 #include "xfbib-bibtex-string.h"
 #include "xfbib-bibtex-value.h"
@@ -121,7 +122,7 @@
 
 	if (split[1] == NULL) {
 		/* Equal sign missing */
-		g_warning("No equal sign found in definition of String\n");
+		g_warning(_("No equal sign found in definition of String\n"));
 		g_strfreev(split);
 		return FALSE;
 	}

Modified: xfbib/branches/gobject/src/xfbib-bibtex-value.c
===================================================================
--- xfbib/branches/gobject/src/xfbib-bibtex-value.c	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/xfbib-bibtex-value.c	2009-03-30 19:31:14 UTC (rev 7054)
@@ -118,7 +118,7 @@
 
 			if (split[i][0] == '{' && strchr(split[i], '@') != NULL) {
 				/* Braced string contains @ */
-				g_warning("Braced string contains @: %s\n", split[i]);
+				g_warning(_("Braced string contains @: %s\n"), split[i]);
 				return FALSE;
 			}
 
@@ -131,14 +131,14 @@
 				else if (split[i][j] == '}')
 					braces--;
 				else if (split[i][0] == '"'  && split[i][j] == '"' && braces == 0) {
-					g_warning("Quote not inside braces in string: %s\n", split[i]);
+					g_warning(_("Quote not inside braces in string: %s\n"), split[i]);
 					return FALSE;
 				}
 			}
 
 			if (braces != 0) {
 				/* Braces was not balanced */
-				g_warning("Braces not balanced in field string: %s\n", split[i]);
+				g_warning(_("Braces not balanced in field string: %s\n"), split[i]);
 				return FALSE;
 			}
 
@@ -148,7 +148,7 @@
 		} else if(g_ascii_isalpha(split[i][0])) {
 			/* Variable */
 			if (strstr(split[i], "\"") != NULL) {
-				g_warning("Variable contains double quote\n");
+				g_warning(_("Variable contains double quote\n"));
 				return FALSE;
 			}
 
@@ -161,7 +161,7 @@
 			for (j = 0; j < len; j++) {
 				if (!g_ascii_isdigit(split[i][j])) {
 					/* Character was not a number between 0 and 9 */
-					g_warning("TODO: Add a character in number warning\n");
+					g_warning(_("TODO: Add a character in number warning\n"));
 					return FALSE;
 				}
 			}

Modified: xfbib/branches/gobject/src/xfbib-bibtex.c
===================================================================
--- xfbib/branches/gobject/src/xfbib-bibtex.c	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/xfbib-bibtex.c	2009-03-30 19:31:14 UTC (rev 7054)
@@ -126,7 +126,7 @@
 	} else if (str[(*i)] == '(') {
 		bracket_type = ROUND_BRACKET;
 	} else {
-		g_warning("Error, on line %d(TODO)\n", __LINE__);
+		g_warning(_("Error, on line %d(TODO)\n"), __LINE__);
 		return FALSE;
 	}
 
@@ -145,7 +145,7 @@
 			else if(str[(*i)] == ')')
 				brackets--;
 		} else {
-			g_warning("Error, could not parse wrong entry type (TODO)\n");
+			g_warning(_("Error, could not parse wrong entry type (TODO)\n"));
 			return FALSE;;
 			/* Strange */
 		}
@@ -241,7 +241,7 @@
 				buf = g_string_erase(buf, 0, -1);
 			} else {
 				/* Error */
-				g_warning("Error, on line %d(TODO)\n", __LINE__);
+				g_warning(_("Error, on line %d(TODO)\n"), __LINE__);
 				while (str[++i] != '@')
 					continue;
 			}

Modified: xfbib/branches/gobject/src/xfbib-entry-edit-dialog.c
===================================================================
--- xfbib/branches/gobject/src/xfbib-entry-edit-dialog.c	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/xfbib-entry-edit-dialog.c	2009-03-30 19:31:14 UTC (rev 7054)
@@ -120,7 +120,7 @@
 	GtkWidget *multiple_input;
 	const gchar *str;
 
-	GtkWidget *dialog = xfce_titled_dialog_new_with_buttons("Edit compund string",
+	GtkWidget *dialog = xfce_titled_dialog_new_with_buttons(_("Edit compund string"),
                                                     NULL,
                                                     GTK_DIALOG_MODAL & GTK_DIALOG_DESTROY_WITH_PARENT,
                                                     NULL);
@@ -131,7 +131,7 @@
 	gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
 	gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);
 	
-	multiple_input = xfbib_multiple_input_new("Text/String key", "TODO");	/* TODO: Fix the tooltip */
+	multiple_input = xfbib_multiple_input_new(_("Text/String key"), "TODO");	/* TODO: Fix the tooltip */
 	if(GTK_WIDGET_IS_SENSITIVE(inputs->input)) {
 		if(strcmp(gtk_entry_get_text(GTK_ENTRY(inputs->input)), "") != 0) {
 			xfbib_multiple_input_set_text(XFBIB_MULTIPLE_INPUT(multiple_input), gtk_entry_get_text(GTK_ENTRY(inputs->input)));
@@ -175,7 +175,7 @@
 	g_string_free(path, TRUE);
 
 	if(pixbuf == NULL){
-		g_warning("Button icon missing: %s", filename);
+		g_warning(_("Button icon missing: %s"), filename);
 		image = gtk_image_new_from_stock(GTK_STOCK_MISSING_IMAGE, GTK_ICON_SIZE_BUTTON);
 	}else{
 		image = gtk_image_new_from_pixbuf(pixbuf);
@@ -221,14 +221,14 @@
 	gint i, row[5] = {0, 0, 0, 0, 0}, box;
 	GtkWidget *top_box;
 
-	instance->type_label = gtk_label_new("Type:");
+	instance->type_label = gtk_label_new(_("Type:"));
 	instance->type_combo_box = gtk_combo_box_new_text();
 	for (i = 0; xfbib_type_constants[i].text != NULL; i++) {
 		gtk_combo_box_append_text(GTK_COMBO_BOX(instance->type_combo_box),
 				xfbib_type_constants[i].text);
 	}
 
-	instance->key_label = gtk_label_new("Key:");
+	instance->key_label = gtk_label_new(_("Key:"));
 	instance->key_entry = gtk_entry_new();
 	instance->key_button = gtk_button_new();
 	gtk_container_add(GTK_CONTAINER(instance->key_button), xfbib_get_image("xfbib-generate.png"));
@@ -324,11 +324,11 @@
 	instance->notebook = gtk_notebook_new ();
 	gtk_container_set_border_width(GTK_CONTAINER (instance->notebook), 6);
 	gtk_notebook_set_tab_pos (GTK_NOTEBOOK (instance->notebook), GTK_POS_TOP);
-	gtk_notebook_append_page (GTK_NOTEBOOK (instance->notebook), instance->note_boxes[0], gtk_label_new("Title"));
-	gtk_notebook_append_page (GTK_NOTEBOOK (instance->notebook), instance->note_boxes[1], gtk_label_new("Author/Editor"));
-	gtk_notebook_append_page (GTK_NOTEBOOK (instance->notebook), instance->note_boxes[2], gtk_label_new("Publication"));
-	gtk_notebook_append_page (GTK_NOTEBOOK (instance->notebook), instance->note_boxes[3], gtk_label_new("Publisher"));
-	gtk_notebook_append_page (GTK_NOTEBOOK (instance->notebook), instance->note_boxes[4], gtk_label_new("Misc"));
+	gtk_notebook_append_page (GTK_NOTEBOOK (instance->notebook), instance->note_boxes[0], gtk_label_new(_("Title")));
+	gtk_notebook_append_page (GTK_NOTEBOOK (instance->notebook), instance->note_boxes[1], gtk_label_new(_("Author/Editor")));
+	gtk_notebook_append_page (GTK_NOTEBOOK (instance->notebook), instance->note_boxes[2], gtk_label_new(_("Publication")));
+	gtk_notebook_append_page (GTK_NOTEBOOK (instance->notebook), instance->note_boxes[3], gtk_label_new(_("Publisher")));
+	gtk_notebook_append_page (GTK_NOTEBOOK (instance->notebook), instance->note_boxes[4], gtk_label_new(_("Misc")));
 
 	gtk_box_pack_start (GTK_BOX (GTK_DIALOG (instance)->vbox), instance->notebook, TRUE, TRUE, 0);
 
@@ -481,11 +481,11 @@
 xfbib_entry_edit_dialog_valid_entry(XfbibEntryEditDialog *entry_edit_dialog)
 {
 	if(gtk_combo_box_get_active(GTK_COMBO_BOX(entry_edit_dialog->type_combo_box)) == -1) {
-		xfce_warn("A BibTeX type is required!");
+		xfce_warn(_("A BibTeX type is required!"));
 		return FALSE;
 	}
 	if(strcmp(gtk_entry_get_text(GTK_ENTRY(entry_edit_dialog->key_entry)), "") == 0) {
-		xfce_warn("BibTex key is required!");
+		xfce_warn(_("BibTex key is required!"));
 		return FALSE;
 	}
 

Modified: xfbib/branches/gobject/src/xfbib-entry-tree-view.c
===================================================================
--- xfbib/branches/gobject/src/xfbib-entry-tree-view.c	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/xfbib-entry-tree-view.c	2009-03-30 19:31:14 UTC (rev 7054)
@@ -29,38 +29,6 @@
 #include "xfbib-bibtex-entry.h"
 #include "xfbib-entry-edit-dialog.h"
 
-static struct {
-	gchar *label;
-	gchar *tooltip;
-}xfbib_field_constants[] = {
-	{"Address", "Address of publisher"},
-	{"Annote", "Annotation for annotated bibliography styles"},
-	{"Author", "Name(s) of the author(s), separated by 'and' if more than one"},
-	{"Booktitle", "Title of the book, if only part of it is being cited"},
-	{"Chapter", "Chapter number"},
-	{"Crossref", "Citation key of the cross-referenced entry"},
-	{"Edition", "Edition of the book (such as \"first\" or \"second\")"},
-	{"Editor", "Name(s) of the editor(s), separated by 'and' if more than one"},
-	{"E-print", "Specification of electronic publication"},
-	{"HowPublished", "Publishing method if the method is nonstandard"},
-	{"Institution", "Institution that was involved in the publishing"},
-	{"Journal", "Journal or magazine in which the work was published"},
-	{"Key", "Hidden field used for specifying or overriding the alphabetical order of entries"},
-	{"Month", "Month of publication or creation if unpublished"},
-	{"Note", "Miscellaneous extra information"},
-	{"Number", "Number of journal, magazine, or tech-report"},
-	{"Organization", "Sponsor of the conference"},
-	{"Pages", "Page numbers separated by commas or double-hyphens"},
-	{"Publisher", "Name of publisher"},
-	{"School", "School where thesis was written"},
-	{"Series", "Series of books in which the book was published"},
-	{"Title", "Title of the work"},
-	{"Type", "Type of technical report"},
-	{"URL", "Internet address"},
-	{"Volume", "Number of the volume"},
-	{"Year", "Year of publication or creation if unpublished"}
-};
-
 struct _XfbibEntryTreeView
 {
 	GtkTreeView parent;
@@ -197,6 +165,37 @@
 	GtkCellRenderer *renderer;
 	GtkTreeModel *model;
 	gint i;
+	struct {
+			gchar *label;
+			gchar *tooltip;
+	}xfbib_field_constants[] = {
+			{"Address", _("Address of publisher")},
+			{"Annote", _("Annotation for annotated bibliography styles")},
+			{"Author", _("Name(s) of the author(s), separated by 'and' if more than one")},
+			{"Booktitle", _("Title of the book, if only part of it is being cited")},
+			{"Chapter", _("Chapter number")},
+			{"Crossref", _("Citation key of the cross-referenced entry")},
+			{"Edition", _("Edition of the book (such as \"first\" or \"second\")")},
+			{"Editor", _("Name(s) of the editor(s), separated by 'and' if more than one")},
+			{"E-print", _("Specification of electronic publication")},
+			{"HowPublished", _("Publishing method if the method is nonstandard")},
+			{"Institution", _("Institution that was involved in the publishing")},
+			{"Journal", _("Journal or magazine in which the work was published")},
+			{"Key", _("Hidden field used for specifying or overriding the alphabetical order of entries")},
+			{"Month", _("Month of publication or creation if unpublished")},
+			{"Note", _("Miscellaneous extra information")},
+			{"Number", _("Number of journal, magazine, or tech-report")},
+			{"Organization", _("Sponsor of the conference")},
+			{"Pages", _("Page numbers separated by commas or double-hyphens")},
+			{"Publisher", _("Name of publisher")},
+			{"School", _("School where thesis was written")},
+			{"Series", _("Series of books in which the book was published")},
+			{"Title", _("Title of the work")},
+			{"Type", _("Type of technical report")},
+			{"URL", _("Internet address")},
+			{"Volume", _("Number of the volume")},
+			{"Year", _("Year of publication or creation if unpublished")}
+	};
 
 	/* Connect the double-click on a row to a callback function */
 	g_signal_connect(GTK_TREE_VIEW(instance), "row-activated", (GCallback) cb_row_activated, NULL);

Modified: xfbib/branches/gobject/src/xfbib-file-io.c
===================================================================
--- xfbib/branches/gobject/src/xfbib-file-io.c	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/xfbib-file-io.c	2009-03-30 19:31:14 UTC (rev 7054)
@@ -72,7 +72,7 @@
 	name = filename;
 
 	if (name == NULL) {
-		dialog = gtk_file_chooser_dialog_new("Open",
+		dialog = gtk_file_chooser_dialog_new(_("Open"),
 				GTK_WINDOW(xfbib_state_get_window(state)),
 				GTK_FILE_CHOOSER_ACTION_OPEN,
 				GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
@@ -80,7 +80,7 @@
 				NULL);
 
 		filter = gtk_file_filter_new();
-		gtk_file_filter_set_name(filter, "BibTeX files");
+		gtk_file_filter_set_name(filter, _("BibTeX files"));
 		gtk_file_filter_add_pattern(filter, "*.bib");
 		gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dialog), filter);
 		if ((ret = gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK)) {
@@ -138,12 +138,12 @@
 	xfbib_bibtex_foreach(elements, foreach_bibtex_element, str);
 
 	if ((fd = fopen(name, "w")) == NULL) {
-		xfce_err("An error occured when opening the file: %s\n", strerror(errno));
+		xfce_err(_("An error occured when opening the file: %s\n"), strerror(errno));
 		return FALSE;
 	}
 
 	if(fputs(str->str, fd) == EOF) {
-		xfce_err("An error occured when writing to the file: %s\n", name);
+		xfce_err(_("An error occured when writing to the file: %s\n"), name);
 		return FALSE;
 	}
 
@@ -159,12 +159,12 @@
 	GtkWidget *dialog;
 	gchar *name;
 	XfbibState *state;
-	g_print("Save as\n");
+	g_print(_("Save as\n"));
 	
 
 	state = xfbib_state_new();
 
-	dialog = gtk_file_chooser_dialog_new("Save As",
+	dialog = gtk_file_chooser_dialog_new(_("Save As"),
 			GTK_WINDOW(xfbib_state_get_window(state)),
 			GTK_FILE_CHOOSER_ACTION_SAVE,
 			GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
@@ -203,7 +203,7 @@
 		g_string_append_c(str, (separator == '{') ? '}' : ')');
 		g_string_append_c(str, '\n');
 	} else if (XFBIB_IS_BIBTEX_STRING(obj)) {
-				printf("printing bibtex string to file\n");
+				printf(_("printing bibtex string to file\n"));
 		separator = xfbib_bibtex_string_get_separator(XFBIB_BIBTEX_STRING(obj));
 		g_string_append(str, "@string ");
 		g_string_append_c(str, separator);
@@ -224,7 +224,7 @@
 		g_string_append_c(str, (separator == '{') ? '}' : ')');
 		g_string_append_c(str, '\n');
 	} else {
-		printf("Unknown object!\n");
+		printf(_("Unknown object!\n"));
 	}
 }
 

Modified: xfbib/branches/gobject/src/xfbib-input-dialog.c
===================================================================
--- xfbib/branches/gobject/src/xfbib-input-dialog.c	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/xfbib-input-dialog.c	2009-03-30 19:31:14 UTC (rev 7054)
@@ -89,8 +89,8 @@
 	gtk_table_set_col_spacings(GTK_TABLE(table), 12);
 	gtk_container_set_border_width(GTK_CONTAINER (table), 6);
 
-	instance->string_key_label = gtk_label_new("String key:");
-	instance->text_label = gtk_label_new("Text:");
+	instance->string_key_label = gtk_label_new(_("String key:"));
+	instance->text_label = gtk_label_new(_("Text:"));
 
 	instance->string_key_entry = gtk_combo_box_entry_new();
 	instance->text_entry = gtk_entry_new();

Modified: xfbib/branches/gobject/src/xfbib-menu-bar.c
===================================================================
--- xfbib/branches/gobject/src/xfbib-menu-bar.c	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/xfbib-menu-bar.c	2009-03-30 19:31:14 UTC (rev 7054)
@@ -63,7 +63,7 @@
 static void
 cb_file_new_activate (GtkMenuItem *menuitem, gpointer user_data)
 {
-	g_print("File/New\n");
+	g_print(_("File/New\n"));
 }
 
 static void
@@ -71,7 +71,7 @@
 {
 	XfbibState *state;
 	gchar *filename;
-	g_print("File/Open\n");
+	g_print(_("File/Open\n"));
 
 	state = xfbib_state_new();
 
@@ -85,7 +85,7 @@
 cb_file_save_activate (GtkMenuItem *menuitem, gpointer user_data)
 {
 	XfbibState *state;
-	g_print("File/Save\n");
+	g_print(_("File/Save\n"));
 	state = xfbib_state_new();
 
 	xfbib_file_io_save(xfbib_state_get_filename(state));
@@ -94,7 +94,7 @@
 static void
 cb_file_save_as_activate (GtkMenuItem *menuitem, gpointer user_data)
 {
-	g_print("File/Save As\n");
+	g_print(_("File/Save As\n"));
 	xfbib_file_io_save_as();
 }
 
@@ -111,7 +111,7 @@
 	XfbibBibtexEntry *new_entry;
 	GtkTreeModel *model;
 	GtkWidget *dialog;
-	g_print("Entry/Add\n");
+	g_print(_("Entry/Add\n"));
 
 	state = xfbib_state_new();
 	model = gtk_tree_view_get_model(GTK_TREE_VIEW(xfbib_window_get_tree_view(
@@ -140,7 +140,7 @@
 	GtkTreeSelection *selection;
 	GtkTreeModel     *model;
 	GtkTreeIter       iter;
-	g_print("Entry/Remove\n");
+	g_print(_("Entry/Remove\n"));
 
 	state = xfbib_state_new();
 	tree_view = GTK_WIDGET(xfbib_window_get_tree_view(XFBIB_WINDOW(xfbib_state_get_window(state)), TYPE_ENTRY));
@@ -150,7 +150,7 @@
 	if (gtk_tree_selection_get_selected(selection, &model, &iter)) {
 		xfbib_list_store_remove(XFBIB_LIST_STORE(model), &iter);
 	} else {
-		xfce_err("No row has been selected for removal");
+		xfce_err(_("No row has been selected for removal"));
 	}
 }
 
@@ -163,7 +163,7 @@
 	GtkTreeSelection *selection;
 	GtkTreeModel *model;
 	GtkTreeIter iter;
-	g_print("Entry/Edit\n");
+	g_print(_("Entry/Edit\n"));
 
 	state = xfbib_state_new();
 	tree_view = GTK_WIDGET(xfbib_window_get_tree_view(XFBIB_WINDOW(xfbib_state_get_window(state)), TYPE_ENTRY));
@@ -186,7 +186,7 @@
 		}
 		gtk_widget_destroy(dialog);
 	} else {
-		xfce_err("No row has been selected for edit");
+		xfce_err(_("No row has been selected for edit"));
 	}
 }
 
@@ -197,7 +197,7 @@
 	XfbibBibtexString *new_string;
 	GtkTreeModel *model;
 	GtkWidget *dialog;
-	g_print("Variable/add\n");
+	g_print(_("Variable/add\n"));
 
 	state = xfbib_state_new();
 	model = gtk_tree_view_get_model(GTK_TREE_VIEW(xfbib_window_get_tree_view(
@@ -221,7 +221,7 @@
 	GtkTreeSelection *selection;
 	GtkTreeModel     *model;
 	GtkTreeIter       iter;
-	g_print("Variable/Remove\n");
+	g_print(_("Variable/Remove\n"));
 
 	state = xfbib_state_new();
 	tree_view = GTK_WIDGET(xfbib_window_get_tree_view(XFBIB_WINDOW(xfbib_state_get_window(state)), TYPE_STRING));
@@ -231,7 +231,7 @@
 	if (gtk_tree_selection_get_selected(selection, &model, &iter)) {
 		xfbib_list_store_remove(XFBIB_LIST_STORE(model), &iter);
 	} else {
-		xfce_err("No row has been selected for removal");
+		xfce_err(_("No row has been selected for removal"));
 	}
 }
 
@@ -244,7 +244,7 @@
 	GtkTreeSelection *selection;
 	GtkTreeModel *model;
 	GtkTreeIter iter;
-	g_print("Variable/Edit\n");
+	g_print(_("Variable/Edit\n"));
 
 	state = xfbib_state_new();
 	tree_view = GTK_WIDGET(xfbib_window_get_tree_view(XFBIB_WINDOW(xfbib_state_get_window(state)), TYPE_STRING));
@@ -263,7 +263,7 @@
 		gtk_widget_destroy(dialog);
 #endif
 	} else {
-		xfce_err("No row has been selected for edit");
+		xfce_err(_("No row has been selected for edit"));
 	}
 
 }
@@ -271,8 +271,8 @@
 static void
 cb_help_about_activate (GtkMenuItem *menuitem, gpointer ignored)
 {
-	gchar* xfbib_authors[] = {"David Gustafsson <david.s.gustafsson at gmail.com>",
-		"Jesper Karlsson <zarper at gmail.com>",
+	gchar* xfbib_authors[] = {N_("David Gustafsson <david.s.gustafsson at gmail.com>"),
+		N_("Jesper Karlsson <zarper at gmail.com>"),
 		NULL};
 
 /*
@@ -282,7 +282,7 @@
  */
 	gtk_show_about_dialog(GTK_WINDOW(window),
 			"authors", xfbib_authors,
-			"comments", "Xfbib is a BibTeX editor for the Xfce Desktop Environment.",
+			"comments", _("Xfbib is a BibTeX editor for the Xfce Desktop Environment."),
 			"copyright", XFCE_COPYRIGHT_TEXT("2008", "Jesper Karlsson & David Gustafsson"),
 			"license", XFCE_LICENSE_GPL,
 			"logo-icon-name", PACKAGE,
@@ -370,7 +370,7 @@
 	g_signal_connect_swapped (G_OBJECT (item), "activate",
 			G_CALLBACK (cb_file_quit_activate), instance);
 
-	item = gtk_menu_item_new_with_label("File");
+	item = gtk_menu_item_new_with_label(_("File"));
 	gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), instance->file);
 	gtk_menu_shell_append(GTK_MENU_SHELL(instance), item);
 
@@ -395,7 +395,7 @@
 			G_CALLBACK (cb_entry_edit_activate), instance);
 
 
-	item = gtk_menu_item_new_with_label("Entry");
+	item = gtk_menu_item_new_with_label(_("Entry"));
 	gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), instance->entry);
 	gtk_menu_shell_append(GTK_MENU_SHELL(instance), item);
 
@@ -419,7 +419,7 @@
 			G_CALLBACK (cb_variable_edit_activate), instance);
 
 
-	item = gtk_menu_item_new_with_label("Variable");
+	item = gtk_menu_item_new_with_label(_("Variable"));
 	gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), instance->variable);
 	gtk_menu_shell_append(GTK_MENU_SHELL(instance), item);
 
@@ -443,13 +443,13 @@
 	}
 	*/
 
-	item = gtk_check_menu_item_new_with_mnemonic("Show Toolbar");
+	item = gtk_check_menu_item_new_with_mnemonic(_("Show Toolbar"));
 	gtk_menu_shell_append(GTK_MENU_SHELL (instance->view), item);
 
-	item = gtk_check_menu_item_new_with_mnemonic("Show Status Bar");
+	item = gtk_check_menu_item_new_with_mnemonic(_("Show Status Bar"));
 	gtk_menu_shell_append(GTK_MENU_SHELL (instance->view), item);
 
-	item = gtk_menu_item_new_with_label("View");
+	item = gtk_menu_item_new_with_label(_("View"));
 	gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), instance->view);
 	gtk_menu_shell_append(GTK_MENU_SHELL(instance), item);
 
@@ -462,7 +462,7 @@
 			G_CALLBACK (cb_help_about_activate), "about");
 
 	/* Create the button on the menu bar */
-	item = gtk_menu_item_new_with_label("Help");
+	item = gtk_menu_item_new_with_label(_("Help"));
 	gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), instance->help);
 	gtk_menu_shell_append(GTK_MENU_SHELL(instance), item);
 

Modified: xfbib/branches/gobject/src/xfbib-multiple-input.c
===================================================================
--- xfbib/branches/gobject/src/xfbib-multiple-input.c	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/xfbib-multiple-input.c	2009-03-30 19:31:14 UTC (rev 7054)
@@ -78,7 +78,7 @@
 	gchar *str;
 	
 	column = gtk_tree_view_get_column(GTK_TREE_VIEW(tree_view), 0);
-	str = g_strdup_printf("Add %s", g_ascii_strdown(gtk_tree_view_column_get_title(column), -1));
+	str = g_strdup_printf(_("Add %s"), g_ascii_strdown(gtk_tree_view_column_get_title(column), -1));
 	dialog = xfbib_input_dialog_new(str, gtk_tree_view_column_get_title(column));
 	g_free(str);
 
@@ -165,7 +165,7 @@
 	g_object_set(renderer, "editable", TRUE, NULL);
 	g_signal_connect(renderer, "edited", (GCallback) cb_cell_edited_event, instance->tree_view);
 
-	column = gtk_tree_view_column_new_with_attributes("Title", renderer, "text", 0, NULL);
+	column = gtk_tree_view_column_new_with_attributes(_("Title"), renderer, "text", 0, NULL);
 	gtk_tree_view_column_set_resizable(GTK_TREE_VIEW_COLUMN(column), TRUE);
 	gtk_tree_view_column_set_min_width(GTK_TREE_VIEW_COLUMN(column), 100);
    	gtk_tree_view_append_column(GTK_TREE_VIEW(instance->tree_view), column);

Modified: xfbib/branches/gobject/src/xfbib-string-tree-view.c
===================================================================
--- xfbib/branches/gobject/src/xfbib-string-tree-view.c	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/xfbib-string-tree-view.c	2009-03-30 19:31:14 UTC (rev 7054)
@@ -29,37 +29,37 @@
 #include "xfbib-bibtex-string.h"
 #include "xfbib-entry-edit-dialog.h"
 
-static struct {
+/*static struct {
 	gchar *label;
 	gchar *tooltip;
 }xfbib_field_constants[] = {
-	{"Address", "Address of publisher"},
-	{"Annote", "Annotation for annotated bibliography styles"},
-	{"Author", "Name(s) of the author(s), separated by 'and' if more than one"},
-	{"Booktitle", "Title of the book, if only part of it is being cited"},
-	{"Chapter", "Chapter number"},
-	{"Crossref", "Citation key of the cross-referenced entry"},
-	{"Edition", "Edition of the book (such as \"first\" or \"second\")"},
-	{"Editor", "Name(s) of the editor(s), separated by 'and' if more than one"},
-	{"E-print", "Specification of electronic publication"},
-	{"HowPublished", "Publishing method if the method is nonstandard"},
-	{"Institution", "Institution that was involved in the publishing"},
-	{"Journal", "Journal or magazine in which the work was published"},
-	{"Key", "Hidden field used for specifying or overriding the alphabetical order of entries"},
-	{"Month", "Month of publication or creation if unpublished"},
-	{"Note", "Miscellaneous extra information"},
-	{"Number", "Number of journal, magazine, or tech-report"},
-	{"Organization", "Sponsor of the conference"},
-	{"Pages", "Page numbers separated by commas or double-hyphens"},
-	{"Publisher", "Name of publisher"},
-	{"School", "School where thesis was written"},
-	{"Series", "Series of books in which the book was published"},
-	{"Title", "Title of the work"},
-	{"Type", "Type of technical report"},
-	{"URL", "Internet address"},
-	{"Volume", "Number of the volume"},
-	{"Year", "Year of publication or creation if unpublished"}
-};
+	{"Address", _("Address of publisher")},
+	{"Annote", _("Annotation for annotated bibliography styles")},
+	{"Author", _("Name(s) of the author(s), separated by 'and' if more than one")},
+	{"Booktitle", _("Title of the book, if only part of it is being cited")},
+	{"Chapter", _("Chapter number")},
+	{"Crossref", _("Citation key of the cross-referenced entry")},
+	{"Edition", _("Edition of the book (such as \"first\" or \"second\")")},
+	{"Editor", _("Name(s) of the editor(s), separated by 'and' if more than one")},
+	{"E-print", _("Specification of electronic publication")},
+	{"HowPublished", _("Publishing method if the method is nonstandard")},
+	{"Institution", _("Institution that was involved in the publishing")},
+	{"Journal", _("Journal or magazine in which the work was published")},
+	{"Key", _("Hidden field used for specifying or overriding the alphabetical order of entries")},
+	{"Month", _("Month of publication or creation if unpublished")},
+	{"Note", _("Miscellaneous extra information")},
+	{"Number", _("Number of journal, magazine, or tech-report")},
+	{"Organization", _("Sponsor of the conference")},
+	{"Pages", _("Page numbers separated by commas or double-hyphens")},
+	{"Publisher", _("Name of publisher")},
+	{"School", _("School where thesis was written")},
+	{"Series", _("Series of books in which the book was published")},
+	{"Title", _("Title of the work")},
+	{"Type", _("Type of technical report")},
+	{"URL", _("Internet address")},
+	{"Volume", _("Number of the volume")},
+	{"Year", _("Year of publication or creation if unpublished")}
+};*/
 
 struct _XfbibStringTreeView
 {
@@ -210,7 +210,7 @@
 
 	/* Value Column */
 	column = gtk_tree_view_column_new();
-	gtk_tree_view_column_set_title(column, "Value" );
+	gtk_tree_view_column_set_title(column, _("Value") );
 	/* pack tree view column into tree view */
 	gtk_tree_view_append_column(GTK_TREE_VIEW(instance), column);
 	renderer = gtk_cell_renderer_text_new();

Modified: xfbib/branches/gobject/src/xfbib-string.c
===================================================================
--- xfbib/branches/gobject/src/xfbib-string.c	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/xfbib-string.c	2009-03-30 19:31:14 UTC (rev 7054)
@@ -23,6 +23,7 @@
 #include <string.h>
 #include <gtk/gtk.h>
 #include <stdlib.h>
+#include <libxfcegui4/libxfcegui4.h>
 
 #include "xfbib-string.h"
 
@@ -91,7 +92,7 @@
 xfbib_string_set(XfbibString *string, const gchar *str)
 {
 	g_free(string->str);
-	g_print("Setting string: <%s>\n", str);
+	g_print(_("Setting string: <%s>\n"), str);
 	string->str = g_strdup(str);
 }
 

Modified: xfbib/branches/gobject/src/xfbib-toolbar.c
===================================================================
--- xfbib/branches/gobject/src/xfbib-toolbar.c	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/xfbib-toolbar.c	2009-03-30 19:31:14 UTC (rev 7054)
@@ -54,7 +54,7 @@
 
 	XfbibState *state;
 	gchar *filename;
-	g_print("Toolbar_Open\n");
+	g_print(_("Toolbar_Open\n"));
 
 	state = xfbib_state_new();
 
@@ -68,7 +68,7 @@
 cb_save_clicked (GtkButton *buttonitem, gpointer user_data)
 {
 	XfbibState *state;
-	g_print("Toolbar_Save\n");
+	g_print(_("Toolbar_Save\n"));
 	state = xfbib_state_new();
 
 	xfbib_file_io_save(xfbib_state_get_filename(state));

Modified: xfbib/branches/gobject/src/xfbib-window.c
===================================================================
--- xfbib/branches/gobject/src/xfbib-window.c	2009-03-30 19:21:22 UTC (rev 7053)
+++ xfbib/branches/gobject/src/xfbib-window.c	2009-03-30 19:31:14 UTC (rev 7054)
@@ -110,7 +110,7 @@
 	instance->entry_scrolled_window = gtk_scrolled_window_new(NULL, NULL);
 	gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (instance->entry_scrolled_window),
 			GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-	gtk_notebook_append_page (GTK_NOTEBOOK (instance->notebook), instance->entry_scrolled_window, gtk_label_new("Entry"));
+	gtk_notebook_append_page (GTK_NOTEBOOK (instance->notebook), instance->entry_scrolled_window, gtk_label_new(_("Entry")));
 
 	instance->entry_tree_view = xfbib_entry_tree_view_new();
 	gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW(instance->entry_scrolled_window), instance->entry_tree_view);
@@ -118,7 +118,7 @@
 	instance->string_scrolled_window = gtk_scrolled_window_new(NULL, NULL);
 	gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (instance->string_scrolled_window),
 			GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-	gtk_notebook_append_page (GTK_NOTEBOOK (instance->notebook), instance->string_scrolled_window, gtk_label_new("Variable"));
+	gtk_notebook_append_page (GTK_NOTEBOOK (instance->notebook), instance->string_scrolled_window, gtk_label_new(_("Variable")));
 
 	instance->string_tree_view = xfbib_string_tree_view_new();
 	gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW(instance->string_scrolled_window), instance->string_tree_view);
@@ -149,7 +149,7 @@
 {
 	char *str;
 	g_return_if_fail(XFBIB_IS_WINDOW(window));
-	str = g_strdup_printf("%s - %s", (name == NULL) ? "(Untitled)" : name, PACKAGE_NAME);
+	str = g_strdup_printf("%s - %s", (name == NULL) ? _("(Untitled)") : name, PACKAGE_NAME);
 	gtk_window_set_title(GTK_WINDOW(window), str);
 	g_free(str);
 }




More information about the Goodies-commits mailing list