26
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-28 17:38:54 +01:00

Support more mod_muc_admin translation strings (#659)

This commit is contained in:
Badlop 2015-07-15 11:54:35 +02:00
parent 062d2d696f
commit 9ede414f01

View File

@ -241,8 +241,8 @@ web_menu_host(Acc, _Host, Lang) ->
])). ])).
web_page_main(_, #request{path=[<<"muc">>], lang = Lang} = _Request) -> web_page_main(_, #request{path=[<<"muc">>], lang = Lang} = _Request) ->
Res = [?XC(<<"h1">>, <<"Multi-User Chat">>), Res = [?XCT(<<"h1">>, <<"Multi-User Chat">>),
?XC(<<"h3">>, <<"Statistics">>), ?XCT(<<"h3">>, <<"Statistics">>),
?XAE(<<"table">>, [], ?XAE(<<"table">>, [],
[?XE(<<"tbody">>, [?TDTD(<<"Total rooms">>, ets:info(muc_online_room, size)), [?XE(<<"tbody">>, [?TDTD(<<"Total rooms">>, ets:info(muc_online_room, size)),
?TDTD(<<"Permanent rooms">>, mnesia:table_info(muc_room, size)), ?TDTD(<<"Permanent rooms">>, mnesia:table_info(muc_room, size)),
@ -301,22 +301,22 @@ make_rooms_page(Host, Lang, {Sort_direction, Sort_column}) ->
<<"Persistent">>, <<"Persistent">>,
<<"Logging">>, <<"Logging">>,
<<"Just created">>, <<"Just created">>,
<<"Title">>], <<"Room title">>],
{Titles_TR, _} = {Titles_TR, _} =
lists:mapfoldl( lists:mapfoldl(
fun(Title, Num_column) -> fun(Title, Num_column) ->
NCS = jlib:integer_to_binary(Num_column), NCS = jlib:integer_to_binary(Num_column),
TD = ?XE(<<"td">>, [?CT(Title), TD = ?XE(<<"td">>, [?CT(Title),
?C(<<" ">>), ?C(<<" ">>),
?ACT(<<"?sort=", NCS/binary>>, <<"<">>), ?AC(<<"?sort=", NCS/binary>>, <<"<">>),
?C(<<" ">>), ?C(<<" ">>),
?ACT(<<"?sort=-", NCS/binary>>, <<">">>)]), ?AC(<<"?sort=-", NCS/binary>>, <<">">>)]),
{TD, Num_column+1} {TD, Num_column+1}
end, end,
1, 1,
Titles), Titles),
[?XC(<<"h1">>, <<"Multi-User Chat">>), [?XCT(<<"h1">>, <<"Multi-User Chat">>),
?XC(<<"h2">>, <<"Rooms">>), ?XCT(<<"h2">>, <<"Chatrooms">>),
?XE(<<"table">>, ?XE(<<"table">>,
[?XE(<<"thead">>, [?XE(<<"thead">>,
[?XE(<<"tr">>, Titles_TR)] [?XE(<<"tr">>, Titles_TR)]