translate-all: Use g_try_malloc() for dynamic translator buffer