core: msg translator - switch condition to buf pointer instead of lenght