~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to gettext-tools/src/write-po.h

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GNU gettext - internationalization aids
 
2
   Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
 
3
 
 
4
   This file was written by Peter Miller <millerp@canb.auug.org.au>
 
5
 
 
6
   This program is free software; you can redistribute it and/or modify
 
7
   it under the terms of the GNU General Public License as published by
 
8
   the Free Software Foundation; either version 2, or (at your option)
 
9
   any later version.
 
10
 
 
11
   This program is distributed in the hope that it will be useful,
 
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
   GNU General Public License for more details.
 
15
 
 
16
   You should have received a copy of the GNU General Public License
 
17
   along with this program; if not, write to the Free SoftwareFoundation,
 
18
   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
19
 
 
20
#ifndef _WRITE_PO_H
 
21
#define _WRITE_PO_H
 
22
 
 
23
#include "message.h"
 
24
 
 
25
#include <stdbool.h>
 
26
#include <stdio.h>
 
27
 
 
28
 
 
29
#ifdef __cplusplus
 
30
extern "C" {
 
31
#endif
 
32
 
 
33
 
 
34
/* These functions are used to output a #, flags line.  */
 
35
extern const char *
 
36
       make_format_description_string (enum is_format is_format,
 
37
                                       const char *lang, bool debug);
 
38
extern bool
 
39
       significant_format_p (enum is_format is_format);
 
40
 
 
41
 
 
42
/* These functions output parts of a message, as comments.  */
 
43
extern void
 
44
       message_print_comment (const message_ty *mp, FILE *fp);
 
45
extern void
 
46
       message_print_comment_dot (const message_ty *mp, FILE *fp);
 
47
extern void
 
48
       message_print_comment_filepos (const message_ty *mp, FILE *fp,
 
49
                                      bool uniforum, size_t page_width);
 
50
extern void
 
51
       message_print_comment_flags (const message_ty *mp, FILE *fp,
 
52
                                    bool debug);
 
53
 
 
54
/* These functions set some parameters for use by 'msgdomain_list_print'.  */
 
55
extern void
 
56
       message_page_width_set (size_t width);
 
57
extern void
 
58
       message_page_width_ignore (void);
 
59
extern void
 
60
       message_print_style_indent (void);
 
61
extern void
 
62
       message_print_style_uniforum (void);
 
63
extern void
 
64
       message_print_style_escape (bool flag);
 
65
extern void
 
66
       message_print_syntax_properties (void);
 
67
extern void
 
68
       message_print_syntax_stringtable (void);
 
69
 
 
70
/* Output MDLP into a PO file with the given FILENAME, according to the
 
71
   parameters set by the functions above.  */
 
72
extern void
 
73
       msgdomain_list_print (msgdomain_list_ty *mdlp,
 
74
                             const char *filename,
 
75
                             bool force, bool debug);
 
76
 
 
77
/* Sort MDLP destructively according to the given criterion.  */
 
78
extern void
 
79
       msgdomain_list_sort_by_msgid (msgdomain_list_ty *mdlp);
 
80
extern void
 
81
       msgdomain_list_sort_by_filepos (msgdomain_list_ty *mdlp);
 
82
 
 
83
 
 
84
#ifdef __cplusplus
 
85
}
 
86
#endif
 
87
 
 
88
 
 
89
#endif /* _WRITE_PO_H */