summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-10-12 16:37:28 +0200
committerLudovic Courtès <ludo@gnu.org>2013-10-12 22:29:31 +0200
commit39e9f95d059e61a735a52f866d4c175906826744 (patch)
treee5cdaafd729f9be9fabca2e71c70a7ae034b1f51 /scripts
parentf854a8c13341f0f5079380c3f8fa570cbb0d2636 (diff)
downloadpatches-39e9f95d059e61a735a52f866d4c175906826744.tar
patches-39e9f95d059e61a735a52f866d4c175906826744.tar.gz
guix: Add missing call to 'bindtextdomain'.
* scripts/guix.in (config-lookup): Add "localedir" entry. (run-guix-main): Add call to 'bindtextdomain'. * guix/ui.scm (initialize-guix): Use %GETTEXT-DOMAIN instead of a literal.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/guix.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/guix.in b/scripts/guix.in
index c99e866361..673036f6cb 100644
--- a/scripts/guix.in
+++ b/scripts/guix.in
@@ -31,7 +31,8 @@
(define config-lookup
(let ((config '(("prefix" . "@prefix@")
("datarootdir" . "@datarootdir@")
- ("guilemoduledir" . "@guilemoduledir@")))
+ ("guilemoduledir" . "@guilemoduledir@")
+ ("localedir" . "@localedir@")))
(var-ref-regexp (make-regexp "\\$\\{([a-z]+)\\}")))
(define (expand-var-ref match)
(lookup (match:substring match 1)))
@@ -58,6 +59,7 @@
(define (run-guix-main)
(let ((guix-main (module-ref (resolve-interface '(guix ui))
'guix-main)))
+ (bindtextdomain "guix" (config-lookup "localedir"))
(apply guix-main (command-line))))
(maybe-augment-load-paths!)