[FrameworkBundle] fixed edge cases for translation:debug and tweaked the output