Re: use ui:text from

2011-08-11 Thread Tomasz Gawel
but to the original question ;)

you don,t need  markup at all :).
ui:text element has been introduced because you could not use
{messages.messageKey} in plain text not as attribute. as title is an
attribute it is not needed in that case.

just write:



-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: use ui:text from

2011-08-11 Thread Tomasz Gawel
not exactly,

ui:name and ui:description
are for messages that uibinder generates from templates (e.g.: the
default set messages - the other you should provide anyway as files).
the proper how-to is in the link to docs you gave above.

ui:text is used when you have messages in resources that you expose to
uibinder template. (which is for example what i prefer to do)
than you us eit like this:




   
  
s





in java you have sth like that:
public class YourWidget extends Composite {
//messages interface does not need to extend any of
com.google.gwt.i18n.client.* iterfaces but it probably will ;)

interface Messages extends ConstantsWithLookup {
String world();
String hello();
}

@UiField Messages msg; //messages must be ui:field - if you allready
have an instance of messages use @UiField(provided = true)

that's all :)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: use ui:text from

2011-08-10 Thread dindeman
HTML Attributes that Need 
Translation
Is that what you're looking for ?

Note that I think 'ui:name' and 'ui:description' are decprecated and should 
simply be 'name' and 'description'.

-- 
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/-/0JSX3zH_Q-8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: use ui:text from

2011-08-10 Thread Alex Dobjanschi
read docs?

-- 
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/-/_2tOBZDxqGwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



use ui:text from

2011-08-10 Thread Luke
i have html that look like   

how to i18n the title by using   inside the
"span"-title element?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.