diff options
| author | Juri Linkov | 2019-03-24 23:55:07 +0200 |
|---|---|---|
| committer | Juri Linkov | 2019-03-24 23:55:07 +0200 |
| commit | 5fdf4fc07df7dd897931efb5dbf5f26dfaff9274 (patch) | |
| tree | 807fd09f411bd670cb0f7bc7834469366e514036 /etc | |
| parent | 36535caf9621f984f7f95d4def09bdb0ae2f1d2a (diff) | |
| download | emacs-5fdf4fc07df7dd897931efb5dbf5f26dfaff9274.tar.gz emacs-5fdf4fc07df7dd897931efb5dbf5f26dfaff9274.zip | |
i18n: Add function ngettext for pluralization.
* lisp/international/mule-cmds.el (ngettext): New function.
https://lists.gnu.org/archive/html/emacs-devel/2019-03/msg00586.html
* lisp/replace.el (flush-lines, how-many, occur-1, occur-engine)
(perform-replace): Use ngettext.
* lisp/progmodes/grep.el (grep-exit-message): Use ngettext.
(grep-mode-font-lock-keywords): Match both singular and plural form
of "matches".
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -1364,6 +1364,11 @@ Now, such rx expressions generate an error. | |||
| 1364 | 1364 | ||
| 1365 | * Lisp Changes in Emacs 27.1 | 1365 | * Lisp Changes in Emacs 27.1 |
| 1366 | 1366 | ||
| 1367 | ** i18n (internationalization) | ||
| 1368 | |||
| 1369 | *** ngettext can be used now to return the right plural form | ||
| 1370 | according to the given numeric value. | ||
| 1371 | |||
| 1367 | +++ | 1372 | +++ |
| 1368 | ** inhibit-null-byte-detection is renamed to inhibit-nul-byte-detection | 1373 | ** inhibit-null-byte-detection is renamed to inhibit-nul-byte-detection |
| 1369 | 1374 | ||