1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Category: Show either Category or Categories depending on number of categories [#674]

This commit is contained in:
gnosygnu
2020-03-04 08:24:14 -05:00
parent 891cf53228
commit 02f9b9dae3
3 changed files with 5 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ public class Xoctg_double_box__tst {
, "</li>"
, "</ul>"
, "</div>"
, "<div id=\"mw-hidden-catlinks\" class=\"mw-hidden-catlinks mw-hidden-cats-user-shown\">Hidden categories:"
, "<div id=\"mw-hidden-catlinks\" class=\"mw-hidden-catlinks mw-hidden-cats-user-shown\">Hidden category:"
, "<ul>"
, "<li>"
, "<a href=\"/wiki/Category:A\" title=\"Category:A\">A</a>"

View File

@@ -36,7 +36,7 @@ public class Xoctg_double_grp implements Bfr_arg {
Fmt__normal.Bld_many(bfr, lbl_ctg_help, lbl_ctg_text, itms);
}
else {
byte[] lbl_hidden = wiki.Msg_mgr().Val_by_id_args(Xol_msg_itm_.Id_ctg_tbl_hidden, count);
byte[] lbl_hidden = wiki.Msg_mgr().Val_by_id_args(Xol_msg_itm_.Id_hidden_categories, count); // use "hidden-categories" instead of "hidden-category-category" ISSUE#:674 DATE:2020-03-04
Fmt__hidden.Bld_many(bfr, lbl_hidden, itms);
}
}