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:
parent
c42e026f9c
commit
f3cb5e0d77
@ -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) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user