gwt-gradle-plugin icon indicating copy to clipboard operation
gwt-gradle-plugin copied to clipboard

how to generate i18n

Open dbaq opened this issue 7 years ago • 5 comments

hey @jiakuan,

Thanks for maintaining this plugin. Do you know if there is an easy way to generate the i18n files?

Thanks

dbaq avatar Aug 30 '17 01:08 dbaq

Hi @dbaq I didn't use this kind of generating tools before. Could you please explain more how should it work? Perhaps we could add the feature in this plugin, so that it can do it automatically?

Just found this link has more information: https://github.com/steffenschaefer/gwt-gradle-plugin/issues/105

jiakuan avatar Aug 30 '17 23:08 jiakuan

I see. It creates I18N interfaces for constants and messages files, which should be very helpful.

https://gwt-maven-plugin.github.io/gwt-maven-plugin/user-guide/i18n.html http://www.gwtproject.org/doc/latest/RefCommandLineTools.html#i18nCreator

Should be not hard to add to this plugin, as GWT already has the command line tool. Also we may be able to refer the code in gwt-maven-plugin. Any pull requests are welcome. Will have a look when I have a chance too.

jiakuan avatar Aug 31 '17 00:08 jiakuan

Somewhat related to this, somewhat off topic, but maybe someone can answer this question: Is there a way to have the GWT-Compiler read the results of a property file, which was processed by Gradle in the processResources task ? Instead of processing the source property file?

We are trying to produce a version info in each build, where the build version is a Gradle property allowing Gradles processResources task to do a replacement of "${version}" variable. This is ignored by GWT-Compiler.

carlolf avatar Sep 08 '17 10:09 carlolf

This plugin provides gwtCompile task to actually compile GWT code. So I think the direction would be to check if you can configure in Gradle so that gwtCompile task can depend on processResources or at least run after processResources.

jiakuan avatar Sep 14 '17 00:09 jiakuan

Hello all, is i18n included now as generate Async interface (https://gwt-maven-plugin.github.io/gwt-maven-plugin/user-guide/async.html)?

We are migrating from maven to gradle and we are missing those two "tasks". I was searching on internet and couldn't find solution for gradle. Tnx

ferencz1 avatar Mar 01 '18 14:03 ferencz1