Skip to content
This repository
Browse code

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

  • Loading branch information...
commit b51c2c6f42e78a1231d5fb66823d8e952592e24f 1 parent 2c77dba
Arjan Scherpenisse authored October 31, 2012
4  modules/mod_translation/support/translation_scan.erl
@@ -179,5 +179,9 @@ parse_erl_form_part({call, _, {remote, _, {atom, _, z_trans}, {atom, _, trans}},
179 179
 
180 180
 parse_erl_form_part({call, _, _, Expressions}, File, Acc) ->
181 181
     lists:foldl(fun(Part,A) -> parse_erl_form_part(Part, File, A) end, Acc, Expressions);
  182
+parse_erl_form_part({record, _, _, Fields}, File, Acc) ->
  183
+    lists:foldl(fun({record_field, _, _, Part}, A) ->
  184
+                        parse_erl_form_part(Part, File, A)
  185
+                end, Acc, Fields);
182 186
 parse_erl_form_part(_Part, _File, Acc) ->
183 187
     Acc. %% ignore

0 notes on commit b51c2c6

Please sign in to comment.
Something went wrong with that request. Please try again.