aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2010-11-23 09:28:14 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2010-11-23 09:28:14 +0000
commit66e16582fdaafd43aea99c45e27ab7a9c0ce7887 (patch)
tree767800357252f6c7404940005b8e8b4f39943165
parent32709b9aed7f32780208227d2947f132f9774daf (diff)
Fix support of saynumber(1,n) in the Swedish language
(closes issue #18353) Reported by: oej Review: https://reviewboard.asterisk.org/r/1031/ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@295906 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/say.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/say.c b/main/say.c
index 064366022..6b3fce9b0 100644
--- a/main/say.c
+++ b/main/say.c
@@ -2121,15 +2121,15 @@ static int ast_say_number_full_se(struct ast_channel *chan, int num, const char
} else if (playh) {
snprintf(fn, sizeof(fn), "digits/hundred");
playh = 0;
+ } else if (num == 1 && cn == -1) { /* En eller ett? */
+ snprintf(fn, sizeof(fn), "digits/1N");
+ num = 0;
} else if (num < 20) {
snprintf(fn, sizeof(fn), "digits/%d", num);
num = 0;
} else if (num < 100) {
snprintf(fn, sizeof(fn), "digits/%d", (num /10) * 10);
num -= ((num / 10) * 10);
- } else if (num == 1 && cn == -1) { /* En eller ett? */
- snprintf(fn, sizeof(fn), "digits/1N");
- num = 0;
} else {
if (num < 1000){
snprintf(fn, sizeof(fn), "digits/%d", (num/100));