[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50332] [PATCH] home-services: Add Shepherd.
From: |
Maxime Devos |
Subject: |
[bug#50332] [PATCH] home-services: Add Shepherd. |
Date: |
Sat, 04 Sep 2021 10:53:53 +0200 |
User-agent: |
Evolution 3.34.2 |
Xinglu Chen schreef op do 02-09-2021 om 16:59 [+0200]:
> On Thu, Sep 02 2021, Andrew Tropin wrote:
> [...]
> > + (define config
> > + #~(begin
> > + (use-modules (srfi srfi-34)
> > + (system repl error-handling))
> > + (apply
> > + register-services
> > + (map
> > + (lambda (file) (load file))
> > + '#$files))
> > + (action 'root 'daemonize)
> > + (format #t "Starting services...~%")
>
> Maybe (G_ ...) should be used to make strings translatable?
AFAIK (G_ ...) cannot be used from within a G-exp.
However, you could do:
#~(begin
...
(format #t #$(G_ "Starting services...~%")))
but that would make "shepherd.conf" depend on the locale
that was active when "guix home ..." (*) was run,
which may or may not be acceptable.
(*) not sure what the exact command is.
Alternatively, it might be possible to build the .mo from the .po
translations and use bindtextdomain from the G-exp, in which case
the G_ should be usable from the G-exp.
Greetings,
Maxime.
signature.asc
Description: This is a digitally signed message part
[bug#50332] [PATCH] home-services: Add Shepherd.,
Maxime Devos <=