<p>Joshua Colp <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/18626">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve; Approved for Submit
Kevin Harwell: Looks good to me, approved
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_sayunixtime: Use correct inflection for German time.<br><br>In function ast_say_date_with_format_de(), take special<br>care when the hour is one o'clock. In this case, the<br>German number "eins" must be inflected to its neutrum form,<br>"ein". This is achieved by playing "digits/1N" instead of<br>"digits/1". Fixes both 12- and 24-hour formats.<br><br>ASTERISK-30092<br><br>Change-Id: Ica9b80125c0b317e378d89c1ea786816e2635510<br>---<br>M main/say.c<br>1 file changed, 7 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/say.c b/main/say.c</span><br><span>index df9462a..8fb5e97 100644</span><br><span>--- a/main/say.c</span><br><span>+++ b/main/say.c</span><br><span>@@ -4933,6 +4933,8 @@</span><br><span> /* 12-Hour */</span><br><span> if (tm.tm_hour == 0)</span><br><span> ast_copy_string(nextmsg, "digits/12", sizeof(nextmsg));</span><br><span style="color: hsl(120, 100%, 40%);">+ else if (tm.tm_hour == 1)</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_copy_string(nextmsg, "digits/1N", sizeof(nextmsg));</span><br><span> else if (tm.tm_hour > 12)</span><br><span> snprintf(nextmsg, sizeof(nextmsg), "digits/%d", tm.tm_hour - 12);</span><br><span> else</span><br><span>@@ -4945,7 +4947,11 @@</span><br><span> case 'H':</span><br><span> case 'k':</span><br><span> /* 24-Hour */</span><br><span style="color: hsl(0, 100%, 40%);">- res = ast_say_number(chan, tm.tm_hour, ints, lang, (char *) NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+ if (tm.tm_hour == 1) {</span><br><span style="color: hsl(120, 100%, 40%);">+ res = wait_file(chan, ints, "digits/1N", lang);</span><br><span style="color: hsl(120, 100%, 40%);">+ } else {</span><br><span style="color: hsl(120, 100%, 40%);">+ res = ast_say_number(chan, tm.tm_hour, ints, lang, (char *) NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span> if (!res) {</span><br><span> res = wait_file(chan, ints, "digits/oclock", lang);</span><br><span> }</span><br><span></span><br></pre><div style="white-space:pre-wrap"></div><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18626">change 18626</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/18626"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 18 </div>
<div style="display:none"> Gerrit-Change-Id: Ica9b80125c0b317e378d89c1ea786816e2635510 </div>
<div style="display:none"> Gerrit-Change-Number: 18626 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Christof Efkemann <christof@efkemann.net> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>