diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2013-10-12 16:37:28 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2013-10-12 22:29:31 +0200 |
| commit | 39e9f95d059e61a735a52f866d4c175906826744 (patch) | |
| tree | e5cdaafd729f9be9fabca2e71c70a7ae034b1f51 /scripts | |
| parent | f854a8c13341f0f5079380c3f8fa570cbb0d2636 (diff) | |
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.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/guix.in b/scripts/guix.in index c99e8663615..673036f6cb5 100644 --- a/scripts/guix.in +++ b/scripts/guix.in | |||
| @@ -31,7 +31,8 @@ | |||
| 31 | (define config-lookup | 31 | (define config-lookup |
| 32 | (let ((config '(("prefix" . "@prefix@") | 32 | (let ((config '(("prefix" . "@prefix@") |
| 33 | ("datarootdir" . "@datarootdir@") | 33 | ("datarootdir" . "@datarootdir@") |
| 34 | ("guilemoduledir" . "@guilemoduledir@"))) | 34 | ("guilemoduledir" . "@guilemoduledir@") |
| 35 | ("localedir" . "@localedir@"))) | ||
| 35 | (var-ref-regexp (make-regexp "\\$\\{([a-z]+)\\}"))) | 36 | (var-ref-regexp (make-regexp "\\$\\{([a-z]+)\\}"))) |
| 36 | (define (expand-var-ref match) | 37 | (define (expand-var-ref match) |
| 37 | (lookup (match:substring match 1))) | 38 | (lookup (match:substring match 1))) |
| @@ -58,6 +59,7 @@ | |||
| 58 | (define (run-guix-main) | 59 | (define (run-guix-main) |
| 59 | (let ((guix-main (module-ref (resolve-interface '(guix ui)) | 60 | (let ((guix-main (module-ref (resolve-interface '(guix ui)) |
| 60 | 'guix-main))) | 61 | 'guix-main))) |
| 62 | (bindtextdomain "guix" (config-lookup "localedir")) | ||
| 61 | (apply guix-main (command-line)))) | 63 | (apply guix-main (command-line)))) |
| 62 | 64 | ||
| 63 | (maybe-augment-load-paths!) | 65 | (maybe-augment-load-paths!) |
