[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[shepherd] 11/24: support: 'l10n' accepts plural forms.
From: |
Ludovic Courtès |
Subject: |
[shepherd] 11/24: support: 'l10n' accepts plural forms. |
Date: |
Mon, 28 Mar 2022 17:24:46 -0400 (EDT) |
civodul pushed a commit to branch wip-fibers
in repository shepherd.
commit 7ea2b0b6a3b963eb4819b92347586ba5919750f3
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Mar 28 20:46:29 2022 +0200
support: 'l10n' accepts plural forms.
* modules/shepherd/support.scm (l10n): Turn into a macro.
---
modules/shepherd/support.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/shepherd/support.scm b/modules/shepherd/support.scm
index 67bde32..6595724 100644
--- a/modules/shepherd/support.scm
+++ b/modules/shepherd/support.scm
@@ -207,7 +207,10 @@ output port, and PROC's result is returned."
(setvbuf (current-error-port) (buffering-mode line)))
;; Localized version of STR.
-(define l10n gettext)
+(define-syntax l10n
+ (syntax-rules ()
+ ((_ str) (gettext str))
+ ((_ singular plural n) (ngettext singular plural n))))
;; Display some text and a newline.
(define-syntax-rule (local-output format-string args ...)
- [shepherd] 18/24: shepherd: Remove half-baked readline support., (continued)
- [shepherd] 18/24: shepherd: Remove half-baked readline support., Ludovic Courtès, 2022/03/28
- [shepherd] 19/24: shepherd: "shepherd -s -" replies to the current output port., Ludovic Courtès, 2022/03/28
- [shepherd] 17/24: service: Add 'start-in-the-background'., Ludovic Courtès, 2022/03/28
- [shepherd] 14/24: service: Add inetd constructor and destructor., Ludovic Courtès, 2022/03/28
- [shepherd] 15/24: service: Allow 'running' value to be a thunk., Ludovic Courtès, 2022/03/28
- [shepherd] 20/24: service: Add #:handle-termination slot., Ludovic Courtès, 2022/03/28
- [shepherd] 22/24: service: 'make-inetd-constructor' lets the caller specify socket ownership., Ludovic Courtès, 2022/03/28
- [shepherd] 06/24: service: 'read-pid-file' no longer blocks., Ludovic Courtès, 2022/03/28
- [shepherd] 09/24: service: 'make-forkexec-constructor' spawns a logging fiber., Ludovic Courtès, 2022/03/28
- [shepherd] 16/24: service: Add systemd constructor and destructor., Ludovic Courtès, 2022/03/28
- [shepherd] 11/24: support: 'l10n' accepts plural forms.,
Ludovic Courtès <=
- [shepherd] 01/24: shepherd: Factorize out the main loop., Ludovic Courtès, 2022/03/28
- [shepherd] 04/24: build: Capture the source and object directories of Fibers., Ludovic Courtès, 2022/03/28
- [shepherd] 07/24: service: 'read-pid-file' uses (@ (guile) sleep) when it's not suspendable., Ludovic Courtès, 2022/03/28
- [shepherd] 21/24: service: Add #:max-connections to 'make-inetd-constructor'., Ludovic Courtès, 2022/03/28
- [shepherd] 23/24: shepherd: Do not change to the client directory when executing a command., Ludovic Courtès, 2022/03/28
- [shepherd] 24/24: shepherd: Gracefully handle failure to open the socket., Ludovic Courtès, 2022/03/28