summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Udaltsov <svu@gnome.org>2007-10-05 23:03:07 +0000
committerSergey Udaltsov <svu@gnome.org>2007-10-05 23:03:07 +0000
commit3337b5543da67ac8d50067b38707fa11f7b9d089 (patch)
tree90efc6cc4a5c224ae22a9d3e815c78d974e5f480 /tests
parent059c16994a46a31c467a54436ad9d93801002912 (diff)
downloadlibxklavier-3337b5543da67ac8d50067b38707fa11f7b9d089.tar.gz
proper gettext-based i18n
Diffstat (limited to 'tests')
-rw-r--r--tests/test_config.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/tests/test_config.c b/tests/test_config.c
index eade27e..b53d76f 100644
--- a/tests/test_config.c
+++ b/tests/test_config.c
@@ -40,7 +40,7 @@ static void
print_usage(void)
{
printf
- ("Usage: test_config (-g)|(-s -m <model> -l <layouts> -o <options>)|(-h)|(-ws)|(-wb)(-d <debugLevel>)(-c charset)\n");
+ ("Usage: test_config (-g)|(-s -m <model> -l <layouts> -o <options>)|(-h)|(-ws)|(-wb)(-d <debugLevel>)\n");
printf("Options:\n");
printf(" -al - list all available layouts and variants\n");
printf(" -am - list all available models\n");
@@ -55,7 +55,6 @@ print_usage(void)
printf(" -wb - Write the source XKB config file (" PACKAGE
".xkb)\n");
printf(" -d - Set the debug level (by default, 0)\n");
- printf(" -c - Set the custom charset\n");
printf(" -h - Show this help\n");
}
@@ -118,7 +117,6 @@ main(int argc, char *const argv[])
const gchar *model = NULL;
const gchar *layouts = NULL;
const gchar *options = NULL;
- const gchar *charset = NULL;
int debug_level = -1;
int binary = 0;
Display *dpy;
@@ -160,9 +158,6 @@ main(int argc, char *const argv[])
case 'd':
debug_level = atoi(optarg);
break;
- case 'c':
- charset = optarg;
- break;
case 'w':
action = ACTION_WRITE;
binary = ('b' == optarg[0]);
@@ -198,10 +193,6 @@ main(int argc, char *const argv[])
config = xkl_config_registry_get_instance(engine);
xkl_config_registry_load(config);
- if (charset != NULL)
- xkl_config_registry_set_custom_charset(config,
- charset);
-
xkl_debug(0, "Xklavier registry loaded\n");
xkl_debug(0, "Backend: [%s]\n",
xkl_engine_get_backend_name(engine));