mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
Category: Show either Category or Categories depending on number of categories [#674]
This commit is contained in:
parent
891cf53228
commit
02f9b9dae3
@ -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>"
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -252,8 +252,9 @@ public static final int
|
||||
, Id_xowa_wikidata_links_special = 231
|
||||
, Id_xowa_window_allpages_box_tooltip = 232
|
||||
, Id_xowa_window_allpages_btn_tooltip = 233
|
||||
, Id_hidden_categories = 234
|
||||
;
|
||||
public static final int Id__max = 234;
|
||||
public static final int Id__max = 235;
|
||||
public static Xol_msg_itm new_(int id, String key, String val) {return new_(id, Bry_.new_u8(key), Bry_.new_u8(val));}
|
||||
public static Xol_msg_itm new_(int id, byte[] key, byte[] val) {
|
||||
Xol_msg_itm rv = new Xol_msg_itm(id, key);
|
||||
@ -512,6 +513,7 @@ case Xol_msg_itm_.Id_xowa_wikidata_deprecated: return new_(Xol_msg_itm_.Id_xowa_
|
||||
case Xol_msg_itm_.Id_xowa_wikidata_normal: return new_(Xol_msg_itm_.Id_xowa_wikidata_normal, "xowa-wikidata-normal", "normal");
|
||||
case Xol_msg_itm_.Id_xowa_wikidata_preferred: return new_(Xol_msg_itm_.Id_xowa_wikidata_preferred, "xowa-wikidata-preferred", "preferred");
|
||||
case Xol_msg_itm_.Id_xowa_wikidata_links_special: return new_(Xol_msg_itm_.Id_xowa_wikidata_links_special, "xowa-wikidata-links-special", "Links (special wikis)");
|
||||
case Xol_msg_itm_.Id_hidden_categories: return new_(Xol_msg_itm_.Id_ctg_tbl_hidden, "hidden-categories", "{{PLURAL:~{0}\u007CHidden category\u007CHidden categories}}");
|
||||
default: throw Err_.new_unhandled(id);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user