我正在對一個相當大的GWT UIbinder代碼庫進行本地化,並且在設置屬性的過程不起作用的幾個實例中運行。如何本地化DateLabel和NumberLabel customFormat屬性?
我需要指定爲DateLabel和NumberLabel小窗口的LocalizableResource_xx.properties文件中的日期格式和數字格式。
我試圖轉換使用the ui:attribute method該片段
<g:DateLabel styleName="{style.formPromptData}"
ui:field="createDate" customFormat="MMM d, yyyy" />
沒有成功
調用發生器com.google.gwt.uibinder.rebind.UiBinderGenerator [ERROR]無方法發現應用消息屬性customFormat Element(:63)
有沒有一種方法來定位這些元素?
爲什麼你需要本地化他們?只要您使用PredefinedFormat,它們已經是特定於語言環境的。 –
@AndreiVolgin問題是關於'customFormat',而不是預定義的格式。 –
@ThomasBroyer準確無誤。那麼爲什麼試圖本地化customFormat,當他們可以使用已經本地化的PredefinedFormat。 –