synchronize i18n.py with compat

Change-Id: Ic04a243a2f120145b572f7d3013694ce32a44495
Merge "synchronize i18n.py with compat"