Revision: 6724
Author: [email protected]
Date: Thu Nov 5 20:17:12 2009
Log: Edited wiki page through web user interface.
http://code.google.com/p/google-web-toolkit/source/detail?r=6724
Modified:
/wiki/UiBinderI18n.wiki
=======================================
--- /wiki/UiBinderI18n.wiki Fri Sep 11 16:18:26 2009
+++ /wiki/UiBinderI18n.wiki Thu Nov 5 20:17:12 2009
@@ -172,22 +172,17 @@
*Tagged*
{{{
<ui:msg>
- (closed <span ui:field="closingDate" ui:example="7/12/2008" />
- through <span ui:field="reopeningDate" ui:example="7/19/2008" />)
+ (closed <ui:ph ui:example="7/12/2008"><span ui:field="closingDate"
/></ui:ph>
+ through <ui:ph ui:example="7/12/2008"><span
ui:field="reopeningDate"/></ui:ph>)
</ui:msg>
}}}
-
-Note that there is no {{{ui:ph}}} attribute here, which would normally
-be used to identify a span as a placeholder, and also to provide its
-name. The {{{ui:field}}} attribute's appearance inside a child of a
-{{{ui:msg}}} element is enough to make it clear that a placeholder is
-required, and the field name can be used as the placeholder name.
+The <ui:ph> element is necessary to mark the span as opaque to the
translator.
+Without it, she'd be allowed to fill in the body of the span.
The {{{ui:example}}} attribute is optional, and allows more useful
text to be provided in the {...@example()}}} attribute of the generated
-Mesages interface (and hence to the translator). Without it, the
-parameters here would both be annotated {...@example("<span/>")}}}
+Mesages interface (and hence to the translator).
= Message containing widgets (HTMLPanel only) =
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---