[generator] bug fix for detail code translation in case of no translation

Change-Id: I4c2bf9b31c0413920aad2c22b59e9e0639eb19dc
4 files changed