Merged in mschlenker/cs-sphinx/fix-nested-figure-caption-i18n (pull request #190)

I18n does not always extract figure captions for figures nested inside other blocks
Add tests and code refine for pull request #190.
Don't strip file extension from names in autosummary directive.

Fixes issue #1309.
Close branch autosummary-file-ext