java/translator: String constants

Signed-off-by: Pekka Enberg <penberg@iki.fi>