Added machine translations for untranslated text, modified code to support
localization rather than inline strings.

Patch by: jat
Review by: rdayal (desk review)


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@2926 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.properties b/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.properties
index fe0cb13..88cb3e5 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.properties
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.properties
@@ -27,6 +27,9 @@
 cwAbsolutePanelWidgetNames = Hello World, Button, Grid 
 cwAnimationName = Animations
 cwAnimationDescription = Animate your application with timed effects.
+cwAnimationStart = Start
+cwAnimationCancel = Cancel
+cwAnimationOptions = Animation Options
 cwBasicButtonName = Basic Button
 cwBasicButtonDescription = Basic button widgets
 cwBasicButtonClickMessage = Stop poking me!
@@ -80,6 +83,9 @@
 cwDateTimeFormatPatternLabel = <b>Pattern:</b>
 cwDateTimeFormatPatterns = Full Date/Time, Long Date/Time, Medium Date/Time, Short Date/Time, Full Date, Long Date, Medium Date, Short Date, Full Time, Long Time, Medium Time, Short Time, Custom
 cwDateTimeFormatValueLabel = <b>Value to format:</b>
+cwDecoratorPanelFormDescription = Description:
+cwDecoratorPanelFormName = Name:
+cwDecoratorPanelFormTitle = Enter Search Criteria
 cwDecoratorPanelName = Decorator Panel
 cwDecoratorPanelDescription = Add rounded corners to any Widget using the Decorator Panel.
 cwDialogBoxName = Dialog Box
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants_ar.properties b/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants_ar.properties
index 725e433..8d02ac8 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants_ar.properties
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants_ar.properties
@@ -78,6 +78,9 @@
 cwDateTimeFormatPatternLabel = <b>نمط:</b>
 cwDateTimeFormatPatterns = التاريخ/الوقت كامل, التاريخ/الوقت طويل, التاريخ/الوقت متوسط, التاريخ/الوقت قصير, التاريخ كامل, التاريخ طويل, التاريخ متوسط, التاريخ قصير, الوقت كامل, الوقت طويل, الوقت متوسط, الوقت قصير, مخصص
 cwDateTimeFormatValueLabel = <b>قيمة للتنسيق:</b>
+cwDecoratorPanelFormDescription = الوصف:
+cwDecoratorPanelFormName = اسم:
+cwDecoratorPanelFormTitle = <b>ادخال معايير البحث</b>
 cwDialogBoxName = مربع الحوار
 cwDialogBoxDescription = ان مربع الوار القابل للسحب يشبه النافذة ويحتوي على شريط عنوان. بالامكان تعديل العتمة لاظهار جزء من الخلفية من خلال النافذة المنبثقة.
 cwDialogBoxMakeTransparent = تحديد شفافية
@@ -206,3 +209,12 @@
 cwVerticalSplitPanelName = لوح الانقسام العمودي
 cwVerticalSplitPanelDescription = اعطاء المستخدم حرية توزيع الفضاء باستخدام لوحة الانقسام
 cwVerticalSplitPanelText = هذا النص عبارة عن مثال لتوضيح انسياب النص على كل جانب من الفاصل.
+
+# TODO: machine translated
+cwAnimationName = الرسوم المتحركه
+cwAnimationDescription = تحريك طلبك في الوقت المناسب مع الآثار.
+cwAnimationStart = يبدأ
+cwAnimationCancel = الغاء
+cwAnimationOptions = خيارات الرسوم المتحركه
+cwDecoratorPanelName = الفريق النقاش
+cwDecoratorPanelDescription = اضافة الى مقربة اركان القطعه باستخدام اي فريق النقاش.
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants_fr.properties b/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants_fr.properties
index efc3198..1f170f0 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants_fr.properties
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants_fr.properties
@@ -78,6 +78,9 @@
 cwDateTimeFormatPatternLabel = <b>Pattern:</b>
 cwDateTimeFormatPatterns = Full Date / Heure, Long Date / Heure, Moyen Date / Heure, Short Date / Heure, Full Date, Longue Date, Moyen Date, date courte, Full Time, Long Time, temps moyen, temps court, Custom
 cwDateTimeFormatValueLabel = <b>Valeur au format:</b>
+cwDecoratorPanelFormDescription = Description:
+cwDecoratorPanelFormName = Nom:
+cwDecoratorPanelFormTitle = Saisissez des critères de recherche
 cwDialogBoxName = Boîte de dialogue
 cwDialogBoxDescription = La boîte de dialogue que vous pouvez faire glisser et déposer est similaire à une fenêtre et inclut une barre de titre. Vous pouvez régler l'opacité pour rendre visible une partie de l'arrière-plan à travers la fenêtre pop-up.
 cwDialogBoxMakeTransparent = Ajouter de la transparence
@@ -206,3 +209,12 @@
 cwVerticalSplitPanelName = Volet à fractionnement vertical
 cwVerticalSplitPanelDescription = Donne aux utilisateurs la possibilité de décider de la manière dont l'espace doit être alloué.
 cwVerticalSplitPanelText = Voici un texte permettant de voir comment le contenu situé de chaque côté de la barre de fractionnement défile.
+
+# TODO: machine translated
+cwAnimationName = Animations
+cwAnimationDescription = Animez votre demande avec le temps les effets.
+cwAnimationStart = Commencer
+cwAnimationCancel = Annuler
+cwAnimationOptions = Animation Options
+cwDecoratorPanelName = Décorateur Groupe
+cwDecoratorPanelDescription = Ajouter des angles arrondis à un widget en utilisant les Décorateur Panneau de configuration..
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants_zh.properties b/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants_zh.properties
index 8de7443..7cfc585 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants_zh.properties
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants_zh.properties
@@ -78,6 +78,9 @@
 cwDateTimeFormatPatternLabel = <b>格局: </b>
 cwDateTimeFormatPatterns =充分日期/时间, 只要日期/时间, 中, 日期/时间, 短日期/时间, 充分日期, 长日期, 中, 日, 短日期, 全部时间很长的时间, 中, 短的时间内, 风俗
 cwDateTimeFormatValueLabel = <b>价值格式: </b>
+cwDecoratorPanelFormDescription = 说明:
+cwDecoratorPanelFormName = 姓名:
+cwDecoratorPanelFormTitle = 输入搜索条件
 cwDialogBoxName = 对话框
 cwDialogBoxDescription = 可拖动的 DialogBox 类似于一个窗口,其中包括一个标题栏。  您可以调整为不透明状态,让部分背景透过弹出式窗口显示。
 cwDialogBoxMakeTransparent = 使透明
@@ -206,3 +209,12 @@
 cwVerticalSplitPanelName = 垂直拆分面板
 cwVerticalSplitPanelDescription = 用户可通过此拆分面板自由决定如何分配空间。
 cwVerticalSplitPanelText = 以下文字显示了分隔条两侧的内容是如何流动的。
+
+# TODO: machine translated
+cwAnimationName = 動畫
+cwAnimationDescription = 動畫您的應用程序與時間的效果。
+cwAnimationStart = 開始
+cwAnimationCancel = 取消
+cwAnimationOptions = 動畫選項
+cwDecoratorPanelName = 裝飾面板
+cwDecoratorPanelDescription = 添加圓角任何的小裝置使用裝飾面板。
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwAnimation.java b/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwAnimation.java
index 9122ee9..8e56c1f 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwAnimation.java
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwAnimation.java
@@ -36,17 +36,6 @@
  */
 public class CwAnimation extends ContentWidget {
   /**
-   * The constants used in this Content Widget.
-   */
-  @ShowcaseSource
-  public static interface CwConstants extends Constants,
-      ContentWidget.CwConstants {
-    String cwAnimationDescription();
-
-    String cwAnimationName();
-  }
-
-  /**
    * A custom animation that moves a small image around a circle in an
    * {@link AbsolutePanel}.
    */
@@ -106,6 +95,26 @@
   }
 
   /**
+   * The constants used in this Content Widget.
+   */
+  @ShowcaseSource
+  public static interface CwConstants extends Constants,
+      ContentWidget.CwConstants {
+    @DefaultStringValue("Cancel")
+    String cwAnimationCancel();
+
+    String cwAnimationDescription();
+
+    String cwAnimationName();
+
+    @DefaultStringValue("Animation Options")
+    String cwAnimationOptions();
+
+    @DefaultStringValue("Start")
+    String cwAnimationStart();
+  }
+
+  /**
    * The absolute panel used in the example.
    */
   @ShowcaseData
@@ -243,10 +252,10 @@
     optionsBar.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
 
     // Add a title
-    optionsBar.add(new HTML("<b>Animation Options</b>"));
+    optionsBar.add(new HTML("<b>" + constants.cwAnimationOptions() + "</b>"));
 
     // Add start button
-    startButton = new Button("Start");
+    startButton = new Button(constants.cwAnimationStart());
     startButton.addClickListener(new ClickListener() {
       public void onClick(Widget sender) {
         animation.run(2000);
@@ -255,7 +264,7 @@
     optionsBar.add(startButton);
 
     // Add cancel button
-    cancelButton = new Button("Cancel");
+    cancelButton = new Button(constants.cwAnimationCancel());
     cancelButton.addClickListener(new ClickListener() {
       public void onClick(Widget sender) {
         animation.cancel();
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwDecoratorPanel.java b/samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwDecoratorPanel.java
index 0c29e80..efcdaf1 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwDecoratorPanel.java
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwDecoratorPanel.java
@@ -38,8 +38,19 @@
   @ShowcaseSource
   public static interface CwConstants extends Constants,
       ContentWidget.CwConstants {
+    @DefaultStringValue("Add rounded corners to any Widget using the Decorator Panel")
     String cwDecoratorPanelDescription();
 
+    @DefaultStringValue("Description:")
+    String cwDecoratorPanelFormDescription();
+
+    @DefaultStringValue("Name:")
+    String cwDecoratorPanelFormName();
+
+    @DefaultStringValue("Enter Search Criteria")
+    String cwDecoratorPanelFormTitle();
+
+    @DefaultStringValue("Decorator Panel")
     String cwDecoratorPanelName();
   }
 
@@ -81,15 +92,15 @@
     FlexCellFormatter cellFormatter = layout.getFlexCellFormatter();
 
     // Add a title to the form
-    layout.setHTML(0, 0, "Enter Search Criteria");
+    layout.setHTML(0, 0, constants.cwDecoratorPanelFormTitle());
     cellFormatter.setColSpan(0, 0, 2);
     cellFormatter.setHorizontalAlignment(0, 0,
         HasHorizontalAlignment.ALIGN_CENTER);
 
     // Add some standard form options
-    layout.setHTML(1, 0, "Name:");
+    layout.setHTML(1, 0, constants.cwDecoratorPanelFormName());
     layout.setWidget(1, 1, new TextBox());
-    layout.setHTML(2, 0, "Description:");
+    layout.setHTML(2, 0, constants.cwDecoratorPanelFormDescription());
     layout.setWidget(2, 1, new TextBox());
 
     // Wrap the content in a DecoratorPanel
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/client/propertieschanges.txt b/samples/showcase/src/com/google/gwt/sample/showcase/client/propertieschanges.txt
index 7cb06f2..49bb17c 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/client/propertieschanges.txt
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/client/propertieschanges.txt
@@ -1,2 +1,12 @@
 cwDecoratorPanelName
-cwDecoratorPanelDescription
\ No newline at end of file
+cwDecoratorPanelDescription
+
+cwAnimationName = Animations
+cwAnimationDescription = Animate your application with timed effects.
+cwAnimationStart = Start
+cwAnimationCancel = Cancel
+cwAnimationOptions = Animation Options
+
+cwDecoratorPanelFormName => cwDisclosurePanelFormName
+cwDecoratorPanelFormDescription => cwDisclosurePanelFormDescription
+cwDecoratorPanelFormTitle => cwDisclosurePanelFormTitle