summaryrefslogtreecommitdiff
path: root/src/guile/skribilo.scm
diff options
context:
space:
mode:
authorLudovic Courtès2016-01-13 10:00:58 +0100
committerLudovic Courtès2016-01-13 10:09:25 +0100
commitb1612cf3f3673f43e798a39e30ed47bf9053ab01 (patch)
tree04dad7d55fbdb127860c2506fefb1e938720dcee /src/guile/skribilo.scm
parentadf9689073b77119846cd7f22840af1111d7ceda (diff)
downloadskribilo-b1612cf3f3673f43e798a39e30ed47bf9053ab01.tar.gz
skribilo-b1612cf3f3673f43e798a39e30ed47bf9053ab01.tar.lz
skribilo-b1612cf3f3673f43e798a39e30ed47bf9053ab01.zip
Set the text domain and the location of message catalogs.v0.9.3
* src/guile/skribilo/config.in (skribilo-locale-directory): New procedure. * src/guile/skribilo/utils/syntax.scm (%skribilo-text-domain): Export. * src/guile/skribilo.scm (skribilo): Add calls to 'bindtextdomain' and 'textdomain'. * substitute.am (substitute): Add 'localedir'.
Diffstat (limited to 'src/guile/skribilo.scm')
-rw-r--r--src/guile/skribilo.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/guile/skribilo.scm b/src/guile/skribilo.scm
index 0c45b92..1014d8d 100644
--- a/src/guile/skribilo.scm
+++ b/src/guile/skribilo.scm
@@ -1,7 +1,7 @@
;;; skribilo.scm -- The Skribilo document processor.
;;;
;;; Copyright 2005, 2006, 2007, 2008, 2009, 2011, 2012, 2013,
-;;; 2015 Ludovic Courtès <ludo@gnu.org>
+;;; 2015, 2016 Ludovic Courtès <ludo@gnu.org>
;;; Copyright 2003, 2004 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
;;;
;;;
@@ -321,6 +321,10 @@ options."
(_ "warning: failed to install locale: ~a~%")
(strerror (system-error-errno args)))))
+ ;; Tell gettext where to look for message catalogs.
+ (bindtextdomain %skribilo-text-domain (skribilo-locale-directory))
+ (textdomain %skribilo-text-domain)
+
(let* ((options (parse-args args))
(reader-name (string->symbol (assoc-ref options :reader)))