mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-23 21:17:11 -05:00
Gettextize, with GNU Gettext 0.18.1.
* Makefile.am (EXTRA_DIST): Add `build-aux/config.rpath'. (SUBDIRS, ACLOCAL_AMFLAGS): New variables. * configure.ac: Use `AM_GNU_GETTEXT'. Emit `po/Makefile.in'. * po/Makevars, po/POTFILES.in: New files.
This commit is contained in:
parent
64fddd74f0
commit
f68b089361
5 changed files with 50 additions and 2 deletions
22
.gitignore
vendored
22
.gitignore
vendored
|
@ -12,3 +12,25 @@ Makefile
|
|||
config.cache
|
||||
/aclocal.m4
|
||||
/config.status
|
||||
/ABOUT-NLS
|
||||
/m4/ChangeLog
|
||||
/m4/gettext.m4
|
||||
/m4/iconv.m4
|
||||
/m4/lib-ld.m4
|
||||
/m4/lib-link.m4
|
||||
/m4/lib-prefix.m4
|
||||
/m4/nls.m4
|
||||
/m4/po.m4
|
||||
/m4/progtest.m4
|
||||
/po/ChangeLog
|
||||
/po/Makefile.in.in
|
||||
/po/POTFILES
|
||||
/po/Rules-quot
|
||||
/po/boldquot.sed
|
||||
/po/en@boldquot.header
|
||||
/po/en@quot.header
|
||||
/po/insert-header.sin
|
||||
/po/quot.sed
|
||||
/po/remove-potcdate.sin
|
||||
/po/stamp-po
|
||||
/po/guix.pot
|
||||
|
|
|
@ -46,7 +46,7 @@ TESTS_ENVIRONMENT = \
|
|||
GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
|
||||
$(GUILE) -L "$(top_srcdir)"
|
||||
|
||||
EXTRA_DIST = $(TESTS)
|
||||
EXTRA_DIST = build-aux/config.rpath $(TESTS)
|
||||
CLEANFILES = $(GOBJECTS) *.log
|
||||
|
||||
.scm.go:
|
||||
|
@ -68,3 +68,7 @@ SUFFIXES = .go
|
|||
# for details.
|
||||
guix_install_go_files = install-nobase_nodist_guilemoduleDATA
|
||||
$(guix_install_go_files): install-nobase_dist_guilemoduleDATA
|
||||
|
||||
SUBDIRS = po
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
|
|
@ -11,6 +11,8 @@ AM_INIT_AUTOMAKE([1.11 foreign silent-rules subdir-objects \
|
|||
AC_CONFIG_SRCDIR([guix.scm])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
AM_GNU_GETTEXT([external])
|
||||
|
||||
guilemoduledir="${datarootdir}/guile/site/2.0"
|
||||
AC_SUBST([guilemoduledir])
|
||||
|
||||
|
@ -51,6 +53,6 @@ else
|
|||
AC_MSG_WARN([Please use `--with-nixpkgs'.])
|
||||
fi
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_CONFIG_FILES([Makefile po/Makefile.in])
|
||||
|
||||
AC_OUTPUT
|
||||
|
|
18
po/Makevars
Normal file
18
po/Makevars
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Makefile variables for PO directory in any package using GNU gettext.
|
||||
|
||||
DOMAIN = $(PACKAGE)
|
||||
|
||||
subdir = po
|
||||
top_builddir = ..
|
||||
|
||||
# These options get passed to xgettext.
|
||||
XGETTEXT_OPTIONS = \
|
||||
--language=Scheme \
|
||||
--keyword=_ --keyword=N_ \
|
||||
--keyword=description --keyword=long-description
|
||||
|
||||
COPYRIGHT_HOLDER = Ludovic Courtès
|
||||
|
||||
MSGID_BUGS_ADDRESS = ludo@gnu.org
|
||||
|
||||
EXTRA_LOCALE_CATEGORIES =
|
2
po/POTFILES.in
Normal file
2
po/POTFILES.in
Normal file
|
@ -0,0 +1,2 @@
|
|||
# List of source files which contain translatable strings.
|
||||
distro/base.scm
|
Loading…
Reference in a new issue