fldigi/po/insert-header.sin
Stelios Bounanos c3814bc1a4 Add NLS support
Merge patch by Stephane Fillod <fillods@users.sourceforge.net>:

* gettextsize fldigi
* add initial French translation

Minor additional changes by me (sb):

* Remove bundled intl and associated m4 macros and compiler flags
* Move new m4 macros to m4/intl
* Move gettext.h to src/include and add to src/Makefile.am
* Modify setup_nls():
  * Search for message catalogs in $PWD/locale and
    $FLDIGI_LOCALE_DIR/locale, in addition to LOCALEDIR
  * Do not call setlocale() for LC_NUMERIC, as this can break the
    configuration read/write routines when handling floating point
    numbers in locales that use a comma as the decimal point
  * Fix static initialisation
* Add INTL_LIBS and INTL_CFLAGS configure variables that can be used
  to override AM_GNU_GETTEXT
* Update po/Makevars
* Update po files
* Remove po/Makefile.in and po/remove-potcdate.sed
2008-12-04 16:11:21 +00:00

23 lines
672 B
Text

# Sed script that inserts the file called HEADER before the header entry.
#
# At each occurrence of a line starting with "msgid ", we execute the following
# commands. At the first occurrence, insert the file. At the following
# occurrences, do nothing. The distinction between the first and the following
# occurrences is achieved by looking at the hold space.
/^msgid /{
x
# Test if the hold space is empty.
s/m/m/
ta
# Yes it was empty. First occurrence. Read the file.
r HEADER
# Output the file's contents by reading the next line. But don't lose the
# current line while doing this.
g
N
bb
:a
# The hold space was nonempty. Following occurrences. Do nothing.
x
:b
}