added i18n example, fixed error/warning bug