[Movecommons-commits] r135 - in trunk/gwt/mc-form: . src/org/movecommons src/org/movecommons/client

Vicente J. Ruiz Jurado vjrj_ at ourproject.org
Mon Oct 3 00:16:00 CEST 2011


Author: vjrj_
Date: 2011-10-03 00:16:00 +0200 (Mon, 03 Oct 2011)
New Revision: 135

Added:
   trunk/gwt/mc-form/src/org/movecommons/client/Images.java
   trunk/gwt/mc-form/src/org/movecommons/client/McFormMessages.java
   trunk/gwt/mc-form/src/org/movecommons/client/McFormMessages.properties
   trunk/gwt/mc-form/src/org/movecommons/client/cat-selected.png
   trunk/gwt/mc-form/src/org/movecommons/client/gr50.png
   trunk/gwt/mc-form/src/org/movecommons/client/np50.png
   trunk/gwt/mc-form/src/org/movecommons/client/rcbo50.png
   trunk/gwt/mc-form/src/org/movecommons/client/rcdi50.png
   trunk/gwt/mc-form/src/org/movecommons/client/rcec50.png
   trunk/gwt/mc-form/src/org/movecommons/client/rcto50.png
   trunk/gwt/mc-form/src/org/movecommons/client/rp50.png
Modified:
   trunk/gwt/mc-form/.classpath
   trunk/gwt/mc-form/src/org/movecommons/Mc_form.gwt.xml
   trunk/gwt/mc-form/src/org/movecommons/client/McFormPanel.java
   trunk/gwt/mc-form/src/org/movecommons/client/McFormPanel.ui.xml
   trunk/gwt/mc-form/src/org/movecommons/client/McFormPresenter.java
Log:
i18n, and images added

Modified: trunk/gwt/mc-form/.classpath
===================================================================
--- trunk/gwt/mc-form/.classpath	2011-10-01 13:25:58 UTC (rev 134)
+++ trunk/gwt/mc-form/.classpath	2011-10-02 22:16:00 UTC (rev 135)
@@ -2,7 +2,8 @@
 <classpath>
 	<classpathentry kind="src" path="src"/>
 	<classpathentry kind="src" output="test-classes" path="test"/>
-	<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER/GWT (2)"/>
+	<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER/GWT (1)"/>
 	<classpathentry kind="output" path="war/WEB-INF/classes"/>
 </classpath>

Modified: trunk/gwt/mc-form/src/org/movecommons/Mc_form.gwt.xml
===================================================================
--- trunk/gwt/mc-form/src/org/movecommons/Mc_form.gwt.xml	2011-10-01 13:25:58 UTC (rev 134)
+++ trunk/gwt/mc-form/src/org/movecommons/Mc_form.gwt.xml	2011-10-02 22:16:00 UTC (rev 135)
@@ -1,21 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <module rename-to='mc_form'>
-  <!-- Inherit the core Web Toolkit stuff.                        -->
+  <!-- Inherit the core Web Toolkit stuff. -->
   <inherits name='com.google.gwt.user.User'/>
 
-  <!-- Inherit the default GWT style sheet.  You can change       -->
-  <!-- the theme of your GWT application by uncommenting          -->
-  <!-- any one of the following lines.                            -->
-  <inherits name='com.google.gwt.user.theme.standard.Standard'/>
+  <inherits name="com.google.gwt.i18n.I18N"/>
+  <extend-property name="locale" values="en"/>
+  <extend-property name="locale" values="es"/>
+
+  <!-- Inherit the default GWT style sheet. You can change -->
+  <!-- the theme of your GWT application by uncommenting -->
+  <!-- any one of the following lines. -->
+  <!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> -->
   <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
-  <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>     -->
+  <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
 
-  <!-- Other module inherits                                      -->
+  <!-- Other module inherits -->
 
-  <!-- Specify the app entry point class.                         -->
+  <!-- Specify the app entry point class. -->
   <entry-point class='org.movecommons.client.McFormEntryPoint'/>
 
-  <!-- Specify the paths for translatable code                    -->
+  <!-- Specify the paths for translatable code -->
   <source path='client'/>
 
 </module>

Added: trunk/gwt/mc-form/src/org/movecommons/client/Images.java
===================================================================
--- trunk/gwt/mc-form/src/org/movecommons/client/Images.java	                        (rev 0)
+++ trunk/gwt/mc-form/src/org/movecommons/client/Images.java	2011-10-02 22:16:00 UTC (rev 135)
@@ -0,0 +1,25 @@
+package org.movecommons.client;
+
+import com.google.gwt.resources.client.ClientBundle;
+import com.google.gwt.resources.client.ImageResource;
+
+public interface Images extends ClientBundle {
+
+  @Source("cat-selected.png")
+  ImageResource catSelected();
+
+  ImageResource gr50();
+
+  ImageResource np50();
+
+  ImageResource rcbo50();
+
+  ImageResource rcdi50();
+
+  ImageResource rcec50();
+
+  ImageResource rcto50();
+
+  ImageResource rp50();
+
+}

Added: trunk/gwt/mc-form/src/org/movecommons/client/McFormMessages.java
===================================================================
--- trunk/gwt/mc-form/src/org/movecommons/client/McFormMessages.java	                        (rev 0)
+++ trunk/gwt/mc-form/src/org/movecommons/client/McFormMessages.java	2011-10-02 22:16:00 UTC (rev 135)
@@ -0,0 +1,64 @@
+package org.movecommons.client;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.i18n.client.Messages;
+
+public interface McFormMessages extends Messages {
+
+  public static McFormMessages INSTANCE = GWT.create(McFormMessages.class);
+
+  String checkThoseYouThinkCorespondToYourInitiative();
+
+  String creativeCommonsInThisWebpageOtherLicenseInThisWebpage();
+
+  String ifActiveShow();
+
+  String keywords();
+
+  String languageS();
+
+  String location();
+
+  String nameOfTheInitiative();
+
+  String natureCommonsForestSeedsBodyHealthCommonsBloodOrgansTownCommunitySocietyCommonsStreetsScienceDigital();
+
+  String optional();
+
+  String organizationStructureProjectsAndResultsMethodsProceduresDocumentation();
+
+  String ourInitiativeReinforcesTheCommonsInTheFollowingAreaS();
+
+  String weAcceptDonationsCheckThisWebpage();
+
+  String weAreGrassroots();
+
+  String weAreNonProfit();
+
+  String weAreRegisteredAsNonProfitCheckThisWebpage();
+
+  String weAreReinforcingTheCommons();
+
+  String weAreReproducible();
+
+  String website();
+
+  String weHaveABoardWhoseMeetingsAreTransparent();
+
+  String weHaveOpenAccountingCheckThisWebpage();
+
+  String weHaveRepresentativesChosenDemocratically();
+
+  String weHaveTermsOfUseOfOurContentsInThisWebpage();
+
+  String weShare();
+
+  String weTakeDecisionsMainlyThroughGeneralAssemblies();
+
+  String weTakeDecisionsThroughConsensusInsteadOfMajority();
+
+  String weTakeDecisionsThroughMajorityVoting();
+
+  String weUseThisLicenseForSharingOurContents();
+
+}

Added: trunk/gwt/mc-form/src/org/movecommons/client/McFormMessages.properties
===================================================================
--- trunk/gwt/mc-form/src/org/movecommons/client/McFormMessages.properties	                        (rev 0)
+++ trunk/gwt/mc-form/src/org/movecommons/client/McFormMessages.properties	2011-10-02 22:16:00 UTC (rev 135)
@@ -0,0 +1,29 @@
+nameOfTheInitiative = Name of the initiative:
+website = Website:
+languageS = Language(s): (+)
+location = Location:
+keywords = Keywords: (+)
+checkThoseYouThinkCorespondToYourInitiative = Check those you think corespond to your initiative:
+weAreNonProfit = We are Non-profit
+ifActiveShow = If active, show:
+optional = Optional:
+weAreRegisteredAsNonProfitCheckThisWebpage = We are registered as Non-profit, check this webpage:
+weHaveOpenAccountingCheckThisWebpage = We have Open-accounting, check this webpage:
+weAcceptDonationsCheckThisWebpage = We accept donations, check this webpage:
+weAreReproducible = We are Reproducible
+ifActiveShow = If active, show:
+optional = Optional:
+weHaveTermsOfUseOfOurContentsInThisWebpage = We have Terms of Use of our contents in this webpage:
+weUseThisLicenseForSharingOurContents = We use this license for sharing our contents:
+creativeCommonsInThisWebpageOtherLicenseInThisWebpage = Creative Commons, in this webpage: Other license, in this webpage:
+weShare = We share:
+organizationStructureProjectsAndResultsMethodsProceduresDocumentation = Organization structure Projects and results Methods / Procedures Documentation
+weAreGrassroots = We are Grassroots
+weTakeDecisionsMainlyThroughGeneralAssemblies = We take decisions mainly through general assemblies
+weTakeDecisionsThroughMajorityVoting = We take decisions through majority voting
+weTakeDecisionsThroughConsensusInsteadOfMajority = We take decisions through consensus, instead of majority
+weHaveRepresentativesChosenDemocratically = We have representatives chosen democratically
+weHaveABoardWhoseMeetingsAreTransparent = We have a board whose meetings are transparent
+weAreReinforcingTheCommons = We are Reinforcing the Commons
+ourInitiativeReinforcesTheCommonsInTheFollowingAreaS = Our initiative reinforces the Commons in the following area(s):
+natureCommonsForestSeedsBodyHealthCommonsBloodOrgansTownCommunitySocietyCommonsStreetsScienceDigital = Nature Commons (forest, seeds) Body/Health Commons (blood, organs) Town/Community/Society Commons (streets, science) Digital Commons (Wikipedia, free software)

Modified: trunk/gwt/mc-form/src/org/movecommons/client/McFormPanel.java
===================================================================
--- trunk/gwt/mc-form/src/org/movecommons/client/McFormPanel.java	2011-10-01 13:25:58 UTC (rev 134)
+++ trunk/gwt/mc-form/src/org/movecommons/client/McFormPanel.java	2011-10-02 22:16:00 UTC (rev 135)
@@ -19,122 +19,152 @@
 import com.google.gwt.user.client.ui.Widget;
 
 public class McFormPanel extends Composite implements McFormView {
+  interface McFormPanelUiBinder extends UiBinder<Widget, McFormPanel> {
+  }
 
-    interface McFormPanelUiBinder extends UiBinder<Widget, McFormPanel> {
-    }
-    private static McFormPanelUiBinder uiBinder = GWT.create(McFormPanelUiBinder.class);
+  private static final String[] LANGS = { "Afar", "Abkhazian", "Afrikaans", "Akan", "Amharic", "Arabic",
+      "Aragonese", "Assamese", "Avaric", "Avestan", "Aymara", "Azerbaijani", "Bashkir", "Bambara",
+      "Belarusian", "Bengali", "Bislama", "Tibetan", "Bosnian", "Breton", "Bulgarian", "Catalan",
+      "Czech", "Chamorro", "Chechen", "Slavic", "Chuvash", "Cornish", "Corsican", "Cree", "Welsh",
+      "Danish", "German", "Divehi", "Dzongkha", "Greek", "English", "Esperanto", "Estonian", "Basque",
+      "Ewe", "Faroese", "Persian", "Fijian", "Finnish", "French", "Frisian", "Fulah", "Gaelic", "Irish",
+      "Gallegan", "Manx", "Guarani", "Gujarati", "Haitian; Haitian Creole", "Hausa", "Serbo-Croatian",
+      "Hebrew", "Herero", "Hindi", "Hiri Motu", "Croatian", "Hungarian", "Armenian", "Igbo", "Ido",
+      "Yi", "Inuktitut", "Interlingue", "Interlingua", "Indonesian", "Inupiaq", "Icelandic", "Italian",
+      "Javanese", "Japanese", "Kalaallisut", "Kannada", "Kashmiri", "Georgian", "Kanuri", "Kazakh",
+      "Khmer", "Kikuyu", "Kinyarwanda", "Kirghiz", "Komi", "Kongo", "Korean", "Kuanyama", "Kurdish",
+      "Lao", "Latin", "Latvian", "Limburgish", "Lingala", "Lithuanian", "Letzeburgesch", "Luba-Katanga",
+      "Ganda", "Marshall", "Malayalam", "Marathi", "Macedonian", "Malagasy", "Maltese", "Moldavian",
+      "Mongolian", "Maori", "Malay", "Burmese", "Nauru", "Navajo", "Ndebele", "Ndebele", "Ndonga",
+      "Nepali", "Dutch", "Norwegian Nynorsk", "Norwegian Bokmål", "Norwegian", "Chichewa; Nyanja",
+      "Occitan", "Ojibwa", "Oriya", "Oromo", "Ossetian; Ossetic", "Panjabi", "Pali", "Polish",
+      "Portuguese", "Pushto", "Quechua", "Raeto-Romance", "Romanian", "Rundi", "Russian", "Sango",
+      "Sanskrit", "Sinhalese", "Slovak", "Slovenian", "Northern Sami", "Samoan", "Shona", "Sindhi",
+      "Somali", "Sotho", "Spanish", "Albanian", "Sardinian", "Serbian", "Swati", "Sundanese", "Swahili",
+      "Swedish", "Tahitian", "Tamil", "Tatar", "Telugu", "Tajik", "Tagalog", "Thai", "Tigrinya",
+      "Tonga", "Tswana", "Tsonga", "Turkmen", "Turkish", "Twi", "Uighur", "Ukrainian", "Urdu", "Uzbek",
+      "Venda", "Vietnamese", "Volapük", "Walloon", "Wolof", "Xhosa", "Yiddish", "Zhuang", "Chinese",
+      "Zulu", "Traditional Chinese", "Simplified Chinese", "Brazilian Portuguese" };
+  private static McFormPanelUiBinder uiBinder = GWT.create(McFormPanelUiBinder.class);
 
-    @UiField
-    PushButton addKeywordBtn;
-    @UiField
-    InlineLabel catIntroLabel;
-    @UiField
-    FocusPanel grPanel;
-    @UiField
-    TextBox initiativeName;
-    @UiField
-    InlineLabel initiativeNameLabel;
-    @UiField
-    TextBox keyword1;
-    @UiField
-    TextBox keyword2;
-    @UiField
-    TextBox keyword3;
-    @UiField
-    InlineLabel keywords;
-    @UiField
-    ListBox language;
-    @UiField
-    InlineLabel languageLabel;
-    @UiField
-    TextBox location;
-    @UiField
-    InlineLabel locationLabel;
-    @UiField
-    FlowPanel mainPanel;
-    @UiField
-    InlineLabel npLabel;
-    @UiField
-    FocusPanel npPanel;
-    @UiField
-    CaptionPanel optionalCaption;
-    @UiField
-    FlowPanel optionalFlow;
-    @UiField
-    FocusPanel rcPanel;
-    @UiField
-    FocusPanel rpPanel;
-    @UiField
-    TextBox website;
-    @UiField
-    InlineLabel websiteLabel;
+  @UiField
+  PushButton addKeywordBtn;
+  @UiField
+  InlineLabel catIntroLabel;
+  @UiField
+  FocusPanel grPanel;
+  @UiField
+  TextBox initiativeName;
+  @UiField
+  InlineLabel initiativeNameLabel;
+  @UiField
+  TextBox keyword1;
+  @UiField
+  TextBox keyword2;
+  @UiField
+  TextBox keyword3;
+  @UiField
+  InlineLabel keywords;
+  @UiField
+  ListBox languages;
+  @UiField
+  InlineLabel languagesLabel;
+  @UiField
+  TextBox location;
+  @UiField
+  InlineLabel locationLabel;
+  @UiField
+  FlowPanel mainPanel;
+  @UiField
+  InlineLabel npLabel;
+  @UiField
+  FocusPanel npPanel;
+  @UiField
+  CaptionPanel optionalCaption;
+  @UiField
+  FlowPanel optionalFlow;
+  @UiField
+  FocusPanel rcPanel;
+  @UiField
+  FocusPanel rpPanel;
+  @UiField
+  TextBox website;
+  @UiField
+  InlineLabel websiteLabel;
 
-    /**
-     * Check the <a href=
-     * "https://code.google.com/intl/en/webtoolkit/doc/latest/DevGuideUiBinder.html"
-     * >Ui Binder Dev Guide</a> for more info.
-     */
-    public McFormPanel() {
-        initWidget(uiBinder.createAndBindUi(this));
+  /**
+   * Check the <a href=
+   * "https://code.google.com/intl/en/webtoolkit/doc/latest/DevGuideUiBinder.html"
+   * >Ui Binder Dev Guide</a> for more info.
+   */
+  public McFormPanel() {
+    initWidget(uiBinder.createAndBindUi(this));
+    for (int i = 0; i < LANGS.length; i++) {
+      final String lang = LANGS[i];
+      languages.addItem(lang);
+      if (lang.equals("English")) {
+        languages.setSelectedIndex(i);
+      }
     }
+  }
 
-    @Override
-    public HasClickHandlers getGrPanel() {
-        return grPanel;
-    }
+  @Override
+  public HasClickHandlers getGrPanel() {
+    return grPanel;
+  }
 
-    @Override
-    public HasText getInitiativeName() {
-        return initiativeName;
-    }
+  @Override
+  public HasText getInitiativeName() {
+    return initiativeName;
+  }
 
-    @Override
-    public HasText getInitiativeNameLabel() {
-        return initiativeNameLabel;
-    }
+  @Override
+  public HasText getInitiativeNameLabel() {
+    return initiativeNameLabel;
+  }
 
-    @Override
-    public HasText getLanguageLabel() {
-        return languageLabel;
-    }
+  @Override
+  public HasText getLanguagesLabel() {
+    return languagesLabel;
+  }
 
-    @Override
-    public HasText getLocation() {
-        return location;
-    }
+  @Override
+  public HasText getLocation() {
+    return location;
+  }
 
-    @Override
-    public HasText getLocationLabel() {
-        return locationLabel;
-    }
+  @Override
+  public HasText getLocationLabel() {
+    return locationLabel;
+  }
 
-    @Override
-    public HasClickHandlers getNpPanel() {
-        return npPanel;
-    }
+  @Override
+  public HasClickHandlers getNpPanel() {
+    return npPanel;
+  }
 
-    @Override
-    public IsWidget getOptionalPanel() {
-        return optionalFlow;
-    }
+  @Override
+  public IsWidget getOptionalPanel() {
+    return optionalFlow;
+  }
 
-    @Override
-    public HasClickHandlers getRcPanel() {
-        return rcPanel;
-    }
+  @Override
+  public HasClickHandlers getRcPanel() {
+    return rcPanel;
+  }
 
-    @Override
-    public HasClickHandlers getRpPanel() {
-        return rpPanel;
-    }
+  @Override
+  public HasClickHandlers getRpPanel() {
+    return rpPanel;
+  }
 
-    @Override
-    public HasText getWebsite() {
-        return website;
-    }
+  @Override
+  public HasText getWebsite() {
+    return website;
+  }
 
-    @Override
-    public HasText getWebsiteLabel() {
-        return websiteLabel;
-    }
+  @Override
+  public HasText getWebsiteLabel() {
+    return websiteLabel;
+  }
 }

Modified: trunk/gwt/mc-form/src/org/movecommons/client/McFormPanel.ui.xml
===================================================================
--- trunk/gwt/mc-form/src/org/movecommons/client/McFormPanel.ui.xml	2011-10-01 13:25:58 UTC (rev 134)
+++ trunk/gwt/mc-form/src/org/movecommons/client/McFormPanel.ui.xml	2011-10-02 22:16:00 UTC (rev 135)
@@ -10,8 +10,8 @@
   .website {}
   .location-label {}
   .location {}
-  .language-label {}
-  .language {}
+  .languages-label {}
+  .languages {}
   .np-panel { background-color: gray; cursor: pointer;}
   .rp-panel { background-color: blue; cursor: pointer;}
   .rc-panel { background-color: blue; cursor: pointer;}
@@ -30,9 +30,9 @@
     <g:TextBox ui:field="initiativeName" styleName='{style.initiative-name}' />
     <g:InlineLabel ui:field="websiteLabel" styleName='{style.website-label}' />
     <g:TextBox ui:field="website" styleName='{style.website}' />
-    <g:InlineLabel ui:field="languageLabel" styleName='{style.language-label}' />
-    <g:ListBox visibleItemCount="5" ui:field="language"
-      styleName='{style.language}' />
+    <g:InlineLabel ui:field="languagesLabel" styleName='{style.languages-label}' />
+    <g:ListBox ui:field="languages"
+      styleName='{style.languages}' visibleItemCount="1" multipleSelect="false" />
     <g:InlineLabel ui:field="locationLabel" styleName='{style.location-label}' />
     <g:TextBox ui:field="location" styleName='{style.location}' />
     <g:InlineLabel ui:field="keywords" />

Modified: trunk/gwt/mc-form/src/org/movecommons/client/McFormPresenter.java
===================================================================
--- trunk/gwt/mc-form/src/org/movecommons/client/McFormPresenter.java	2011-10-01 13:25:58 UTC (rev 134)
+++ trunk/gwt/mc-form/src/org/movecommons/client/McFormPresenter.java	2011-10-02 22:16:00 UTC (rev 135)
@@ -8,88 +8,90 @@
 
 public class McFormPresenter {
 
-    public interface McFormView {
-        HasClickHandlers getGrPanel();
+  public interface McFormView {
+    HasClickHandlers getGrPanel();
 
-        HasText getInitiativeName();
+    HasText getInitiativeName();
 
-        HasText getInitiativeNameLabel();
+    HasText getInitiativeNameLabel();
 
-        HasText getLanguageLabel();
+    HasText getLanguagesLabel();
 
-        HasText getLocation();
+    HasText getLocation();
 
-        HasText getLocationLabel();
+    HasText getLocationLabel();
 
-        HasClickHandlers getNpPanel();
+    HasClickHandlers getNpPanel();
 
-        IsWidget getOptionalPanel();
+    IsWidget getOptionalPanel();
 
-        HasClickHandlers getRcPanel();
+    HasClickHandlers getRcPanel();
 
-        HasClickHandlers getRpPanel();
+    HasClickHandlers getRpPanel();
 
-        HasText getWebsite();
+    HasText getWebsite();
 
-        HasText getWebsiteLabel();
-    }
+    HasText getWebsiteLabel();
+  }
 
-    private boolean isGR;
-    private boolean isNP;
-    private boolean isRC;
-    private boolean isRP;
-    private McFormView view;
+  private final McFormMessages i18n;
+  private boolean isGR;
+  private boolean isNP;
+  private boolean isRC;
+  private boolean isRP;
+  private McFormView view;
 
-    public McFormPresenter() {
-        isNP = false;
-        isRC = false;
-        isRP = false;
-        isGR = false;
-    }
+  public McFormPresenter() {
+    isNP = false;
+    isRC = false;
+    isRP = false;
+    isGR = false;
+    i18n = McFormMessages.INSTANCE;
+  }
 
-    public void init(final McFormView view) {
-        this.view = view;
-        reset(view);
-    }
+  public void init(final McFormView view) {
+    this.view = view;
+    reset(view);
+  }
 
-    private void reset(final McFormView view) {
-        view.getOptionalPanel().asWidget().setVisible(false);
-        view.getNpPanel().addClickHandler(new ClickHandler() {
+  private void reset(final McFormView view) {
+    view.getOptionalPanel().asWidget().setVisible(false);
+    view.getNpPanel().addClickHandler(new ClickHandler() {
 
-            @Override
-            public void onClick(final ClickEvent event) {
-                isNP = !isNP;
-                view.getOptionalPanel().asWidget().setVisible(isNP);
-            }
-        });
-        view.getRpPanel().addClickHandler(new ClickHandler() {
+      @Override
+      public void onClick(final ClickEvent event) {
+        isNP = !isNP;
+        view.getOptionalPanel().asWidget().setVisible(isNP);
+      }
+    });
+    view.getRpPanel().addClickHandler(new ClickHandler() {
 
-            @Override
-            public void onClick(final ClickEvent event) {
-                isRP = !isRP;
-                view.getOptionalPanel().asWidget().setVisible(isRP);
-            }
-        });
-        view.getRcPanel().addClickHandler(new ClickHandler() {
+      @Override
+      public void onClick(final ClickEvent event) {
+        isRP = !isRP;
+        view.getOptionalPanel().asWidget().setVisible(isRP);
+      }
+    });
+    view.getRcPanel().addClickHandler(new ClickHandler() {
 
-            @Override
-            public void onClick(final ClickEvent event) {
-                isRC = !isRC;
-                view.getOptionalPanel().asWidget().setVisible(isRC);
-            }
-        });
-        view.getRcPanel().addClickHandler(new ClickHandler() {
+      @Override
+      public void onClick(final ClickEvent event) {
+        isRC = !isRC;
+        view.getOptionalPanel().asWidget().setVisible(isRC);
+      }
+    });
+    view.getRcPanel().addClickHandler(new ClickHandler() {
 
-            @Override
-            public void onClick(final ClickEvent event) {
-                isGR = !isGR;
-                view.getOptionalPanel().asWidget().setVisible(isGR);
-            }
-        });
-        // FIXME i18n
-        view.getInitiativeNameLabel().setText("Name of the initiative:");
-        view.getLocationLabel().setText("Location");
-        view.getLanguageLabel().setText("Language(s)");
-        view.getWebsiteLabel().setText("Website");
-    }
+      @Override
+      public void onClick(final ClickEvent event) {
+        isGR = !isGR;
+        view.getOptionalPanel().asWidget().setVisible(isGR);
+      }
+    });
+    // FIXME i18n
+    view.getInitiativeNameLabel().setText(i18n.nameOfTheInitiative());
+    view.getLocationLabel().setText(i18n.location());
+    view.getLanguagesLabel().setText(i18n.languageS());
+    view.getWebsiteLabel().setText(i18n.website());
+  }
 }

Added: trunk/gwt/mc-form/src/org/movecommons/client/cat-selected.png
===================================================================
(Binary files differ)


Property changes on: trunk/gwt/mc-form/src/org/movecommons/client/cat-selected.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gwt/mc-form/src/org/movecommons/client/gr50.png
===================================================================
(Binary files differ)


Property changes on: trunk/gwt/mc-form/src/org/movecommons/client/gr50.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gwt/mc-form/src/org/movecommons/client/np50.png
===================================================================
(Binary files differ)


Property changes on: trunk/gwt/mc-form/src/org/movecommons/client/np50.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gwt/mc-form/src/org/movecommons/client/rcbo50.png
===================================================================
(Binary files differ)


Property changes on: trunk/gwt/mc-form/src/org/movecommons/client/rcbo50.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gwt/mc-form/src/org/movecommons/client/rcdi50.png
===================================================================
(Binary files differ)


Property changes on: trunk/gwt/mc-form/src/org/movecommons/client/rcdi50.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gwt/mc-form/src/org/movecommons/client/rcec50.png
===================================================================
(Binary files differ)


Property changes on: trunk/gwt/mc-form/src/org/movecommons/client/rcec50.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gwt/mc-form/src/org/movecommons/client/rcto50.png
===================================================================
(Binary files differ)


Property changes on: trunk/gwt/mc-form/src/org/movecommons/client/rcto50.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gwt/mc-form/src/org/movecommons/client/rp50.png
===================================================================
(Binary files differ)


Property changes on: trunk/gwt/mc-form/src/org/movecommons/client/rp50.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream




More information about the Movecommons-commits mailing list