-#!@GUILE@ -s
+#!@GUILE@ --no-auto-compile
-*- scheme -*-
!#
;;; GNU Guix --- Functional package management for GNU
(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)))
(define (run-guix-main)
(let ((guix-main (module-ref (resolve-interface '(guix ui))
'guix-main)))
+ (bindtextdomain "guix" (config-lookup "localedir"))
+ (bindtextdomain "guix-packages" (config-lookup "localedir"))
(apply guix-main (command-line))))
(maybe-augment-load-paths!)
+
+ ;; XXX: It would be more convenient to change it to:
+ ;; (exit (run-guix-main))
+ ;; but since the 'guix' command is not updated by 'guix pull', we cannot
+ ;; really do it now.
(run-guix-main))