Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to generate i18n #7

Open
dbaq opened this issue Aug 30, 2017 · 5 comments
Open

how to generate i18n #7

dbaq opened this issue Aug 30, 2017 · 5 comments

Comments

@dbaq
Copy link

dbaq commented Aug 30, 2017

hey @jiakuan,

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

Thanks

@jiakuan
Copy link
Owner

jiakuan commented Aug 30, 2017

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: steffenschaefer/gwt-gradle-plugin#105

@jiakuan
Copy link
Owner

jiakuan commented Aug 31, 2017

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.

@carlolf
Copy link

carlolf commented Sep 8, 2017

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.

@jiakuan
Copy link
Owner

jiakuan commented Sep 14, 2017

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.

@ferencz1
Copy link

ferencz1 commented Mar 1, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants