25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Update ejabberd.pot

This commit is contained in:
Evgeniy Khramtsov 2018-06-20 12:32:10 +03:00
parent 3a5d2dbed8
commit 446e6e6f3b
5 changed files with 1733 additions and 1284 deletions

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@
{fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.0.22"}}}, {fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.0.22"}}},
{stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.11"}}}, {stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.11"}}},
{fast_xml, ".*", {git, "https://github.com/processone/fast_xml", {tag, "1.1.30"}}}, {fast_xml, ".*", {git, "https://github.com/processone/fast_xml", {tag, "1.1.30"}}},
{xmpp, ".*", {git, "https://github.com/processone/xmpp", "0259a54"}}, {xmpp, ".*", {git, "https://github.com/processone/xmpp", "5df8f4b"}},
{fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.14"}}}, {fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.14"}}},
{jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}}, {jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}},
{p1_oauth2, ".*", {git, "https://github.com/processone/p1_oauth2", {tag, "0.6.3"}}}, {p1_oauth2, ".*", {git, "https://github.com/processone/p1_oauth2", {tag, "0.6.3"}}},

View File

@ -39,6 +39,7 @@
-include("logger.hrl"). -include("logger.hrl").
-include("xmpp.hrl"). -include("xmpp.hrl").
-include("translate.hrl").
-type component() :: ejabberd_sm | ejabberd_local. -type component() :: ejabberd_sm | ejabberd_local.
@ -87,8 +88,8 @@ handle(Component,
handle(_, #iq{type = T, lang = Lang, sub_els = SubEls} = Packet) handle(_, #iq{type = T, lang = Lang, sub_els = SubEls} = Packet)
when T == get; T == set -> when T == get; T == set ->
Txt = case SubEls of Txt = case SubEls of
[] -> <<"No child elements found">>; [] -> ?T("No child elements found");
_ -> <<"Too many child elements">> _ -> ?T("Too many child elements")
end, end,
Err = xmpp:err_bad_request(Txt, Lang), Err = xmpp:err_bad_request(Txt, Lang),
ejabberd_router:route_error(Packet, Err); ejabberd_router:route_error(Packet, Err);

View File

@ -1091,7 +1091,7 @@ get_form(Host, [<<"config">>, <<"acls">>], Lang) ->
type = form, type = form,
fields = [?HFIELD(), fields = [?HFIELD(),
#xdata_field{type = 'text-multi', #xdata_field{type = 'text-multi',
label = ?T(Lang, <<"Access control lists">>), label = ?T(Lang, <<"Access Control Lists">>),
var = <<"acls">>, var = <<"acls">>,
values = ACLs}]}}; values = ACLs}]}};
get_form(Host, [<<"config">>, <<"access">>], Lang) -> get_form(Host, [<<"config">>, <<"access">>], Lang) ->
@ -1109,7 +1109,7 @@ get_form(Host, [<<"config">>, <<"access">>], Lang) ->
type = form, type = form,
fields = [?HFIELD(), fields = [?HFIELD(),
#xdata_field{type = 'text-multi', #xdata_field{type = 'text-multi',
label = ?T(Lang, <<"Access rules">>), label = ?T(Lang, <<"Access Rules">>),
var = <<"access">>, var = <<"access">>,
values = Accs}]}}; values = Accs}]}};
get_form(_Host, ?NS_ADMINL(<<"add-user">>), Lang) -> get_form(_Host, ?NS_ADMINL(<<"add-user">>), Lang) ->

View File

@ -2,13 +2,17 @@
%% -*- erlang -*- %% -*- erlang -*-
%%! -pa ebin %%! -pa ebin
main([Dir]) -> main(Dirs) ->
Txts = Txts =
lists:foldl(
fun(Dir, Acc) ->
EbinDir = filename:join(Dir, "ebin"),
SrcDir = filename:join(Dir, "src"),
filelib:fold_files( filelib:fold_files(
Dir, ".+\.beam\$", false, EbinDir, ".+\.beam\$", false,
fun(BeamFile, Res) -> fun(BeamFile, Res) ->
Mod = mod(BeamFile), Mod = mod(BeamFile),
ErlFile = filename:join("src", Mod ++ ".erl"), ErlFile = filename:join(SrcDir, Mod ++ ".erl"),
case get_forms(BeamFile, ErlFile) of case get_forms(BeamFile, ErlFile) of
{ok, BeamForms, ErlForms} -> {ok, BeamForms, ErlForms} ->
process_forms(BeamForms, Mod, application) ++ process_forms(BeamForms, Mod, application) ++
@ -16,7 +20,8 @@ main([Dir]) ->
_Err -> _Err ->
Res Res
end end
end, []), end, Acc)
end, [], Dirs),
Dict = lists:foldl( Dict = lists:foldl(
fun({B, Meta}, Acc) -> fun({B, Meta}, Acc) ->
dict:update( dict:update(
@ -137,6 +142,7 @@ analyze_app(Form, Mod) ->
{xmpp, "err_" ++ _, 2, [T|_]} -> T; {xmpp, "err_" ++ _, 2, [T|_]} -> T;
{xmpp, "serr_" ++ _, 2, [T|_]} -> T; {xmpp, "serr_" ++ _, 2, [T|_]} -> T;
{xmpp, "mk_text", 2, [T|_]} -> T; {xmpp, "mk_text", 2, [T|_]} -> T;
{xmpp_tr, "tr", 2, [_,T|_]} -> T;
{translate, "translate", 2, [_,T|_]} -> T {translate, "translate", 2, [_,T|_]} -> T
end, end,
Pos = erl_syntax:get_pos(Txt), Pos = erl_syntax:get_pos(Txt),