I have a module directory structure like:
/sites/all/modules
/path_redirect
/genereate
path_redirect_generate.info
path_redirect_generate.module
path_redirect.admin.inc
path_redirect.info
path_redirect.install
path_redirect.module
path_redirect.test
With Extract from all in directory "sites/all/modules/path_redirect", the path_redirect.admin.inc file is included in the pot file (expected).
With Extract from path_redirect (in the fieldset), path_redirect.admin.inc is not included in the pot file (unexpected).
With Extract from path_redirect_generate in the sites/all/modules/path_redirect/generate directory (in the fieldset), path_redirect.admin.inc is not included in the pot file (expected).
Comments
Comment #1
dave reidAnd I'm using the very latest 6.x-2.x CVS branch.
Comment #2
gábor hojtsyWell, potx is trying to look for path_redirect.{any of the known extensions}, and .admin.inc is not a known extension. The file lookup pattern probably needs to be changed to {modulename}{.optional whatever}.{any of the known extensions}.
Comment #3
gábor hojtsyTry this patch.
Comment #4
gábor hojtsyDuh, of course that was untested, so a typo was in there. Try this instead.
Comment #5
dave reidApplied the patch and all the options worked as expected. I also tried it with a dummy path_redirect.views.inc and a path_redirect.pages.inc and it picked them up correctly.
Comment #6
gábor hojtsyGreat, committed, thanks!
Comment #7
gábor hojtsySince 5.x is not maintained, moving back to fixed.