diff options
Diffstat (limited to 'apps/talk.c')
-rw-r--r-- | apps/talk.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/talk.c b/apps/talk.c index 2ef7fea84d..5d6e7ac0b6 100644 --- a/apps/talk.c +++ b/apps/talk.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include "voice_thread.h" | 35 | #include "voice_thread.h" |
36 | #include "audio.h" | 36 | #include "audio.h" |
37 | #include "lang.h" | 37 | #include "lang.h" |
38 | #include "language.h" | ||
38 | #include "talk.h" | 39 | #include "talk.h" |
39 | #include "metadata.h" | 40 | #include "metadata.h" |
40 | /*#define LOGF_ENABLE*/ | 41 | /*#define LOGF_ENABLE*/ |
@@ -1419,8 +1420,11 @@ int talk_value_decimal(long n, int unit, int decimals, bool enqueue) | |||
1419 | return 0; | 1420 | return 0; |
1420 | } | 1421 | } |
1421 | 1422 | ||
1423 | if (lang_units_first()) | ||
1424 | talk_id(unit_id, true); /* say the unit, if any */ | ||
1422 | talk_number(n, enqueue); /* say the number */ | 1425 | talk_number(n, enqueue); /* say the number */ |
1423 | talk_id(unit_id, true); /* say the unit, if any */ | 1426 | if (!lang_units_first()) |
1427 | talk_id(unit_id, true); /* say the unit, if any */ | ||
1424 | 1428 | ||
1425 | return 0; | 1429 | return 0; |
1426 | } | 1430 | } |