diff options
author | Allan McRae <allan@archlinux.org> | 2015-10-19 13:43:26 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-10-19 13:48:56 +1000 |
commit | 29d4dcf767b7325ac7e9bbaa4c0b45e3e3ee2c73 (patch) | |
tree | 7a87867dc7ca88fcddbb484d2c70373b4ad1f0dc | |
parent | 501242a35bce01f19312b774c6364b4edaaec619 (diff) |
Pluralize malloc failure string
Not particularly useful in English (will always be plural), but useful in
languages that have multiple plural forms.
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r-- | src/pacman/conf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 6a2b2067..f02e3612 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -95,7 +95,9 @@ config_t *config_new(void) config_t *newconfig = calloc(1, sizeof(config_t)); if(!newconfig) { pm_printf(ALPM_LOG_ERROR, - _("malloc failure: could not allocate %zd bytes\n"), sizeof(config_t)); + _n("malloc failure: could not allocate %zd byte\n", + "malloc failure: could not allocate %zd bytes\n", sizeof(config_t)), + sizeof(config_t)); return NULL; } /* defaults which may get overridden later */ |