Permalink
Browse files

mod_translation: Scan inside .erl files now also scans inside records

  • Loading branch information...
arjan committed Oct 31, 2012
1 parent 2c77dba commit b51c2c6f42e78a1231d5fb66823d8e952592e24f
Showing with 4 additions and 0 deletions.
  1. +4 −0 modules/mod_translation/support/translation_scan.erl
@@ -179,5 +179,9 @@ parse_erl_form_part({call, _, {remote, _, {atom, _, z_trans}, {atom, _, trans}},
parse_erl_form_part({call, _, _, Expressions}, File, Acc) ->
lists:foldl(fun(Part,A) -> parse_erl_form_part(Part, File, A) end, Acc, Expressions);
+parse_erl_form_part({record, _, _, Fields}, File, Acc) ->
+ lists:foldl(fun({record_field, _, _, Part}, A) ->
+ parse_erl_form_part(Part, File, A)
+ end, Acc, Fields);
parse_erl_form_part(_Part, _File, Acc) ->
Acc. %% ignore

0 comments on commit b51c2c6

Please sign in to comment.