In SWAT status page Active Shares Share User Group PID Share User Open Files PID Sharing R/W Oplock PID Sharing The 5th and 6th column's title is wrong. Unfortunately NUM_LANG_BUFS 4 is not sufficient for web/statuspagec:395, 407: d_printf("<tr><th>%s</th><th>%s</th><th>%s</th><th>%s</th>\n", _ ("PID"), _("Client"), _("IP address"), _("Date")); There are 6 items in these lines. Simply to increase this value is a quick fix. 16 will be enough value I think. I think this limitation should be mentioned anywhere of Development docs. --- lang_tdb.c.org Tue Sep 23 03:31:22 2003 +++ lang_tdb.c Tue Sep 23 04:12:47 2003 @@ -210,7 +210,7 @@ */ const char *lang_msg_rotate(const char *msgid) { -#define NUM_LANG_BUFS 4 +#define NUM_LANG_BUFS 16 char *msgstr; static pstring bufs[NUM_LANG_BUFS]; static int next;
Sorry, Line 395 is OK, Linue 407 and Line 416 in statuspage.c has this problem.
Please commit this simple patch to support SWAT i18n feature correctly.
Patch applied.
originally reported against one of the 3.0.0rc[1-4] releases. Cleaning up non-production versions.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.