summaryrefslogtreecommitdiffstats
path: root/src/x-po.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-08-13 13:50:43 +0000
committerBruno Haible <bruno@clisp.org>2001-08-13 13:50:43 +0000
commit539824ee3b29c16790e0747a98ea6f5c33157abb (patch)
tree0827641f3d6524f470a89b3cbdaef5d393b8fae1 /src/x-po.h
parent59db10bb3165583e2ee9c03b4585d0de20b09589 (diff)
downloadexternal_gettext-539824ee3b29c16790e0747a98ea6f5c33157abb.zip
external_gettext-539824ee3b29c16790e0747a98ea6f5c33157abb.tar.gz
external_gettext-539824ee3b29c16790e0747a98ea6f5c33157abb.tar.bz2
Split off the PO file backend of xgettext.
Diffstat (limited to 'src/x-po.h')
-rw-r--r--src/x-po.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/x-po.h b/src/x-po.h
new file mode 100644
index 0000000..f02b610
--- /dev/null
+++ b/src/x-po.h
@@ -0,0 +1,30 @@
+/* xgettext PO backend.
+ Copyright (C) 2001 Free Software Foundation, Inc.
+ Written by Bruno Haible <haible@clisp.cons.org>, 2001.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+
+#define EXTENSIONS_PO \
+ { "po", "PO", }, \
+ { "pot", "PO", }, \
+
+#define SCANNERS_PO \
+ { "PO", scan_po_file, }, \
+
+/* Scan a PO file and add its translatable strings to mdlp. */
+extern void extract_po PARAMS ((FILE *fp, const char *real_filename,
+ const char *logical_filename,
+ msgdomain_list_ty *mdlp));