aboutsummaryrefslogtreecommitdiffstats
path: root/say.c
diff options
context:
space:
mode:
Diffstat (limited to 'say.c')
-rwxr-xr-xsay.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/say.c b/say.c
index 52fc5b90c..2ca660500 100755
--- a/say.c
+++ b/say.c
@@ -94,8 +94,11 @@ int ast_say_number_full(struct ast_channel *chan, int num, char *ints, char *lan
if (0) {
/* XXX Only works for english XXX */
} else {
- /* Use english numbers */
- language = "en";
+ /* Use english numbers if a given language is supported. */
+ /* As a special case, Norwegian has the same numerical grammar
+ as English */
+ if (strcasecmp(language, "no"))
+ language = "en";
while(!res && (num || playh)) {
if (playh) {
snprintf(fn, sizeof(fn), "digits/hundred");