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

Support binary strings in extract_translations

This commit is contained in:
Badlop 2015-12-23 20:54:40 +01:00
parent c42e026f9c
commit f3cb5e0d77

View File

@ -115,6 +115,12 @@ parse_form(Dir, File, Form, Used) ->
{string, Line, Value} {string, Line, Value}
} -> } ->
ets:insert(vars, {Name, Value, Line}); ets:insert(vars, {Name, Value, Line});
{match,
_,
{var, _, Name},
{bin,Line,[{bin_element,_,{string,_,Value},_,_}]}
} ->
ets:insert(vars, {Name, Value, Line});
L when is_list(L) -> L when is_list(L) ->
lists:foreach( lists:foreach(
fun(F) -> fun(F) ->