mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
i18n: Fixed plural forms handling
This commit is contained in:
parent
7f05b835df
commit
65c9195e8f
2 changed files with 32 additions and 12 deletions
|
|
@ -167,10 +167,16 @@ static void stat_callback(pa_context *c, const pa_stat_info *i, void *userdata)
|
|||
}
|
||||
|
||||
pa_bytes_snprint(s, sizeof(s), i->memblock_total_size);
|
||||
printf(_("Currently in use: %u blocks containing %s bytes total.\n"), i->memblock_total, s);
|
||||
printf(ngettext("Currently in use: %u block containing %s bytes total.\n",
|
||||
"Currently in use: %u blocks containing %s bytes total.\n",
|
||||
i->memblock_total),
|
||||
i->memblock_total, s);
|
||||
|
||||
pa_bytes_snprint(s, sizeof(s), i->memblock_allocated_size);
|
||||
printf(_("Allocated during whole lifetime: %u blocks containing %s bytes total.\n"), i->memblock_allocated, s);
|
||||
printf(ngettext("Allocated during whole lifetime: %u block containing %s bytes total.\n",
|
||||
"Allocated during whole lifetime: %u blocks containing %s bytes total.\n",
|
||||
i->memblock_allocated),
|
||||
i->memblock_allocated, s);
|
||||
|
||||
pa_bytes_snprint(s, sizeof(s), i->scache_size);
|
||||
printf(_("Sample cache size: %s\n"), s);
|
||||
|
|
@ -881,8 +887,10 @@ static void fill_volume(pa_cvolume *cv, unsigned supported) {
|
|||
if (volume.channels == 1) {
|
||||
pa_cvolume_set(&volume, supported, volume.values[0]);
|
||||
} else if (volume.channels != supported) {
|
||||
pa_log(_("Failed to set volume: You tried to set volumes for %d channels, whereas channel/s supported = %d\n"),
|
||||
volume.channels, supported);
|
||||
pa_log(ngettext("Failed to set volume: You tried to set volumes for %d channel, whereas channel/s supported = %d\n",
|
||||
"Failed to set volume: You tried to set volumes for %d channels, whereas channel/s supported = %d\n",
|
||||
volume.channels),
|
||||
volume.channels, supported);
|
||||
quit(1);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue