Has anyone solved this? It's not working for me either. Here's my class:
package dparish.client.view.impl;
import com.google.gwt.i18n.client.Messages;
import com.google.gwt.i18n.client.LocalizableResource.Generate;
import com.google.gwt.i18n.client.LocalizableResource.GenerateKeys;
@Generate(format="com.google.gwt.i18n.server.PropertyCatalogFactory")
@GenerateKeys
public interface StudentMessages extends Messages {
public String saveError();
@DefaultMessage("There are {0} students")
@AlternateMessage({"one", "There is one student"})
public String studentCount(@PluralCount int studentCount);
}
No files are created during the GWT compile. I suspect the problem relates
to this note in the docs:
Requests that a message catalog file is generated during the compilation
process. If the filename is not supplied, a default name based on the
interface name is used. The output file is created under the -out
directory.
There is no -out for the GWT compiler. There IS for i18nCreator, but that
command is listed for creating .java files from property files, not the
other way around as @Generate seems to claim it will do.
On Monday, January 11, 2010 3:46:17 PM UTC-6, Todd Vierling wrote:
>
> On Jan 1, 11:01 am, Todd Vierling <[email protected]> wrote:
> > I'm trying to get the GWT compile phase to spit out a template
> > properties file that I can hand to translators to make it easy to do
> > translation work.
>
> > Is there some way I should attempt to invoke the GWT compiler by hand
> > to try this a different way? What I'm hoping to get out of this is
> > similar to what xgettext does: provide a template file where the
> > constants are initially equal to the @Default* values -- and if
> > possible, comments generated from @Meaning or @Description annotations
> > as an aid to the translators. They could then return translated
> > versions to me, which I would simply check in to source control
> > alongside the default-locale versions, and never have to deal with the
> > Java code in-between.
> >
> > Maybe I'm missing the point of @Generate here, but I'm not exactly
> > sure what it's supposed to do otherwise. :(
>
> Any insight on this? The GWT compile phase says it's generating a
> properties file, but there's none to be found....
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/cPgh1GirOhQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.