Blame autoopts/tpl/def2pot.tpl

Packit Service 96b5d3
[= AutoGen5 template pot                                     =][=
Packit Service 96b5d3
#
Packit Service 96b5d3
# this template can be used to generate .pot file for the
Packit Service 96b5d3
# option definition files for these templates:
Packit Service 96b5d3
#       aginfo.tpl, agman-cmd.tpl, agmdoc-cmd.tpl
Packit Service 96b5d3
#
Packit Service 96b5d3
Packit Service 96b5d3
#  This file is part of AutoOpts, a companion to AutoGen.
Packit Service 96b5d3
#  AutoOpts is free software.
Packit Service 96b5d3
#  AutoOpts is Copyright (C) 1992-2015 by Bruce Korb - all rights reserved
Packit Service 96b5d3
#
Packit Service 96b5d3
#  AutoOpts is available under any one of two licenses.  The license
Packit Service 96b5d3
#  in use must be one of these two and the choice is under the control
Packit Service 96b5d3
#  of the user of the license.
Packit Service 96b5d3
#
Packit Service 96b5d3
#   The GNU Lesser General Public License, version 3 or later
Packit Service 96b5d3
#      See the files "COPYING.lgplv3" and "COPYING.gplv3"
Packit Service 96b5d3
#
Packit Service 96b5d3
#   The Modified Berkeley Software Distribution License
Packit Service 96b5d3
#      See the file "COPYING.mbsd"
Packit Service 96b5d3
#
Packit Service 96b5d3
#  These files have the following sha256 sums:
Packit Service 96b5d3
#
Packit Service 96b5d3
#  8584710e9b04216a394078dc156b781d0b47e1729104d666658aecef8ee32e95  COPYING.gplv3
Packit Service 96b5d3
#  4379e7444a0e2ce2b12dd6f5a52a27a4d02d39d247901d3285c88cf0d37f477b  COPYING.lgplv3
Packit Service 96b5d3
#  13aa749a5b0a454917a944ed8fffc530b784f5ead522b1aacaf4ec8aa55a6239  COPYING.mbsd
Packit Service 96b5d3
Packit Service 96b5d3
====================== FUNCTIONS BEGIN =======================][=
Packit Service 96b5d3
DEFINE genmsg                                                =][=
Packit Service 96b5d3
Packit Service 96b5d3
  IF (set! msg-id (get "msgid"))
Packit Service 96b5d3
     (set! msg-text (get-text msg-id))
Packit Service 96b5d3
     (< 0 (string-length msg-text))                          =]
Packit Service 96b5d3
#: [=(def-file-line msg-id "%s:%d")                          =]
Packit Service 96b5d3
msgid [= (c-string msg-text)                                 =]
Packit Service 96b5d3
msgstr ""
Packit Service 96b5d3
[=ENDIF                                                      =][=
Packit Service 96b5d3
ENDDEF                                                       =][=
Packit Service 96b5d3
Packit Service 96b5d3
DEFINE genmsg2                                               =][=
Packit Service 96b5d3
  IF (set! msg-text (get "msgid"))
Packit Service 96b5d3
     (string-length msg-text)                                =]
Packit Service 96b5d3
#: [=(def-file-line msg-text "%s:%d")                        =]
Packit Service 96b5d3
msgid [= (c-string msg-text)                                 =]
Packit Service 96b5d3
msgstr ""
Packit Service 96b5d3
[=ENDIF                                                      =][=
Packit Service 96b5d3
ENDDEF                                                       =][=
Packit Service 96b5d3
Packit Service 96b5d3
(define get-text (lambda (nm) (shell (string-append
Packit Service 96b5d3
Packit Service 96b5d3
 "{ sed 's/@[a-z]*{\\([^}]*\\)}/\\1/g' | "
Packit Service 96b5d3
    "${CLexe} --fill -I0 -W72\n"
Packit Service 96b5d3
 "} <<\\_EODesc_\n"
Packit Service 96b5d3
    (get nm)
Packit Service 96b5d3
    "\n_EODesc_"
Packit Service 96b5d3
))))
Packit Service 96b5d3
(define msg-text "")
Packit Service 96b5d3
(define msg-id   "")
Packit Service 96b5d3
Packit Service 96b5d3
  ;;# START-BUILDTREE-ISMS
Packit Service 96b5d3
  ;;
Packit Service 96b5d3
  (shell "CLexe=${AGexe%/agen5/*}/columns/columns
Packit Service 96b5d3
  test -x \"${CLexe}\" || {
Packit Service 96b5d3
    CLexe=${AGexe%/autogen}/columns
Packit Service 96b5d3
    test -x \"${CLexe}\" || die 'columns program is not findable'
Packit Service 96b5d3
  }")
Packit Service 96b5d3
Packit Service 96b5d3
=][= # END-BUILDTREE-ISMS
Packit Service 96b5d3
Packit Service 96b5d3
(shell "CLexe=`echo ${AGexe} | sed 's@/autogen@/columns@'`
Packit Service 96b5d3
       test -x \"${CLexe}\" || CLexe=`which columns`")
Packit Service 96b5d3
Packit Service 96b5d3
# END-INSTALL-ONLY-CODE =][= #
Packit Service 96b5d3
Packit Service 96b5d3
;; ==================== FUNCTIONS END ===========================
Packit Service 96b5d3
Packit Service 96b5d3
;; pot file header and comment info                          \=]
Packit Service 96b5d3
# localization template (.pot) for [= (def-file) =] of [= prog-name =],
Packit Service 96b5d3
# this file is used to generate localized manual for [= prog-name =].
Packit Service 96b5d3
# Copyright (C) [= (shell "date +%Y")                        =][=
Packit Service 96b5d3
Packit Service 96b5d3
  IF (exist? "copyright") =]
Packit Service 96b5d3
# This file is distributed under the terms of the
Packit Service 96b5d3
# [= (license-name (get "copyright.type")) \=]
Packit Service 96b5d3
Packit Service 96b5d3
# The program owners may be reached via:
Packit Service 96b5d3
#    [=(shellf
Packit Service 96b5d3
  "author='%s' email='%s' date=`date +%%Y`
Packit Service 96b5d3
  printf '%%s <%%s>, %%s.' \"$author\" \"$email\" \"${date}\""
Packit Service 96b5d3
    (get "copyright.owner" "FIRST AUTHOR")
Packit Service 96b5d3
    (get "copyright.eaddr" "EMAIL@ADDRESS")
Packit Service 96b5d3
)=][= ENDIF =]
Packit Service 96b5d3
#
Packit Service 96b5d3
#, fuzzy
Packit Service 96b5d3
msgid   ""
Packit Service 96b5d3
msgstr  ""
Packit Service 96b5d3
"Project-Id-Version: [= prog-name =] [= version =]\n"
Packit Service 96b5d3
"Report-Msgid-Bugs-To: \n"
Packit Service 96b5d3
"POT-Creation-Date: [= (shell "date +\"%F %R%z\"") =]\n"
Packit Service 96b5d3
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
Packit Service 96b5d3
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
Packit Service 96b5d3
"Language-Team: LANGUAGE <LL@li.org>\n"
Packit Service 96b5d3
"Language: \n"
Packit Service 96b5d3
"MIME-Version: 1.0\n"
Packit Service 96b5d3
"Content-Type: text/plain; charset=CHARSET\n"
Packit Service 96b5d3
"Content-Transfer-Encoding: 8bit\n"
Packit Service 96b5d3
[=
Packit Service 96b5d3
genmsg msgid=prog-title                                      =][=
Packit Service 96b5d3
Packit Service 96b5d3
IF (exist? "full-usage")                                     =][=
Packit Service 96b5d3
  genmsg msgid=full-usage                                    =][=
Packit Service 96b5d3
ELSE                                                         =][=
Packit Service 96b5d3
  FOR flag                                                   =][=
Packit Service 96b5d3
    genmsg msgid=descrip                                     =][=
Packit Service 96b5d3
    genmsg msgid=doc                                         =][=
Packit Service 96b5d3
  ENDFOR                                                     =][=
Packit Service 96b5d3
ENDIF                                                        =][=
Packit Service 96b5d3
Packit Service 96b5d3
IF (exist? "short-usage")                                    =][=
Packit Service 96b5d3
  genmsg msgid=short-usage                                   =][=
Packit Service 96b5d3
ENDIF                                                        =][=
Packit Service 96b5d3
Packit Service 96b5d3
FOR explain                                                  =][=
Packit Service 96b5d3
  genmsg msgid=explain                                       =][=
Packit Service 96b5d3
ENDFOR                                                       =][=
Packit Service 96b5d3
Packit Service 96b5d3
FOR detail                                                   =][=
Packit Service 96b5d3
  genmsg msgid=detail                                        =][=
Packit Service 96b5d3
ENDFOR                                                       =][=
Packit Service 96b5d3
Packit Service 96b5d3
CASE (get "copyright.type")                                  =][=
Packit Service 96b5d3
  = note                                                     =][=
Packit Service 96b5d3
  == ''                                                      =][=
Packit Service 96b5d3
  *                                                          =][=
Packit Service 96b5d3
    genmsg2 msgid=(string-append
Packit Service 96b5d3
        "This program is released under the terms of "
Packit Service 96b5d3
        (license-name (get "copyright.type")) ".")
Packit Service 96b5d3
                                                             =][=
Packit Service 96b5d3
ESAC                                                         =][=
Packit Service 96b5d3
Packit Service 96b5d3
genmsg msgid=option-info                                     =][=
Packit Service 96b5d3
genmsg msgid=argument                                        =][=
Packit Service 96b5d3
genmsg msgid=man-doc                                         =][=
Packit Service 96b5d3
genmsg msgid=copyright.text                                  =]