Support binary strings in extract_translations

This commit is contained in:
Badlop 2015-12-23 20:54:40 +01:00
parent c42e026f9c
commit f3cb5e0d77
1 changed files with 6 additions and 0 deletions

View File

@ -115,6 +115,12 @@ parse_form(Dir, File, Form, Used) ->
{string, Line, Value}
} ->
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) ->
lists:foreach(
fun(F) ->