You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by id...@apache.org on 2006/10/03 21:32:15 UTC

svn commit: r452601 - in /myfaces/tobago/trunk: core/src/main/java/org/apache/myfaces/tobago/component/ theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/

Author: idus
Date: Tue Oct  3 12:32:14 2006
New Revision: 452601

URL: http://svn.apache.org/viewvc?view=rev&rev=452601
Log:
localized date picker string resources

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java
    myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago.properties.xml
    myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago_de.properties.xml

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java?view=diff&rev=452601&r1=452600&r2=452601
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java Tue Oct  3 12:32:14 2006
@@ -17,6 +17,7 @@
  */
 
 import org.apache.myfaces.tobago.TobagoConstants;
+import org.apache.myfaces.tobago.context.ResourceManagerUtil;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_ALT;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_CALENDAR_DATE_INPUT_ID;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_COLUMNS;
@@ -160,7 +161,9 @@
         facesContext, UIPanel.COMPONENT_TYPE, RENDERER_TYPE_BOX);
     popup.getChildren().add(box);
     box.setId("box");
-    box.getAttributes().put(ATTR_LABEL, "datePicker");
+    // TODO: set string resources in renderer
+    box.getAttributes().put(ATTR_LABEL, ResourceManagerUtil.getPropertyNotNull(
+        facesContext, "tobago", "datePickerTitle"));
     UIComponent layout = ComponentUtil.createComponent(
         facesContext, UIGridLayout.COMPONENT_TYPE, RENDERER_TYPE_GRID_LAYOUT);
     box.getFacets().put(FACET_LAYOUT, layout);
@@ -219,7 +222,8 @@
     buttonPanel.getChildren().add(okButton);
     okButton.setId("ok" + DatePickerController.CLOSE_POPUP);
     attributes = okButton.getAttributes();
-    attributes.put(ATTR_LABEL, "OK");
+    attributes.put(ATTR_LABEL, ResourceManagerUtil.getPropertyNotNull(
+        facesContext, "tobago", "datePickerOk"));
 
     final UICommand cancelButton =
         (UICommand) ComponentUtil.createComponent(facesContext,
@@ -227,7 +231,8 @@
             RENDERER_TYPE_BUTTON);
     buttonPanel.getChildren().add(cancelButton);
     attributes = cancelButton.getAttributes();
-    attributes.put(ATTR_LABEL, "Cancel");
+    attributes.put(ATTR_LABEL, ResourceManagerUtil.getPropertyNotNull(
+        facesContext, "tobago", "datePickerCancel"));
     cancelButton.setId(DatePickerController.CLOSE_POPUP);
 
     // create image

Modified: myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago.properties.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago.properties.xml?view=diff&rev=452601&r1=452600&r2=452601
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago.properties.xml (original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago.properties.xml Tue Oct  3 12:32:14 2006
@@ -64,6 +64,11 @@
 <entry key="treeMoveDown">move down</entry>
 <entry key="treeNodeNew">New Node</entry>
 
+<!-- datePicker -->
+<entry key="datePickerTitle">Date Picker</entry>
+<entry key="datePickerOk">OK</entry>
+<entry key="datePickerCancel">Cancel</entry>
+
 <!-- requiredvalidator -->
 <entry key="tobago.requiredvalidator.message.empty.summary">Required field.</entry>
 <entry key="tobago.requiredvalidator.message.empty.detail">Field is required.</entry>

Modified: myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago_de.properties.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago_de.properties.xml?view=diff&rev=452601&r1=452600&r2=452601
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago_de.properties.xml (original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago_de.properties.xml Tue Oct  3 12:32:14 2006
@@ -64,6 +64,11 @@
 <entry key="treeMoveDown">Nach unten verschieben</entry>
 <entry key="treeNodeNew">Neuer Knoten</entry>
 
+<!-- datePicker -->
+<entry key="datePickerTitle">Datumsauswahl</entry>
+<entry key="datePickerOk">OK</entry>
+<entry key="datePickerCancel">Abbrechen</entry>
+
 <!-- requiredvalidator -->
 <entry key="tobago.requiredvalidator.message.empty.summary">Pflichtfeld</entry>
 <entry key="tobago.requiredvalidator.message.empty.detail">Feld benötigt eine Eingabe!</entry>