mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Fix translatable strings
This commit is contained in:
parent
1d8a69d94f
commit
b8d74ab2a9
@ -1768,7 +1768,7 @@ host_info(Server, Query, Lang) ->
|
|||||||
error -> [?XREST("Bad format")];
|
error -> [?XREST("Bad format")];
|
||||||
nothing -> []
|
nothing -> []
|
||||||
end ++
|
end ++
|
||||||
[?XAE('p', [], [?CT("Is registered: "), ?CT(IsRegistered)])
|
[?XAE('p', [], [?CT("Is registered:"), ?C(" "), ?CT(IsRegistered)])
|
||||||
] ++ host_info_permanent(Server, Lang)
|
] ++ host_info_permanent(Server, Lang)
|
||||||
++ host_info_running(Server, Lang).
|
++ host_info_running(Server, Lang).
|
||||||
|
|
||||||
@ -1779,14 +1779,14 @@ host_info_permanent(Server, Lang) ->
|
|||||||
[?XAE('form', [?XMLATTR(<<"action">>, <<>>), ?XMLATTR(<<"method">>, <<"post">>)],
|
[?XAE('form', [?XMLATTR(<<"action">>, <<>>), ?XMLATTR(<<"method">>, <<"post">>)],
|
||||||
[?P, ?INPUTT("submit", "removehost", "Remove Host")])]}
|
[?P, ?INPUTT("submit", "removehost", "Remove Host")])]}
|
||||||
end,
|
end,
|
||||||
[?XAE('p', [], [?CT("Is permanent: "), PermanentX])] ++ FormList.
|
[?XAE('p', [], [?CT("Is permanent:"), ?C(" "), PermanentX])] ++ FormList.
|
||||||
|
|
||||||
host_info_running(Server, Lang) ->
|
host_info_running(Server, Lang) ->
|
||||||
{RunningX, InputName,InputString} = case ejabberd_hosts:running(Server) of
|
{RunningX, InputName,InputString} = case ejabberd_hosts:running(Server) of
|
||||||
true -> {?CT("true"), "stophost", "Stop Host"};
|
true -> {?CT("true"), "stophost", "Stop Host"};
|
||||||
false -> {?CT("false"), "starthost", "Start Host"}
|
false -> {?CT("false"), "starthost", "Start Host"}
|
||||||
end,
|
end,
|
||||||
[?XAE('p', [], [?CT("Is running: "), RunningX]),
|
[?XAE('p', [], [?CT("Is running:"), ?C(" "), RunningX]),
|
||||||
?XAE('form', [?XMLATTR(<<"action">>, <<>>), ?XMLATTR(<<"method">>, <<"post">>)],
|
?XAE('form', [?XMLATTR(<<"action">>, <<>>), ?XMLATTR(<<"method">>, <<"post">>)],
|
||||||
[?P, ?INPUTT("submit", InputName, InputString)])].
|
[?P, ?INPUTT("submit", InputName, InputString)])].
|
||||||
|
|
||||||
@ -2470,10 +2470,10 @@ get_node(global, Node, ["pid"], _Query, Lang) ->
|
|||||||
])
|
])
|
||||||
]),
|
]),
|
||||||
?XAE('p', [],
|
?XAE('p', [],
|
||||||
[?CT("Registered processes and ports: ")] ++ RegisteredList
|
[?CT("Registered processes and ports:"), ?C(" ")] ++ RegisteredList
|
||||||
),
|
),
|
||||||
?XAE('p', [],
|
?XAE('p', [],
|
||||||
[?CT("Total processes: ")] ++ ProcessesList
|
[?CT("Total processes:"), ?C(" ")] ++ ProcessesList
|
||||||
)];
|
)];
|
||||||
|
|
||||||
get_node(global, Node, ["pid", [Char1|_] = RegS], _Query, Lang) when Char1 /= $< ->
|
get_node(global, Node, ["pid", [Char1|_] = RegS], _Query, Lang) when Char1 /= $< ->
|
||||||
@ -3191,7 +3191,7 @@ make_server_menu(HostMenu, NodeMenu, Lang, JID) ->
|
|||||||
{"access", "Access Rules"},
|
{"access", "Access Rules"},
|
||||||
{"vhosts", "Virtual Hosts", HostMenu},
|
{"vhosts", "Virtual Hosts", HostMenu},
|
||||||
{"nodes", "Nodes", NodeMenu},
|
{"nodes", "Nodes", NodeMenu},
|
||||||
{"misc", "Miscelanea Options"},
|
{"misc", "Miscellanea Options"},
|
||||||
{"stats", "Statistics"}]
|
{"stats", "Statistics"}]
|
||||||
++ get_menu_items_hook(server, Lang),
|
++ get_menu_items_hook(server, Lang),
|
||||||
BasePath = url_to_path(Base),
|
BasePath = url_to_path(Base),
|
||||||
|
Loading…
Reference in New Issue
Block a user