[Asterisk-code-review] say: Remove unused "plural" option from main/say (asterisk[master])
Kevin Harwell
asteriskteam at digium.com
Thu Feb 27 13:43:25 CST 2020
Kevin Harwell has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/13817 )
Change subject: say: Remove unused "plural" option from main/say
......................................................................
say: Remove unused "plural" option from main/say
There are exceptions for plural objects, but they are detected using the
supplied NUMBER, not using an extra option.
Change-Id: I95d1d1b2796b1aba92048a2dbae8a3856ed8a113
---
M include/asterisk/say.h
M main/say.c
2 files changed, 9 insertions(+), 7 deletions(-)
Approvals:
George Joseph: Looks good to me, but someone else must approve
Benjamin Keith Ford: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, approved; Approved for Submit
diff --git a/include/asterisk/say.h b/include/asterisk/say.h
index 93c525d..a4aa90c 100644
--- a/include/asterisk/say.h
+++ b/include/asterisk/say.h
@@ -72,7 +72,7 @@
* \param num number to say on the channel
* \param ints which dtmf to interrupt on
* \param lang language to speak the number
- * \param options set to 'f' for female, 'm' for male, 'c' for commune, 'n' for neuter, 'p' for plural
+ * \param options set to 'f' for female, 'm' for male, 'c' for commune, 'n' for neuter
* \details
* Vocally says a number on a given channel
* \retval 0 on success
@@ -91,7 +91,7 @@
* \param num number to say on the channel
* \param ints which dtmf to interrupt on
* \param lang language to speak the enumeration
- * \param options set to 'f' for female, 'm' for male, 'c' for commune, 'n' for neuter, 'p' for plural
+ * \param options set to 'f' for female, 'm' for male, 'c' for commune, 'n' for neuter
* \details
* Vocally says an enumeration on a given channel (first, sencond, third, forth, thirtyfirst, hundredth, ....)
* Especially useful for dates and messages. Says 'last' if num equals to INT_MAX
diff --git a/main/say.c b/main/say.c
index e1b0620..71d04f1 100644
--- a/main/say.c
+++ b/main/say.c
@@ -329,10 +329,12 @@
\arg \b hu - Hungarian
\par Gender:
- For Some languages the numbers differ for gender and plural.
+ For some languages the numbers differ for gender of the countable object.
+ Commonly for "one", like "un"/"une" in French. Note that the interface
+ is somewhat peculiar, as differing languages can have conflicting
+ genders.
\arg Use the option argument 'f' for female, 'm' for male and 'n' for neuter in languages like Portuguese, French, Spanish and German.
\arg use the option argument 'c' is for commune and 'n' for neuter gender in nordic languages like Danish, Swedish and Norwegian.
- use the option argument 'p' for plural enumerations like in German
Date/Time functions currently have less languages supported than saynumber().
@@ -3024,7 +3026,7 @@
/*! \brief ast_say_enumeration_full_da: Danish syntax */
static int ast_say_enumeration_full_da(struct ast_channel *chan, int num, const char *ints, const char *language, const char *options, int audiofd, int ctrlfd)
{
- /* options can be: '' or 'm' male gender; 'f' female gender; 'n' neuter gender; 'p' plural */
+ /* options can be: '' or 'm' male gender; 'f' female gender; 'n' neuter gender */
int res = 0, t = 0;
char fn[256] = "", fna[256] = "";
char *gender;
@@ -3187,7 +3189,7 @@
/*! \brief ast_say_enumeration_full_de: German syntax */
static int ast_say_enumeration_full_de(struct ast_channel *chan, int num, const char *ints, const char *language, const char *options, int audiofd, int ctrlfd)
{
- /* options can be: '' or 'm' male gender; 'f' female gender; 'n' neuter gender; 'p' plural */
+ /* options can be: '' or 'm' male gender; 'f' female gender; 'n' neuter gender */
int res = 0, t = 0;
char fn[256] = "", fna[256] = "";
char *gender;
@@ -3438,7 +3440,7 @@
/*! \brief ast_say_enumeration_full_is: Icelandic syntax */
static int ast_say_enumeration_full_is(struct ast_channel *chan, int num, const char *ints, const char *language, const char *options, int audiofd, int ctrlfd)
{
- /* options can be: '' or 'm' male gender; 'f' female gender; 'n' neuter gender; 'p' plural */
+ /* options can be: '' or 'm' male gender; 'f' female gender; 'n' neuter gender */
int res = 0, t = 0;
char fn[256] = "", fna[256] = "";
char *gender;
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13817
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I95d1d1b2796b1aba92048a2dbae8a3856ed8a113
Gerrit-Change-Number: 13817
Gerrit-PatchSet: 1
Gerrit-Owner: Walter Doekes <walter+asterisk at wjd.nu>
Gerrit-Reviewer: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200227/00b43bbc/attachment.html>
More information about the asterisk-code-review
mailing list