mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
add i18n support
This commit is contained in:
parent
c4a953dc96
commit
f1d2bf8408
35 changed files with 816 additions and 414 deletions
|
|
@ -30,6 +30,7 @@
|
|||
#include <ltdl.h>
|
||||
|
||||
#include <pulse/util.h>
|
||||
#include <pulse/i18n.h>
|
||||
|
||||
#include <pulsecore/modinfo.h>
|
||||
#include <pulsecore/core-util.h>
|
||||
|
|
@ -56,24 +57,24 @@ static void long_info(const char *name, const char *path, pa_modinfo *i) {
|
|||
|
||||
nl = 1;
|
||||
|
||||
printf("Name: %s\n", name);
|
||||
printf(_("Name: %s\n"), name);
|
||||
|
||||
if (!i->description && !i->version && !i->author && !i->usage)
|
||||
printf("No module information available\n");
|
||||
printf(_("No module information available\n"));
|
||||
else {
|
||||
if (i->version)
|
||||
printf("Version: %s\n", i->version);
|
||||
printf(_("Version: %s\n"), i->version);
|
||||
if (i->description)
|
||||
printf("Description: %s\n", i->description);
|
||||
printf(_("Description: %s\n"), i->description);
|
||||
if (i->author)
|
||||
printf("Author: %s\n", i->author);
|
||||
printf(_("Author: %s\n"), i->author);
|
||||
if (i->usage)
|
||||
printf("Usage: %s\n", i->usage);
|
||||
printf("Load Once: %s\n", pa_yes_no(i->load_once));
|
||||
printf(_("Usage: %s\n"), i->usage);
|
||||
printf(_("Load Once: %s\n"), pa_yes_no(i->load_once));
|
||||
}
|
||||
|
||||
if (path)
|
||||
printf("Path: %s\n", path);
|
||||
printf(_("Path: %s\n"), path);
|
||||
}
|
||||
|
||||
static void show_info(const char *name, const char *path, void (*info)(const char *name, const char *path, pa_modinfo*i)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue