diff --git a/asterisk.c b/asterisk.c
index 2db0ea67d3653a5d426d8f50dc164ff271c6ba39..90bd9120210a39e1a1e3e6a1b1a2f9061ba1662e 100644
--- a/asterisk.c
+++ b/asterisk.c
@@ -156,6 +156,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
  */
 /*! @{ */
 
+extern int ast_language_is_prefix;	/* XXX move to some header */
+
 struct ast_flags ast_options = { AST_DEFAULT_OPTIONS };
 
 int option_verbose = 0;				/*!< Verbosity level */
@@ -2131,6 +2133,8 @@ static void ast_readconfig(void)
 			ast_copy_string(ast_config_AST_RUN_DIR, v->value, sizeof(ast_config_AST_RUN_DIR));
 		} else if (!strcasecmp(v->name, "astmoddir")) {
 			ast_copy_string(ast_config_AST_MODULE_DIR, v->value, sizeof(ast_config_AST_MODULE_DIR));
+		} else if (!strcasecmp(v->name, "languageprefix")) {
+			ast_language_is_prefix = ast_true(v->value);
 		}
 		v = v->next;
 	}