Disable NLS support when --disable-nls is passed

Disable NLS support when --disable-nls is passed (bug#1514).
This commit is contained in:
Takashi Iwai 2005-11-08 16:43:36 +00:00
parent d9e433ad3e
commit 9dc666526f
4 changed files with 8 additions and 0 deletions

View file

@ -364,8 +364,10 @@ int main(int argc, char *argv[])
int do_names_list = 0, do_device_list = 0, do_pcm_list = 0;
snd_pcm_info_t *info;
#ifdef ENABLE_NLS
setlocale(LC_ALL, "");
textdomain(PACKAGE);
#endif
snd_pcm_info_alloca(&info);

View file

@ -279,8 +279,10 @@ int main(int argc, char **argv)
snd_seq_port_subscribe_t *subs;
snd_seq_addr_t sender, dest;
#ifdef ENABLE_NLS
setlocale(LC_ALL, "");
textdomain(PACKAGE);
#endif
while ((c = getopt_long(argc, argv, "dior:t:elx", long_option, NULL)) != -1) {
switch (c) {

View file

@ -98,8 +98,10 @@ int main(int argc, char **argv)
int port = DEFAULT_PORT;
char *source = NULL, *dest = NULL;
#ifdef ENABLE_NLS
setlocale(LC_ALL, "");
textdomain(PACKAGE);
#endif
while ((c = getopt_long(argc, argv, "p:s:d:vi", long_option, NULL)) != -1) {
switch (c) {

View file

@ -530,8 +530,10 @@ int main(int argc, char *argv[]) {
{NULL, 0, NULL, 0 },
};
#ifdef ENABLE_NLS
setlocale(LC_ALL, "");
textdomain(PACKAGE);
#endif
snd_pcm_hw_params_alloca(&hwparams);
snd_pcm_sw_params_alloca(&swparams);