From 443ab1ee8c4abf0c07727bc2e93b8f892294d324 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 12 May 2004 03:32:55 +0000 Subject: fix i18n file generation rules. 2004-05-12 Not Zed * Makefile.am (%.xml.h): fix i18n file generation rules. * filter-errors.xml: rename from xml.in and fix tags. * filter-errors.xml.h: add for translators. svn path=/trunk/; revision=25867 --- filter/ChangeLog | 8 +++++++ filter/Makefile.am | 13 ++++++++---- filter/filter-errors.xml | 51 +++++++++++++++++++++++++++++++++++++++++++++ filter/filter-errors.xml.h | 38 +++++++++++++++++++++++++++++++++ filter/filter-errors.xml.in | 51 --------------------------------------------- 5 files changed, 106 insertions(+), 55 deletions(-) create mode 100644 filter/filter-errors.xml create mode 100644 filter/filter-errors.xml.h delete mode 100644 filter/filter-errors.xml.in diff --git a/filter/ChangeLog b/filter/ChangeLog index 47d7611e9d..a1f20d8611 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,11 @@ +2004-05-12 Not Zed + + * Makefile.am (%.xml.h): fix i18n file generation rules. + + * filter-errors.xml: rename from xml.in and fix tags. + + * filter-errors.xml.h: add for translators. + 2004-05-03 Jeffrey Stedfast * vfoldertypes.xml: Added the Junk status flag to the xml diff --git a/filter/Makefile.am b/filter/Makefile.am index 502e543a5c..0e7fd2f4b7 100644 --- a/filter/Makefile.am +++ b/filter/Makefile.am @@ -70,7 +70,8 @@ libfilter_la_DEPENDENCIES = libfilter-i18n.h EXTRA_DIST = \ $(glade_DATA) \ - $(error_in_files) \ + $(error_DATA) \ + $(error_i18n) \ ChangeLog.pre-1-4 \ filter-marshal.list \ filtertypes.xml \ @@ -82,10 +83,11 @@ EXTRA_DIST = \ filterdir = $(privdatadir) filter_DATA = filtertypes.xml vfoldertypes.xml searchtypes.xml -error_in_files = filter-errors.xml.in -error_DATA = $(error_in_files:.xml.in=.xml) +error_DATA = filter-errors.xml +error_i18n = $(error_DATA:.xml=.xml.h) errordir = $(privdatadir)/errors -@INTLTOOL_XML_RULE@ +%.xml.h: %.xml + $(top_builddir)/e-util/e-error-tool $^ libfilter-i18n.h: filtertypes.xml vfoldertypes.xml echo "/* Automatically generated. Do not edit. */" > $@; \ @@ -95,3 +97,6 @@ libfilter-i18n.h: filtertypes.xml vfoldertypes.xml MARSHAL_GENERATED = filter-marshal.c filter-marshal.h @EVO_MARSHAL_RULE@ + +BUILT_SOURCES = $(MARSHAL_GENERATED) $(error_i18n) +CLEANFILES = $(BUILT_SOURCES) diff --git a/filter/filter-errors.xml b/filter/filter-errors.xml new file mode 100644 index 0000000000..d7ad6ab55b --- /dev/null +++ b/filter/filter-errors.xml @@ -0,0 +1,51 @@ + + + + + Missing date. + You must choose a date. + + + + Missing file name. + You must specify a file name. + + + + File "{0}" does not exist or is not a regular file. + You must specify a file name. + + + + Missing folder. + You must specify a folder. + + + + Bad regular expression "{0}". + Could not compile regular expression "{1}". + + + + Missing name. + You must name this filter. + + + + Missing name. + You must name this vFolder. + + + + Name "{0}" already used. + Please choose another name. + + + + No sources selected. + You must specify at least one folder as a source. +Either by selecting the folders individually, and/or by selecting +all local folders, all remote folders, or both. + + + \ No newline at end of file diff --git a/filter/filter-errors.xml.h b/filter/filter-errors.xml.h new file mode 100644 index 0000000000..f8ed2d6ffb --- /dev/null +++ b/filter/filter-errors.xml.h @@ -0,0 +1,38 @@ +/* filter:no-date primary */ +char *s = N_("Missing date."); +/* filter:no-date secondary */ +char *s = N_("You must choose a date."); +/* filter:no-file primary */ +char *s = N_("Missing file name."); +/* filter:no-file secondary */ +char *s = N_("You must specify a file name."); +/* filter:bad-file primary */ +char *s = N_("File \"{0}\" does not exist or is not a regular file."); +/* filter:bad-file secondary */ +char *s = N_("You must specify a file name."); +/* filter:no-folder primary */ +char *s = N_("Missing folder."); +/* filter:no-folder secondary */ +char *s = N_("You must specify a folder."); +/* filter:bad-regexp primary */ +char *s = N_("Bad regular expression \"{0}\"."); +/* filter:bad-regexp secondary */ +char *s = N_("Could not compile regular expression \"{1}\"."); +/* filter:no-name primary */ +char *s = N_("Missing name."); +/* filter:no-name secondary */ +char *s = N_("You must name this filter."); +/* filter:no-name-vfolder primary */ +char *s = N_("Missing name."); +/* filter:no-name-vfolder secondary */ +char *s = N_("You must name this vFolder."); +/* filter:bad-name-notunique primary */ +char *s = N_("Name \"{0}\" already used."); +/* filter:bad-name-notunique secondary */ +char *s = N_("Please choose another name."); +/* filter:vfolder-no-source primary */ +char *s = N_("No sources selected."); +/* filter:vfolder-no-source secondary */ +char *s = N_("You must specify at least one folder as a source.\n" + "Either by selecting the folders individually, and/or by selecting\n" + "all local folders, all remote folders, or both."); diff --git a/filter/filter-errors.xml.in b/filter/filter-errors.xml.in deleted file mode 100644 index 97bbd9c8fb..0000000000 --- a/filter/filter-errors.xml.in +++ /dev/null @@ -1,51 +0,0 @@ - - - - - <_primary>Missing date. - <_secondary>You must choose a date. - - - - <_primary>Missing file name. - <_secondary>You must specify a file name. - - - - <_primary>File "{0}" does not exist or is not a regular file. - <_secondary>You must specify a file name. - - - - <_primary>Missing folder. - <_secondary>You must specify a folder. - - - - <_primary>Bad regular expression "{0}". - <_secondary>Could not compile regular expression "{1}". - - - - <_primary>Missing name. - <_secondary>You must name this filter. - - - - <_primary>Missing name. - <_secondary>You must name this vFolder. - - - - <_primary>Name "{0}" already used. - <_secondary>Please choose another name. - - - - <_primary>No sources selected. - <_secondary>You must specify at least one folder as a source. -Either by selecting the folders individually, and/or by selecting -all local folders, all remote folders, or both. - - - \ No newline at end of file -- cgit v1.2.3