2

I would like to ask what tool do you use for updating/merging translation files.

For example imagine that we have 3 message files e.g. messages.en, messages.it, messages.de.

Is there a way to synchronise these files with the code? I mean:

  1. Check .html files
  2. Get all @Messages.get(' ')
  3. Search if they are available in each file and if not just add them.

Or at least is there a tool to somehow synchronize the messages files ? For example when I add something to messages.en it will be automatically added to messages.de, etc.

I am not sure but i found this outdated plugin: https://github.com/huljas/play-messages and I would like to ask if something similar exists for play 2.4.

glarkou
  • 7,023
  • 12
  • 68
  • 118
  • I've never had to provide a web page in different languages so far myself, but have you had a look at https://www.playframework.com/documentation/2.4.x/ScalaI18N? – Kris Aug 17 '15 at 11:15
  • Yes I did. The problem is somehow automate the whole process of the message file creation etc. – glarkou Aug 17 '15 at 12:34
  • I started with a sample app with 8 languages and currently Play lacks of a good translation tool. Currently I have developed some classes to manage translations in the database (generate translation files from db). – adis Aug 17 '15 at 20:07
  • @adis is that a good solution? I think I found a better one. I will post it as soon as I finish it. – glarkou Aug 17 '15 at 21:02

0 Answers0