Comments
Refactord %contentype%/%contentypes% replacement a bit
Removed unused variables
Optimized searching for __() in twig
Comments
Use switch instead of two ifs+fnc for twig/php selection
Renamed single char variable to something meaningful
Comments
Merge pull request #1825 from rarila/gathertransopt

Refactored gatherTranslatableStrings