[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sr #111166] ngettext syntax
From: |
anonymous |
Subject: |
[sr #111166] ngettext syntax |
Date: |
Fri, 27 Dec 2024 14:15:16 -0500 (EST) |
URL:
<https://savannah.gnu.org/support/?111166>
Summary: ngettext syntax
Group: The GNU Bourne-Again SHell
Submitter: None
Submitted: Fri 27 Dec 2024 07:15:13 PM UTC
Category: None
Priority: 5 - Normal
Severity: 1 - Wish
Status: None
Privacy: Public
Assigned to: None
Originator Email: hwengerstickel@pm.me
Open/Closed: Open
Discussion Lock: Any
Operating System: GNU/Linux
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Fri 27 Dec 2024 07:15:13 PM UTC By: Anonymous
For a while, bash has had support for a streamlined gettext support with $"",
but that's basically the limit it has: just gettext. Is there work being done
to add at the minimum, an ngettext syntax or something like it without having
to call the ngettext command, which has other problems like not being able to
do `bash --dump-po-strings`.
My very naive idea would be something like:
```bash
printf "%s\n" n2$"There is %d item|There are %d items"
```
Where 2 denotes the plurality and internally is split with `|`, or some other
delimiter.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/support/?111166>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [sr #111166] ngettext syntax,
anonymous <=