Commit 9cb28b92 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

move function docs into a distinct message catalog modify all function


2005-02-12  Jody Goldberg <jody@gnome.org>

	* configure.in : move function docs into a distinct message catalog
	* */*.c : modify all function docs to start using the new format.
	* src/func.c (gnm_func_load_stub) : adjust to new GnmFuncHelp type
	(gnm_func_add) : ditto
	(tokenized_help_new) : ditto
parent 570884c8
A tally of the beverages owed for 1.2.x
A tally of the beverages owed for 1.4.x
Beverage bounty has not begun yet
Check back soon
Bring on the hurting
----------------------------------------------------------------
A tally of the beverages owed for 1.0.x
......
2005-02-12 Jody Goldberg <jody@gnome.org>
* configure.in : move function docs into a distinct message catalog
* */*.c : modify all function docs to start using the new format.
* src/func.c (gnm_func_load_stub) : adjust to new GnmFuncHelp type
(gnm_func_add) : ditto
(tokenized_help_new) : ditto
2005-02-10 Jody Goldberg <jody@gnome.org>
http://bugzilla.gnome.org/show_bug.cgi?id=165982
......
SUBDIRS = . po src plugins icons templates doc schemas
SUBDIRS = . po po-functions src plugins icons templates doc schemas
# automake does not like subdirs that are not directly below
#if WITH_WIN32
# SUBDIRS += src/cut-n-paste-code/goffice/graph/plugins
......
......@@ -15,6 +15,7 @@ Jody:
* Fix OFFSET for asymetric ranges [#166764]
* Fix SUMIF for asymetric ranges [#166769]
* Import sheet visibility from ms excel
* Split function docs into a distinct catalog
Morten:
* Work around Pango bug causing XL save crash. [#166532]
......
2005-02-12 Jody Goldberg <jody@gnome.org>
* configure.in : move function docs into a distinct message catalog
* */*.c : modify all function docs to start using the new format.
* src/func.c (gnm_func_load_stub) : adjust to new GnmFuncHelp type
(gnm_func_add) : ditto
(tokenized_help_new) : ditto
2005-02-10 Jody Goldberg <jody@gnome.org>
http://bugzilla.gnome.org/show_bug.cgi?id=165982
......
......@@ -523,13 +523,12 @@ AC_SUBST(STRIP_DUMMY)
AC_SUBST(STRIP_BEGIN)
AC_SUBST(STRIP_END)
dnl **************************************************
dnl * internationalization support
dnl **************************************************
dnl
dnl Check doc/developer/translating.sgml for a description of how to translate
dnl and why we have so many translations.
dnl
# i18n stuff
# TRANSLATORS: Please note that gtk+ has both po/ and po-functions/
# directories. If you add a new language to ALL_LINGUAS, please make
# sure that both po/ and po-functions/ have .po files that correspond
# to your language. If you only add one to po/, the build will break
# in po-functions/.
ALL_LINGUAS="am az bg ca cs da de el en_CA en_GB es et fi fr ga gl he hr hu it ja ko lv ml mr ms nb nl nn no pl pt pt_BR ro ru sk sr sr@Latn sv tr uk vi zh_CN zh_TW"
AC_SUBST(ALL_LINGUAS)
......@@ -539,6 +538,9 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
[The package name, for gettext]
)
AM_GLIB_GNU_GETTEXT
AC_OUTPUT_COMMANDS([case "$CONFIG_FILES" in *po-functions/Makefile.in*)
sed -e "/POTFILES =/r po-functions/POTFILES" po-functions/Makefile.in > po-functions/Makefile
esac])
dnl We do not want to force libgnomeprint 2.8 just yet.
SAVE_LIBS="$LIBS"
......@@ -1012,6 +1014,7 @@ plugins/sample_datasource/Makefile
plugins/paradox/Makefile
plugins/uihello/Makefile
po/Makefile.in
po-functions/Makefile.in
schemas/Makefile
templates/Makefile
templates/english/Makefile
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -21,7 +21,6 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gnumeric-config.h>
#include <glib/gi18n.h>
#include <gnumeric.h>
#include <func.h>
......@@ -33,6 +32,7 @@
#include <number-match.h>
#include <collect.h>
#include <rangefunc.h>
#include <gnm-i18n.h>
#include <math.h>
#include <string.h>
......@@ -264,8 +264,9 @@ database_value_range_function (FunctionEvalInfo *ei,
/***************************************************************************/
static char const *help_daverage = {
N_("@FUNCTION=DAVERAGE\n"
static GnmFuncHelp const help_daverage[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=DAVERAGE\n"
"@SYNTAX=DAVERAGE(database,field,criteria)\n"
"@DESCRIPTION="
......@@ -319,6 +320,8 @@ static char const *help_daverage = {
"DAVERAGE(A1:C7, \"Age\", A9:B11) equals 36.\n"
"\n"
"@SEEALSO=DCOUNT")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -338,8 +341,9 @@ gnumeric_daverage (FunctionEvalInfo *ei, GnmValue **argv)
/***************************************************************************/
static char const *help_dcount = {
N_("@FUNCTION=DCOUNT\n"
static GnmFuncHelp const help_dcount[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=DCOUNT\n"
"@SYNTAX=DCOUNT(database,field,criteria)\n"
"@DESCRIPTION="
......@@ -392,6 +396,8 @@ static char const *help_dcount = {
"DCOUNT(A1:C7, \"Name\", A9:B11) equals 0.\n"
"\n"
"@SEEALSO=DAVERAGE")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -411,8 +417,9 @@ gnumeric_dcount (FunctionEvalInfo *ei, GnmValue **argv)
/***************************************************************************/
static char const *help_dcounta = {
N_("@FUNCTION=DCOUNTA\n"
static GnmFuncHelp const help_dcounta[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=DCOUNTA\n"
"@SYNTAX=DCOUNTA(database,field,criteria)\n"
"@DESCRIPTION="
......@@ -465,6 +472,8 @@ static char const *help_dcounta = {
"DCOUNTA(A1:C7, \"Name\", A9:B11) equals 2.\n"
"\n"
"@SEEALSO=DCOUNT")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -482,8 +491,9 @@ gnumeric_dcounta (FunctionEvalInfo *ei, GnmValue **argv)
/***************************************************************************/
static char const *help_dget = {
N_("@FUNCTION=DGET\n"
static GnmFuncHelp const help_dget[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=DGET\n"
"@SYNTAX=DGET(database,field,criteria)\n"
"@DESCRIPTION="
......@@ -540,6 +550,8 @@ static char const *help_dget = {
"DGET(A1:C7, \"Name\", A9:A10) equals \"Clark\".\n"
"\n"
"@SEEALSO=DCOUNT")
},
{ GNM_FUNC_HELP_END }
};
static int
......@@ -565,8 +577,9 @@ gnumeric_dget (FunctionEvalInfo *ei, GnmValue **argv)
GNM_ERROR_NUM);
}
static char const *help_dmax = {
N_("@FUNCTION=DMAX\n"
static GnmFuncHelp const help_dmax[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=DMAX\n"
"@SYNTAX=DMAX(database,field,criteria)\n"
"@DESCRIPTION="
......@@ -619,6 +632,8 @@ static char const *help_dmax = {
"DMAX(A1:C7, \"Age\", A9:B11) equals 43.\n"
"\n"
"@SEEALSO=DMIN")
},
{ GNM_FUNC_HELP_END }
};
/***************************************************************************/
......@@ -640,8 +655,9 @@ gnumeric_dmax (FunctionEvalInfo *ei, GnmValue **argv)
/***************************************************************************/
static char const *help_dmin = {
N_("@FUNCTION=DMIN\n"
static GnmFuncHelp const help_dmin[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=DMIN\n"
"@SYNTAX=DMIN(database,field,criteria)\n"
"@DESCRIPTION="
......@@ -693,6 +709,8 @@ static char const *help_dmin = {
"DMIN(A1:C7, \"Age\", A9:B11) equals 29.\n"
"\n"
"@SEEALSO=DMAX")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -712,8 +730,9 @@ gnumeric_dmin (FunctionEvalInfo *ei, GnmValue **argv)
/***************************************************************************/
static char const *help_dproduct = {
N_("@FUNCTION=DPRODUCT\n"
static GnmFuncHelp const help_dproduct[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=DPRODUCT\n"
"@SYNTAX=DPRODUCT(database,field,criteria)\n"
"@DESCRIPTION="
......@@ -764,6 +783,8 @@ static char const *help_dproduct = {
"DPRODUCT(A1:C7, \"Age\", A9:B11) equals 1247.\n"
"\n"
"@SEEALSO=DSUM")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -784,8 +805,9 @@ gnumeric_dproduct (FunctionEvalInfo *ei, GnmValue **argv)
/***************************************************************************/
static char const *help_dstdev = {
N_("@FUNCTION=DSTDEV\n"
static GnmFuncHelp const help_dstdev[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=DSTDEV\n"
"@SYNTAX=DSTDEV(database,field,criteria)\n"
"@DESCRIPTION="
......@@ -838,6 +860,8 @@ static char const *help_dstdev = {
"DSTDEV(A1:C7, \"Salary\", A9:B11) equals 9135.112506.\n"
"\n"
"@SEEALSO=DSTDEVP")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -857,8 +881,9 @@ gnumeric_dstdev (FunctionEvalInfo *ei, GnmValue **argv)
/***************************************************************************/
static char const *help_dstdevp = {
N_("@FUNCTION=DSTDEVP\n"
static GnmFuncHelp const help_dstdevp[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=DSTDEVP\n"
"@SYNTAX=DSTDEVP(database,field,criteria)\n"
"@DESCRIPTION="
......@@ -911,6 +936,8 @@ static char const *help_dstdevp = {
"DSTDEVP(A1:C7, \"Salary\", A9:B11) equals 6459.5.\n"
"\n"
"@SEEALSO=DSTDEV")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -930,8 +957,9 @@ gnumeric_dstdevp (FunctionEvalInfo *ei, GnmValue **argv)
/***************************************************************************/
static char const *help_dsum = {
N_("@FUNCTION=DSUM\n"
static GnmFuncHelp const help_dsum[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=DSUM\n"
"@SYNTAX=DSUM(database,field,criteria)\n"
"@DESCRIPTION="
......@@ -983,6 +1011,8 @@ static char const *help_dsum = {
"DSUM(A1:C7, \"Salary\", A9:B11) equals 81565.\n"
"\n"
"@SEEALSO=DPRODUCT")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -1003,8 +1033,9 @@ gnumeric_dsum (FunctionEvalInfo *ei, GnmValue **argv)
/***************************************************************************/
static char const *help_dvar = {
N_("@FUNCTION=DVAR\n"
static GnmFuncHelp const help_dvar[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=DVAR\n"
"@SYNTAX=DVAR(database,field,criteria)\n"
"@DESCRIPTION="
......@@ -1057,6 +1088,8 @@ static char const *help_dvar = {
"DVAR(A1:C7, \"Salary\", A9:B11) equals 83450280.5.\n"
"\n"
"@SEEALSO=DVARP")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -1076,8 +1109,9 @@ gnumeric_dvar (FunctionEvalInfo *ei, GnmValue **argv)
/***************************************************************************/
static char const *help_dvarp = {
N_("@FUNCTION=DVARP\n"
static GnmFuncHelp const help_dvarp[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=DVARP\n"
"@SYNTAX=DVARP(database,field,criteria)\n"
"@DESCRIPTION="
......@@ -1130,6 +1164,8 @@ static char const *help_dvarp = {
"DVARP(A1:C7, \"Salary\", A9:B11) equals 41725140.25.\n"
"\n"
"@SEEALSO=DVAR")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -1149,8 +1185,9 @@ gnumeric_dvarp (FunctionEvalInfo *ei, GnmValue **argv)
/***************************************************************************/
static char const *help_getpivotdata = {
N_("@FUNCTION=GETPIVOTDATA\n"
static GnmFuncHelp const help_getpivotdata[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=GETPIVOTDATA\n"
"@SYNTAX=GETPIVOTDATA(pivot_table,field_name)\n"
"@DESCRIPTION="
......@@ -1165,6 +1202,8 @@ static char const *help_getpivotdata = {
"@EXAMPLES=\n"
"\n"
"@SEEALSO=")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -1196,45 +1235,45 @@ gnumeric_getpivotdata (FunctionEvalInfo *ei, GnmValue **argv)
const GnmFuncDescriptor database_functions[] = {
{ "daverage", "rSr", N_("database,field,criteria"),
&help_daverage, gnumeric_daverage, NULL, NULL, NULL, NULL,
help_daverage, gnumeric_daverage, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dcount", "rSr", N_("database,field,criteria"),
&help_dcount, gnumeric_dcount, NULL, NULL, NULL, NULL,
help_dcount, gnumeric_dcount, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dcounta", "rSr", N_("database,field,criteria"),
&help_dcounta, gnumeric_dcounta, NULL, NULL, NULL, NULL,
help_dcounta, gnumeric_dcounta, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dget", "rSr", N_("database,field,criteria"),
&help_dget, gnumeric_dget, NULL, NULL, NULL, NULL,
help_dget, gnumeric_dget, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dmax", "rSr", N_("database,field,criteria"),
&help_dmax, gnumeric_dmax, NULL, NULL, NULL, NULL,
help_dmax, gnumeric_dmax, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dmin", "rSr", N_("database,field,criteria"),
&help_dmin, gnumeric_dmin, NULL, NULL, NULL, NULL,
help_dmin, gnumeric_dmin, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dproduct", "rSr", N_("database,field,criteria"),
&help_dproduct, gnumeric_dproduct, NULL, NULL, NULL, NULL,
help_dproduct, gnumeric_dproduct, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dstdev", "rSr", N_("database,field,criteria"),
&help_dstdev, gnumeric_dstdev, NULL, NULL, NULL, NULL,
help_dstdev, gnumeric_dstdev, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dstdevp", "rSr", N_("database,field,criteria"),
&help_dstdevp, gnumeric_dstdevp, NULL, NULL, NULL, NULL,
help_dstdevp, gnumeric_dstdevp, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dsum", "rSr", N_("database,field,criteria"),
&help_dsum, gnumeric_dsum, NULL, NULL, NULL, NULL,
help_dsum, gnumeric_dsum, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dvar", "rSr", N_("database,field,criteria"),
&help_dvar, gnumeric_dvar, NULL, NULL, NULL, NULL,
help_dvar, gnumeric_dvar, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dvarp", "rSr", N_("database,field,criteria"),
&help_dvarp, gnumeric_dvarp, NULL, NULL, NULL, NULL,
help_dvarp, gnumeric_dvarp, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
/* XL stores in lookup */
{ "getpivotdata", "rs", N_("pivot_table,field_name"),
&help_getpivotdata, gnumeric_getpivotdata, NULL, NULL, NULL, NULL,
help_getpivotdata, gnumeric_getpivotdata, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_SUBSET, GNM_FUNC_TEST_STATUS_NO_TESTSUITE },
{NULL}
......
This diff is collapsed.
This diff is collapsed.
......@@ -25,10 +25,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gnumeric-config.h>
#include <glib/gi18n.h>
#include <gnumeric.h>
#include <func.h>
#include <parse-util.h>
#include <str.h>
#include <cell.h>
......@@ -38,14 +36,15 @@
#include <workbook.h>
#include <sheet.h>
#include <tools/goal-seek.h>
#include <gnm-i18n.h>
#include <goffice/app/go-plugin.h>
#include <goffice/app/module-plugin-defs.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <goffice/app/go-plugin.h>
#include <goffice/app/module-plugin-defs.h>
/*
* comp_gos == 1 - gos
*/
......@@ -117,8 +116,9 @@ calculate_gos (gnm_float traffic, gnm_float circuits, gboolean comp)
GNUMERIC_MODULE_PLUGIN_INFO_DECL;
/***************************************************************************/
static char const *help_probblock = {
N_("@FUNCTION=PROBBLOCK\n"
static GnmFuncHelp const help_probblock[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=PROBBLOCK\n"
"@SYNTAX=PROBBLOCK(traffic,circuits)\n"
"@DESCRIPTION="
......@@ -131,6 +131,8 @@ static char const *help_probblock = {
"PROBBLOCK(24,30) returns 0.4012.\n"
"\n"
"@SEEALSO=OFFTRAF, DIMCIRC, OFFCAP")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -146,8 +148,9 @@ gnumeric_probblock (FunctionEvalInfo *ei, GnmValue **argv)
return value_new_error_VALUE (ei->pos);
}
static char const *help_offtraf = {
N_("@FUNCTION=OFFTRAF\n"
static GnmFuncHelp const help_offtraf[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=OFFTRAF\n"
"@SYNTAX=OFFTRAF(traffic,circuits)\n"
"@DESCRIPTION="
......@@ -161,6 +164,8 @@ static char const *help_offtraf = {
"OFFTRAF(24,30) returns 25.527.\n"
"\n"
"@SEEALSO=PROBBLOCK, DIMCIRC, OFFCAP")
},
{ GNM_FUNC_HELP_END }
};
typedef struct {
......@@ -212,8 +217,9 @@ gnumeric_offtraf (FunctionEvalInfo *ei, GnmValue **argv)
return value_new_error_VALUE (ei->pos);
}
static char const *help_dimcirc = {
N_("@FUNCTION=DIMCIRC\n"
static GnmFuncHelp const help_dimcirc[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=DIMCIRC\n"
"@SYNTAX=DIMCIRC(traffic,gos)\n"
"@DESCRIPTION="
......@@ -224,6 +230,8 @@ static char const *help_dimcirc = {
"DIMCIRC(24,1%) returns 35.\n"
"\n"
"@SEEALSO=OFFCAP, OFFTRAF, PROBBLOCK")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -254,8 +262,9 @@ gnumeric_dimcirc (FunctionEvalInfo *ei, GnmValue **argv)
return value_new_float (high);
}
static char const *help_offcap = {
N_("@FUNCTION=OFFCAP\n"
static GnmFuncHelp const help_offcap[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=OFFCAP\n"
"@SYNTAX=OFFCAP(circuits,gos)\n"
"@DESCRIPTION="
......@@ -266,6 +275,8 @@ static char const *help_offcap = {
"OFFCAP(30,1%) returns 20.337.\n"
"\n"
"@SEEALSO=DIMCIRC, OFFTRAF, PROBBLOCK")
},
{ GNM_FUNC_HELP_END }
};
typedef struct {
......@@ -319,22 +330,22 @@ gnumeric_offcap (FunctionEvalInfo *ei, GnmValue **argv)
}
GnmFuncDescriptor const erlang_functions[] = {
{ "probblock", "ff", N_("traffic,circuits"), &help_probblock,
{ "probblock", "ff", N_("traffic,circuits"), help_probblock,
gnumeric_probblock, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_PERCENT,
GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC,
GNM_FUNC_TEST_STATUS_NO_TESTSUITE },
{ "offtraf", "ff", N_("traffic,circuits"), &help_offtraf,
{ "offtraf", "ff", N_("traffic,circuits"), help_offtraf,
gnumeric_offtraf, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE,
GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC,
GNM_FUNC_TEST_STATUS_NO_TESTSUITE },
{ "dimcirc", "ff", N_("traffic,gos"), &help_dimcirc,
{ "dimcirc", "ff", N_("traffic,gos"), help_dimcirc,
gnumeric_dimcirc, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE,
GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC,
GNM_FUNC_TEST_STATUS_NO_TESTSUITE },
{ "offcap", "ff", N_("circuits,gos"), &help_offcap,
{ "offcap", "ff", N_("circuits,gos"), help_offcap,
gnumeric_offcap, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE,
GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC,
......
This diff is collapsed.
......@@ -30,10 +30,8 @@
* copyright on the CELL implementation.
*/
#include <gnumeric-config.h>
#include <glib/gi18n.h>
#include <gnumeric.h>
#include <func.h>
#include <parse-util.h>
#include <cell.h>
#include <str.h>
......@@ -47,6 +45,10 @@
#include <expr-impl.h>
#include <sheet-style.h>
#include <number-match.h>
#include <gnm-i18n.h>
#include <goffice/app/go-plugin.h>
#include <goffice/app/module-plugin-defs.h>
#ifdef HAVE_UNAME
#include <sys/utsname.h>
......@@ -55,15 +57,13 @@
#include <stdlib.h>
#include <string.h>
#include <goffice/app/go-plugin.h>
#include <goffice/app/module-plugin-defs.h>
GNUMERIC_MODULE_PLUGIN_INFO_DECL;
/***************************************************************************/
static char const *help_cell = {
N_("@FUNCTION=CELL\n"
static GnmFuncHelp const help_cell[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=CELL\n"
"@SYNTAX=CELL(type,ref)\n"
"@DESCRIPTION="
......@@ -86,6 +86,8 @@ static char const *help_cell = {
"Cell(\"format\",A1) returns the code of the format of the cell A1.\n"
"\n"
"@SEEALSO=INDIRECT")
},
{ GNM_FUNC_HELP_END }
};
typedef struct {
......@@ -1161,8 +1163,9 @@ End Function
/***************************************************************************/
static char const *help_expression = {
N_("@FUNCTION=EXPRESSION\n"
static GnmFuncHelp const help_expression[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=EXPRESSION\n"
"@SYNTAX=EXPRESSION(cell)\n"
"@DESCRIPTION="
"EXPRESSION returns expression in @cell as a string, or "
......@@ -1172,6 +1175,8 @@ static char const *help_expression = {
"entering '=EXPRESSION(A2)' in A1 = 'EXPRESSION(A3)'.\n"
"\n"
"@SEEALSO=TEXT")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -1204,8 +1209,9 @@ gnumeric_expression (FunctionEvalInfo *ei, GnmValue **args)
/***************************************************************************/
static char const *help_countblank = {
N_("@FUNCTION=COUNTBLANK\n"
static GnmFuncHelp const help_countblank[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=COUNTBLANK\n"
"@SYNTAX=COUNTBLANK(range)\n"
"@DESCRIPTION="
......@@ -1216,6 +1222,8 @@ static char const *help_countblank = {
"COUNTBLANK(A1:A20) returns the number of blank cell in A1:A20.\n"
"\n"
"@SEEALSO=COUNT")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -1248,8 +1256,9 @@ gnumeric_countblank (FunctionEvalInfo *ei, GnmValue **args)
/***************************************************************************/
static char const *help_info = {
N_("@FUNCTION=INFO\n"
static GnmFuncHelp const help_info[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=INFO\n"
"@SYNTAX=INFO(type)\n"
"@DESCRIPTION="
......@@ -1272,6 +1281,8 @@ static char const *help_info = {
"INFO(\"system\") returns \"Linux\" on a Linux system.\n"
"\n"
"@SEEALSO=")
},
{ GNM_FUNC_HELP_END }
};
......@@ -1351,8 +1362,9 @@ gnumeric_info (FunctionEvalInfo *ei, GnmValue **argv)
/***************************************************************************/
static char const *help_iserror = {
N_("@FUNCTION=ISERROR\n"
static GnmFuncHelp const help_iserror[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=ISERROR\n"
"@SYNTAX=ISERROR(value)\n"
"@DESCRIPTION="
......@@ -1363,6 +1375,8 @@ static char const *help_iserror = {
"ISERROR(NA()) equals TRUE.\n"
"\n"
"@SEEALSO=ERROR")
},
{ GNM_FUNC_HELP_END }
};
static GnmValue *
......@@ -1373,8 +1387,9 @@ gnumeric_iserror (FunctionEvalInfo *ei, GnmValue **argv)
/***************************************************************************/
static char const *help_isna = {
N_("@FUNCTION=ISNA\n"
static GnmFuncHelp const help_isna[] = {
{ GNM_FUNC_HELP_OLD,
F_("@FUNCTION=ISNA\n"