From 6e77d1fe39cd07bd4ec39ea595e9ec7ac2ac7d34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Hohensohn?= Date: Tue, 6 Apr 2004 07:06:59 +0000 Subject: Voice UI searches for .voice, no hard-coded "english.voice" any more. We can localize the voice now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4471 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/settings.c') diff --git a/apps/settings.c b/apps/settings.c index 2e1a664..865e84d 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -587,6 +587,7 @@ void settings_apply(void) snprintf(buf, sizeof buf, ROCKBOX_DIR LANG_DIR "/%s.lng", global_settings.lang_file); lang_load(buf); + talk_init(); /* use voice of same language */ } set_car_adapter_mode(global_settings.car_adapter_mode); @@ -974,7 +975,10 @@ bool settings_load_config(char* file) } else if (!strcasecmp(name, "lang")) { if (!lang_load(value)) + { set_file(value, global_settings.lang_file, MAX_FILENAME); + talk_init(); /* use voice of same language */ + } } else if (!strcasecmp(name, "bidir limit")) set_cfg_int(&global_settings.bidir_limit, value, 0, 200); -- cgit v1.1